diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index d69facf1bce9..d5ede7aa9d04 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1321,15 +1321,6 @@ packages: node-addon-api: 5.0.0 dev: false - /@azure/msal-node/1.14.2: - resolution: {integrity: sha512-t3whVhhLdZVVeDEtUPD2Wqfa8BDi3EDMnpWp8dbuRW0GhUpikBfs4AQU0Fe6P9zS87n9LpmUTLrIcPEEuzkvfA==} - engines: {node: 10 || 12 || 14 || 16 || 18} - dependencies: - '@azure/msal-common': 7.6.0 - jsonwebtoken: 8.5.1 - uuid: 8.3.2 - dev: false - /@azure/msal-node/1.14.4: resolution: {integrity: sha512-j9GzZu5mTLWtuJ+cYN6e67UNymIS5OysblrOzH8lakt9XxH0GCPYjuqbOEKTP84r+Rbj3io+TuW1KS+0Xxuj/g==} engines: {node: 10 || 12 || 14 || 16 || 18} @@ -3025,7 +3016,7 @@ packages: dev: false /array-flatten/1.1.1: - resolution: {integrity: sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=} + resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==} dev: false /array-includes/3.1.5: @@ -3266,7 +3257,7 @@ packages: dev: false /buffer-equal-constant-time/1.0.1: - resolution: {integrity: sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=} + resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==} dev: false /buffer-from/1.1.2: @@ -3423,7 +3414,7 @@ packages: dev: false /charenc/0.0.2: - resolution: {integrity: sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=} + resolution: {integrity: sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==} dev: false /check-error/1.0.2: @@ -3566,7 +3557,7 @@ packages: dev: false /concat-map/0.0.1: - resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} dev: false /concurrently/6.5.1: @@ -3627,7 +3618,7 @@ packages: dev: false /cookie-signature/1.0.6: - resolution: {integrity: sha1-4wOogrNCzD7oylE6eZmXNNqzriw=} + resolution: {integrity: sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==} dev: false /cookie/0.4.2: @@ -3740,7 +3731,7 @@ packages: dev: false /crypt/0.0.2: - resolution: {integrity: sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs=} + resolution: {integrity: sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==} dev: false /csv-parse/5.3.1: @@ -4017,11 +4008,11 @@ packages: dev: false /edge-launcher/1.2.2: - resolution: {integrity: sha1-60Cq+9Bnpup27/+rBke81VCbN7I=} + resolution: {integrity: sha512-JcD5WBi3BHZXXVSSeEhl6sYO8g5cuynk/hifBzds2Bp4JdzCGLNMHgMCKu5DvrO1yatMgF0goFsxXRGus0yh1g==} dev: false /ee-first/1.1.1: - resolution: {integrity: sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=} + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: false /electron-to-chromium/1.4.284: @@ -4902,7 +4893,7 @@ packages: dev: false /fresh/0.5.2: - resolution: {integrity: sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=} + resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==} engines: {node: '>= 0.6'} dev: false @@ -5042,7 +5033,7 @@ packages: dev: false /github-from-package/0.0.0: - resolution: {integrity: sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=} + resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==} dev: false /glob-parent/5.1.2: @@ -6458,7 +6449,7 @@ packages: dev: false /media-typer/0.3.0: - resolution: {integrity: sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=} + resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} engines: {node: '>= 0.6'} dev: false @@ -6468,7 +6459,7 @@ packages: dev: false /merge-descriptors/1.0.1: - resolution: {integrity: sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=} + resolution: {integrity: sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==} dev: false /merge-source-map/1.1.0: @@ -6885,7 +6876,7 @@ packages: dev: false /noms/0.0.0: - resolution: {integrity: sha1-2o69nzr51nYJGbJ9nNyAkqczKFk=} + resolution: {integrity: sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow==} dependencies: inherits: 2.0.4 readable-stream: 1.0.34 @@ -9128,7 +9119,7 @@ packages: dev: false /utils-merge/1.0.1: - resolution: {integrity: sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=} + resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} engines: {node: '>= 0.4.0'} dev: false @@ -12080,7 +12071,7 @@ packages: dev: false file:projects/arm-dns.tgz: - resolution: {integrity: sha512-y93948Dnd/vtFTFpG2SmRU9KD9QwxHw+b4dS92GBAtvvGSR/kveV0qx9uwD/ET/V8RLQozIWYvZ++b+ILfUTag==, tarball: file:projects/arm-dns.tgz} + resolution: {integrity: sha512-fo843UOQMQtK1GF90QqPL2rkYrSuZKWyDofre2upVCrwJzFRBguvqnanZTy/N6mpfy5hTfadA6mjCMjd/0k4Yg==, tarball: file:projects/arm-dns.tgz} name: '@rush-temp/arm-dns' version: 0.0.0 dependencies: @@ -12091,18 +12082,19 @@ packages: '@rollup/plugin-json': 4.1.0_rollup@2.79.1 '@rollup/plugin-multi-entry': 4.1.0_rollup@2.79.1 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.79.1 + '@types/chai': 4.3.3 + '@types/node': 14.18.33 + chai: 4.3.6 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 - rollup-plugin-sourcemaps: 0.6.3_rollup@2.79.1 + rollup-plugin-sourcemaps: 0.6.3_1225c068d0546e507df7db46196a6444 tslib: 2.4.1 - typescript: 4.2.4 + typescript: 4.8.4 uglify-js: 3.17.4 transitivePeerDependencies: - - '@types/node' - - encoding - supports-color dev: false @@ -12134,7 +12126,7 @@ packages: dev: false file:projects/arm-domainservices.tgz: - resolution: {integrity: sha512-TnoDmTbnyO6PMUnxcUHH8lYFRf2s9WUBnQDAg5oD8HpOkQE7BtFoII+5+tsfjtgVghwRfJGM8SsiSHxHUCX5oQ==, tarball: file:projects/arm-domainservices.tgz} + resolution: {integrity: sha512-nk+f/Uug0j3wHROJGL9/u5nzv3/F+knryEPeTxXNC3vVdX0K6KZ+69uktvEYP58vjD4ZOZ5phyXhD1Xvu04Qfg==, tarball: file:projects/arm-domainservices.tgz} name: '@rush-temp/arm-domainservices' version: 0.0.0 dependencies: @@ -12145,18 +12137,19 @@ packages: '@rollup/plugin-json': 4.1.0_rollup@2.79.1 '@rollup/plugin-multi-entry': 4.1.0_rollup@2.79.1 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.79.1 + '@types/chai': 4.3.3 + '@types/node': 14.18.33 + chai: 4.3.6 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 - rollup-plugin-sourcemaps: 0.6.3_rollup@2.79.1 + rollup-plugin-sourcemaps: 0.6.3_1225c068d0546e507df7db46196a6444 tslib: 2.4.1 - typescript: 4.2.4 + typescript: 4.8.4 uglify-js: 3.17.4 transitivePeerDependencies: - - '@types/node' - - encoding - supports-color dev: false @@ -12323,7 +12316,7 @@ packages: dev: false file:projects/arm-eventhub.tgz: - resolution: {integrity: sha512-+cA6BcXuJbmuYSWj0JQ7fJupRZeemDd2nUFxy+Z+Mqb/SzqnGhEMgPhcN4dDIZGwyn/yFH6nDQ7e12+SYL92fw==, tarball: file:projects/arm-eventhub.tgz} + resolution: {integrity: sha512-KSdLEIAL03KSsj7EeXPDPBwlH+XaeONPlgJlRw+zXLMe0m654MdIENTg7q6XY+Q8sy+l/oO5N3kT5X9JOQqJLA==, tarball: file:projects/arm-eventhub.tgz} name: '@rush-temp/arm-eventhub' version: 0.0.0 dependencies: @@ -12336,18 +12329,19 @@ packages: '@rollup/plugin-json': 4.1.0_rollup@2.79.1 '@rollup/plugin-multi-entry': 4.1.0_rollup@2.79.1 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.79.1 + '@types/chai': 4.3.3 + '@types/node': 14.18.33 + chai: 4.3.6 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 - rollup-plugin-sourcemaps: 0.6.3_rollup@2.79.1 + rollup-plugin-sourcemaps: 0.6.3_1225c068d0546e507df7db46196a6444 tslib: 2.4.1 - typescript: 4.2.4 + typescript: 4.8.4 uglify-js: 3.17.4 transitivePeerDependencies: - - '@types/node' - - encoding - supports-color dev: false @@ -15843,7 +15837,7 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 2.1.0 - '@azure/msal-node': 1.14.2 + '@azure/msal-node': 1.14.4 '@microsoft/api-extractor': 7.33.5 '@types/chai': 4.3.3 '@types/mocha': 7.0.2 @@ -17345,7 +17339,7 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 2.1.0 - '@azure/msal-node': 1.14.2 + '@azure/msal-node': 1.14.4 '@azure/msal-node-extensions': 1.0.0-alpha.25 '@microsoft/api-extractor': 7.33.5 '@types/jws': 3.2.4 diff --git a/sdk/dns/arm-dns/CHANGELOG.md b/sdk/dns/arm-dns/CHANGELOG.md index 7117bcd8f8a8..a7b6e3b7cb87 100644 --- a/sdk/dns/arm-dns/CHANGELOG.md +++ b/sdk/dns/arm-dns/CHANGELOG.md @@ -1,15 +1,11 @@ # Release History + +## 5.1.0 (2022-11-22) + +**Features** -## 5.0.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface Zone + ## 5.0.1 (2022-04-18) **features** diff --git a/sdk/dns/arm-dns/_meta.json b/sdk/dns/arm-dns/_meta.json index 4143a486531d..62bb5cac0934 100644 --- a/sdk/dns/arm-dns/_meta.json +++ b/sdk/dns/arm-dns/_meta.json @@ -1,8 +1,8 @@ { - "commit": "1f1d5b0b9ce6cc94605b2fd619dce374fb6e033a", - "readme": "specification\\dns\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\dns\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220408.1 --generate-sample=true", + "commit": "20df2424a278ca19437e437a7dbf3a7857a0dd9d", + "readme": "specification/dns/resource-manager/readme.md", + "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\dns\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.2.6", - "use": "@autorest/typescript@6.0.0-alpha.19.20220408.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", + "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" } \ No newline at end of file diff --git a/sdk/dns/arm-dns/package.json b/sdk/dns/arm-dns/package.json index bea0d4aef322..75559d6c48ee 100644 --- a/sdk/dns/arm-dns/package.json +++ b/sdk/dns/arm-dns/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for DnsManagementClient.", - "version": "5.0.2", + "version": "5.1.0", "engines": { "node": ">=14.0.0" }, @@ -11,7 +11,7 @@ "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.5.0", + "@azure/core-client": "^1.6.1", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" @@ -36,13 +36,18 @@ "mkdirp": "^1.0.4", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~4.2.0", + "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", - "@azure-tools/test-recorder": "^1.0.0", + "@azure-tools/test-recorder": "^2.0.0", + "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", - "cross-env": "^7.0.2" + "@types/chai": "^4.2.8", + "chai": "^4.2.0", + "cross-env": "^7.0.2", + "@types/node": "^14.0.0", + "@azure/dev-tool": "^1.0.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/dns/arm-dns", "repository": { @@ -93,9 +98,8 @@ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", - "integration-test:browser": "echo skipped", - "docs": "echo skipped" + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -115,4 +119,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-dns?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/dns/arm-dns/recordings/node/my_test/recording_sample_test.json b/sdk/dns/arm-dns/recordings/node/my_test/recording_sample_test.json new file mode 100644 index 000000000000..f721723386d8 --- /dev/null +++ b/sdk/dns/arm-dns/recordings/node/my_test/recording_sample_test.json @@ -0,0 +1,4 @@ +{ + "Entries": [], + "Variables": {} +} diff --git a/sdk/dns/arm-dns/review/arm-dns.api.md b/sdk/dns/arm-dns/review/arm-dns.api.md index 762778f41f6c..a5b61162778b 100644 --- a/sdk/dns/arm-dns/review/arm-dns.api.md +++ b/sdk/dns/arm-dns/review/arm-dns.api.md @@ -97,6 +97,9 @@ export interface DnsResourceReferenceResult { dnsResourceReferences?: DnsResourceReference[]; } +// @public +export function getContinuationToken(page: unknown): string | undefined; + // @public export interface MxRecord { exchange?: string; @@ -287,16 +290,16 @@ export interface TxtRecord { } // @public -export type Zone = Resource & { +export interface Zone extends Resource { etag?: string; readonly maxNumberOfRecordSets?: number; readonly maxNumberOfRecordsPerRecordSet?: number; - readonly numberOfRecordSets?: number; readonly nameServers?: string[]; - zoneType?: ZoneType; + readonly numberOfRecordSets?: number; registrationVirtualNetworks?: SubResource[]; resolutionVirtualNetworks?: SubResource[]; -}; + zoneType?: ZoneType; +} // @public export interface ZoneListResult { diff --git a/sdk/dns/arm-dns/samples/v5/typescript/package.json b/sdk/dns/arm-dns/samples/v5/typescript/package.json index 46a340ad934c..06723ff0b7d6 100644 --- a/sdk/dns/arm-dns/samples/v5/typescript/package.json +++ b/sdk/dns/arm-dns/samples/v5/typescript/package.json @@ -35,7 +35,7 @@ }, "devDependencies": { "@types/node": "^14.0.0", - "typescript": "~4.4.0", + "typescript": "~4.8.0", "rimraf": "latest" } } diff --git a/sdk/dns/arm-dns/src/dnsManagementClient.ts b/sdk/dns/arm-dns/src/dnsManagementClient.ts index af9fafbb9ca5..78a0c3257bfd 100644 --- a/sdk/dns/arm-dns/src/dnsManagementClient.ts +++ b/sdk/dns/arm-dns/src/dnsManagementClient.ts @@ -8,6 +8,11 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { + PipelineRequest, + PipelineResponse, + SendRequest +} from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { RecordSetsImpl, @@ -54,47 +59,53 @@ export class DnsManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-dns/5.0.2`; + const packageDetails = `azsdk-js-arm-dns/5.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`; - if (!options.credentialScopes) { - options.credentialScopes = ["https://management.azure.com/.default"]; - } const optionsWithDefaults = { ...defaults, ...options, userAgentOptions: { userAgentPrefix }, - baseUri: + endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com" }; super(optionsWithDefaults); + let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); - const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( + bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName ); - if (!bearerTokenAuthenticationPolicyFound) { - this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName - }); - this.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - scopes: `${optionsWithDefaults.baseUri}/.default`, - challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) - ); - } + } + if ( + !options || + !options.pipeline || + options.pipeline.getOrderedPolicies().length == 0 || + !bearerTokenAuthenticationPolicyFound + ) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: credentials, + scopes: + optionsWithDefaults.credentialScopes ?? + `${optionsWithDefaults.endpoint}/.default`, + challengeCallbacks: { + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge + } + }) + ); } // Parameter assignments this.subscriptionId = subscriptionId; @@ -107,6 +118,35 @@ export class DnsManagementClient extends coreClient.ServiceClient { this.dnsResourceReferenceOperations = new DnsResourceReferenceOperationsImpl( this ); + this.addCustomApiVersionPolicy(options.apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + } + }; + this.pipeline.addPolicy(apiVersionPolicy); } recordSets: RecordSets; diff --git a/sdk/dns/arm-dns/src/index.ts b/sdk/dns/arm-dns/src/index.ts index 31a795a64cd0..c4aa246c3306 100644 --- a/sdk/dns/arm-dns/src/index.ts +++ b/sdk/dns/arm-dns/src/index.ts @@ -7,6 +7,7 @@ */ /// +export { getContinuationToken } from "./pagingHelper"; export * from "./models"; export { DnsManagementClient } from "./dnsManagementClient"; export * from "./operationsInterfaces"; diff --git a/sdk/dns/arm-dns/src/models/index.ts b/sdk/dns/arm-dns/src/models/index.ts index 60e1b06a5e5d..9ebfbf2d1ae5 100644 --- a/sdk/dns/arm-dns/src/models/index.ts +++ b/sdk/dns/arm-dns/src/models/index.ts @@ -251,7 +251,7 @@ export interface RecordSetUpdateParameters { } /** Describes a DNS zone. */ -export type Zone = Resource & { +export interface Zone extends Resource { /** The etag of the zone. */ etag?: string; /** @@ -280,7 +280,8 @@ export type Zone = Resource & { registrationVirtualNetworks?: SubResource[]; /** A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private. */ resolutionVirtualNetworks?: SubResource[]; -}; +} + /** Defines values for RecordType. */ export type RecordType = | "A" diff --git a/sdk/dns/arm-dns/src/operations/recordSets.ts b/sdk/dns/arm-dns/src/operations/recordSets.ts index 4a2973c18d92..cd2c8fec50bd 100644 --- a/sdk/dns/arm-dns/src/operations/recordSets.ts +++ b/sdk/dns/arm-dns/src/operations/recordSets.ts @@ -6,7 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { RecordSets } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -17,10 +18,13 @@ import { RecordType, RecordSetsListByTypeNextOptionalParams, RecordSetsListByTypeOptionalParams, + RecordSetsListByTypeResponse, RecordSetsListByDnsZoneNextOptionalParams, RecordSetsListByDnsZoneOptionalParams, + RecordSetsListByDnsZoneResponse, RecordSetsListAllByDnsZoneNextOptionalParams, RecordSetsListAllByDnsZoneOptionalParams, + RecordSetsListAllByDnsZoneResponse, RecordSetsUpdateOptionalParams, RecordSetsUpdateResponse, RecordSetsCreateOrUpdateOptionalParams, @@ -28,9 +32,6 @@ import { RecordSetsDeleteOptionalParams, RecordSetsGetOptionalParams, RecordSetsGetResponse, - RecordSetsListByTypeResponse, - RecordSetsListByDnsZoneResponse, - RecordSetsListAllByDnsZoneResponse, RecordSetsListByTypeNextResponse, RecordSetsListByDnsZoneNextResponse, RecordSetsListAllByDnsZoneNextResponse @@ -75,12 +76,16 @@ export class RecordSetsImpl implements RecordSets { [Symbol.asyncIterator]() { return this; }, - byPage: () => { + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } return this.listByTypePagingPage( resourceGroupName, zoneName, recordType, - options + options, + settings ); } }; @@ -90,16 +95,23 @@ export class RecordSetsImpl implements RecordSets { resourceGroupName: string, zoneName: string, recordType: RecordType, - options?: RecordSetsListByTypeOptionalParams + options?: RecordSetsListByTypeOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._listByType( - resourceGroupName, - zoneName, - recordType, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; + let result: RecordSetsListByTypeResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByType( + resourceGroupName, + zoneName, + recordType, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listByTypeNext( resourceGroupName, @@ -109,7 +121,9 @@ export class RecordSetsImpl implements RecordSets { options ); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } @@ -152,11 +166,15 @@ export class RecordSetsImpl implements RecordSets { [Symbol.asyncIterator]() { return this; }, - byPage: () => { + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } return this.listByDnsZonePagingPage( resourceGroupName, zoneName, - options + options, + settings ); } }; @@ -165,15 +183,18 @@ export class RecordSetsImpl implements RecordSets { private async *listByDnsZonePagingPage( resourceGroupName: string, zoneName: string, - options?: RecordSetsListByDnsZoneOptionalParams + options?: RecordSetsListByDnsZoneOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._listByDnsZone( - resourceGroupName, - zoneName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; + let result: RecordSetsListByDnsZoneResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByDnsZone(resourceGroupName, zoneName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listByDnsZoneNext( resourceGroupName, @@ -182,7 +203,9 @@ export class RecordSetsImpl implements RecordSets { options ); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } @@ -223,11 +246,15 @@ export class RecordSetsImpl implements RecordSets { [Symbol.asyncIterator]() { return this; }, - byPage: () => { + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } return this.listAllByDnsZonePagingPage( resourceGroupName, zoneName, - options + options, + settings ); } }; @@ -236,15 +263,22 @@ export class RecordSetsImpl implements RecordSets { private async *listAllByDnsZonePagingPage( resourceGroupName: string, zoneName: string, - options?: RecordSetsListAllByDnsZoneOptionalParams + options?: RecordSetsListAllByDnsZoneOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._listAllByDnsZone( - resourceGroupName, - zoneName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; + let result: RecordSetsListAllByDnsZoneResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listAllByDnsZone( + resourceGroupName, + zoneName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listAllByDnsZoneNext( resourceGroupName, @@ -253,7 +287,9 @@ export class RecordSetsImpl implements RecordSets { options ); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } diff --git a/sdk/dns/arm-dns/src/operations/zones.ts b/sdk/dns/arm-dns/src/operations/zones.ts index 71138f3de961..b0944aa02ffd 100644 --- a/sdk/dns/arm-dns/src/operations/zones.ts +++ b/sdk/dns/arm-dns/src/operations/zones.ts @@ -6,7 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { Zones } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -18,8 +19,10 @@ import { Zone, ZonesListByResourceGroupNextOptionalParams, ZonesListByResourceGroupOptionalParams, + ZonesListByResourceGroupResponse, ZonesListNextOptionalParams, ZonesListOptionalParams, + ZonesListResponse, ZonesCreateOrUpdateOptionalParams, ZonesCreateOrUpdateResponse, ZonesDeleteOptionalParams, @@ -28,8 +31,6 @@ import { ZoneUpdate, ZonesUpdateOptionalParams, ZonesUpdateResponse, - ZonesListByResourceGroupResponse, - ZonesListResponse, ZonesListByResourceGroupNextResponse, ZonesListNextResponse } from "../models"; @@ -64,19 +65,33 @@ export class ZonesImpl implements Zones { [Symbol.asyncIterator]() { return this; }, - byPage: () => { - return this.listByResourceGroupPagingPage(resourceGroupName, options); + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); } }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, - options?: ZonesListByResourceGroupOptionalParams + options?: ZonesListByResourceGroupOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._listByResourceGroup(resourceGroupName, options); - yield result.value || []; - let continuationToken = result.nextLink; + let result: ZonesListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listByResourceGroupNext( resourceGroupName, @@ -84,7 +99,9 @@ export class ZonesImpl implements Zones { options ); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } @@ -115,22 +132,34 @@ export class ZonesImpl implements Zones { [Symbol.asyncIterator]() { return this; }, - byPage: () => { - return this.listPagingPage(options); + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(options, settings); } }; } private async *listPagingPage( - options?: ZonesListOptionalParams + options?: ZonesListOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._list(options); - yield result.value || []; - let continuationToken = result.nextLink; + let result: ZonesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listNext(continuationToken, options); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } diff --git a/sdk/dns/arm-dns/src/pagingHelper.ts b/sdk/dns/arm-dns/src/pagingHelper.ts new file mode 100644 index 000000000000..d85fc13bce1e --- /dev/null +++ b/sdk/dns/arm-dns/src/pagingHelper.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export interface PageInfo { + continuationToken?: string; +} + +const pageMap = new WeakMap(); + +/** + * Given a result page from a pageable operation, returns a + * continuation token that can be used to begin paging from + * that point later. + * @param page A result object from calling .byPage() on a paged operation. + * @returns The continuation token that can be passed into byPage(). + */ +export function getContinuationToken(page: unknown): string | undefined { + if (typeof page !== "object" || page === null) { + return undefined; + } + return pageMap.get(page)?.continuationToken; +} + +export function setContinuationToken( + page: unknown, + continuationToken: string | undefined +): void { + if (typeof page !== "object" || page === null || !continuationToken) { + return; + } + const pageInfo = pageMap.get(page) ?? {}; + pageInfo.continuationToken = continuationToken; + pageMap.set(page, pageInfo); +} diff --git a/sdk/dns/arm-dns/test/sampleTest.ts b/sdk/dns/arm-dns/test/sampleTest.ts index 7ed89b043e1b..25aeb3ebcc36 100644 --- a/sdk/dns/arm-dns/test/sampleTest.ts +++ b/sdk/dns/arm-dns/test/sampleTest.ts @@ -7,35 +7,30 @@ */ import { - env, - record, - RecorderEnvironmentSetup, - Recorder + Recorder, + RecorderStartOptions, + env } from "@azure-tools/test-recorder"; -import * as assert from "assert"; +import { assert } from "chai"; +import { Context } from "mocha"; -const recorderEnvSetup: RecorderEnvironmentSetup = { - replaceableVariables: { - AZURE_CLIENT_ID: "azure_client_id", - AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id" - }, - customizationsOnRecordings: [ - (recording: any): any => - recording.replace( - /"access_token":"[^"]*"/g, - `"access_token":"access_token"` - ) - ], - queryParametersToSkip: [] +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables }; describe("My test", () => { let recorder: Recorder; - beforeEach(async function() { - recorder = record(this, recorderEnvSetup); + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); }); afterEach(async function() { diff --git a/sdk/domainservices/arm-domainservices/CHANGELOG.md b/sdk/domainservices/arm-domainservices/CHANGELOG.md index 3412a914cfbc..869c5e1d759b 100644 --- a/sdk/domainservices/arm-domainservices/CHANGELOG.md +++ b/sdk/domainservices/arm-domainservices/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History - -## 4.0.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + +## 4.1.0 (2022-11-22) + +**Features** + + - Added Interface DomainService + - Added Interface OuContainer + ## 4.0.1 (2022-04-18) **features** diff --git a/sdk/domainservices/arm-domainservices/_meta.json b/sdk/domainservices/arm-domainservices/_meta.json index 200b460b7905..12aae7a32e6f 100644 --- a/sdk/domainservices/arm-domainservices/_meta.json +++ b/sdk/domainservices/arm-domainservices/_meta.json @@ -1,8 +1,8 @@ { "commit": "1f1d5b0b9ce6cc94605b2fd619dce374fb6e033a", "readme": "specification\\domainservices\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\domainservices\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220408.1 --generate-sample=true", + "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\domainservices\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.2.6", - "use": "@autorest/typescript@6.0.0-alpha.19.20220408.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", + "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" } \ No newline at end of file diff --git a/sdk/domainservices/arm-domainservices/package.json b/sdk/domainservices/arm-domainservices/package.json index 991ea9f038d9..d91555f61d80 100644 --- a/sdk/domainservices/arm-domainservices/package.json +++ b/sdk/domainservices/arm-domainservices/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for DomainServicesResourceProvider.", - "version": "4.0.2", + "version": "4.1.0", "engines": { "node": ">=14.0.0" }, @@ -11,7 +11,7 @@ "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.5.0", + "@azure/core-client": "^1.6.1", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" @@ -36,13 +36,18 @@ "mkdirp": "^1.0.4", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~4.2.0", + "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", - "@azure-tools/test-recorder": "^1.0.0", + "@azure-tools/test-recorder": "^2.0.0", + "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", - "cross-env": "^7.0.2" + "@types/chai": "^4.2.8", + "chai": "^4.2.0", + "cross-env": "^7.0.2", + "@types/node": "^14.0.0", + "@azure/dev-tool": "^1.0.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/domainservices/arm-domainservices", "repository": { @@ -93,9 +98,8 @@ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", - "integration-test:browser": "echo skipped", - "docs": "echo skipped" + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -115,4 +119,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-domainservices?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/domainservices/arm-domainservices/recordings/node/my_test/recording_sample_test.json b/sdk/domainservices/arm-domainservices/recordings/node/my_test/recording_sample_test.json new file mode 100644 index 000000000000..f721723386d8 --- /dev/null +++ b/sdk/domainservices/arm-domainservices/recordings/node/my_test/recording_sample_test.json @@ -0,0 +1,4 @@ +{ + "Entries": [], + "Variables": {} +} diff --git a/sdk/domainservices/arm-domainservices/review/arm-domainservices.api.md b/sdk/domainservices/arm-domainservices/review/arm-domainservices.api.md index ea8f70127aa3..2f7fda68a70e 100644 --- a/sdk/domainservices/arm-domainservices/review/arm-domainservices.api.md +++ b/sdk/domainservices/arm-domainservices/review/arm-domainservices.api.md @@ -65,24 +65,24 @@ export interface DomainSecuritySettings { } // @public -export type DomainService = Resource & { - readonly version?: number; - readonly tenantId?: string; - domainName?: string; +export interface DomainService extends Resource { + configDiagnostics?: ConfigDiagnostics; readonly deploymentId?: string; - readonly syncOwner?: string; - replicaSets?: ReplicaSet[]; - ldapsSettings?: LdapsSettings; - resourceForestSettings?: ResourceForestSettings; - domainSecuritySettings?: DomainSecuritySettings; domainConfigurationType?: string; - sku?: string; + domainName?: string; + domainSecuritySettings?: DomainSecuritySettings; filteredSync?: FilteredSync; - notificationSettings?: NotificationSettings; + ldapsSettings?: LdapsSettings; readonly migrationProperties?: MigrationProperties; + notificationSettings?: NotificationSettings; readonly provisioningState?: string; - configDiagnostics?: ConfigDiagnostics; -}; + replicaSets?: ReplicaSet[]; + resourceForestSettings?: ResourceForestSettings; + sku?: string; + readonly syncOwner?: string; + readonly tenantId?: string; + readonly version?: number; +} // @public export interface DomainServiceListResult { @@ -222,6 +222,9 @@ export interface ForestTrust { trustPassword?: string; } +// @public +export function getContinuationToken(page: unknown): string | undefined; + // @public export interface HealthAlert { readonly id?: string; @@ -248,125 +251,91 @@ export type KerberosRc4Encryption = string; // @public export enum KnownCreatedByType { - // (undocumented) Application = "Application", - // (undocumented) Key = "Key", - // (undocumented) ManagedIdentity = "ManagedIdentity", - // (undocumented) User = "User" } // @public export enum KnownExternalAccess { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownFilteredSync { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownKerberosArmoring { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownKerberosRc4Encryption { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownLdaps { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownNotifyDcAdmins { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownNotifyGlobalAdmins { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownNtlmV1 { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownStatus { - // (undocumented) Failure = "Failure", - // (undocumented) None = "None", - // (undocumented) OK = "OK", - // (undocumented) Running = "Running", - // (undocumented) Skipped = "Skipped", - // (undocumented) Warning = "Warning" } // @public export enum KnownSyncKerberosPasswords { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownSyncNtlmPasswords { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownSyncOnPremPasswords { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownTlsV1 { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } @@ -435,16 +404,16 @@ export interface OperationEntityListResult { } // @public -export type OuContainer = Resource & { - readonly tenantId?: string; - readonly domainName?: string; - readonly deploymentId?: string; - readonly containerId?: string; +export interface OuContainer extends Resource { accounts?: ContainerAccount[]; - readonly serviceStatus?: string; + readonly containerId?: string; + readonly deploymentId?: string; readonly distinguishedName?: string; + readonly domainName?: string; readonly provisioningState?: string; -}; + readonly serviceStatus?: string; + readonly tenantId?: string; +} // @public export interface OuContainerCreateOptionalParams extends coreClient.OperationOptions { diff --git a/sdk/domainservices/arm-domainservices/samples/v4/typescript/package.json b/sdk/domainservices/arm-domainservices/samples/v4/typescript/package.json index 755bb2904278..b03110f967d2 100644 --- a/sdk/domainservices/arm-domainservices/samples/v4/typescript/package.json +++ b/sdk/domainservices/arm-domainservices/samples/v4/typescript/package.json @@ -35,7 +35,7 @@ }, "devDependencies": { "@types/node": "^14.0.0", - "typescript": "~4.4.0", + "typescript": "~4.8.0", "rimraf": "latest" } } diff --git a/sdk/domainservices/arm-domainservices/src/domainServicesResourceProvider.ts b/sdk/domainservices/arm-domainservices/src/domainServicesResourceProvider.ts index 6215428eb137..e387267b8441 100644 --- a/sdk/domainservices/arm-domainservices/src/domainServicesResourceProvider.ts +++ b/sdk/domainservices/arm-domainservices/src/domainServicesResourceProvider.ts @@ -8,6 +8,11 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { + PipelineRequest, + PipelineResponse, + SendRequest +} from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { DomainServiceOperationsImpl, @@ -56,47 +61,53 @@ export class DomainServicesResourceProvider extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-domainservices/4.0.2`; + const packageDetails = `azsdk-js-arm-domainservices/4.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`; - if (!options.credentialScopes) { - options.credentialScopes = ["https://management.azure.com/.default"]; - } const optionsWithDefaults = { ...defaults, ...options, userAgentOptions: { userAgentPrefix }, - baseUri: + endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com" }; super(optionsWithDefaults); + let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); - const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( + bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName ); - if (!bearerTokenAuthenticationPolicyFound) { - this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName - }); - this.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - scopes: `${optionsWithDefaults.baseUri}/.default`, - challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) - ); - } + } + if ( + !options || + !options.pipeline || + options.pipeline.getOrderedPolicies().length == 0 || + !bearerTokenAuthenticationPolicyFound + ) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: credentials, + scopes: + optionsWithDefaults.credentialScopes ?? + `${optionsWithDefaults.endpoint}/.default`, + challengeCallbacks: { + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge + } + }) + ); } // Parameter assignments this.subscriptionId = subscriptionId; @@ -108,6 +119,35 @@ export class DomainServicesResourceProvider extends coreClient.ServiceClient { this.domainServices = new DomainServicesImpl(this); this.ouContainerOperations = new OuContainerOperationsImpl(this); this.ouContainerOperationGrp = new OuContainerOperationGrpImpl(this); + this.addCustomApiVersionPolicy(options.apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + } + }; + this.pipeline.addPolicy(apiVersionPolicy); } domainServiceOperations: DomainServiceOperations; diff --git a/sdk/domainservices/arm-domainservices/src/index.ts b/sdk/domainservices/arm-domainservices/src/index.ts index 1fce94fefe1c..4cc94247b9bc 100644 --- a/sdk/domainservices/arm-domainservices/src/index.ts +++ b/sdk/domainservices/arm-domainservices/src/index.ts @@ -7,6 +7,7 @@ */ /// +export { getContinuationToken } from "./pagingHelper"; export * from "./models"; export { DomainServicesResourceProvider } from "./domainServicesResourceProvider"; export * from "./operationsInterfaces"; diff --git a/sdk/domainservices/arm-domainservices/src/models/index.ts b/sdk/domainservices/arm-domainservices/src/models/index.ts index 1330414d82a0..bba4983a26c6 100644 --- a/sdk/domainservices/arm-domainservices/src/models/index.ts +++ b/sdk/domainservices/arm-domainservices/src/models/index.ts @@ -376,7 +376,7 @@ export interface ContainerAccount { } /** Domain service. */ -export type DomainService = Resource & { +export interface DomainService extends Resource { /** * Data Model Version * NOTE: This property will not be serialized. It can only be populated by the server. @@ -427,10 +427,10 @@ export type DomainService = Resource & { readonly provisioningState?: string; /** Configuration diagnostics data containing latest execution from client. */ configDiagnostics?: ConfigDiagnostics; -}; +} /** Resource for OuContainer. */ -export type OuContainer = Resource & { +export interface OuContainer extends Resource { /** * Azure Active Directory tenant id * NOTE: This property will not be serialized. It can only be populated by the server. @@ -468,11 +468,13 @@ export type OuContainer = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; -}; +} /** Known values of {@link Ldaps} that the service accepts. */ export enum KnownLdaps { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -488,7 +490,9 @@ export type Ldaps = string; /** Known values of {@link ExternalAccess} that the service accepts. */ export enum KnownExternalAccess { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -504,7 +508,9 @@ export type ExternalAccess = string; /** Known values of {@link NtlmV1} that the service accepts. */ export enum KnownNtlmV1 { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -520,7 +526,9 @@ export type NtlmV1 = string; /** Known values of {@link TlsV1} that the service accepts. */ export enum KnownTlsV1 { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -536,7 +544,9 @@ export type TlsV1 = string; /** Known values of {@link SyncNtlmPasswords} that the service accepts. */ export enum KnownSyncNtlmPasswords { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -552,7 +562,9 @@ export type SyncNtlmPasswords = string; /** Known values of {@link SyncKerberosPasswords} that the service accepts. */ export enum KnownSyncKerberosPasswords { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -568,7 +580,9 @@ export type SyncKerberosPasswords = string; /** Known values of {@link SyncOnPremPasswords} that the service accepts. */ export enum KnownSyncOnPremPasswords { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -584,7 +598,9 @@ export type SyncOnPremPasswords = string; /** Known values of {@link KerberosRc4Encryption} that the service accepts. */ export enum KnownKerberosRc4Encryption { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -600,7 +616,9 @@ export type KerberosRc4Encryption = string; /** Known values of {@link KerberosArmoring} that the service accepts. */ export enum KnownKerberosArmoring { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -616,7 +634,9 @@ export type KerberosArmoring = string; /** Known values of {@link FilteredSync} that the service accepts. */ export enum KnownFilteredSync { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -632,7 +652,9 @@ export type FilteredSync = string; /** Known values of {@link NotifyGlobalAdmins} that the service accepts. */ export enum KnownNotifyGlobalAdmins { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -648,7 +670,9 @@ export type NotifyGlobalAdmins = string; /** Known values of {@link NotifyDcAdmins} that the service accepts. */ export enum KnownNotifyDcAdmins { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -664,11 +688,17 @@ export type NotifyDcAdmins = string; /** Known values of {@link Status} that the service accepts. */ export enum KnownStatus { + /** None */ None = "None", + /** Running */ Running = "Running", + /** OK */ OK = "OK", + /** Failure */ Failure = "Failure", + /** Warning */ Warning = "Warning", + /** Skipped */ Skipped = "Skipped" } @@ -688,9 +718,13 @@ export type Status = string; /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { + /** User */ User = "User", + /** Application */ Application = "Application", + /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", + /** Key */ Key = "Key" } diff --git a/sdk/domainservices/arm-domainservices/src/operations/domainServiceOperations.ts b/sdk/domainservices/arm-domainservices/src/operations/domainServiceOperations.ts index 07ab6940eb53..5d3623b709a7 100644 --- a/sdk/domainservices/arm-domainservices/src/operations/domainServiceOperations.ts +++ b/sdk/domainservices/arm-domainservices/src/operations/domainServiceOperations.ts @@ -6,7 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { DomainServiceOperations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -48,22 +49,34 @@ export class DomainServiceOperationsImpl implements DomainServiceOperations { [Symbol.asyncIterator]() { return this; }, - byPage: () => { - return this.listPagingPage(options); + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(options, settings); } }; } private async *listPagingPage( - options?: DomainServiceOperationsListOptionalParams + options?: DomainServiceOperationsListOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._list(options); - yield result.value || []; - let continuationToken = result.nextLink; + let result: DomainServiceOperationsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listNext(continuationToken, options); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } diff --git a/sdk/domainservices/arm-domainservices/src/operations/domainServices.ts b/sdk/domainservices/arm-domainservices/src/operations/domainServices.ts index 2bf4081b5d1b..1ea2759158c3 100644 --- a/sdk/domainservices/arm-domainservices/src/operations/domainServices.ts +++ b/sdk/domainservices/arm-domainservices/src/operations/domainServices.ts @@ -6,7 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { DomainServices } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -18,9 +19,9 @@ import { DomainService, DomainServicesListNextOptionalParams, DomainServicesListOptionalParams, + DomainServicesListResponse, DomainServicesListByResourceGroupNextOptionalParams, DomainServicesListByResourceGroupOptionalParams, - DomainServicesListResponse, DomainServicesListByResourceGroupResponse, DomainServicesCreateOrUpdateOptionalParams, DomainServicesCreateOrUpdateResponse, @@ -62,22 +63,34 @@ export class DomainServicesImpl implements DomainServices { [Symbol.asyncIterator]() { return this; }, - byPage: () => { - return this.listPagingPage(options); + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(options, settings); } }; } private async *listPagingPage( - options?: DomainServicesListOptionalParams + options?: DomainServicesListOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._list(options); - yield result.value || []; - let continuationToken = result.nextLink; + let result: DomainServicesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listNext(continuationToken, options); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } @@ -108,19 +121,33 @@ export class DomainServicesImpl implements DomainServices { [Symbol.asyncIterator]() { return this; }, - byPage: () => { - return this.listByResourceGroupPagingPage(resourceGroupName, options); + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); } }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, - options?: DomainServicesListByResourceGroupOptionalParams + options?: DomainServicesListByResourceGroupOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._listByResourceGroup(resourceGroupName, options); - yield result.value || []; - let continuationToken = result.nextLink; + let result: DomainServicesListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listByResourceGroupNext( resourceGroupName, @@ -128,7 +155,9 @@ export class DomainServicesImpl implements DomainServices { options ); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } diff --git a/sdk/domainservices/arm-domainservices/src/operations/ouContainerOperationGrp.ts b/sdk/domainservices/arm-domainservices/src/operations/ouContainerOperationGrp.ts index 21c38148988c..dee64711bce0 100644 --- a/sdk/domainservices/arm-domainservices/src/operations/ouContainerOperationGrp.ts +++ b/sdk/domainservices/arm-domainservices/src/operations/ouContainerOperationGrp.ts @@ -6,7 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { OuContainerOperationGrp } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -67,11 +68,15 @@ export class OuContainerOperationGrpImpl implements OuContainerOperationGrp { [Symbol.asyncIterator]() { return this; }, - byPage: () => { + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } return this.listPagingPage( resourceGroupName, domainServiceName, - options + options, + settings ); } }; @@ -80,15 +85,18 @@ export class OuContainerOperationGrpImpl implements OuContainerOperationGrp { private async *listPagingPage( resourceGroupName: string, domainServiceName: string, - options?: OuContainerListOptionalParams + options?: OuContainerListOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._list( - resourceGroupName, - domainServiceName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; + let result: OuContainerListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, domainServiceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listNext( resourceGroupName, @@ -97,7 +105,9 @@ export class OuContainerOperationGrpImpl implements OuContainerOperationGrp { options ); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } diff --git a/sdk/domainservices/arm-domainservices/src/operations/ouContainerOperations.ts b/sdk/domainservices/arm-domainservices/src/operations/ouContainerOperations.ts index 638cf4d97c28..0c4e52ce4e57 100644 --- a/sdk/domainservices/arm-domainservices/src/operations/ouContainerOperations.ts +++ b/sdk/domainservices/arm-domainservices/src/operations/ouContainerOperations.ts @@ -6,7 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { OuContainerOperations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -48,22 +49,34 @@ export class OuContainerOperationsImpl implements OuContainerOperations { [Symbol.asyncIterator]() { return this; }, - byPage: () => { - return this.listPagingPage(options); + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(options, settings); } }; } private async *listPagingPage( - options?: OuContainerOperationsListOptionalParams + options?: OuContainerOperationsListOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._list(options); - yield result.value || []; - let continuationToken = result.nextLink; + let result: OuContainerOperationsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listNext(continuationToken, options); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } diff --git a/sdk/domainservices/arm-domainservices/src/pagingHelper.ts b/sdk/domainservices/arm-domainservices/src/pagingHelper.ts new file mode 100644 index 000000000000..d85fc13bce1e --- /dev/null +++ b/sdk/domainservices/arm-domainservices/src/pagingHelper.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export interface PageInfo { + continuationToken?: string; +} + +const pageMap = new WeakMap(); + +/** + * Given a result page from a pageable operation, returns a + * continuation token that can be used to begin paging from + * that point later. + * @param page A result object from calling .byPage() on a paged operation. + * @returns The continuation token that can be passed into byPage(). + */ +export function getContinuationToken(page: unknown): string | undefined { + if (typeof page !== "object" || page === null) { + return undefined; + } + return pageMap.get(page)?.continuationToken; +} + +export function setContinuationToken( + page: unknown, + continuationToken: string | undefined +): void { + if (typeof page !== "object" || page === null || !continuationToken) { + return; + } + const pageInfo = pageMap.get(page) ?? {}; + pageInfo.continuationToken = continuationToken; + pageMap.set(page, pageInfo); +} diff --git a/sdk/domainservices/arm-domainservices/test/sampleTest.ts b/sdk/domainservices/arm-domainservices/test/sampleTest.ts index 7ed89b043e1b..25aeb3ebcc36 100644 --- a/sdk/domainservices/arm-domainservices/test/sampleTest.ts +++ b/sdk/domainservices/arm-domainservices/test/sampleTest.ts @@ -7,35 +7,30 @@ */ import { - env, - record, - RecorderEnvironmentSetup, - Recorder + Recorder, + RecorderStartOptions, + env } from "@azure-tools/test-recorder"; -import * as assert from "assert"; +import { assert } from "chai"; +import { Context } from "mocha"; -const recorderEnvSetup: RecorderEnvironmentSetup = { - replaceableVariables: { - AZURE_CLIENT_ID: "azure_client_id", - AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id" - }, - customizationsOnRecordings: [ - (recording: any): any => - recording.replace( - /"access_token":"[^"]*"/g, - `"access_token":"access_token"` - ) - ], - queryParametersToSkip: [] +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables }; describe("My test", () => { let recorder: Recorder; - beforeEach(async function() { - recorder = record(this, recorderEnvSetup); + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); }); afterEach(async function() { diff --git a/sdk/eventhub/arm-eventhub/CHANGELOG.md b/sdk/eventhub/arm-eventhub/CHANGELOG.md index a599511568cb..f5b224990631 100644 --- a/sdk/eventhub/arm-eventhub/CHANGELOG.md +++ b/sdk/eventhub/arm-eventhub/CHANGELOG.md @@ -1,15 +1,20 @@ # Release History - -## 5.0.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + +## 5.1.0 (2022-11-22) + +**Features** + + - Added Interface ArmDisasterRecovery + - Added Interface AuthorizationRule + - Added Interface Cluster + - Added Interface ConsumerGroup + - Added Interface EHNamespace + - Added Interface Eventhub + - Added Interface NetworkRuleSet + - Added Interface PrivateEndpointConnection + - Added Interface SchemaGroup + - Added Interface TrackedResource + ## 5.0.1 (2022-04-18) **features** diff --git a/sdk/eventhub/arm-eventhub/_meta.json b/sdk/eventhub/arm-eventhub/_meta.json index 987811d91e9c..1fa8bd91aded 100644 --- a/sdk/eventhub/arm-eventhub/_meta.json +++ b/sdk/eventhub/arm-eventhub/_meta.json @@ -1,8 +1,8 @@ { "commit": "d710fb7f40338ca6ef00e0a9680be0a3d4cf5059", "readme": "specification\\eventhub\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\eventhub\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220408.1 --generate-sample=true", + "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\eventhub\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.2.6", - "use": "@autorest/typescript@6.0.0-alpha.19.20220408.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", + "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" } \ No newline at end of file diff --git a/sdk/eventhub/arm-eventhub/package.json b/sdk/eventhub/arm-eventhub/package.json index f19280740ac9..2914cce063c4 100644 --- a/sdk/eventhub/arm-eventhub/package.json +++ b/sdk/eventhub/arm-eventhub/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for EventHubManagementClient.", - "version": "5.0.2", + "version": "5.1.0", "engines": { "node": ">=14.0.0" }, @@ -11,7 +11,7 @@ "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.5.0", + "@azure/core-client": "^1.6.1", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" @@ -36,15 +36,20 @@ "mkdirp": "^1.0.4", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~4.2.0", + "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", - "@azure-tools/test-recorder": "^1.0.0", + "@azure-tools/test-recorder": "^2.0.0", + "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", + "@types/chai": "^4.2.8", + "chai": "^4.2.0", "cross-env": "^7.0.2", "@azure/arm-network": "^26.0.0", - "@azure/arm-storage": "^17.0.0" + "@azure/arm-storage": "^17.0.0", + "@types/node": "^14.0.0", + "@azure/dev-tool": "^1.0.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventhub/arm-eventhub", "repository": { @@ -95,9 +100,8 @@ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", - "integration-test:browser": "echo skipped", - "docs": "echo skipped" + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped" }, "sideEffects": false, "//metadata": { diff --git a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_create_test.js b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_create_test.js deleted file mode 100644 index 8e1dff0d2ef8..000000000000 --- a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_create_test.js +++ /dev/null @@ -1,151 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "865fbcebf160d865dd577c11b7c20a2d"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '311b60c9-0dff-4e90-abb2-2728db860200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AmMH5cMBn_hEgjqR9S81HzM; expires=Sat, 08-Jan-2022 06:35:57 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrWyTmJ0S12mUsH8iF9K8qDBa12DW7CyLkGD6NUIusCcLgQ94d5jrv1xFzz181lsNO_aeGwZMIR7H7lelEuDYG8JkgJvODG5JwDbQ0jMPsMjJkGEhGnNuaW6wsRo_giNwyNomg8VGoAjpn-Ibjro3wXunTWyFoddGBXydLRH63XqQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:35:57 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'e64f853d-c3ea-4b39-a1b7-d973f2780300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AsZbAW_l12VKoPrVFkG8SYs; expires=Sat, 08-Jan-2022 06:35:57 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrmafdWCoeviMXHPLk3YxjSV1azkQp71nc_2GSeB-BtuMjXsT_fSkXQzepMMI-PtMGJihKf9ojZCxFJm4IkMxaQMYhO0TnATVzA_eXSSzJCS1tdNEjaX3GM6CQ7rC478qEWMqa0Pv8JTkOnyemEE4iMAvxHaG9Z5-Mb2CznAVU7iIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:35:58 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=24f5ca21-914b-45ce-90ca-87749c8398aa&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '26d71743-73ca-49e7-9274-7b103e7c0200', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AkLo34Kgi0hGuC4JLG7tfpUWPr5BAQAAAM2aQ9kOAAAA; expires=Sat, 08-Jan-2022 06:35:58 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:35:58 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/eventhubs/myeventhubxxx', {"properties":{"messageRetentionInDays":4,"partitionCount":4,"status":"Active","captureDescription":{"enabled":true,"encoding":"Avro","intervalInSeconds":120,"sizeLimitInBytes":10485763,"destination":{"name":"EventHubArchive.AzureBlockBlob","properties":{"storageAccountResourceId":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Storage/storageAccounts/mystorageaccountxxx","blobContainer":"container","archiveNameFormat":"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}"}}}}}) - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e4f2ff365fbedf5e4ee325be4cd2a9be678c1fef1eeddbbbb399acc090dfac2fc4e9f7f34fa08cd08c7eec7edf50a1f473a79412f30dce6aef9aca117ca6a9a617cf4d269d6b4e957afe943c27695d76d91371f3dfac51fd17b4d7691bfca5b7a8d9a9e2d9f66d7f4cd3e35cca8153e3ba9d6cb963f6adaac5dd3b71f1d4fdbe2322768d33acfda7c764cdf7fb4b7b3b7bbbdbbb7bdf3f0cdcea78fee7dfa686767bcbffb53d46abd9a6d6c75b08f56b6c3b319f5f1bd8f76e8b35dfaff1efdffde47dfa7ceb255bbaef3a7b99d390c215f669332a7496deb753ea23fa7d5ac585e5057c7977545efce68928aa552e2171bea1a421dd7d3398d657cfc0302fd8448f696fe99d06b21a19ab6aa8950c7d329a8f14a59e18cbafd59e7a5d7d2f5dd1005bca49f64f28970c984b03fa9966d562cf39ab09bdadf471f653256b0cbb3aa5e64988f5f8cbf98797ec9dd5f6c8842bfbe74b3417ffd3e7956d38f2f08d89c7e1293d0bfdfa621d08f2f8ae5bac5dbaf73ea6cf64b3efa25bf64f451b16cf3fa322bcf96f2291171776f8758a8f841febc5814edd9f2c9350d993eded93fb8ffe0d37bbfe497fc","92ff07b03c56239d030000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '7c02ee87-449a-4811-914f-df138bfadafd_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes', - '1199', - 'x-ms-correlation-request-id', - 'a37b8641-c0ad-401d-b4bc-5d9daec4a1ad', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063601Z:a37b8641-c0ad-401d-b4bc-5d9daec4a1ad', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:01 GMT' -]); diff --git a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_create_test.json b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_create_test.json new file mode 100644 index 000000000000..fc079d579fcb --- /dev/null +++ b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_create_test.json @@ -0,0 +1,91 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/eventhubs/myeventhubxxx?api-version=2021-11-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "548", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "b0c6dde4-0961-417d-bcca-6d98548bdb2d" + }, + "RequestBody": { + "properties": { + "messageRetentionInDays": 4, + "partitionCount": 4, + "status": "Active", + "captureDescription": { + "enabled": true, + "encoding": "Avro", + "intervalInSeconds": 120, + "sizeLimitInBytes": 10485763, + "destination": { + "name": "EventHubArchive.AzureBlockBlob", + "properties": { + "storageAccountResourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Storage/storageAccounts/mystorageaccountxxx11", + "blobContainer": "container", + "archiveNameFormat": "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}" + } + } + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:03:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25f3ff91-f7cc-467a-82e5-508c2354122f", + "x-ms-ratelimit-remaining-subscription-writes": "1192", + "x-ms-request-id": "25f3ff91-f7cc-467a-82e5-508c2354122f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070319Z:25f3ff91-f7cc-467a-82e5-508c2354122f" + }, + "ResponseBody": { + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/eventhubs/myeventhubxxx", + "name": "myeventhubxxx", + "type": "Microsoft.EventHub/namespaces/eventhubs", + "location": "eastus", + "properties": { + "messageRetentionInDays": 4, + "partitionCount": 4, + "status": "Active", + "createdAt": "2022-11-22T07:03:18.937Z", + "updatedAt": "2022-11-22T07:03:19.257Z", + "partitionIds": [ + "0", + "1", + "2", + "3" + ], + "captureDescription": { + "enabled": true, + "encoding": "Avro", + "destination": { + "name": "EventHubArchive.AzureBlockBlob", + "properties": { + "storageAccountResourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Storage/storageAccounts/mystorageaccountxxx11", + "blobContainer": "container", + "archiveNameFormat": "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}" + } + }, + "intervalInSeconds": 120, + "sizeLimitInBytes": 10485763 + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_delete_test.js b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_delete_test.js deleted file mode 100644 index bf45c47e3a90..000000000000 --- a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_delete_test.js +++ /dev/null @@ -1,187 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "b1875874bf5f4a0c8946d369db394492"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'c2ed4d2b-7cf9-4dd9-8b78-50e2ff170200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Ai1hFE1iltRGu0krnOwXGeQ; expires=Sat, 08-Jan-2022 06:36:03 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrhyPoES9eYUIF5V3uUXXbppoF5uR51yoXWXSMh_h-lf8zupSS2sJYs5KJSNRbBdBNL4pRk4kVUuWHoqrwQyso_VpfvsYtPTiSYErMMNr9VVuCLhFrry-x-kFODQYmoh2twj8nSo_U6Mck-mEIZel28X-9S8Dt2mn3eKDpGU-hCL8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:36:03 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '311b60c9-0dff-4e90-abb2-272811870200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AsXtwVN29SdAu34EPT8Qv6Q; expires=Sat, 08-Jan-2022 06:36:03 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrcVsFlahsI-jh293gxVlXUjYkPni65pAiKQqqU_y-E9fCQo8gyHuOa_R8PY4iVgBi4zfPV8zKFMAgnxSdb2JQRy6-mBwjpU85J15atA2Zi9WLgOUKpbSLtPHgTmpk6PGgTs_PqSW7XNMJeCsVar5ZBxFNw7Q2baXQDti-mDbGW68gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:36:03 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=cab2b8ba-c943-4500-b3bb-c96fa69bfff0&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'c2ed4d2b-7cf9-4dd9-8b78-50e201180200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Amk4CoPBtd5ElCrOpWc0KBsWPr5BAQAAANOaQ9kOAAAA; expires=Sat, 08-Jan-2022 06:36:03 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:36:03 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/eventhubs/myeventhubxxx') - .query(true) - .reply(200, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Expires', - '-1', - 'x-ms-request-id', - 'f4b20297-425b-4ed4-af05-ecbc751659a1_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-deletes', - '14999', - 'x-ms-correlation-request-id', - '61aff012-0561-4002-a40b-b3b70f5d731e', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063606Z:61aff012-0561-4002-a40b-b3b70f5d731e', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:05 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/eventhubs') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bdefff","92ff0742ea40440c000000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-inline-count', - '', - 'x-ms-request-id', - 'c3afacf7-4749-49f0-94a7-e4be1abdeac0_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11975', - 'x-ms-correlation-request-id', - 'b955cdd0-af92-4a67-96a4-ed3bc448217f', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063607Z:b955cdd0-af92-4a67-96a4-ed3bc448217f', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:07 GMT' -]); diff --git a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_delete_test.json b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_delete_test.json new file mode 100644 index 000000000000..68f38c69c046 --- /dev/null +++ b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_delete_test.json @@ -0,0 +1,69 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/eventhubs/myeventhubxxx?api-version=2021-11-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "55f14c95-5628-4f77-a0f3-b389058dd20f" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Tue, 22 Nov 2022 07:03:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "95a73c9e-97f6-468c-abfe-992eccd0d89d", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", + "x-ms-request-id": "95a73c9e-97f6-468c-abfe-992eccd0d89d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070325Z:95a73c9e-97f6-468c-abfe-992eccd0d89d" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/eventhubs?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "6e258c0e-cbb6-4619-8835-674e61c43e38" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:03:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cd792a83-70c0-49b7-b41f-5aa35b14e538", + "x-ms-inline-count": "", + "x-ms-ratelimit-remaining-subscription-reads": "11961", + "x-ms-request-id": "cd792a83-70c0-49b7-b41f-5aa35b14e538", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070327Z:cd792a83-70c0-49b7-b41f-5aa35b14e538" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": {} +} diff --git a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_get_test.js b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_get_test.js deleted file mode 100644 index 8f54676b143c..000000000000 --- a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_get_test.js +++ /dev/null @@ -1,151 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "dd9ec642d04420b324cdd56296ed4a07"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '311b60c9-0dff-4e90-abb2-272801870200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=ArZm7rIzG1xBus3AcG-n6OE; expires=Sat, 08-Jan-2022 06:36:01 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0CcFeqcyg1qKgFT6Jie2wR3FfJTOMvzDCzzU7mCGSk0DRLgWz5crIC0I2csf9_7FoVV9pdkWWcLbW3RnMQ0CZ_DnhWm-LQiQz97ptG1dDfaOU8PAKOMV6zqr0agdgiXp3PSSYFrgG6SroPv4l6kGcoPQa_KRtj9-IXfO4iKLzsogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:36:01 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'cc3cd611-5a11-4fd8-9a15-7b10df0f0200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Al80LpjTQqFGrC9hbMhf6rs; expires=Sat, 08-Jan-2022 06:36:01 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr7kR71XKpR0RlcOwqVpUjU0N8SRQG1M9TB7mBgWtJPEec-EBykhUDlI7Dk6JwKH-KuRKGDd0AANDwTdDv8z9OByyTd7GNtEWc2T4ZZpwExoY6obnfXJYgY1dYvrM4ZAr6BWCDJKeGVJJAUN7atMBuwTfmKXw45-GmYhHI76u1dZUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:36:01 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=4c53113c-eca4-42f6-a8c5-53afc7605de2&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'ca596587-227b-4385-9892-f9927a640300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AgvwUyKnaMZOuVjFVhPi2PEWPr5BAQAAANGaQ9kOAAAA; expires=Sat, 08-Jan-2022 06:36:01 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:36:01 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/eventhubs/myeventhubxxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e4f2ff365fbedf5e4ee325be4cd2a9be678c1fef1eeddbbbb399acc090dfac2fc4e9f7f34fa08cd08c7eec7edf50a1f473a79412f30dce6aef9aca117ca6a9a617cf4d269d6b4e957afe943c27695d76d91371f3dfac51fd17b4d7691bfca5b7a8d9a9e2d9f66d7f4cd3e35cca8153e3ba9d6cb963f6adaac5dd3b71f1d4fdbe2322768d33acfda7c764cdf7fb4b7b3b7bbbdbbb7bdf3f0cdcea78fee7dfa686767bcbf4b8dd6abd9c64607fbd4c8767736a31ebef7d10e7d8697f7e8fff73efa3e7595adda759d3fcdedbc6100f9329b94394d695baff311fd39ad66c5f2827a3abeac2b7a774653542c950ebfd8d0d690e9b89ece6924e3e31f10e82744b0b7f4cf845e0bc9d4b4554d643a9e4e418b57ca0867d4edcf3a27bd96aeef8628e025fd24934f84472684fd49b56cb36299d784ddd4fe3efa2893b182599e55f522c374fc62fcc5acf34beefe624314faf5a59b0dfaebf7c9b39a7e7c41c0e6f4935884fefd360d817e7c512cd72dde7e9d5367b35ff2d12ff925a38f8a659bd7975979b6944f8988bb7b3bc440c50ff2e7c5a268cf964fae69c8f4f1cefec1fd079fdefb25bfe497","fc3f6bd0e5f49b030000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '5b286edd-80b8-4289-8a66-74dad64de474_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11977', - 'x-ms-correlation-request-id', - '629b3ed0-aaa6-4df8-8772-0ae15c455693', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063602Z:629b3ed0-aaa6-4df8-8772-0ae15c455693', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:02 GMT' -]); diff --git a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_get_test.json b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_get_test.json new file mode 100644 index 000000000000..528b395c2d02 --- /dev/null +++ b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_get_test.json @@ -0,0 +1,69 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/eventhubs/myeventhubxxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "0812600c-ebc4-4540-9194-4f44b3299627" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:03:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a5f967ab-3757-4012-99ac-353b1fb796b3", + "x-ms-ratelimit-remaining-subscription-reads": "11963", + "x-ms-request-id": "a5f967ab-3757-4012-99ac-353b1fb796b3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070321Z:a5f967ab-3757-4012-99ac-353b1fb796b3" + }, + "ResponseBody": { + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/eventhubs/myeventhubxxx", + "name": "myeventhubxxx", + "type": "Microsoft.EventHub/namespaces/eventhubs", + "location": "eastus", + "properties": { + "messageRetentionInDays": 4, + "partitionCount": 4, + "status": "Active", + "createdAt": "2022-11-22T07:03:18.937", + "updatedAt": "2022-11-22T07:03:19.257", + "partitionIds": [ + "0", + "1", + "2", + "3" + ], + "captureDescription": { + "enabled": true, + "encoding": "Avro", + "destination": { + "name": "EventHubArchive.AzureBlockBlob", + "properties": { + "storageAccountResourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Storage/storageAccounts/mystorageaccountxxx11", + "blobContainer": "container", + "archiveNameFormat": "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}" + } + }, + "intervalInSeconds": 120, + "sizeLimitInBytes": 10485763 + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_listbynamespace_test.js b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_listbynamespace_test.js deleted file mode 100644 index bed7bcab88bc..000000000000 --- a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_listbynamespace_test.js +++ /dev/null @@ -1,153 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "0c858dfb902afa1b234489f162fd07e8"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'cc3cd611-5a11-4fd8-9a15-7b10ed0f0200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AlMO_utQVQdOp8OXj34CvlU; expires=Sat, 08-Jan-2022 06:36:02 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrYFiUv4DbP0UnSGpJ6cPAiRo2V8L7YbVp8RnHdoGortRMKglP29XzZgCdSjDCKf1QCs96IdR-mHqs1L3P9-x2cSM2fXkp7wbUKLqGWbloXmggiUzY2EtlD8k6EhwGcbdx87Ny1bcMgRNLrzOruEYhADvo1C4ZqwnCr-4_RLvXwFYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:36:02 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'cc3cd611-5a11-4fd8-9a15-7b10ef0f0200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Av0HOyNGhVJImcwMoxqaEIg; expires=Sat, 08-Jan-2022 06:36:02 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIgY5Qy_ItbgBNNp9o_s4Nhc2DhL-8ZnUUtxUrLBh3wE_KgS5jCrGb5ImaZwVLwHaFw4E7JlCk3MTt9djD0-3OswTrCZ0KVu1pCUHX5zltYrCN7My-NdrOVcM4Zlm0VSUjMUFp08vZLMGRHGSiO-VmfzW_1zHl5Q-sIHqst66XVQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:36:02 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=ceb6d4c9-bd53-4703-9f71-8616e549893c&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'c2ed4d2b-7cf9-4dd9-8b78-50e2f4170200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AhTGPk7eaPRIuBWcTVkPZ38WPr5BAQAAANKaQ9kOAAAA; expires=Sat, 08-Jan-2022 06:36:02 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:36:02 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/eventhubs') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffc5131fbe8d147779bf5a499d6c5aa2daa6573f7e1def9c3fbb383f3ed7bd34f1f6cefefeeed6f3fdc9d3ed83e989eef3c98ce26e77bfbbb77ebbca9d6f534ffbcaed6abe6eee2faa79b366fdabbabbaba2c6679dddcfda298d655539db7e3d3cb7cd97e7b3db9bbcc1679b3caa6395eb07fbc7bf7ee6e8e26734283be30bfd3e71f8d3e4233c2b1fb717bbdc2c7914e5ed00b0cb7b96b3e6be885b29a66181fbd749a356dfad56bfa90b05de5755be4cd478f7ef147f45e935de4aff2965ea3a667cba7d9357db34f0d336a85cf4eaaf5b2e58f9a366bd7f4ed47c7d3b6b8cc09dab4ceb3369f1dd3f71fededeced6eefee6def3c7cb3f3e9a37b9f3edad919efef52a3f56ab6b1d1c13e35b2dd9dcda887ef7db4439fe1e53dfaffbd8fbe4f5d65ab765de74f733b6f1840becc26654e53dad6eb7c447f4eab59b1bca09e8e2feb8ade9dd114154ba5c32f36b435643aaea7731ac9f8f80704fa0911ec2dfd33a1d74232356d5513998ea753d0e29532c21975fbb3ce49afa5ebbb210a78493fc9e413e19109617f522ddbac58e6356137b5bf8f3eca64ac60966755bdc8301dbf187f31ebfc92bbbfd810857e7de96683fefa7df2aca61f5f10b039fd2416a17fbf4d43a01f5f14cb758bb75fe7d4d9ec977cf44b7ec9e8a362d9e63589dcd9523e2522eeeeed1003153fc89f178ba23d5b3eb9a621d3c73bfb07f71f7c7aef97fc925ff2fd","5ff2ff00aff1eb68a7030000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-inline-count', - '', - 'x-ms-request-id', - 'f20ba5cb-a175-4a38-9b62-23c0d0936f77_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11976', - 'x-ms-correlation-request-id', - '21a2d4ad-40d6-4255-a9d3-e6052a564d3c', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063603Z:21a2d4ad-40d6-4255-a9d3-e6052a564d3c', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:03 GMT' -]); diff --git a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_listbynamespace_test.json b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_listbynamespace_test.json new file mode 100644 index 000000000000..7397b4ce13b3 --- /dev/null +++ b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_listbynamespace_test.json @@ -0,0 +1,74 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/eventhubs?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "ec944c60-1b09-4384-955c-4a8bf63d5264" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:03:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "80717dfc-cb5b-4418-9c65-0cc76cb0486a", + "x-ms-inline-count": "", + "x-ms-ratelimit-remaining-subscription-reads": "11962", + "x-ms-request-id": "80717dfc-cb5b-4418-9c65-0cc76cb0486a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070322Z:80717dfc-cb5b-4418-9c65-0cc76cb0486a" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/eventhubs/myeventhubxxx", + "name": "myeventhubxxx", + "type": "Microsoft.EventHub/namespaces/eventhubs", + "location": "eastus", + "properties": { + "messageRetentionInDays": 4, + "partitionCount": 4, + "status": "Active", + "createdAt": "2022-11-22T07:03:18.937", + "updatedAt": "2022-11-22T07:03:19.257", + "partitionIds": [ + "0", + "1", + "2", + "3" + ], + "captureDescription": { + "enabled": true, + "encoding": "Avro", + "destination": { + "name": "EventHubArchive.AzureBlockBlob", + "properties": { + "storageAccountResourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Storage/storageAccounts/mystorageaccountxxx11", + "blobContainer": "container", + "archiveNameFormat": "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}" + } + }, + "intervalInSeconds": 120, + "sizeLimitInBytes": 10485763 + } + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_namespaces_create_test.js b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_namespaces_create_test.js deleted file mode 100644 index d5e211f8c4df..000000000000 --- a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_namespaces_create_test.js +++ /dev/null @@ -1,2849 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "8f17aaac2c1a8bf42c21eec4e2d3acec"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'ca596587-227b-4385-9892-f99222610300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AhXaFnWj1l5Jh2F51sRhHk0; expires=Sat, 08-Jan-2022 06:34:24 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOZ9IvmD0F-UWwpXo1P18cKqrN6bO0GBEhz5wrwvCf9Qj0l84vmasPTJWmyL29OuSU54Fm5v1J6ayx2NtR1uJYXTzhxdMKwMWo2IIs66A0KB1h1JY5_jmC_LKreLTY7-r5AP8P7VdzcywFehEWc6pNCPElm-Z7GyQzUIOZsRgKtwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:34:23 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'c2ed4d2b-7cf9-4dd9-8b78-50e222140200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Avtulfna1ulNiE15XEFs8JE; expires=Sat, 08-Jan-2022 06:34:24 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrdUG3_-Na2gI8_5WD3NARm8XNh6UqYX2IwcV3Y_9ldaO0uZgLzpjPGb573jl7yodBhxI8bEHHrO2ikPXpvcyHaBSFEhmvYggrQf-Z8xHMTbmauoaPh44caLDAiSF7_4sBnic5qy951RzCE4Jp7WO-4yzTffqqcEHiHnUPIkLsH44gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:34:23 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=97744efc-4deb-4ab3-800a-7ee4961e7683&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '311b60c9-0dff-4e90-abb2-2728be830200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AlQ_vNMCIGJLiNY7QxvqlGQWPr5BAQAAAG-aQ9kOAAAA; expires=Sat, 08-Jan-2022 06:34:24 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:34:23 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/myvirtualnetwork', {"location":"eastus","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]}}}) - .query(true) - .reply(201, {"name":"myvirtualnetwork","id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/myvirtualnetwork","etag":"W/\"0e5cea3e-a7b1-4b7f-9554-e9112b1da966\"","type":"Microsoft.Network/virtualNetworks","location":"eastus","properties":{"provisioningState":"Updating","resourceGuid":"e76d83d7-c366-4f14-9eff-9cee980320b2","addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"subnets":[],"virtualNetworkPeerings":[],"enableDdosProtection":false}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '618', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Retry-After', - '0', - 'x-ms-request-id', - 'd9300804-ffb6-455d-99f9-89964047c573', - 'Azure-AsyncOperation', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/d9300804-ffb6-455d-99f9-89964047c573?api-version=2021-05-01', - 'x-ms-correlation-request-id', - '1b20315a-ff7e-4a3c-8279-b324213ba086', - 'Azure-AsyncNotification', - 'Enabled', - 'x-ms-arm-service-request-id', - '529258fe-4a35-4d86-9324-bf9fc4cf996f', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes', - '1199', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063430Z:1b20315a-ff7e-4a3c-8279-b324213ba086', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:30 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/d9300804-ffb6-455d-99f9-89964047c573') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9474d9bb5ebe6a347e947afd7d3699ecff2d947bf71f24b","fe1f4f9490471d000000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '116204d5-369e-4428-99cf-94ee13d0d0e5', - 'x-ms-correlation-request-id', - '3f83758d-508b-48d3-bf8e-c333ae37467d', - 'x-ms-arm-service-request-id', - '8ec4b827-ebbd-4acd-b6d8-e3354e7a6572', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11999', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063431Z:3f83758d-508b-48d3-bf8e-c333ae37467d', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:31 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/myvirtualnetwork/subnets/subnetxxx', {"properties":{"addressPrefix":"10.0.0.0/24"}}) - .query(true) - .reply(201, {"name":"subnetxxx","id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/myvirtualnetwork/subnets/subnetxxx","etag":"W/\"843aa489-46ea-4c64-a7c1-7208dc4fb50d\"","properties":{"provisioningState":"Updating","addressPrefix":"10.0.0.0/24","delegations":[],"privateEndpointNetworkPolicies":"Enabled","privateLinkServiceNetworkPolicies":"Enabled"},"type":"Microsoft.Network/virtualNetworks/subnets"}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '533', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Retry-After', - '0', - 'x-ms-request-id', - '66c5100a-7ec4-452e-9b3a-b2ce7a50a97b', - 'Azure-AsyncOperation', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/66c5100a-7ec4-452e-9b3a-b2ce7a50a97b?api-version=2021-05-01', - 'x-ms-correlation-request-id', - '752859d5-b912-46e3-bf8a-31fc932c980a', - 'x-ms-arm-service-request-id', - 'a7305479-0734-4ab9-9a4c-1004a8fa12a4', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes', - '1198', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063433Z:752859d5-b912-46e3-bf8a-31fc932c980a', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:33 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/66c5100a-7ec4-452e-9b3a-b2ce7a50a97b') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e9474d9bb5ebe6a347e947afd7d3699ecff2d947bf71f24b","fe1f4f9490471d000000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '53a684a5-6e18-490d-8701-76a147eef2ca', - 'x-ms-correlation-request-id', - '0fce1334-b9ed-46d2-8d27-6e6fabc40314', - 'x-ms-arm-service-request-id', - '154c5bbc-5f6d-4dc8-81ec-21b09ae2b6bd', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11998', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063434Z:0fce1334-b9ed-46d2-8d27-6e6fabc40314', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:34 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Storage/storageAccounts/mystorageaccountxxx', {"sku":{"name":"Standard_GRS"},"kind":"StorageV2","location":"eastus"}) - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '1515f56e-0e62-4c7c-9095-de1385ebeb08', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes', - '1197', - 'x-ms-correlation-request-id', - '801269bf-2227-4f05-9c7c-5152255f599b', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063440Z:801269bf-2227-4f05-9c7c-5152255f599b', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:40 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '04e45126-041d-404f-b6bf-a9cf8575fd9a', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11997', - 'x-ms-correlation-request-id', - 'ceaef777-8cd7-4f20-9390-4efac4890935', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063440Z:ceaef777-8cd7-4f20-9390-4efac4890935', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:40 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'ab4e3a05-e94f-4aa2-a4ba-c1ddc7bc51fc', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11996', - 'x-ms-correlation-request-id', - 'd0e91de9-097b-4809-b222-000db0fb1c00', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063441Z:d0e91de9-097b-4809-b222-000db0fb1c00', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:41 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '266f4247-4084-4dca-9291-08b4b9874b82', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11995', - 'x-ms-correlation-request-id', - '6cc41b24-c147-4d39-9ddf-525a0cd30099', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063441Z:6cc41b24-c147-4d39-9ddf-525a0cd30099', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:41 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '74ab337e-851a-49f6-b953-67d178773c39', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11994', - 'x-ms-correlation-request-id', - '5bc1db15-6b35-4323-b26c-7b2ccccccc52', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063441Z:5bc1db15-6b35-4323-b26c-7b2ccccccc52', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:41 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '329f35c0-d5c8-412f-9ffe-276f76d3b316', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11993', - 'x-ms-correlation-request-id', - 'd0a394cd-4dba-4e19-98b8-1f8360989358', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063442Z:d0a394cd-4dba-4e19-98b8-1f8360989358', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:42 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '2e25be5d-b1e9-44ba-967f-b9989beed9e2', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11992', - 'x-ms-correlation-request-id', - 'f94bb8bb-4845-4826-a135-c90f6c2f1ed5', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063442Z:f94bb8bb-4845-4826-a135-c90f6c2f1ed5', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:42 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'a3ff4435-1d48-4e47-bd37-637a7004f3b3', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11991', - 'x-ms-correlation-request-id', - '9599cf53-eff2-4f05-bbb2-b16cd27d6e59', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063443Z:9599cf53-eff2-4f05-bbb2-b16cd27d6e59', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:42 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '0a192acc-37fc-46c4-b4d8-a02aff8e8868', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11990', - 'x-ms-correlation-request-id', - '4fa9ce32-2d49-45e8-9b6d-2ae92941bd46', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063443Z:4fa9ce32-2d49-45e8-9b6d-2ae92941bd46', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:43 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '21f32d69-ac96-4c7e-b200-c9cd886156fb', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11989', - 'x-ms-correlation-request-id', - 'e8846840-3015-4e91-9dd4-a88897a402cb', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063443Z:e8846840-3015-4e91-9dd4-a88897a402cb', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:43 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'fff0435f-6d7f-4c9e-8a00-7bb17ad295e2', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11988', - 'x-ms-correlation-request-id', - '563789b9-a7a6-4c91-9bc0-a964b66d0261', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063444Z:563789b9-a7a6-4c91-9bc0-a964b66d0261', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:44 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'c2ad8b65-fc2f-4f6e-9378-1bc837defde5', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11987', - 'x-ms-correlation-request-id', - '04ab23ed-668a-4f2f-883e-64110c026bd4', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063444Z:04ab23ed-668a-4f2f-883e-64110c026bd4', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:44 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '5fb1646f-979c-4cca-ac89-f76be8ce900d', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11986', - 'x-ms-correlation-request-id', - '508823d8-2518-4f90-928e-87ce7f83c617', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063445Z:508823d8-2518-4f90-928e-87ce7f83c617', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:44 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '2763d9be-25e3-4fe1-9265-18da31b195e9', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11985', - 'x-ms-correlation-request-id', - 'fb4f5507-a979-4d66-a82f-02f238fce741', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063445Z:fb4f5507-a979-4d66-a82f-02f238fce741', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:45 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '9d1fea91-283e-4c05-9009-ac662350b9ae', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11984', - 'x-ms-correlation-request-id', - '7de88485-3052-4042-9b70-17bd2d78fefd', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063445Z:7de88485-3052-4042-9b70-17bd2d78fefd', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:45 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'ca0b3aa8-58f1-41e9-b0f7-079bc1f09fc2', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11983', - 'x-ms-correlation-request-id', - 'cd1dced7-4731-4446-a4c7-98734b5b52c5', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063446Z:cd1dced7-4731-4446-a4c7-98734b5b52c5', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:46 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'f8cf71c1-407b-4f05-8cf3-f854038d6ed1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11982', - 'x-ms-correlation-request-id', - 'c9145b48-b6c3-4bf3-8ca9-3e11955b5446', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063446Z:c9145b48-b6c3-4bf3-8ca9-3e11955b5446', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:46 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '3280f79c-4ed7-40f1-8a84-3a8699569af6', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11981', - 'x-ms-correlation-request-id', - '7d81ca1a-df90-47aa-89bf-04bc2ab3f3f9', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063446Z:7d81ca1a-df90-47aa-89bf-04bc2ab3f3f9', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:46 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'f127cdfd-3503-4eb3-ac94-0e54c1906c86', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11980', - 'x-ms-correlation-request-id', - 'f772736f-b161-43f5-9235-19fca5dc8aba', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063447Z:f772736f-b161-43f5-9235-19fca5dc8aba', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:47 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'e302b77f-3a1f-44c8-8090-48f32ebf59ac', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11979', - 'x-ms-correlation-request-id', - 'a7f8b750-aec1-41ca-b0e1-7ad28b4717c0', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063447Z:a7f8b750-aec1-41ca-b0e1-7ad28b4717c0', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:47 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '608bb34d-f2d4-48e9-b1af-84dafca9861f', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11978', - 'x-ms-correlation-request-id', - '854943e2-5b27-4510-ae63-2d4406d82e6f', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063448Z:854943e2-5b27-4510-ae63-2d4406d82e6f', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:47 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'd2db1c1b-3f80-4c4f-b4b5-ccfebc73aa18', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11977', - 'x-ms-correlation-request-id', - 'ca54f885-d069-492a-9cc8-5eda7f2ec648', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063448Z:ca54f885-d069-492a-9cc8-5eda7f2ec648', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:48 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '79c1e272-435c-4b5f-bc91-ea6e4b7fef9d', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11976', - 'x-ms-correlation-request-id', - '2173eb12-382a-4215-940e-332ffbe60a84', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063448Z:2173eb12-382a-4215-940e-332ffbe60a84', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:48 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'cbfb1b52-8722-4af6-b4ab-384a5ef4f50f', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11975', - 'x-ms-correlation-request-id', - '7ed522bc-2fcd-4ba6-bb11-cc5f59353841', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063449Z:7ed522bc-2fcd-4ba6-bb11-cc5f59353841', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:49 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '8c5f3c36-a646-4339-a99e-56232df7539e', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11974', - 'x-ms-correlation-request-id', - '83dd170a-4ced-4133-9e8d-3f6d35a4c925', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063449Z:83dd170a-4ced-4133-9e8d-3f6d35a4c925', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:49 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'e0a82f44-af58-456e-9f15-3df0f32e0793', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11973', - 'x-ms-correlation-request-id', - '85c77a48-973f-49f0-b069-fbead3ed36aa', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063449Z:85c77a48-973f-49f0-b069-fbead3ed36aa', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:49 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'bc9b4917-bb16-48df-8e23-2d1055101f76', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11972', - 'x-ms-correlation-request-id', - 'f250d340-01ac-4f07-8365-34ac7a82c3db', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063450Z:f250d340-01ac-4f07-8365-34ac7a82c3db', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:50 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'a24014b9-8746-473f-9a15-8f7470987888', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11971', - 'x-ms-correlation-request-id', - '76e418e3-beb1-4a7e-8f02-493dbb9865b7', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063450Z:76e418e3-beb1-4a7e-8f02-493dbb9865b7', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:50 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '3971d838-7e80-4ab8-9a63-778f68b58e8e', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11970', - 'x-ms-correlation-request-id', - '97c3e286-9bf4-464a-9890-b686ffb60e09', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063451Z:97c3e286-9bf4-464a-9890-b686ffb60e09', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:50 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'ac34bfca-c216-4cc2-939d-f43c4e793834', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11969', - 'x-ms-correlation-request-id', - 'c959e8ac-1bc9-4b3c-a0ed-e868d43fd069', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063451Z:c959e8ac-1bc9-4b3c-a0ed-e868d43fd069', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:51 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '68830890-6b64-4eaf-aec4-33b0fb3ee71d', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11968', - 'x-ms-correlation-request-id', - '1c040a13-d7d9-4f3b-ab40-0804aac1e8f6', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063451Z:1c040a13-d7d9-4f3b-ab40-0804aac1e8f6', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:51 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'ccbb305d-5f0c-4bc7-9e72-fadddf42f831', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11967', - 'x-ms-correlation-request-id', - '8a2b23ac-3d87-486e-af29-e8a3e7e68563', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063452Z:8a2b23ac-3d87-486e-af29-e8a3e7e68563', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:52 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '71d9d762-5031-40a6-a249-0c8551d0426b', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11966', - 'x-ms-correlation-request-id', - '8409b0b5-b265-4e5c-b652-f3dc8812cf9c', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063452Z:8409b0b5-b265-4e5c-b652-f3dc8812cf9c', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:52 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '2bc3a887-a046-4c1f-93c6-4bb2c36012a6', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11965', - 'x-ms-correlation-request-id', - 'd32346ca-679f-4e49-b7b0-52cb406a1631', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063452Z:d32346ca-679f-4e49-b7b0-52cb406a1631', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:52 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '821d7767-c8a2-4361-83a2-ac883f8f6705', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11964', - 'x-ms-correlation-request-id', - '739d91a6-4f0e-4651-a4e5-c66fdb57b91b', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063453Z:739d91a6-4f0e-4651-a4e5-c66fdb57b91b', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:53 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'c6e08657-5ea1-4cdc-b175-6aff8b16b557', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11963', - 'x-ms-correlation-request-id', - 'c5158e9f-e8b5-4a4e-9ac4-b6fbf8b8f212', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063453Z:c5158e9f-e8b5-4a4e-9ac4-b6fbf8b8f212', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:53 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '5d99f08a-cf5b-4416-b320-2b6d05ac36fe', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11962', - 'x-ms-correlation-request-id', - 'fb9a3f9b-c85c-4074-a449-e6a27d4a6396', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063454Z:fb9a3f9b-c85c-4074-a449-e6a27d4a6396', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:53 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'be4dbdde-a31d-47e2-b11a-1bbe52ec733d', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11961', - 'x-ms-correlation-request-id', - 'e76c382e-778c-4285-a200-3da12655d84d', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063454Z:e76c382e-778c-4285-a200-3da12655d84d', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:54 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '60d012ad-a905-420d-a638-4372860f0d81', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11960', - 'x-ms-correlation-request-id', - 'd03a3098-79b2-40cf-adb7-114fddfa6858', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063454Z:d03a3098-79b2-40cf-adb7-114fddfa6858', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:54 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '835a7a2a-a31f-4bd2-8ce0-ce1d3c1160a8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11959', - 'x-ms-correlation-request-id', - '2652ee72-7d9e-4e5a-afcb-8bc99123eb98', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063455Z:2652ee72-7d9e-4e5a-afcb-8bc99123eb98', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:55 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'cdee1f21-24bf-4e30-9039-62f9285d9308', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11958', - 'x-ms-correlation-request-id', - 'a23da94e-9f7e-4de4-9d6f-89b32ef15eab', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063455Z:a23da94e-9f7e-4de4-9d6f-89b32ef15eab', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:55 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '9a0f4c6f-6a67-48cf-8a6f-ae2fbba7812d', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11957', - 'x-ms-correlation-request-id', - '9f5f3119-b20a-4bb4-9f76-9f4340538488', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063455Z:9f5f3119-b20a-4bb4-9f76-9f4340538488', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:55 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '82bf2445-10e7-48b8-b922-c75ac78d7cd1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11956', - 'x-ms-correlation-request-id', - 'dd73fb3a-d4c5-4aeb-a6de-a1b823e5b575', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063456Z:dd73fb3a-d4c5-4aeb-a6de-a1b823e5b575', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:56 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '71b98672-dbbc-421f-a417-3cee22d07413', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11955', - 'x-ms-correlation-request-id', - '5857d320-5fb7-4cfb-9f7a-9dd7d76aa619', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063456Z:5857d320-5fb7-4cfb-9f7a-9dd7d76aa619', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:56 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'text/plain; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08?monitor=true&api-version=2021-06-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '162d2224-d9b1-4bee-9a36-4e5535d2e308', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11954', - 'x-ms-correlation-request-id', - '1a766d14-32b5-44c4-98ff-a763c0dfe1c0', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063457Z:1a766d14-32b5-44c4-98ff-a763c0dfe1c0', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:56 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/1515f56e-0e62-4c7c-9095-de1385ebeb08') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5ecf7fffcd5eb8f461fb5455e7b9f7ef44b461fbd2d9633fea8aab38bfc27f7a855810fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7dae1dd467e1e4fa7d57ad9e225fd24934fdebd7b4728e970e25fb6d72b7c79236c6a5a56d30c03a2e679d6b46b7cd666170d918c684178aef29a8884bf3f7a9b5f9fd439377f53a07bfe68975edddbd9dbdddedddbde79f866e7d347f7f61fdd3b183ffc747f77f760efa70820b5dabba915f7565c666d7eba9cadaa62d99e54cb653e456fd4fbf7be3ffa68512c8bc57af1a66c7e9248479f13cc37cf5feffefe3bd4475696d5d593b29abc5c4fca624a43cc1b7aafadd739512b6fafaafaedf1b4a48f7ef14793eb55862f3f3afec1bace5fe7f56541ad09c86551b7ebac7c21cd5fad4bfa94bb2e56de1fb3fc3c5b97ed31e30628e81a0368d6ab5555b7cdb7db76d5bca9b3f3f362fae5b2bc3668e4cb697dcdfc032c1ad32ffd7e5e94869e6f64f268009823422a5f66933227161420254dd3a97c24b310a7eb83870f0e761e325d2744959f25e0049da0be6626a7c63d8e43f7c49a34156f44d2be5da157e2abcb0233582c2f48f65abcfb7a4dedf219e132fa681ab059148783073bf7f61eec82bd886f16597d6df886093a3ba71f1fcd31118feec664684c2dc6d3aacec75724f0d555332626b94bd0ae7222d6c6377fb07b6f4cada26f0bad37be8e26d1777fd13a5f63b89b5ee636d1b75bccda0d6f739be8dbc2801b5f4693c8bb34c33a01cf23baa4a1d95d375f9ebf9426f45576991525f0c0b7f9b482e2f55fbd220519bcfada34a22fddcbbfe4","97fc3f46b7cfaddb050000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '7e74fafb-5188-44fa-9acd-25f2862a1fb0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11953', - 'x-ms-correlation-request-id', - 'c7f7378f-bd16-4389-b2e0-326c24f08b30', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063457Z:c7f7378f-bd16-4389-b2e0-326c24f08b30', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:34:57 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx', {"location":"eastus","tags":{"tag1":"value1","tag2":"value2"},"sku":{"name":"Standard","tier":"Standard"}}) - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '8394b7fa-e063-4ccc-96fb-340a7c66ca14_M10CH3_M10CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-resource-requests', - '49', - 'x-ms-correlation-request-id', - '1eae6776-8ff4-4a75-94e5-095af62f2767', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063504Z:1eae6776-8ff4-4a75-94e5-095af62f2767', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:04 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '00b0cba6-dc7f-4296-b831-ff9fb5beab47_M10CH3_M10CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11999', - 'x-ms-correlation-request-id', - 'e9d19e1e-636c-4ec3-9e4a-8e00d93d5fdb', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063505Z:e9d19e1e-636c-4ec3-9e4a-8e00d93d5fdb', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:04 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - 'dfc11e44-c02e-4f40-baa3-4bc38fb82f11_M3CH3_M3CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11998', - 'x-ms-correlation-request-id', - '174e872a-91b2-4f02-95b0-f42d1ae8d4a8', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063507Z:174e872a-91b2-4f02-95b0-f42d1ae8d4a8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:06 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - 'f767ca96-b0b4-4975-b7c8-69d9a75029db_M10CH3_M10CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11997', - 'x-ms-correlation-request-id', - '2fa6c63a-ab32-4f52-b862-8047671ff317', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063510Z:2fa6c63a-ab32-4f52-b862-8047671ff317', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:09 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '7577212c-8e9b-40fd-aa9e-6de4da1cd3ee_M10CH3_M10CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11996', - 'x-ms-correlation-request-id', - '81d13cce-dff7-457f-b48f-a4cae969a771', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063512Z:81d13cce-dff7-457f-b48f-a4cae969a771', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:12 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '1a52cfd4-2d9a-427d-abbc-34977fbab058_M3CH3_M3CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11995', - 'x-ms-correlation-request-id', - '60b7bc12-8c24-48fb-b244-5c897c6dba2e', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063515Z:60b7bc12-8c24-48fb-b244-5c897c6dba2e', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:14 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '25dc07d8-15b2-43eb-90b4-fabd2678d822_M10CH3_M10CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11994', - 'x-ms-correlation-request-id', - '3a5c1b7c-d179-40dc-84c6-870c50a62146', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063517Z:3a5c1b7c-d179-40dc-84c6-870c50a62146', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:16 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '1ebb9e54-15e7-4f6c-b094-e5aa48d40d04_M3CH3_M3CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11993', - 'x-ms-correlation-request-id', - 'bffe9da0-2993-454e-9750-42b0c7d93aa2', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063520Z:bffe9da0-2993-454e-9750-42b0c7d93aa2', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:19 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '166619a3-250f-429e-ae83-f7a00109703a_M10CH3_M10CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11992', - 'x-ms-correlation-request-id', - '317f278a-d331-43a6-be64-74227bdbdec8', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063522Z:317f278a-d331-43a6-be64-74227bdbdec8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:21 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '69615c8e-7ef2-4042-98c5-547f42a8634b_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11991', - 'x-ms-correlation-request-id', - '07853c55-89b8-4fce-a62b-fef7839fe4a3', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063525Z:07853c55-89b8-4fce-a62b-fef7839fe4a3', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:24 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '767f0ce6-0864-4e37-b4de-8576496f8735_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11990', - 'x-ms-correlation-request-id', - 'c04bc303-088a-4bae-a0a3-f84bf5442a50', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063527Z:c04bc303-088a-4bae-a0a3-f84bf5442a50', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:26 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '8b0853e8-1bb2-4675-b37d-3f7ae25a0dfa_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11989', - 'x-ms-correlation-request-id', - '0929a2d7-f37c-4da0-8c59-2d72ad2ed1d9', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063529Z:0929a2d7-f37c-4da0-8c59-2d72ad2ed1d9', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:28 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '771e2195-edb2-4e40-a6f2-88d7c43eb5a0_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11988', - 'x-ms-correlation-request-id', - '0a89a76e-a0c4-4af9-89f3-3f2f7a11efc8', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063532Z:0a89a76e-a0c4-4af9-89f3-3f2f7a11efc8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:31 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '28ee8d37-7774-4321-bff5-335766a37141_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11987', - 'x-ms-correlation-request-id', - 'dd6b1460-e1b8-44db-8f4a-3b26ef0d427a', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063535Z:dd6b1460-e1b8-44db-8f4a-3b26ef0d427a', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:34 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '1b8fd29e-2081-4d97-8d4c-6915127261fd_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11986', - 'x-ms-correlation-request-id', - '1eb9bf67-b7da-44ee-b116-4030489af346', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063538Z:1eb9bf67-b7da-44ee-b116-4030489af346', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:37 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '4b84ada4-ac7c-4aef-a1dc-c437b6240813_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11985', - 'x-ms-correlation-request-id', - 'e4e1b11a-2024-469d-99dc-af68205fcb91', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063541Z:e4e1b11a-2024-469d-99dc-af68205fcb91', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:40 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '108bf051-3b47-49f9-9b99-eada9a95d792_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11984', - 'x-ms-correlation-request-id', - 'c14e8962-3457-4bee-ad8e-eadf17af21c3', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063543Z:c14e8962-3457-4bee-ad8e-eadf17af21c3', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:42 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - 'b515075a-75f5-405a-83ea-ae142fd942c3_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11983', - 'x-ms-correlation-request-id', - '047859b4-4e24-4665-831b-2c11ba706ecc', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063545Z:047859b4-4e24-4665-831b-2c11ba706ecc', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:44 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '0454a3b3-a0a0-4e18-a5c0-386b64971b5e_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11982', - 'x-ms-correlation-request-id', - 'ed49e8d2-5ae7-4671-b9c3-7e5efd6394a7', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063548Z:ed49e8d2-5ae7-4671-b9c3-7e5efd6394a7', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:48 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '401e4ba2-261e-4eb5-9d3b-bc98177f97e9_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11981', - 'x-ms-correlation-request-id', - 'fe56fb56-cc23-45cc-b7e7-bcd4a88007ad', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063550Z:fe56fb56-cc23-45cc-b7e7-bcd4a88007ad', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:50 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '0d4a550a-021d-4783-a32f-0fec9b09b9b5_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11980', - 'x-ms-correlation-request-id', - '0386fc5b-66e8-4567-9605-0bc6d5def253', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063553Z:0386fc5b-66e8-4567-9605-0bc6d5def253', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:52 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6def3c7cb3f3e9a37bf71fedec8d3f7df0e0a7a8d97a35bb4db326af2f8b69fe64dd9c2e67abaa004d3e9ab7edaa7974b733c1636d3b5937e3ab6239abae9af1326f1fedefdfbb0b4834d43551e5a3e3695b5cd2442e2f3efa25bf","e4ff0161717a63d8020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '6cb81525-c651-43d8-8090-3dc506dcf3fa_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11979', - 'x-ms-correlation-request-id', - '12e6d7ad-1fce-4d2b-90ee-632896316d1d', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063555Z:12e6d7ad-1fce-4d2b-90ee-632896316d1d', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:55 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518faebf5749ae7336a44e0f2b62ea667d4fea3db4cd3a31e39a7754e5067c784fe477b3b7bbbdbbb7bdb3b0fdfec7cfae8defd473b7be34f1f3cf8296ab65ecd869bddff74bc7b1fad9abcbe2ca6f9937573ba9cadaa0244f968deb6abe6d1ddce0c8fb5ed64dd8caf8ae5acba6ac6cbbc7db4bf7fef2e20d158d744968f8ea76d71997ff44b7e","c9ff0325f8b980d5020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - 'eb7f2013-e6e4-42be-abf8-2b426af4398c_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11978', - 'x-ms-correlation-request-id', - 'd374a458-06da-47ec-ac39-77e3baf772ad', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063557Z:d374a458-06da-47ec-ac39-77e3baf772ad', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:35:57 GMT' -]); diff --git a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_namespaces_create_test.json b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_namespaces_create_test.json new file mode 100644 index 000000000000..623afaa861cb --- /dev/null +++ b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_namespaces_create_test.json @@ -0,0 +1,1927 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/myvirtualnetwork?api-version=2021-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-network/26.0.0 core-rest-pipeline/1.10.0 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "a3e1b43b-0bb2-4894-a04e-a3542d3bbb70" + }, + "RequestBody": { + "location": "eastus", + "properties": { + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncNotification": "Enabled", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/23df85c5-2099-443c-af3b-c1fc90d7c15d?api-version=2021-05-01", + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:01:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "3", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-arm-service-request-id": "1a90f878-0031-45e6-aa6b-165ea763672d", + "x-ms-correlation-request-id": "12edf842-d8c5-4953-985b-a38dea2d858a", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "23df85c5-2099-443c-af3b-c1fc90d7c15d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070149Z:12edf842-d8c5-4953-985b-a38dea2d858a" + }, + "ResponseBody": { + "name": "myvirtualnetwork", + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/myvirtualnetwork", + "etag": "W/\u0022c6e316ac-4ccb-475a-9c77-e690cc5bd93d\u0022", + "type": "Microsoft.Network/virtualNetworks", + "location": "eastus", + "properties": { + "provisioningState": "Updating", + "resourceGuid": "14b8b23e-5026-4aab-be72-3fc8283431f8", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [], + "virtualNetworkPeerings": [], + "enableDdosProtection": false + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/23df85c5-2099-443c-af3b-c1fc90d7c15d?api-version=2021-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-network/26.0.0 core-rest-pipeline/1.10.0 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "05f41c41-4369-474b-aa41-dcd9bac1e90d" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:01:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-arm-service-request-id": "e1c02c59-451f-40bb-a589-7888588a95fe", + "x-ms-correlation-request-id": "c48b23fa-384e-4237-814e-168110c4b961", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "5fd95027-544d-4604-ba17-1f53c054467d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070149Z:c48b23fa-384e-4237-814e-168110c4b961" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/myvirtualnetwork?api-version=2021-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-network/26.0.0 core-rest-pipeline/1.10.0 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "d485c0f9-7bce-4852-9ab8-4a8a411b8191" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:01:49 GMT", + "ETag": "W/\u0022d1fcb6e9-ffa2-4ba0-a7f0-131535a3e8fc\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-arm-service-request-id": "55a077f9-10b3-4d78-8e5f-c496e1e19871", + "x-ms-correlation-request-id": "7009f2d2-cca5-4d17-8162-ace29a957d57", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "23ad54e7-ab18-4251-b936-61aaba0f2aff", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070150Z:7009f2d2-cca5-4d17-8162-ace29a957d57" + }, + "ResponseBody": { + "name": "myvirtualnetwork", + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/myvirtualnetwork", + "etag": "W/\u0022d1fcb6e9-ffa2-4ba0-a7f0-131535a3e8fc\u0022", + "type": "Microsoft.Network/virtualNetworks", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "14b8b23e-5026-4aab-be72-3fc8283431f8", + "addressSpace": { + "addressPrefixes": [ + "10.0.0.0/16" + ] + }, + "subnets": [], + "virtualNetworkPeerings": [], + "enableDdosProtection": false + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/myvirtualnetwork/subnets/subnetxxx?api-version=2021-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "46", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-network/26.0.0 core-rest-pipeline/1.10.0 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "f40bd0bf-eca8-4bfe-a421-e0c073da6bce" + }, + "RequestBody": { + "properties": { + "addressPrefix": "10.0.0.0/24" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncNotification": "Enabled", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/8776f83f-fba0-4828-b8bd-7b6a1fe22e27?api-version=2021-05-01", + "Cache-Control": "no-cache", + "Content-Length": "519", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:01:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "3", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-arm-service-request-id": "380830bd-5866-47a3-a22e-2e00e382f651", + "x-ms-correlation-request-id": "904e8d11-7435-4fde-8de5-007454944078", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "8776f83f-fba0-4828-b8bd-7b6a1fe22e27", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070150Z:904e8d11-7435-4fde-8de5-007454944078" + }, + "ResponseBody": { + "name": "subnetxxx", + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/myvirtualnetwork/subnets/subnetxxx", + "etag": "W/\u0022a63883b6-bfa5-4469-bc29-a44b19b94f88\u0022", + "properties": { + "provisioningState": "Updating", + "addressPrefix": "10.0.0.0/24", + "delegations": [], + "privateEndpointNetworkPolicies": "Disabled", + "privateLinkServiceNetworkPolicies": "Enabled" + }, + "type": "Microsoft.Network/virtualNetworks/subnets" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/8776f83f-fba0-4828-b8bd-7b6a1fe22e27?api-version=2021-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-network/26.0.0 core-rest-pipeline/1.10.0 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "8af723ee-e9b1-423a-a0bb-51bf7d7db767" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:01:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-arm-service-request-id": "eadac598-d2c4-4065-9098-b1ec22473658", + "x-ms-correlation-request-id": "70734634-5cf6-48c5-9491-88de15b3f536", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "01f31abc-4939-46e9-9e38-b7d505729718", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070151Z:70734634-5cf6-48c5-9491-88de15b3f536" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/myvirtualnetwork/subnets/subnetxxx?api-version=2021-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-network/26.0.0 core-rest-pipeline/1.10.0 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "806a897f-9d58-4b60-a51a-bddf09a127c7" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:01:51 GMT", + "ETag": "W/\u00229f3d533a-317c-4cb4-994e-a9b5d667bc62\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-arm-service-request-id": "0687db0f-2d5a-4955-85d0-093fa0fe4167", + "x-ms-correlation-request-id": "80905f02-bda4-47e5-a4e0-4a12a34bded6", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "89cfb6ad-5807-4ff4-9cca-1e6d32e49c2d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070151Z:80905f02-bda4-47e5-a4e0-4a12a34bded6" + }, + "ResponseBody": { + "name": "subnetxxx", + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/myvirtualnetwork/subnets/subnetxxx", + "etag": "W/\u00229f3d533a-317c-4cb4-994e-a9b5d667bc62\u0022", + "properties": { + "provisioningState": "Succeeded", + "addressPrefix": "10.0.0.0/24", + "delegations": [], + "privateEndpointNetworkPolicies": "Disabled", + "privateLinkServiceNetworkPolicies": "Enabled" + }, + "type": "Microsoft.Network/virtualNetworks/subnets" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Storage/storageAccounts/mystorageaccountxxx11?api-version=2021-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "70", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-storage/17.2.1 core-rest-pipeline/1.10.0 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "3b12b358-30f6-4ef8-b1e3-0be01968aab0" + }, + "RequestBody": { + "sku": { + "name": "Standard_GRS" + }, + "kind": "StorageV2", + "location": "eastus" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:01:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/e7282f20-5157-48ba-a61c-b6f7016d42bf?monitor=true\u0026api-version=2021-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "670d050a-48f1-44a2-bcd1-ac9c1ceffd46", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "e7282f20-5157-48ba-a61c-b6f7016d42bf", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070156Z:670d050a-48f1-44a2-bcd1-ac9c1ceffd46" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/e7282f20-5157-48ba-a61c-b6f7016d42bf?monitor=true\u0026api-version=2021-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-storage/17.2.1 core-rest-pipeline/1.10.0 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "da93cae7-7325-4127-b6bb-be345344bd3f" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:01:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/e7282f20-5157-48ba-a61c-b6f7016d42bf?monitor=true\u0026api-version=2021-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "955b389d-5484-4760-afa5-0ef81742ab93", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "edca0424-26d8-4352-876b-6f52955f3b48", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070157Z:955b389d-5484-4760-afa5-0ef81742ab93" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/e7282f20-5157-48ba-a61c-b6f7016d42bf?monitor=true\u0026api-version=2021-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-storage/17.2.1 core-rest-pipeline/1.10.0 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "f14f1c4b-393d-4d30-a742-761d28d263fa" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:01:57 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/e7282f20-5157-48ba-a61c-b6f7016d42bf?monitor=true\u0026api-version=2021-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "eddd145e-f431-424d-bad7-ffce37d72956", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "42f6103c-3dc6-437d-b6c5-330767da8c62", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070157Z:eddd145e-f431-424d-bad7-ffce37d72956" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Storage/locations/eastus/asyncoperations/e7282f20-5157-48ba-a61c-b6f7016d42bf?monitor=true\u0026api-version=2021-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-storage/17.2.1 core-rest-pipeline/1.10.0 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "77bd3dee-8608-4b93-889f-c82183ebd7cb" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json", + "Date": "Tue, 22 Nov 2022 07:02:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5deacdeb-5db1-4364-ae83-61e02b85cb46", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "cb9ca8a9-657e-4c08-b0b1-575b948e285d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070215Z:5deacdeb-5db1-4364-ae83-61e02b85cb46" + }, + "ResponseBody": { + "sku": { + "name": "Standard_GRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Storage/storageAccounts/mystorageaccountxxx11", + "name": "mystorageaccountxxx11", + "type": "Microsoft.Storage/storageAccounts", + "location": "eastus", + "tags": {}, + "properties": { + "keyCreationTime": { + "key1": "2022-11-22T07:01:54.8201252Z", + "key2": "2022-11-22T07:01:54.8201252Z" + }, + "privateEndpointConnections": [], + "minimumTlsVersion": "TLS1_0", + "allowBlobPublicAccess": true, + "networkAcls": { + "bypass": "AzureServices", + "virtualNetworkRules": [], + "ipRules": [], + "defaultAction": "Allow" + }, + "supportsHttpsTrafficOnly": true, + "encryption": { + "services": { + "file": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2022-11-22T07:01:54.8201252Z" + }, + "blob": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2022-11-22T07:01:54.8201252Z" + } + }, + "keySource": "Microsoft.Storage" + }, + "accessTier": "Hot", + "provisioningState": "Succeeded", + "creationTime": "2022-11-22T07:01:54.7107572Z", + "primaryEndpoints": { + "dfs": "https://mystorageaccountxxx11.dfs.core.windows.net/", + "web": "https://mystorageaccountxxx11.z13.web.core.windows.net/", + "blob": "https://mystorageaccountxxx11.blob.core.windows.net/", + "queue": "https://mystorageaccountxxx11.queue.core.windows.net/", + "table": "https://mystorageaccountxxx11.table.core.windows.net/", + "file": "https://mystorageaccountxxx11.file.core.windows.net/" + }, + "primaryLocation": "eastus", + "statusOfPrimary": "available", + "secondaryLocation": "westus", + "statusOfSecondary": "available" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "106", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "d8a91a09-676f-47aa-8004-a041b33c6672" + }, + "RequestBody": { + "location": "eastus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "sku": { + "name": "Standard", + "tier": "Standard" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "608b91ea-76cf-4753-88b4-2440b65aed5f", + "x-ms-ratelimit-remaining-subscription-resource-requests": "49", + "x-ms-request-id": "0228dd4a-2230-4495-8ee5-d41151c00bfc_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070220Z:608b91ea-76cf-4753-88b4-2440b65aed5f" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "4ed0f007-559a-49ec-9586-a3728532c55e" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ceef89f7-76be-42b0-89e2-22dea0442496", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "0340f581-aa89-445a-8c68-470c068d8836_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070221Z:ceef89f7-76be-42b0-89e2-22dea0442496" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "6e0169ea-bcad-4f25-b2b1-1b2346a0a7bc" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "70ccc4a6-50b5-481f-8bec-97e552f19672", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-request-id": "35b4af80-2937-42ac-9fec-d290a96249a9_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070221Z:70ccc4a6-50b5-481f-8bec-97e552f19672" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "7fa4af96-ba9c-4e8c-9e03-eb45216c6556" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6c6ca684-f5d3-4f55-9374-71ab36244965", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-request-id": "e22f151e-152c-438e-8502-f2f7fa3449bc_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070224Z:6c6ca684-f5d3-4f55-9374-71ab36244965" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "4915ee22-e184-4190-b4dc-0779759a53f3" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "97cbf246-e5d3-4fac-ae69-2f8f1214082b", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "ec7995b5-283a-4fb4-9421-ce2cc036872f_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070226Z:97cbf246-e5d3-4fac-ae69-2f8f1214082b" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "57f4c469-e514-4c5b-80c1-74ca35ec7e3e" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a2628ded-40f3-429f-b7cc-046e61e95a10", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "7aef030a-bfa5-4b00-8058-89a790f5043f_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070229Z:a2628ded-40f3-429f-b7cc-046e61e95a10" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "296f8659-9688-491e-8eba-54818d494bd1" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "97e0226b-e3e7-496e-b7f0-7bf1ee4de26c", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-request-id": "27bcb797-59bc-4ee9-b1e8-4f19c6e55392_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070232Z:97e0226b-e3e7-496e-b7f0-7bf1ee4de26c" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "5fbbd1b6-b344-4921-936f-428b7133fe0a" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "514eea00-1b51-493e-99bc-2e870bef605e", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "a896f62c-6131-4287-8d2d-f80d0ab83fcc_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070235Z:514eea00-1b51-493e-99bc-2e870bef605e" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "2da28b74-07ac-4645-88a7-8710edc582d7" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a2008eb5-90dc-47c3-aa7b-97b90d8c0f09", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "34654e50-505b-4226-bafe-1099029f5256_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070237Z:a2008eb5-90dc-47c3-aa7b-97b90d8c0f09" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "b97c4d4c-1d6c-468a-ba6a-2d4d28c32960" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0daa3ac5-7f91-4bf4-8fee-a269e7f35b40", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "6fab6aa7-13fc-488f-97ed-bf0a5400c752_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070240Z:0daa3ac5-7f91-4bf4-8fee-a269e7f35b40" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "27c6deb5-2d20-45ee-887d-7d7a12bd23fb" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "260372d8-8f6d-4bf1-b9c7-6eb02c88ee1f", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-request-id": "04e58ad5-539c-4470-b7fe-7020ee82a005_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070243Z:260372d8-8f6d-4bf1-b9c7-6eb02c88ee1f" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "e78f240c-7960-45d1-82b3-c2ca0f68957d" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f6194ec4-3ae2-4b6e-9d58-ac8b5b414e7d", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-request-id": "82b6ba7e-32af-41ba-90ab-461843fe1239_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070245Z:f6194ec4-3ae2-4b6e-9d58-ac8b5b414e7d" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "01cc75b2-0d94-452b-a438-120ebce3042f" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "418f3d0d-8b30-45fe-b01e-075ffd6fc4e8", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-request-id": "0100dfb4-0ee0-4a32-8c0f-335e97d2584c_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070248Z:418f3d0d-8b30-45fe-b01e-075ffd6fc4e8" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "a3338a17-4661-4afd-a760-c2bff9fdd463" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4e510fd6-428a-4309-96b2-938f85d3f960", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-request-id": "bb2de3bd-39ad-4347-b6df-d2d24ea5e075_M0CH3_M0CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070252Z:4e510fd6-428a-4309-96b2-938f85d3f960" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "37428ad0-2430-4e31-9e9b-003450dfb535" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a0923cfa-8c47-4f36-bff3-dc213e827b05", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-request-id": "38f70823-45f5-4c35-8292-a99a55f92204_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070255Z:a0923cfa-8c47-4f36-bff3-dc213e827b05" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "663ac44d-c8c7-408a-af57-198056f05c35" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c210d90f-b06a-4908-8373-b4f475145069", + "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-request-id": "968b5bc7-f725-45a5-971a-8e8f3f4b7702_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070257Z:c210d90f-b06a-4908-8373-b4f475145069" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "51ac03cc-c03c-4a5c-a30b-710903919ab8" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:02:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "92bb2820-f2e0-4a8b-8d50-32c434d8dcec", + "x-ms-ratelimit-remaining-subscription-reads": "11969", + "x-ms-request-id": "31a3416b-ddd4-481f-b660-1ca168647002_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070300Z:92bb2820-f2e0-4a8b-8d50-32c434d8dcec" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "47de9ebf-3c37-4e3c-a767-78c702921d0f" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:03:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c28bf328-d7da-47bb-8375-288f0b5a1995", + "x-ms-ratelimit-remaining-subscription-reads": "11968", + "x-ms-request-id": "20c0ab61-86af-4ada-ad71-b44c2cb44d84_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070303Z:c28bf328-d7da-47bb-8375-288f0b5a1995" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "56f68800-1072-4cda-9383-06d82bd20db7" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:03:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f45e47a3-b0ff-4744-8023-42313dc1b712", + "x-ms-ratelimit-remaining-subscription-reads": "11967", + "x-ms-request-id": "a57e8b93-1add-41af-8ae4-366bd84380d4_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070305Z:f45e47a3-b0ff-4744-8023-42313dc1b712" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "785a2cda-e166-440c-aa0e-49cfbeed1522" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:03:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fa88757d-9bd3-4b2c-b2e1-7359c14a8ced", + "x-ms-ratelimit-remaining-subscription-reads": "11966", + "x-ms-request-id": "e3bc42be-f99c-4f70-b19f-66bb259e9e1a_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070308Z:fa88757d-9bd3-4b2c-b2e1-7359c14a8ced" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "5ab83e53-a6fb-4adc-a1eb-fac6ee546227" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:03:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "60ef62a6-226d-44c3-8325-20dff0b5ba26", + "x-ms-ratelimit-remaining-subscription-reads": "11965", + "x-ms-request-id": "0f80a511-b4aa-4447-a455-5245bafbc4de_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070311Z:60ef62a6-226d-44c3-8325-20dff0b5ba26" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:02:18.173Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "93957660-93ec-4648-b704-a0d0de74e72d" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:03:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6eac193c-51af-4bef-bfd2-8da75652e266", + "x-ms-ratelimit-remaining-subscription-reads": "11964", + "x-ms-request-id": "26a048da-b760-444a-bf9f-0a02a999f656_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070314Z:6eac193c-51af-4bef-bfd2-8da75652e266" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Succeeded", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:03:11.083Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Active" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_namespaces_delete_test.js b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_namespaces_delete_test.js deleted file mode 100644 index 447272bf38b1..000000000000 --- a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_namespaces_delete_test.js +++ /dev/null @@ -1,2221 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "1cbd38f5971138f0e262e8ef545d8b30"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'cc3cd611-5a11-4fd8-9a15-7b1014100200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Agksl8ibdedBsBu4gg_aumU; expires=Sat, 08-Jan-2022 06:36:07 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrNYvm7IJu-RwaIzMwJguHuSU9b8i7aruWxOGoawGf6lI6uoLGZiReOvBjJbFHIRqHNDruTWQg4iQ3bA9wXR9uAtKLvzcaKAEyROXN6HiBRBJBcX7grbaVWSKjerbh1vudOQhe3KzqgAGeMRwdwUsbsTUpt5oD3HspCr6qdYR0T5QgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:36:07 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '311b60c9-0dff-4e90-abb2-27282d870200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AnbxfVaBSdtAl3kRT1UB7X4; expires=Sat, 08-Jan-2022 06:36:07 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOwhN-SuL91jvQFpi52OTJXBZ2js3PrRAznhuwmthPlqKPV8FVZwhU5IQFn31GBDAjz3wpX1AtgtN341oLL9_XNycI3yRPR_LLAIdnEixLoEDUkcq25_zTwxHxeCgSunHlonvqiOUX3Dak-KabHuLODx3fmKXVwYz9IU5Rn5mpMcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:36:07 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=132a309a-14e2-4a4e-83e6-a03a4af3f0ff&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'cc3cd611-5a11-4fd8-9a15-7b1017100200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=ApMerg2_X_pAp5xRp6sZ0M4WPr5BAQAAANeaQ9kOAAAA; expires=Sat, 08-Jan-2022 06:36:07 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 06:36:07 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'x-ms-request-id', - '134d0bac-b69c-4cbd-8c3d-50684d217578_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-deletes', - '14998', - 'x-ms-correlation-request-id', - '3fcf72d4-d9ff-421b-ae1a-cf7d70236055', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063609Z:3fcf72d4-d9ff-421b-ae1a-cf7d70236055', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:09 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'f556c990-ba34-4a94-b0ac-b7950dd9fbef_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11974', - 'x-ms-correlation-request-id', - '65e43ce2-ffea-4551-9275-eafbe7d57f3e', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063609Z:65e43ce2-ffea-4551-9275-eafbe7d57f3e', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:09 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '279fc5c6-23c0-4b9e-bdaa-b17064b9a57e_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11973', - 'x-ms-correlation-request-id', - 'd9a74278-f304-42aa-936b-1e7093aed947', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063610Z:d9a74278-f304-42aa-936b-1e7093aed947', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:09 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '6dcc1fd2-0b08-4557-87fd-8cfc0c0fcb8e_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11972', - 'x-ms-correlation-request-id', - 'c0ea6572-6fdc-44eb-bff1-ddbe5e61701d', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063610Z:c0ea6572-6fdc-44eb-bff1-ddbe5e61701d', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:10 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '70b8a73f-0773-4125-821f-259f1ea1caf9_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11971', - 'x-ms-correlation-request-id', - '628047ab-7534-49cc-a21e-579b0bc4f9f5', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063610Z:628047ab-7534-49cc-a21e-579b0bc4f9f5', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:10 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '08022ec4-ef1c-45de-9195-b3b7fd2191f8_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11970', - 'x-ms-correlation-request-id', - '5550df56-d22a-487a-bc6a-4c84361bd942', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063611Z:5550df56-d22a-487a-bc6a-4c84361bd942', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:11 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'b6ce5726-0d80-4c4a-a7f5-a10dd72923c6_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11969', - 'x-ms-correlation-request-id', - '9ee5f230-ab8b-4612-9c74-5be09755df71', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063611Z:9ee5f230-ab8b-4612-9c74-5be09755df71', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:11 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '1d863e6e-36f1-44d3-9a41-9eac4e6a7edb_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11968', - 'x-ms-correlation-request-id', - '9425ef1f-d9d8-4d48-b870-1c1c280a67fd', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063612Z:9425ef1f-d9d8-4d48-b870-1c1c280a67fd', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:11 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '5fbc66aa-0788-41d6-ab36-f07326945c27_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11967', - 'x-ms-correlation-request-id', - '1d217fcf-e736-4eac-be77-2a49b3983bfc', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063612Z:1d217fcf-e736-4eac-be77-2a49b3983bfc', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:12 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '12166529-338a-4756-a33d-f36140193826_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11966', - 'x-ms-correlation-request-id', - '8b0835c7-a1f3-4b58-9e2b-6aaac687fa11', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063613Z:8b0835c7-a1f3-4b58-9e2b-6aaac687fa11', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:13 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'bbd267bb-69a5-436f-bfd9-0bf08bd43140_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11965', - 'x-ms-correlation-request-id', - '3eeff8d1-f7f2-42f4-be88-a24628faa5b5', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063613Z:3eeff8d1-f7f2-42f4-be88-a24628faa5b5', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:13 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'fd5e1322-ebc6-4f62-98eb-d8136ad30f0f_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11964', - 'x-ms-correlation-request-id', - 'bc72d910-2654-43fa-b3a5-0c9b9b2fc2cf', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063614Z:bc72d910-2654-43fa-b3a5-0c9b9b2fc2cf', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:14 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '1fe2525f-7a75-4ef5-9d28-f8bcd0f972b8_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11963', - 'x-ms-correlation-request-id', - 'ebc36fe8-140d-4597-9230-c1a9cbab9623', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063614Z:ebc36fe8-140d-4597-9230-c1a9cbab9623', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:14 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'ff741744-e032-4694-8e1a-5c13ffb55982_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11962', - 'x-ms-correlation-request-id', - 'e118c8eb-00f8-4ba8-8214-e693ffb31707', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063615Z:e118c8eb-00f8-4ba8-8214-e693ffb31707', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:14 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '50e8bdb3-36e9-4ba1-95ea-0377129dea16_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11961', - 'x-ms-correlation-request-id', - '293eb174-bdfd-4aec-8656-84aa1bf2594e', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063615Z:293eb174-bdfd-4aec-8656-84aa1bf2594e', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:15 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '1428c613-3a40-4757-ab50-e7f143bacf3f_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11960', - 'x-ms-correlation-request-id', - 'fdac699e-76bf-483c-bffa-ee3180ad0272', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063616Z:fdac699e-76bf-483c-bffa-ee3180ad0272', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:15 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '37dbaf09-62a2-49b7-b85a-1b3d005753f1_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11959', - 'x-ms-correlation-request-id', - 'bd0b39b9-3966-49e7-889e-7d117163fd51', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063616Z:bd0b39b9-3966-49e7-889e-7d117163fd51', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:16 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '89c86a3b-adbe-4017-9796-26919515bb08_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11958', - 'x-ms-correlation-request-id', - '7c1717fa-7b0e-435f-baf0-d095ca4c5ed3', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063617Z:7c1717fa-7b0e-435f-baf0-d095ca4c5ed3', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:16 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '43eddb44-e66b-498e-a846-a398865dc8a3_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11957', - 'x-ms-correlation-request-id', - '82f34ed0-28d2-489a-8e96-c29b17228c6e', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063617Z:82f34ed0-28d2-489a-8e96-c29b17228c6e', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:17 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'cd6e8338-ff4c-475e-ac38-3530dbef85d5_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11956', - 'x-ms-correlation-request-id', - '93e49f08-2a1c-48d5-ab88-714e102ed383', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063617Z:93e49f08-2a1c-48d5-ab88-714e102ed383', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:17 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'adedb270-9047-4ea3-9371-1b2f379ed8fd_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11955', - 'x-ms-correlation-request-id', - '816605cb-e78d-4844-ba29-d03a6c780473', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063618Z:816605cb-e78d-4844-ba29-d03a6c780473', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:17 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '9a23095b-13b8-48bb-afd7-56ef64e4a762_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11954', - 'x-ms-correlation-request-id', - '519bfef7-1e87-451f-bd6a-1141084d5d14', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063618Z:519bfef7-1e87-451f-bd6a-1141084d5d14', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:18 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '07f2dd82-78e0-4bf1-ac1a-0bd54b7bda54_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11953', - 'x-ms-correlation-request-id', - 'b9f9af49-3f2c-4be3-8f76-581c55cbecb4', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063619Z:b9f9af49-3f2c-4be3-8f76-581c55cbecb4', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:18 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '045aee47-dc3c-4879-a1bf-9ba51a152ff8_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11952', - 'x-ms-correlation-request-id', - '5ee2a197-60f8-47e4-a067-4ff666fd8cf3', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063619Z:5ee2a197-60f8-47e4-a067-4ff666fd8cf3', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:19 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '38c80c57-a374-4a2d-a735-97da11fec208_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11951', - 'x-ms-correlation-request-id', - '8f237a1e-101e-4c37-b490-bf96d8634931', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063619Z:8f237a1e-101e-4c37-b490-bf96d8634931', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:19 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '042b295a-0734-498e-b3cc-e8d4426049f4_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11950', - 'x-ms-correlation-request-id', - 'bcb0a4c7-e97f-467d-a1e8-040ca40543d2', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063620Z:bcb0a4c7-e97f-467d-a1e8-040ca40543d2', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:20 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'b0ce7833-7860-4d42-bc70-41bba15a7c2c_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11949', - 'x-ms-correlation-request-id', - '71a48f24-d716-43f1-bdcb-cb141b779f8f', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063621Z:71a48f24-d716-43f1-bdcb-cb141b779f8f', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:20 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '24dd6b3f-2206-403c-be79-e7801bd42042_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11948', - 'x-ms-correlation-request-id', - 'aba9b6ea-bd83-4d67-9935-123ba00513b0', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063621Z:aba9b6ea-bd83-4d67-9935-123ba00513b0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:21 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'dd19ecf5-123d-4829-9cb4-50c5b63c1a6e_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11947', - 'x-ms-correlation-request-id', - '647d03cc-d122-42eb-9efc-f5022c76aff9', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063622Z:647d03cc-d122-42eb-9efc-f5022c76aff9', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:21 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '0cabbc9f-d1e1-4619-88c3-ed28c0802035_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11946', - 'x-ms-correlation-request-id', - '61b84793-89dd-4164-abd0-5f3c94630bfa', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063622Z:61b84793-89dd-4164-abd0-5f3c94630bfa', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:22 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '4b890fed-2c71-4f25-b187-9bc1e4a00d38_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11945', - 'x-ms-correlation-request-id', - 'd5ddd75c-0417-402f-90f3-d137c4be465d', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063623Z:d5ddd75c-0417-402f-90f3-d137c4be465d', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:22 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '7284739b-8f79-44ea-a030-6d8c6e6a5a5f_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11944', - 'x-ms-correlation-request-id', - '5399eee1-691f-4b4f-9f38-0fac70674428', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063623Z:5399eee1-691f-4b4f-9f38-0fac70674428', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:23 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'bb07d809-9db9-4ac0-baf4-9c0f6cde1c54_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11943', - 'x-ms-correlation-request-id', - '6ca6ea2c-0b60-492f-8bd8-f0e938756d10', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063623Z:6ca6ea2c-0b60-492f-8bd8-f0e938756d10', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:23 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '0326a5b8-958e-4973-83c4-b3be56941851_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11942', - 'x-ms-correlation-request-id', - 'afaae07b-b8dc-448b-88ae-3bc3246ebcb6', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063624Z:afaae07b-b8dc-448b-88ae-3bc3246ebcb6', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:24 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'c0562a7f-3f0d-47a5-aa00-9303e437730d_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11941', - 'x-ms-correlation-request-id', - 'c010ac12-b072-490d-9431-3bee96e32b58', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063624Z:c010ac12-b072-490d-9431-3bee96e32b58', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:24 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '4809c688-fb15-4888-bd2c-003b3a4455be_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11940', - 'x-ms-correlation-request-id', - '24b0cba0-8be5-449d-bc67-d18f7331886f', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063625Z:24b0cba0-8be5-449d-bc67-d18f7331886f', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:24 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '08ae3ab0-20df-4d0d-a079-3e91bed3bdff_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11939', - 'x-ms-correlation-request-id', - 'a220962f-d400-4e02-88c9-df150efccede', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063625Z:a220962f-d400-4e02-88c9-df150efccede', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:25 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'd28dcc54-1f4c-4cc1-b0db-37dc436bb3c8_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11938', - 'x-ms-correlation-request-id', - '1ab6c1ec-463b-4727-ab85-86ba4f984842', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063626Z:1ab6c1ec-463b-4727-ab85-86ba4f984842', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:25 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '627ae464-8e8e-4a43-9550-61e8086e1596_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11937', - 'x-ms-correlation-request-id', - 'f6b7e8b0-b3e6-41a8-b93a-71665420afc4', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063626Z:f6b7e8b0-b3e6-41a8-b93a-71665420afc4', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:26 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '42938d5f-f6bb-487e-bb52-fb7716615822_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11936', - 'x-ms-correlation-request-id', - 'b9966c4f-0c5b-4154-a7e5-b6c8d39e605c', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063627Z:b9966c4f-0c5b-4154-a7e5-b6c8d39e605c', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:26 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '847bee18-6674-47bd-9fb3-2e6bf4068cf1_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11935', - 'x-ms-correlation-request-id', - 'f9a5bda9-a2dd-4626-a7ab-a6dd1600f1ca', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063627Z:f9a5bda9-a2dd-4626-a7ab-a6dd1600f1ca', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:27 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'f3c4b56f-e878-41e1-a1c1-7a105f3603da_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11934', - 'x-ms-correlation-request-id', - 'ae4ff105-0ff5-455f-9f15-cd0103eb750c', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063628Z:ae4ff105-0ff5-455f-9f15-cd0103eb750c', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:28 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '34dee079-0458-4207-9b98-a797616c7a7e_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11933', - 'x-ms-correlation-request-id', - '4a76197c-e2a1-4b15-b3ae-deb5b353e1d8', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063629Z:4a76197c-e2a1-4b15-b3ae-deb5b353e1d8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:28 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '097e4788-b983-4b49-aeb4-b052a383319b_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11932', - 'x-ms-correlation-request-id', - '7068aeb0-f946-4d51-8796-13951d7133a4', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063629Z:7068aeb0-f946-4d51-8796-13951d7133a4', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:29 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '679d9ef2-540f-4092-af0e-6f5235c5088e_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11931', - 'x-ms-correlation-request-id', - 'b108516b-b2ee-4b96-829d-63625fd79caa', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063629Z:b108516b-b2ee-4b96-829d-63625fd79caa', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:29 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '392a9dba-2d9e-47b5-8e41-e577c0bf9219_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11930', - 'x-ms-correlation-request-id', - '03339911-6324-47fa-bd0b-f4b7ef882568', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063630Z:03339911-6324-47fa-bd0b-f4b7ef882568', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:30 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '07b38de9-714c-4b22-8b21-b7bf29827278_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11929', - 'x-ms-correlation-request-id', - '1d51a1dc-c6c3-419c-8bab-23374e24ac2c', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063631Z:1d51a1dc-c6c3-419c-8bab-23374e24ac2c', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:30 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '29396c5e-c586-4c16-9a5b-5275342b71a6_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11928', - 'x-ms-correlation-request-id', - 'd80de8ed-7763-4242-a05d-47bde0e4a561', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063631Z:d80de8ed-7763-4242-a05d-47bde0e4a561', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:31 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '3337ef71-f308-4434-861d-19502b5c516c_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11927', - 'x-ms-correlation-request-id', - 'ee0141a0-2fbb-461d-9789-610571c47145', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063632Z:ee0141a0-2fbb-461d-9789-610571c47145', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:31 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'c52b3f0d-fe40-4ff2-b2b0-af8f11399240_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11926', - 'x-ms-correlation-request-id', - 'ed3839fc-f259-4f87-be36-62054ebb1833', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063632Z:ed3839fc-f259-4f87-be36-62054ebb1833', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:32 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.EventHub/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-09T06:35:02.677Z","updatedAt":"2021-12-09T06:36:09.033Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '728', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '69980126-7651-4efa-ba4d-456c3275986e_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11925', - 'x-ms-correlation-request-id', - 'b41ed08e-0f42-4075-a691-e9d38e9c6db0', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063632Z:b41ed08e-0f42-4075-a691-e9d38e9c6db0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:32 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(200, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Expires', - '-1', - 'x-ms-request-id', - '965b2ec4-d694-4076-9afa-1317998f9fe3_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11924', - 'x-ms-correlation-request-id', - '6f08e450-476f-4ffe-9032-22a5ebac8a37', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063633Z:6f08e450-476f-4ffe-9032-22a5ebac8a37', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:32 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bdefff","92ff0742ea40440c000000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - 'f0b8e279-baf1-4786-aec2-4da555148f1c_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11923', - 'x-ms-correlation-request-id', - 'a3c6231f-c707-43d6-89ea-cf9623f10627', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T063633Z:a3c6231f-c707-43d6-89ea-cf9623f10627', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 06:36:33 GMT' -]); diff --git a/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_namespaces_delete_test.json b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_namespaces_delete_test.json new file mode 100644 index 000000000000..622be14829e0 --- /dev/null +++ b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_namespaces_delete_test.json @@ -0,0 +1,236 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "0c6ec724-4d5a-4a23-9719-ad6345176d4a" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Tue, 22 Nov 2022 07:03:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "18a806e1-f16f-45ce-b4ab-ecb7ad5cbfa9", + "x-ms-ratelimit-remaining-subscription-deletes": "14996", + "x-ms-request-id": "ac7fce2e-0954-4807-a9b1-e36fdc55358b_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070329Z:18a806e1-f16f-45ce-b4ab-ecb7ad5cbfa9" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "b6b14cfb-5cdb-472f-8e14-5f1bcf2f9c12" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "698", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:03:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01", + "Pragma": "no-cache", + "Retry-After": "59", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3b9233b2-66c4-414d-9bee-ee31bf669927", + "x-ms-ratelimit-remaining-subscription-reads": "11960", + "x-ms-request-id": "b2234419-ca75-4406-80df-693d7f59994e_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070330Z:3b9233b2-66c4-414d-9bee-ee31bf669927" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Succeeded", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:03:29.607Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Removing" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "651903c3-a897-49d1-8fdf-44c84ec93bd5" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "698", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:03:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01", + "Pragma": "no-cache", + "Retry-After": "50", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "165fc6ad-526f-4295-8b3f-a63204588f56", + "x-ms-ratelimit-remaining-subscription-reads": "11959", + "x-ms-request-id": "03aedb2d-101d-40ab-b2d3-f776ebf8fac9_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070331Z:165fc6ad-526f-4295-8b3f-a63204588f56" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.EventHub/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "disableLocalAuth": false, + "zoneRedundant": false, + "isAutoInflateEnabled": false, + "maximumThroughputUnits": 0, + "kafkaEnabled": true, + "provisioningState": "Succeeded", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-11-22T07:02:18.173Z", + "updatedAt": "2022-11-22T07:03:29.607Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Removing" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "1411c01d-fa52-4ae8-b4b0-13f5dd7d2c10" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Tue, 22 Nov 2022 07:04:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d8bf32a6-593d-4f40-83d0-805200fa1012", + "x-ms-ratelimit-remaining-subscription-reads": "11958", + "x-ms-request-id": "fc2f90c4-bc4d-4683-ad33-c7423ecbbba1_M8CH3_M8CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070422Z:d8bf32a6-593d-4f40-83d0-805200fa1012" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventHub/namespaces?api-version=2021-11-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-eventhub/5.1.0 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "a0817712-6b1c-41ee-ac17-be6f02c14468" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Nov 2022 07:04:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "51173749-c16f-455a-85d5-3cba2c1f70d5", + "x-ms-ratelimit-remaining-subscription-reads": "11957", + "x-ms-request-id": "b0c01880-d09c-4227-9dac-3ebb9bad0ba8_M8CH3_M8CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20221122T070423Z:51173749-c16f-455a-85d5-3cba2c1f70d5" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": {} +} diff --git a/sdk/eventhub/arm-eventhub/recordings/node/my_test/recording_sample_test.js b/sdk/eventhub/arm-eventhub/recordings/node/my_test/recording_sample_test.js deleted file mode 100644 index 0f6ecb857acf..000000000000 --- a/sdk/eventhub/arm-eventhub/recordings/node/my_test/recording_sample_test.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "7a6be38bb8cb644d64b4094802301751"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/eventhub/arm-eventhub/review/arm-eventhub.api.md b/sdk/eventhub/arm-eventhub/review/arm-eventhub.api.md index 27a035d7eb76..37ec5ca7961b 100644 --- a/sdk/eventhub/arm-eventhub/review/arm-eventhub.api.md +++ b/sdk/eventhub/arm-eventhub/review/arm-eventhub.api.md @@ -25,14 +25,14 @@ export interface AccessKeys { export type AccessRights = string; // @public -export type ArmDisasterRecovery = ProxyResource & { - readonly systemData?: SystemData; - readonly provisioningState?: ProvisioningStateDR; - partnerNamespace?: string; +export interface ArmDisasterRecovery extends ProxyResource { alternateName?: string; - readonly role?: RoleDisasterRecovery; + partnerNamespace?: string; readonly pendingReplicationOperationsCount?: number; -}; + readonly provisioningState?: ProvisioningStateDR; + readonly role?: RoleDisasterRecovery; + readonly systemData?: SystemData; +} // @public export interface ArmDisasterRecoveryListResult { @@ -41,10 +41,10 @@ export interface ArmDisasterRecoveryListResult { } // @public -export type AuthorizationRule = ProxyResource & { - readonly systemData?: SystemData; +export interface AuthorizationRule extends ProxyResource { rights?: AccessRights[]; -}; + readonly systemData?: SystemData; +} // @public export interface AuthorizationRuleListResult { @@ -85,14 +85,14 @@ export interface CheckNameAvailabilityResult { } // @public -export type Cluster = TrackedResource & { - sku?: ClusterSku; - readonly systemData?: SystemData; +export interface Cluster extends TrackedResource { readonly createdAt?: string; - readonly updatedAt?: string; readonly metricId?: string; + sku?: ClusterSku; readonly status?: string; -}; + readonly systemData?: SystemData; + readonly updatedAt?: string; +} // @public export interface ClusterListResult { @@ -231,12 +231,12 @@ export interface ConnectionState { } // @public -export type ConsumerGroup = ProxyResource & { - readonly systemData?: SystemData; +export interface ConsumerGroup extends ProxyResource { readonly createdAt?: Date; + readonly systemData?: SystemData; readonly updatedAt?: Date; userMetadata?: string; -}; +} // @public export interface ConsumerGroupListResult { @@ -395,26 +395,26 @@ export interface DisasterRecoveryConfigsListOptionalParams extends coreClient.Op export type DisasterRecoveryConfigsListResponse = ArmDisasterRecoveryListResult; // @public -export type EHNamespace = TrackedResource & { - sku?: Sku; +export interface EHNamespace extends TrackedResource { + alternateName?: string; + clusterArmId?: string; + readonly createdAt?: Date; + disableLocalAuth?: boolean; + encryption?: Encryption; identity?: Identity; - readonly systemData?: SystemData; + isAutoInflateEnabled?: boolean; + kafkaEnabled?: boolean; + maximumThroughputUnits?: number; + readonly metricId?: string; + privateEndpointConnections?: PrivateEndpointConnection[]; readonly provisioningState?: string; + readonly serviceBusEndpoint?: string; + sku?: Sku; readonly status?: string; - readonly createdAt?: Date; + readonly systemData?: SystemData; readonly updatedAt?: Date; - readonly serviceBusEndpoint?: string; - clusterArmId?: string; - readonly metricId?: string; - isAutoInflateEnabled?: boolean; - maximumThroughputUnits?: number; - kafkaEnabled?: boolean; zoneRedundant?: boolean; - encryption?: Encryption; - privateEndpointConnections?: PrivateEndpointConnection[]; - disableLocalAuth?: boolean; - alternateName?: string; -}; +} // @public export interface EHNamespaceIdContainer { @@ -469,16 +469,16 @@ export interface ErrorResponse { } // @public -export type Eventhub = ProxyResource & { - readonly systemData?: SystemData; - readonly partitionIds?: string[]; +export interface Eventhub extends ProxyResource { + captureDescription?: CaptureDescription; readonly createdAt?: Date; - readonly updatedAt?: Date; messageRetentionInDays?: number; partitionCount?: number; + readonly partitionIds?: string[]; status?: EntityStatus; - captureDescription?: CaptureDescription; -}; + readonly systemData?: SystemData; + readonly updatedAt?: Date; +} // @public export interface EventHubListResult { @@ -620,6 +620,9 @@ export interface EventHubsRegenerateKeysOptionalParams extends coreClient.Operat // @public export type EventHubsRegenerateKeysResponse = AccessKeys; +// @public +export function getContinuationToken(page: unknown): string | undefined; + // @public export interface Identity { readonly principalId?: string; @@ -645,125 +648,89 @@ export interface KeyVaultProperties { // @public export enum KnownAccessRights { - // (undocumented) Listen = "Listen", - // (undocumented) Manage = "Manage", - // (undocumented) Send = "Send" } // @public export enum KnownClusterSkuName { - // (undocumented) Dedicated = "Dedicated" } // @public export enum KnownCreatedByType { - // (undocumented) Application = "Application", - // (undocumented) Key = "Key", - // (undocumented) ManagedIdentity = "ManagedIdentity", - // (undocumented) User = "User" } // @public export enum KnownDefaultAction { - // (undocumented) Allow = "Allow", - // (undocumented) Deny = "Deny" } // @public export enum KnownEndPointProvisioningState { - // (undocumented) Canceled = "Canceled", - // (undocumented) Creating = "Creating", - // (undocumented) Deleting = "Deleting", - // (undocumented) Failed = "Failed", - // (undocumented) Succeeded = "Succeeded", - // (undocumented) Updating = "Updating" } // @public export enum KnownKeyType { - // (undocumented) PrimaryKey = "PrimaryKey", - // (undocumented) SecondaryKey = "SecondaryKey" } // @public export enum KnownNetworkRuleIPAction { - // (undocumented) Allow = "Allow" } // @public export enum KnownPrivateLinkConnectionStatus { - // (undocumented) Approved = "Approved", - // (undocumented) Disconnected = "Disconnected", - // (undocumented) Pending = "Pending", - // (undocumented) Rejected = "Rejected" } // @public export enum KnownPublicNetworkAccessFlag { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownSchemaCompatibility { - // (undocumented) Backward = "Backward", - // (undocumented) Forward = "Forward", - // (undocumented) None = "None" } // @public export enum KnownSchemaType { - // (undocumented) Avro = "Avro", - // (undocumented) Unknown = "Unknown" } // @public export enum KnownSkuName { - // (undocumented) Basic = "Basic", - // (undocumented) Premium = "Premium", - // (undocumented) Standard = "Standard" } // @public export enum KnownSkuTier { - // (undocumented) Basic = "Basic", - // (undocumented) Premium = "Premium", - // (undocumented) Standard = "Standard" } @@ -927,14 +894,14 @@ export type NamespacesUpdateResponse = EHNamespace; export type NetworkRuleIPAction = string; // @public -export type NetworkRuleSet = ProxyResource & { - readonly systemData?: SystemData; - trustedServiceAccessEnabled?: boolean; +export interface NetworkRuleSet extends ProxyResource { defaultAction?: DefaultAction; - virtualNetworkRules?: NWRuleSetVirtualNetworkRules[]; ipRules?: NWRuleSetIpRules[]; publicNetworkAccess?: PublicNetworkAccessFlag; -}; + readonly systemData?: SystemData; + trustedServiceAccessEnabled?: boolean; + virtualNetworkRules?: NWRuleSetVirtualNetworkRules[]; +} // @public export interface NetworkRuleSetListResult { @@ -1002,12 +969,12 @@ export interface PrivateEndpoint { } // @public -export type PrivateEndpointConnection = ProxyResource & { - readonly systemData?: SystemData; +export interface PrivateEndpointConnection extends ProxyResource { privateEndpoint?: PrivateEndpoint; privateLinkServiceConnectionState?: ConnectionState; provisioningState?: EndPointProvisioningState; -}; + readonly systemData?: SystemData; +} // @public export interface PrivateEndpointConnectionListResult { @@ -1123,17 +1090,19 @@ export type RoleDisasterRecovery = "Primary" | "PrimaryNotReplicating" | "Second export type SchemaCompatibility = string; // @public -export type SchemaGroup = ProxyResource & { - readonly systemData?: SystemData; - readonly updatedAtUtc?: Date; +export interface SchemaGroup extends ProxyResource { readonly createdAtUtc?: Date; readonly eTag?: string; groupProperties?: { [propertyName: string]: string; }; + // (undocumented) schemaCompatibility?: SchemaCompatibility; + // (undocumented) schemaType?: SchemaType; -}; + readonly systemData?: SystemData; + readonly updatedAtUtc?: Date; +} // @public export interface SchemaGroupListResult { @@ -1220,12 +1189,12 @@ export interface SystemData { } // @public -export type TrackedResource = Resource & { +export interface TrackedResource extends Resource { location?: string; tags?: { [propertyName: string]: string; }; -}; +} // @public export type UnavailableReason = "None" | "InvalidName" | "SubscriptionIsDisabled" | "NameInUse" | "NameInLockdown" | "TooManyNamespaceInCurrentSubscription"; diff --git a/sdk/eventhub/arm-eventhub/samples/v5/typescript/package.json b/sdk/eventhub/arm-eventhub/samples/v5/typescript/package.json index 3a62d6e77033..7c82c2c925cf 100644 --- a/sdk/eventhub/arm-eventhub/samples/v5/typescript/package.json +++ b/sdk/eventhub/arm-eventhub/samples/v5/typescript/package.json @@ -35,7 +35,7 @@ }, "devDependencies": { "@types/node": "^14.0.0", - "typescript": "~4.4.0", + "typescript": "~4.8.0", "rimraf": "latest" } } diff --git a/sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts b/sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts index 7eb6f5c69daa..8c42d4a6ed58 100644 --- a/sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts +++ b/sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts @@ -8,6 +8,11 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { + PipelineRequest, + PipelineResponse, + SendRequest +} from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { ClustersImpl, @@ -68,47 +73,53 @@ export class EventHubManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-eventhub/5.0.2`; + const packageDetails = `azsdk-js-arm-eventhub/5.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`; - if (!options.credentialScopes) { - options.credentialScopes = ["https://management.azure.com/.default"]; - } const optionsWithDefaults = { ...defaults, ...options, userAgentOptions: { userAgentPrefix }, - baseUri: + endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com" }; super(optionsWithDefaults); + let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); - const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( + bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName ); - if (!bearerTokenAuthenticationPolicyFound) { - this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName - }); - this.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - scopes: `${optionsWithDefaults.baseUri}/.default`, - challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) - ); - } + } + if ( + !options || + !options.pipeline || + options.pipeline.getOrderedPolicies().length == 0 || + !bearerTokenAuthenticationPolicyFound + ) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: credentials, + scopes: + optionsWithDefaults.credentialScopes ?? + `${optionsWithDefaults.endpoint}/.default`, + challengeCallbacks: { + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge + } + }) + ); } // Parameter assignments this.subscriptionId = subscriptionId; @@ -126,6 +137,35 @@ export class EventHubManagementClient extends coreClient.ServiceClient { this.disasterRecoveryConfigs = new DisasterRecoveryConfigsImpl(this); this.consumerGroups = new ConsumerGroupsImpl(this); this.schemaRegistry = new SchemaRegistryImpl(this); + this.addCustomApiVersionPolicy(options.apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + } + }; + this.pipeline.addPolicy(apiVersionPolicy); } clusters: Clusters; diff --git a/sdk/eventhub/arm-eventhub/src/index.ts b/sdk/eventhub/arm-eventhub/src/index.ts index 32b41596414b..65cfcfcb81e9 100644 --- a/sdk/eventhub/arm-eventhub/src/index.ts +++ b/sdk/eventhub/arm-eventhub/src/index.ts @@ -7,6 +7,7 @@ */ /// +export { getContinuationToken } from "./pagingHelper"; export * from "./models"; export { EventHubManagementClient } from "./eventHubManagementClient"; export * from "./operationsInterfaces"; diff --git a/sdk/eventhub/arm-eventhub/src/models/index.ts b/sdk/eventhub/arm-eventhub/src/models/index.ts index 1c3a92e8e239..e9ece368b526 100644 --- a/sdk/eventhub/arm-eventhub/src/models/index.ts +++ b/sdk/eventhub/arm-eventhub/src/models/index.ts @@ -513,15 +513,15 @@ export interface SchemaGroupListResult { } /** Definition of resource. */ -export type TrackedResource = Resource & { +export interface TrackedResource extends Resource { /** Resource location. */ location?: string; /** Resource tags. */ tags?: { [propertyName: string]: string }; -}; +} /** Properties of the PrivateEndpointConnection. */ -export type PrivateEndpointConnection = ProxyResource & { +export interface PrivateEndpointConnection extends ProxyResource { /** * The system meta data relating to this resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -533,10 +533,10 @@ export type PrivateEndpointConnection = ProxyResource & { privateLinkServiceConnectionState?: ConnectionState; /** Provisioning state of the Private Endpoint Connection. */ provisioningState?: EndPointProvisioningState; -}; +} /** Single item in List or Get Event Hub operation */ -export type Eventhub = ProxyResource & { +export interface Eventhub extends ProxyResource { /** * The system meta data relating to this resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -565,10 +565,10 @@ export type Eventhub = ProxyResource & { status?: EntityStatus; /** Properties of capture description */ captureDescription?: CaptureDescription; -}; +} /** Single item in List or Get Alias(Disaster Recovery configuration) operation */ -export type ArmDisasterRecovery = ProxyResource & { +export interface ArmDisasterRecovery extends ProxyResource { /** * The system meta data relating to this resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -593,10 +593,10 @@ export type ArmDisasterRecovery = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly pendingReplicationOperationsCount?: number; -}; +} /** Description of topic resource. */ -export type NetworkRuleSet = ProxyResource & { +export interface NetworkRuleSet extends ProxyResource { /** * The system meta data relating to this resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -612,10 +612,10 @@ export type NetworkRuleSet = ProxyResource & { ipRules?: NWRuleSetIpRules[]; /** This determines if traffic is allowed over public network. By default it is enabled. */ publicNetworkAccess?: PublicNetworkAccessFlag; -}; +} /** Single item in a List or Get AuthorizationRule operation */ -export type AuthorizationRule = ProxyResource & { +export interface AuthorizationRule extends ProxyResource { /** * The system meta data relating to this resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -623,10 +623,10 @@ export type AuthorizationRule = ProxyResource & { readonly systemData?: SystemData; /** The rights associated with the rule. */ rights?: AccessRights[]; -}; +} /** Single item in List or Get Consumer group operation */ -export type ConsumerGroup = ProxyResource & { +export interface ConsumerGroup extends ProxyResource { /** * The system meta data relating to this resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -644,10 +644,10 @@ export type ConsumerGroup = ProxyResource & { readonly updatedAt?: Date; /** User Metadata is a placeholder to store user-defined string data with maximum length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information also user-defined configuration settings can be stored. */ userMetadata?: string; -}; +} /** Single item in List or Get Schema Group operation */ -export type SchemaGroup = ProxyResource & { +export interface SchemaGroup extends ProxyResource { /** * The system meta data relating to this resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -672,10 +672,10 @@ export type SchemaGroup = ProxyResource & { groupProperties?: { [propertyName: string]: string }; schemaCompatibility?: SchemaCompatibility; schemaType?: SchemaType; -}; +} /** Single Event Hubs Cluster resource in List or Get operations. */ -export type Cluster = TrackedResource & { +export interface Cluster extends TrackedResource { /** Properties of the cluster SKU. */ sku?: ClusterSku; /** @@ -703,10 +703,10 @@ export type Cluster = TrackedResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: string; -}; +} /** Single Namespace item in List or Get Operation */ -export type EHNamespace = TrackedResource & { +export interface EHNamespace extends TrackedResource { /** Properties of sku resource */ sku?: Sku; /** Properties of BYOK Identity description */ @@ -764,10 +764,11 @@ export type EHNamespace = TrackedResource & { disableLocalAuth?: boolean; /** Alternate name specified when alias and namespace names are same. */ alternateName?: string; -}; +} /** Known values of {@link ClusterSkuName} that the service accepts. */ export enum KnownClusterSkuName { + /** Dedicated */ Dedicated = "Dedicated" } @@ -782,9 +783,13 @@ export type ClusterSkuName = string; /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { + /** User */ User = "User", + /** Application */ Application = "Application", + /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", + /** Key */ Key = "Key" } @@ -802,8 +807,11 @@ export type CreatedByType = string; /** Known values of {@link SkuName} that the service accepts. */ export enum KnownSkuName { + /** Basic */ Basic = "Basic", + /** Standard */ Standard = "Standard", + /** Premium */ Premium = "Premium" } @@ -820,8 +828,11 @@ export type SkuName = string; /** Known values of {@link SkuTier} that the service accepts. */ export enum KnownSkuTier { + /** Basic */ Basic = "Basic", + /** Standard */ Standard = "Standard", + /** Premium */ Premium = "Premium" } @@ -838,9 +849,13 @@ export type SkuTier = string; /** Known values of {@link PrivateLinkConnectionStatus} that the service accepts. */ export enum KnownPrivateLinkConnectionStatus { + /** Pending */ Pending = "Pending", + /** Approved */ Approved = "Approved", + /** Rejected */ Rejected = "Rejected", + /** Disconnected */ Disconnected = "Disconnected" } @@ -858,11 +873,17 @@ export type PrivateLinkConnectionStatus = string; /** Known values of {@link EndPointProvisioningState} that the service accepts. */ export enum KnownEndPointProvisioningState { + /** Creating */ Creating = "Creating", + /** Updating */ Updating = "Updating", + /** Deleting */ Deleting = "Deleting", + /** Succeeded */ Succeeded = "Succeeded", + /** Canceled */ Canceled = "Canceled", + /** Failed */ Failed = "Failed" } @@ -882,7 +903,9 @@ export type EndPointProvisioningState = string; /** Known values of {@link DefaultAction} that the service accepts. */ export enum KnownDefaultAction { + /** Allow */ Allow = "Allow", + /** Deny */ Deny = "Deny" } @@ -898,6 +921,7 @@ export type DefaultAction = string; /** Known values of {@link NetworkRuleIPAction} that the service accepts. */ export enum KnownNetworkRuleIPAction { + /** Allow */ Allow = "Allow" } @@ -912,7 +936,9 @@ export type NetworkRuleIPAction = string; /** Known values of {@link PublicNetworkAccessFlag} that the service accepts. */ export enum KnownPublicNetworkAccessFlag { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -928,8 +954,11 @@ export type PublicNetworkAccessFlag = string; /** Known values of {@link AccessRights} that the service accepts. */ export enum KnownAccessRights { + /** Manage */ Manage = "Manage", + /** Send */ Send = "Send", + /** Listen */ Listen = "Listen" } @@ -946,7 +975,9 @@ export type AccessRights = string; /** Known values of {@link KeyType} that the service accepts. */ export enum KnownKeyType { + /** PrimaryKey */ PrimaryKey = "PrimaryKey", + /** SecondaryKey */ SecondaryKey = "SecondaryKey" } @@ -962,8 +993,11 @@ export type KeyType = string; /** Known values of {@link SchemaCompatibility} that the service accepts. */ export enum KnownSchemaCompatibility { + /** None */ None = "None", + /** Backward */ Backward = "Backward", + /** Forward */ Forward = "Forward" } @@ -980,7 +1014,9 @@ export type SchemaCompatibility = string; /** Known values of {@link SchemaType} that the service accepts. */ export enum KnownSchemaType { + /** Unknown */ Unknown = "Unknown", + /** Avro */ Avro = "Avro" } diff --git a/sdk/eventhub/arm-eventhub/src/operations/clusters.ts b/sdk/eventhub/arm-eventhub/src/operations/clusters.ts index 30aa09559f96..de448d9e9b05 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/clusters.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/clusters.ts @@ -6,7 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { Clusters } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -18,12 +19,12 @@ import { Cluster, ClustersListBySubscriptionNextOptionalParams, ClustersListBySubscriptionOptionalParams, + ClustersListBySubscriptionResponse, ClustersListByResourceGroupNextOptionalParams, ClustersListByResourceGroupOptionalParams, + ClustersListByResourceGroupResponse, ClustersListAvailableClusterRegionOptionalParams, ClustersListAvailableClusterRegionResponse, - ClustersListBySubscriptionResponse, - ClustersListByResourceGroupResponse, ClustersGetOptionalParams, ClustersGetResponse, ClustersCreateOrUpdateOptionalParams, @@ -65,22 +66,34 @@ export class ClustersImpl implements Clusters { [Symbol.asyncIterator]() { return this; }, - byPage: () => { - return this.listBySubscriptionPagingPage(options); + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); } }; } private async *listBySubscriptionPagingPage( - options?: ClustersListBySubscriptionOptionalParams + options?: ClustersListBySubscriptionOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._listBySubscription(options); - yield result.value || []; - let continuationToken = result.nextLink; + let result: ClustersListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listBySubscriptionNext(continuationToken, options); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } @@ -109,19 +122,33 @@ export class ClustersImpl implements Clusters { [Symbol.asyncIterator]() { return this; }, - byPage: () => { - return this.listByResourceGroupPagingPage(resourceGroupName, options); + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); } }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, - options?: ClustersListByResourceGroupOptionalParams + options?: ClustersListByResourceGroupOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._listByResourceGroup(resourceGroupName, options); - yield result.value || []; - let continuationToken = result.nextLink; + let result: ClustersListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listByResourceGroupNext( resourceGroupName, @@ -129,7 +156,9 @@ export class ClustersImpl implements Clusters { options ); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } diff --git a/sdk/eventhub/arm-eventhub/src/operations/consumerGroups.ts b/sdk/eventhub/arm-eventhub/src/operations/consumerGroups.ts index 8b132ebff852..a6c267398b9b 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/consumerGroups.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/consumerGroups.ts @@ -6,7 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { ConsumerGroups } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -16,12 +17,12 @@ import { ConsumerGroup, ConsumerGroupsListByEventHubNextOptionalParams, ConsumerGroupsListByEventHubOptionalParams, + ConsumerGroupsListByEventHubResponse, ConsumerGroupsCreateOrUpdateOptionalParams, ConsumerGroupsCreateOrUpdateResponse, ConsumerGroupsDeleteOptionalParams, ConsumerGroupsGetOptionalParams, ConsumerGroupsGetResponse, - ConsumerGroupsListByEventHubResponse, ConsumerGroupsListByEventHubNextResponse } from "../models"; @@ -65,12 +66,16 @@ export class ConsumerGroupsImpl implements ConsumerGroups { [Symbol.asyncIterator]() { return this; }, - byPage: () => { + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } return this.listByEventHubPagingPage( resourceGroupName, namespaceName, eventHubName, - options + options, + settings ); } }; @@ -80,16 +85,23 @@ export class ConsumerGroupsImpl implements ConsumerGroups { resourceGroupName: string, namespaceName: string, eventHubName: string, - options?: ConsumerGroupsListByEventHubOptionalParams + options?: ConsumerGroupsListByEventHubOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._listByEventHub( - resourceGroupName, - namespaceName, - eventHubName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; + let result: ConsumerGroupsListByEventHubResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByEventHub( + resourceGroupName, + namespaceName, + eventHubName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listByEventHubNext( resourceGroupName, @@ -99,7 +111,9 @@ export class ConsumerGroupsImpl implements ConsumerGroups { options ); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } diff --git a/sdk/eventhub/arm-eventhub/src/operations/disasterRecoveryConfigs.ts b/sdk/eventhub/arm-eventhub/src/operations/disasterRecoveryConfigs.ts index 5bf7638a7d7f..28c65a8f4489 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/disasterRecoveryConfigs.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/disasterRecoveryConfigs.ts @@ -6,7 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { DisasterRecoveryConfigs } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -16,13 +17,14 @@ import { ArmDisasterRecovery, DisasterRecoveryConfigsListNextOptionalParams, DisasterRecoveryConfigsListOptionalParams, + DisasterRecoveryConfigsListResponse, AuthorizationRule, DisasterRecoveryConfigsListAuthorizationRulesNextOptionalParams, DisasterRecoveryConfigsListAuthorizationRulesOptionalParams, + DisasterRecoveryConfigsListAuthorizationRulesResponse, CheckNameAvailabilityParameter, DisasterRecoveryConfigsCheckNameAvailabilityOptionalParams, DisasterRecoveryConfigsCheckNameAvailabilityResponse, - DisasterRecoveryConfigsListResponse, DisasterRecoveryConfigsCreateOrUpdateOptionalParams, DisasterRecoveryConfigsCreateOrUpdateResponse, DisasterRecoveryConfigsDeleteOptionalParams, @@ -30,7 +32,6 @@ import { DisasterRecoveryConfigsGetResponse, DisasterRecoveryConfigsBreakPairingOptionalParams, DisasterRecoveryConfigsFailOverOptionalParams, - DisasterRecoveryConfigsListAuthorizationRulesResponse, DisasterRecoveryConfigsGetAuthorizationRuleOptionalParams, DisasterRecoveryConfigsGetAuthorizationRuleResponse, DisasterRecoveryConfigsListKeysOptionalParams, @@ -71,8 +72,16 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { [Symbol.asyncIterator]() { return this; }, - byPage: () => { - return this.listPagingPage(resourceGroupName, namespaceName, options); + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + namespaceName, + options, + settings + ); } }; } @@ -80,11 +89,18 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { private async *listPagingPage( resourceGroupName: string, namespaceName: string, - options?: DisasterRecoveryConfigsListOptionalParams + options?: DisasterRecoveryConfigsListOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._list(resourceGroupName, namespaceName, options); - yield result.value || []; - let continuationToken = result.nextLink; + let result: DisasterRecoveryConfigsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, namespaceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listNext( resourceGroupName, @@ -93,7 +109,9 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { options ); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } @@ -137,12 +155,16 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { [Symbol.asyncIterator]() { return this; }, - byPage: () => { + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } return this.listAuthorizationRulesPagingPage( resourceGroupName, namespaceName, alias, - options + options, + settings ); } }; @@ -152,16 +174,23 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, alias: string, - options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams + options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._listAuthorizationRules( - resourceGroupName, - namespaceName, - alias, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; + let result: DisasterRecoveryConfigsListAuthorizationRulesResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listAuthorizationRules( + resourceGroupName, + namespaceName, + alias, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listAuthorizationRulesNext( resourceGroupName, @@ -171,7 +200,9 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { options ); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } diff --git a/sdk/eventhub/arm-eventhub/src/operations/eventHubs.ts b/sdk/eventhub/arm-eventhub/src/operations/eventHubs.ts index 0f673e8b142f..65d03c82debd 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/eventHubs.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/eventHubs.ts @@ -6,7 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { EventHubs } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -16,16 +17,16 @@ import { Eventhub, EventHubsListByNamespaceNextOptionalParams, EventHubsListByNamespaceOptionalParams, + EventHubsListByNamespaceResponse, AuthorizationRule, EventHubsListAuthorizationRulesNextOptionalParams, EventHubsListAuthorizationRulesOptionalParams, - EventHubsListByNamespaceResponse, + EventHubsListAuthorizationRulesResponse, EventHubsCreateOrUpdateOptionalParams, EventHubsCreateOrUpdateResponse, EventHubsDeleteOptionalParams, EventHubsGetOptionalParams, EventHubsGetResponse, - EventHubsListAuthorizationRulesResponse, EventHubsCreateOrUpdateAuthorizationRuleOptionalParams, EventHubsCreateOrUpdateAuthorizationRuleResponse, EventHubsGetAuthorizationRuleOptionalParams, @@ -76,11 +77,15 @@ export class EventHubsImpl implements EventHubs { [Symbol.asyncIterator]() { return this; }, - byPage: () => { + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } return this.listByNamespacePagingPage( resourceGroupName, namespaceName, - options + options, + settings ); } }; @@ -89,15 +94,22 @@ export class EventHubsImpl implements EventHubs { private async *listByNamespacePagingPage( resourceGroupName: string, namespaceName: string, - options?: EventHubsListByNamespaceOptionalParams + options?: EventHubsListByNamespaceOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._listByNamespace( - resourceGroupName, - namespaceName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; + let result: EventHubsListByNamespaceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByNamespace( + resourceGroupName, + namespaceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listByNamespaceNext( resourceGroupName, @@ -106,7 +118,9 @@ export class EventHubsImpl implements EventHubs { options ); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } @@ -150,12 +164,16 @@ export class EventHubsImpl implements EventHubs { [Symbol.asyncIterator]() { return this; }, - byPage: () => { + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } return this.listAuthorizationRulesPagingPage( resourceGroupName, namespaceName, eventHubName, - options + options, + settings ); } }; @@ -165,16 +183,23 @@ export class EventHubsImpl implements EventHubs { resourceGroupName: string, namespaceName: string, eventHubName: string, - options?: EventHubsListAuthorizationRulesOptionalParams + options?: EventHubsListAuthorizationRulesOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._listAuthorizationRules( - resourceGroupName, - namespaceName, - eventHubName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; + let result: EventHubsListAuthorizationRulesResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listAuthorizationRules( + resourceGroupName, + namespaceName, + eventHubName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listAuthorizationRulesNext( resourceGroupName, @@ -184,7 +209,9 @@ export class EventHubsImpl implements EventHubs { options ); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } diff --git a/sdk/eventhub/arm-eventhub/src/operations/namespaces.ts b/sdk/eventhub/arm-eventhub/src/operations/namespaces.ts index dbb17e7cea2b..ab2d33f8ceef 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/namespaces.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/namespaces.ts @@ -6,7 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { Namespaces } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -18,13 +19,14 @@ import { EHNamespace, NamespacesListNextOptionalParams, NamespacesListOptionalParams, + NamespacesListResponse, NamespacesListByResourceGroupNextOptionalParams, NamespacesListByResourceGroupOptionalParams, + NamespacesListByResourceGroupResponse, AuthorizationRule, NamespacesListAuthorizationRulesNextOptionalParams, NamespacesListAuthorizationRulesOptionalParams, - NamespacesListResponse, - NamespacesListByResourceGroupResponse, + NamespacesListAuthorizationRulesResponse, NamespacesCreateOrUpdateOptionalParams, NamespacesCreateOrUpdateResponse, NamespacesDeleteOptionalParams, @@ -39,7 +41,6 @@ import { NamespacesGetNetworkRuleSetResponse, NamespacesListNetworkRuleSetOptionalParams, NamespacesListNetworkRuleSetResponse, - NamespacesListAuthorizationRulesResponse, NamespacesCreateOrUpdateAuthorizationRuleOptionalParams, NamespacesCreateOrUpdateAuthorizationRuleResponse, NamespacesDeleteAuthorizationRuleOptionalParams, @@ -86,22 +87,34 @@ export class NamespacesImpl implements Namespaces { [Symbol.asyncIterator]() { return this; }, - byPage: () => { - return this.listPagingPage(options); + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(options, settings); } }; } private async *listPagingPage( - options?: NamespacesListOptionalParams + options?: NamespacesListOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._list(options); - yield result.value || []; - let continuationToken = result.nextLink; + let result: NamespacesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listNext(continuationToken, options); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } @@ -130,19 +143,33 @@ export class NamespacesImpl implements Namespaces { [Symbol.asyncIterator]() { return this; }, - byPage: () => { - return this.listByResourceGroupPagingPage(resourceGroupName, options); + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); } }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, - options?: NamespacesListByResourceGroupOptionalParams + options?: NamespacesListByResourceGroupOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._listByResourceGroup(resourceGroupName, options); - yield result.value || []; - let continuationToken = result.nextLink; + let result: NamespacesListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listByResourceGroupNext( resourceGroupName, @@ -150,7 +177,9 @@ export class NamespacesImpl implements Namespaces { options ); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } @@ -189,11 +218,15 @@ export class NamespacesImpl implements Namespaces { [Symbol.asyncIterator]() { return this; }, - byPage: () => { + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } return this.listAuthorizationRulesPagingPage( resourceGroupName, namespaceName, - options + options, + settings ); } }; @@ -202,15 +235,22 @@ export class NamespacesImpl implements Namespaces { private async *listAuthorizationRulesPagingPage( resourceGroupName: string, namespaceName: string, - options?: NamespacesListAuthorizationRulesOptionalParams + options?: NamespacesListAuthorizationRulesOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._listAuthorizationRules( - resourceGroupName, - namespaceName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; + let result: NamespacesListAuthorizationRulesResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listAuthorizationRules( + resourceGroupName, + namespaceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listAuthorizationRulesNext( resourceGroupName, @@ -219,7 +259,9 @@ export class NamespacesImpl implements Namespaces { options ); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } diff --git a/sdk/eventhub/arm-eventhub/src/operations/operations.ts b/sdk/eventhub/arm-eventhub/src/operations/operations.ts index ff284c5c5fdc..38c848184a56 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/operations.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/operations.ts @@ -6,7 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { Operations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -48,22 +49,34 @@ export class OperationsImpl implements Operations { [Symbol.asyncIterator]() { return this; }, - byPage: () => { - return this.listPagingPage(options); + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(options, settings); } }; } private async *listPagingPage( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._list(options); - yield result.value || []; - let continuationToken = result.nextLink; + let result: OperationsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listNext(continuationToken, options); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } diff --git a/sdk/eventhub/arm-eventhub/src/operations/privateEndpointConnections.ts b/sdk/eventhub/arm-eventhub/src/operations/privateEndpointConnections.ts index ea2e92582aea..81560ff1ae39 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/privateEndpointConnections.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/privateEndpointConnections.ts @@ -6,7 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { PrivateEndpointConnections } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -60,8 +61,16 @@ export class PrivateEndpointConnectionsImpl [Symbol.asyncIterator]() { return this; }, - byPage: () => { - return this.listPagingPage(resourceGroupName, namespaceName, options); + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + namespaceName, + options, + settings + ); } }; } @@ -69,11 +78,18 @@ export class PrivateEndpointConnectionsImpl private async *listPagingPage( resourceGroupName: string, namespaceName: string, - options?: PrivateEndpointConnectionsListOptionalParams + options?: PrivateEndpointConnectionsListOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._list(resourceGroupName, namespaceName, options); - yield result.value || []; - let continuationToken = result.nextLink; + let result: PrivateEndpointConnectionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, namespaceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listNext( resourceGroupName, @@ -82,7 +98,9 @@ export class PrivateEndpointConnectionsImpl options ); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } diff --git a/sdk/eventhub/arm-eventhub/src/operations/schemaRegistry.ts b/sdk/eventhub/arm-eventhub/src/operations/schemaRegistry.ts index 1b7b3e01f56c..d39a4a04e04a 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/schemaRegistry.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/schemaRegistry.ts @@ -6,7 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { SchemaRegistry } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -61,11 +62,15 @@ export class SchemaRegistryImpl implements SchemaRegistry { [Symbol.asyncIterator]() { return this; }, - byPage: () => { + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } return this.listByNamespacePagingPage( resourceGroupName, namespaceName, - options + options, + settings ); } }; @@ -74,15 +79,22 @@ export class SchemaRegistryImpl implements SchemaRegistry { private async *listByNamespacePagingPage( resourceGroupName: string, namespaceName: string, - options?: SchemaRegistryListByNamespaceOptionalParams + options?: SchemaRegistryListByNamespaceOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result = await this._listByNamespace( - resourceGroupName, - namespaceName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; + let result: SchemaRegistryListByNamespaceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByNamespace( + resourceGroupName, + namespaceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } while (continuationToken) { result = await this._listByNamespaceNext( resourceGroupName, @@ -91,7 +103,9 @@ export class SchemaRegistryImpl implements SchemaRegistry { options ); continuationToken = result.nextLink; - yield result.value || []; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; } } diff --git a/sdk/eventhub/arm-eventhub/src/pagingHelper.ts b/sdk/eventhub/arm-eventhub/src/pagingHelper.ts new file mode 100644 index 000000000000..d85fc13bce1e --- /dev/null +++ b/sdk/eventhub/arm-eventhub/src/pagingHelper.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export interface PageInfo { + continuationToken?: string; +} + +const pageMap = new WeakMap(); + +/** + * Given a result page from a pageable operation, returns a + * continuation token that can be used to begin paging from + * that point later. + * @param page A result object from calling .byPage() on a paged operation. + * @returns The continuation token that can be passed into byPage(). + */ +export function getContinuationToken(page: unknown): string | undefined { + if (typeof page !== "object" || page === null) { + return undefined; + } + return pageMap.get(page)?.continuationToken; +} + +export function setContinuationToken( + page: unknown, + continuationToken: string | undefined +): void { + if (typeof page !== "object" || page === null || !continuationToken) { + return; + } + const pageInfo = pageMap.get(page) ?? {}; + pageInfo.continuationToken = continuationToken; + pageMap.set(page, pageInfo); +} diff --git a/sdk/eventhub/arm-eventhub/test/eventhub_examples.ts b/sdk/eventhub/arm-eventhub/test/eventhub_examples.ts index 65f322bd97bf..339d336f9eea 100644 --- a/sdk/eventhub/arm-eventhub/test/eventhub_examples.ts +++ b/sdk/eventhub/arm-eventhub/test/eventhub_examples.ts @@ -8,33 +8,27 @@ import { env, - record, - RecorderEnvironmentSetup, Recorder, + RecorderStartOptions, delay, - isPlaybackMode + isPlaybackMode, } from "@azure-tools/test-recorder"; -import * as assert from "assert"; -import { ClientSecretCredential } from "@azure/identity"; +import { createTestCredential } from "@azure-tools/test-credential"; +import { assert } from "chai"; +import { Context } from "mocha"; import { EventHubManagementClient } from "../src/eventHubManagementClient"; -import { StorageManagementClient,StorageAccountCreateParameters } from "@azure/arm-storage"; -import { NetworkManagementClient,VirtualNetwork } from "@azure/arm-network"; +import { StorageManagementClient, StorageAccountCreateParameters } from "@azure/arm-storage"; +import { NetworkManagementClient, VirtualNetwork } from "@azure/arm-network"; -const recorderEnvSetup: RecorderEnvironmentSetup = { - replaceableVariables: { - AZURE_CLIENT_ID: "azure_client_id", - AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id" - }, - customizationsOnRecordings: [ - (recording: any): any => - recording.replace( - /"access_token":"[^"]*"/g, - `"access_token":"access_token"` - ) - ], - queryParametersToSkip: [] +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables }; export const testPollingOptions = { @@ -55,28 +49,25 @@ describe("Eventhub test", () => { let storage_client: StorageManagementClient; let network_client: NetworkManagementClient; - beforeEach(async function() { - recorder = record(this, recorderEnvSetup); - subscriptionId = env.SUBSCRIPTION_ID; + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + subscriptionId = env.SUBSCRIPTION_ID || ''; // This is an example of how the environment variables are used - const credential = new ClientSecretCredential( - env.AZURE_TENANT_ID, - env.AZURE_CLIENT_ID, - env.AZURE_CLIENT_SECRET - ); - client = new EventHubManagementClient(credential, subscriptionId); - storage_client = new StorageManagementClient(credential,subscriptionId); - network_client = new NetworkManagementClient(credential,subscriptionId); + const credential = createTestCredential(); + client = new EventHubManagementClient(credential, subscriptionId, recorder.configureClientOptions({})); + storage_client = new StorageManagementClient(credential, subscriptionId, recorder.configureClientOptions({})); + network_client = new NetworkManagementClient(credential, subscriptionId, recorder.configureClientOptions({})); location = "eastus"; resourceGroupName = "myjstest"; subnetName = "subnetxxx"; eventhubName = "myeventhubxxx"; namespaceName = "mynamespacexxx"; virtualNetworkName = "myvirtualnetwork"; - storageAccountName = "mystorageaccountxxx"; + storageAccountName = "mystorageaccountxxx11"; }); - afterEach(async function() { + afterEach(async function () { await recorder.stop(); }); @@ -89,8 +80,8 @@ describe("Eventhub test", () => { addressPrefixes: ["10.0.0.0/16"], }, }; - const network_create = await network_client.virtualNetworks.beginCreateOrUpdateAndWait(resourceGroupName,virtualNetworkName,parameter,testPollingOptions); - const subnet_info = await network_client.subnets.beginCreateOrUpdateAndWait(resourceGroupName,virtualNetworkName,subnetName,{ addressPrefix: "10.0.0.0/24" },testPollingOptions); + const network_create = await network_client.virtualNetworks.beginCreateOrUpdateAndWait(resourceGroupName, virtualNetworkName, parameter, testPollingOptions); + const subnet_info = await network_client.subnets.beginCreateOrUpdateAndWait(resourceGroupName, virtualNetworkName, subnetName, { addressPrefix: "10.0.0.0/24" }, testPollingOptions); } //storageAccounts.beginCreateAndWait @@ -111,25 +102,25 @@ describe("Eventhub test", () => { console.log(storageaccount); } - it("namespaces create test", async function() { + it("namespaces create test", async function () { await createVirtualNetwork(); await storageAccounts_beginCreateAndWait(); - const res = await client.namespaces.beginCreateOrUpdateAndWait(resourceGroupName,namespaceName,{ + const res = await client.namespaces.beginCreateOrUpdateAndWait(resourceGroupName, namespaceName, { sku: { - name: "Standard", - tier: "Standard", + name: "Standard", + tier: "Standard", }, location: location, tags: { tag1: "value1", tag2: "value2", } - },testPollingOptions); - assert.equal(res.name,"mynamespacexxx"); + }, testPollingOptions); + assert.equal(res.name, "mynamespacexxx"); }); - it("eventHubs create test", async function() { - const res = await client.eventHubs.createOrUpdate(resourceGroupName,namespaceName,eventhubName,{ + it("eventHubs create test", async function () { + const res = await client.eventHubs.createOrUpdate(resourceGroupName, namespaceName, eventhubName, { messageRetentionInDays: 4, partitionCount: 4, status: "Active", @@ -153,37 +144,37 @@ describe("Eventhub test", () => { } } }); - assert.equal(res.name,"myeventhubxxx"); + assert.equal(res.name, "myeventhubxxx"); }); - it("eventHubs get test", async function() { - const res = await client.eventHubs.get(resourceGroupName,namespaceName,eventhubName); - console.log(res.type,"Microsoft.EventHub/Namespaces/EventHubs"); + it("eventHubs get test", async function () { + const res = await client.eventHubs.get(resourceGroupName, namespaceName, eventhubName); + console.log(res.type, "Microsoft.EventHub/Namespaces/EventHubs"); }); - it("eventHubs listByNamespace test", async function() { + it("eventHubs listByNamespace test", async function () { const resArray = new Array(); - for await (const item of client.eventHubs.listByNamespace(resourceGroupName,namespaceName)){ + for await (const item of client.eventHubs.listByNamespace(resourceGroupName, namespaceName)) { resArray.push(item); } - assert.equal(resArray.length,1); + assert.equal(resArray.length, 1); }); - it("eventHubs delete test", async function() { - const res = await client.eventHubs.delete(resourceGroupName,namespaceName,eventhubName); + it("eventHubs delete test", async function () { + const res = await client.eventHubs.delete(resourceGroupName, namespaceName, eventhubName); const resArray = new Array(); - for await (const item of client.eventHubs.listByNamespace(resourceGroupName,namespaceName)){ + for await (const item of client.eventHubs.listByNamespace(resourceGroupName, namespaceName)) { resArray.push(item); } - assert.equal(resArray.length,0); + assert.equal(resArray.length, 0); }); - it("namespaces delete test", async function() { - const res = await client.namespaces.beginDeleteAndWait(resourceGroupName,namespaceName,testPollingOptions); + it("namespaces delete test", async function () { + const res = await client.namespaces.beginDeleteAndWait(resourceGroupName, namespaceName, testPollingOptions); const resArray = new Array(); - for await (const item of client.namespaces.listByResourceGroup(resourceGroupName)){ + for await (const item of client.namespaces.listByResourceGroup(resourceGroupName)) { resArray.push(item); } - assert.equal(resArray.length,0); + assert.equal(resArray.length, 0); }); });