From 5ca1f5af984d4be01e97f02a0b13deddbf1c6fae Mon Sep 17 00:00:00 2001 From: colawwj Date: Fri, 8 Oct 2021 11:07:57 +0800 Subject: [PATCH 1/4] eventhub-track2-2021-06-preview --- common/config/rush/pnpm-lock.yaml | 97 +- sdk/eventhub/arm-eventhub/CHANGELOG.md | 60 +- sdk/eventhub/arm-eventhub/README.md | 5 +- sdk/eventhub/arm-eventhub/_meta.json | 6 +- sdk/eventhub/arm-eventhub/api-extractor.json | 2 +- sdk/eventhub/arm-eventhub/package.json | 36 +- .../recording_eventhubs_create_test.js | 151 + .../recording_eventhubs_delete_test.js | 187 ++ .../recording_eventhubs_get_test.js | 151 + ...ecording_eventhubs_listbynamespace_test.js | 153 ++ .../recording_namespaces_create_test.js | 1193 ++++++++ .../recording_namespaces_delete_test.js | 2421 +++++++++++++++++ .../arm-eventhub/review/arm-eventhub.api.md | 231 +- .../src/eventHubManagementClient.ts | 32 +- .../src/eventHubManagementClientContext.ts | 4 +- sdk/eventhub/arm-eventhub/src/models/index.ts | 821 +++--- .../arm-eventhub/src/models/mappers.ts | 932 +++---- .../arm-eventhub/src/models/parameters.ts | 141 +- .../arm-eventhub/src/operations/clusters.ts | 111 +- .../src/operations/configuration.ts | 2 +- .../src/operations/consumerGroups.ts | 3 +- .../src/operations/disasterRecoveryConfigs.ts | 411 ++- .../arm-eventhub/src/operations/eventHubs.ts | 403 ++- .../arm-eventhub/src/operations/index.ts | 7 +- .../arm-eventhub/src/operations/namespaces.ts | 605 +--- .../arm-eventhub/src/operations/operations.ts | 1 - .../operations/privateEndpointConnections.ts | 3 +- .../arm-eventhub/src/operations/regions.ts | 155 -- .../src/operationsInterfaces/clusters.ts | 9 +- .../operationsInterfaces/consumerGroups.ts | 1 - .../disasterRecoveryConfigs.ts | 83 +- .../src/operationsInterfaces/eventHubs.ts | 107 +- .../src/operationsInterfaces/index.ts | 7 +- .../src/operationsInterfaces/namespaces.ts | 119 - .../src/operationsInterfaces/operations.ts | 1 - .../privateEndpointConnections.ts | 1 - .../src/operationsInterfaces/regions.ts | 25 - .../arm-eventhub/test/eventhub_examples.ts | 196 ++ sdk/eventhub/arm-eventhub/tsconfig.json | 2 +- 39 files changed, 6264 insertions(+), 2611 deletions(-) create mode 100644 sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_create_test.js create mode 100644 sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_delete_test.js create mode 100644 sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_get_test.js create mode 100644 sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_listbynamespace_test.js create mode 100644 sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_namespaces_create_test.js create mode 100644 sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_namespaces_delete_test.js delete mode 100644 sdk/eventhub/arm-eventhub/src/operations/regions.ts delete mode 100644 sdk/eventhub/arm-eventhub/src/operationsInterfaces/regions.ts create mode 100644 sdk/eventhub/arm-eventhub/test/eventhub_examples.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 49853c433067..506cd09d036e 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1327,6 +1327,13 @@ packages: '@rushstack/node-core-library': 3.42.0 dev: false + /@microsoft/api-extractor-model/7.7.10: + resolution: {integrity: sha512-gMFDXwUgoQYz9TgatyNPALDdZN4xBC3Un3fGwlzME+vM13PoJ26pGuqI7kv/OlK9+q2sgrEdxWns8D3UnLf2TA==} + dependencies: + '@microsoft/tsdoc': 0.12.19 + '@rushstack/node-core-library': 3.19.6 + dev: false + /@microsoft/api-extractor/7.18.13: resolution: {integrity: sha512-L2iGuCnEp63wpbaqxWkqyLbKVXPKSV/YrHU4ox+36G6EtInYaQf5lgZPY5UdUKDYZd2NPrWJLCoO/Q8haDBaGQ==} hasBin: true @@ -1345,6 +1352,21 @@ packages: typescript: 4.4.3 dev: false + /@microsoft/api-extractor/7.7.11: + resolution: {integrity: sha512-kd2kakdDoRgI54J5H11a76hyYZBMhtp4piwWAy4bYTwlQT0v/tp+G/UMMgjUL4vKf0kTNhitEUX/0LfQb1AHzQ==} + hasBin: true + dependencies: + '@microsoft/api-extractor-model': 7.7.10 + '@microsoft/tsdoc': 0.12.19 + '@rushstack/node-core-library': 3.19.6 + '@rushstack/ts-command-line': 4.3.13 + colors: 1.2.5 + lodash: 4.17.21 + resolve: 1.8.1 + source-map: 0.6.1 + typescript: 3.7.7 + dev: false + /@microsoft/tsdoc-config/0.15.2: resolution: {integrity: sha512-mK19b2wJHSdNf8znXSMYVShAHktVr/ib0Ck2FA3lsVBSEhSI/TfXT7DJQkAYgcztTuwazGcg58ZjYdk0hTCVrA==} dependencies: @@ -1354,6 +1376,10 @@ packages: resolve: 1.19.0 dev: false + /@microsoft/tsdoc/0.12.19: + resolution: {integrity: sha512-IpgPxHrNxZiMNUSXqR1l/gePKPkfAmIKoDRP9hp7OwjU29ZR8WCJsOJ8iBKgw0Qk+pFwR+8Y1cy8ImLY6e9m4A==} + dev: false + /@microsoft/tsdoc/0.13.2: resolution: {integrity: sha512-WrHvO8PDL8wd8T2+zBGKrMwVL5IyzR3ryWUsl0PXgEV0QHup4mTLi0QcATefGI6Gx9Anu7vthPyyyLpY0EpiQg==} dev: false @@ -1615,6 +1641,18 @@ packages: rollup: 1.32.1 dev: false + /@rushstack/node-core-library/3.19.6: + resolution: {integrity: sha512-1+FoymIdr9W9k0D8fdZBBPwi5YcMwh/RyESuL5bY29rLICFxSLOPK+ImVZ1OcWj9GEMsvDx5pNpJ311mHQk+MA==} + dependencies: + '@types/node': 10.17.13 + colors: 1.2.5 + fs-extra: 7.0.1 + jju: 1.4.0 + semver: 5.3.0 + timsort: 0.3.0 + z-schema: 3.18.4 + dev: false + /@rushstack/node-core-library/3.42.0: resolution: {integrity: sha512-oB4eIGjBfNtGxlNbwV8H7oEUWeRKalJUT3TqccZW+k4GC6SrQzmC/mvgRZi4eW3FwNGgTvZAACIQy7x50+j7pw==} dependencies: @@ -1645,6 +1683,14 @@ packages: string-argv: 0.3.1 dev: false + /@rushstack/ts-command-line/4.3.13: + resolution: {integrity: sha512-BUBbjYu67NJGQkpHu8aYm7kDoMFizL1qx78+72XE3mX/vDdXYJzw/FWS7TPcMJmY4kNlYs979v2B0Q0qa2wRiw==} + dependencies: + '@types/argparse': 1.0.33 + argparse: 1.0.10 + colors: 1.2.5 + dev: false + /@sinonjs/commons/1.8.3: resolution: {integrity: sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==} dependencies: @@ -1690,6 +1736,10 @@ packages: resolution: {integrity: sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==} dev: false + /@types/argparse/1.0.33: + resolution: {integrity: sha512-VQgHxyPMTj3hIlq9SY1mctqx+Jj8kpQfoLvDlVSDNOyuYs8JYfkuY3OW/4+dO657yPmNhHpePRx0/Tje5ImNVQ==} + dev: false + /@types/argparse/1.0.38: resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==} dev: false @@ -1877,6 +1927,10 @@ packages: form-data: 3.0.1 dev: false + /@types/node/10.17.13: + resolution: {integrity: sha512-pMCcqU2zT4TjqYFrWtYHKal7Sl30Ims6ulZ4UFXxI4xbtQqK/qqKwkDoBFCfooRqqmRu9vY3xaJRwxSh673aYg==} + dev: false + /@types/node/12.20.24: resolution: {integrity: sha512-yxDeaQIAJlMav7fH5AQqPH1u8YIuhYJXYBzxaQ4PifsU0GDO38MSdmEDeRlIxrKbC6NbEaaEHDanWb+y30U8SQ==} dev: false @@ -6570,6 +6624,12 @@ packages: path-parse: 1.0.7 dev: false + /resolve/1.8.1: + resolution: {integrity: sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==} + dependencies: + path-parse: 1.0.7 + dev: false + /reusify/1.0.4: resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} @@ -6729,6 +6789,11 @@ packages: engines: {node: '>=0.8.0'} dev: false + /semver/5.3.0: + resolution: {integrity: sha1-myzl094C0XxgEq0yaqa00M9U+U8=} + hasBin: true + dev: false + /semver/5.7.1: resolution: {integrity: sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==} hasBin: true @@ -8548,21 +8613,27 @@ packages: dev: false file:projects/arm-eventhub.tgz: - resolution: {integrity: sha512-XdKP2K9Up2NfmnQhsC180QQm04AS0+LtDMDaIj7equptk2zQLRuEuQtzB2K69tOsgkAgO4VzBxxfoQLI5OfEEg==, tarball: file:projects/arm-eventhub.tgz} + resolution: {integrity: sha512-XEBObSD4etC/G49Hytf9AnYtxeGc2QXcIEpLL1WaB5WT8aNSyLNM1cpCB0sXqxZPJkrZZC9d71mvucT+tSXhGQ==, tarball: file:projects/arm-eventhub.tgz} name: '@rush-temp/arm-eventhub' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.18.13 + '@azure/identity': 2.0.0-beta.6 + '@microsoft/api-extractor': 7.7.11 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.1.0_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 + cross-env: 7.0.3 mkdirp: 1.0.4 + mocha: 7.2.0 rollup: 1.32.1 rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.14.2 + transitivePeerDependencies: + - debug + - supports-color dev: false file:projects/arm-features.tgz: @@ -10598,7 +10669,7 @@ packages: dev: false file:projects/identity-cache-persistence.tgz: - resolution: {integrity: sha512-swWbMKiyh1Z1dpfNo79dT4yOk43QPVlfWwIaZxVP+GfiqrTqew0RZXvlPCdhlBjTGrrnLaL/9hMZaa5MsBaFww==, tarball: file:projects/identity-cache-persistence.tgz} + resolution: {integrity: sha512-/qOeCqcA6FIkVLhPPvQ3ON7NLj985WmFmCpWv9YXZiGn9FhHtYPDEA34TvH//2SPgDFgXly+VbFP8yfhlOQlBQ==, tarball: file:projects/identity-cache-persistence.tgz} name: '@rush-temp/identity-cache-persistence' version: 0.0.0 dependencies: @@ -10635,7 +10706,7 @@ packages: dev: false file:projects/identity-vscode.tgz: - resolution: {integrity: sha512-kAAolzHI69agkgisFp1t7k6QJ7u4B3t1XV/OyHsyHaZAQwlKddwL6TVK1SfiTUxq17u7Bc2OzzWN7RPMEsElKw==, tarball: file:projects/identity-vscode.tgz} + resolution: {integrity: sha512-Ac1SoH1TJ8l6PzTixnUmQfJxcqaytt6ANn5CFVvXnLTfKRmJuOxUuFkgmhDUbzmKwqjIECpLFYa2fUaETxKK/Q==, tarball: file:projects/identity-vscode.tgz} name: '@rush-temp/identity-vscode' version: 0.0.0 dependencies: @@ -10810,7 +10881,7 @@ packages: dev: false file:projects/keyvault-admin.tgz: - resolution: {integrity: sha512-pIuLYfl8T68ROSaC/BGGCBovefnySYcKbmdsjAMb08EEaMdtmc8kkgvl1Pl/wGE7sn+qBsJ3PGTBqE877SerIA==, tarball: file:projects/keyvault-admin.tgz} + resolution: {integrity: sha512-s6Wx/oG7LoR2s2SH7HU3P8F6PxlnNl+QVBOnS0WCZFTYeClHt2oGczqaNBVnZuxwMv9WPVZ+7yC7IvmJwlYp5A==, tarball: file:projects/keyvault-admin.tgz} name: '@rush-temp/keyvault-admin' version: 0.0.0 dependencies: @@ -10856,7 +10927,7 @@ packages: dev: false file:projects/keyvault-certificates.tgz: - resolution: {integrity: sha512-qhqbAyrcbpwFAXoB9tEV5chIkZ3ZLQt8daht2lArH+jjzEmg2sW8O7g481PENCKJsF7aPzgT9J2A216FmiJYNg==, tarball: file:projects/keyvault-certificates.tgz} + resolution: {integrity: sha512-Xe2pPS9nxv+k8CwQc8EhOwfXyMYw+hn0uHgVO4lr/t3iCdqKegsSfvfpJWwreQ/H164UPxeioeenANirEZrmXQ==, tarball: file:projects/keyvault-certificates.tgz} name: '@rush-temp/keyvault-certificates' version: 0.0.0 dependencies: @@ -10931,7 +11002,7 @@ packages: dev: false file:projects/keyvault-keys.tgz: - resolution: {integrity: sha512-JCYND/8Uc299aUJiKsVLzOQ/la/EWi4rGGPd/+je17GwgoIzp1AxVnY5Btdyc27TQHcXebP5Dp7csuc9tc5B2w==, tarball: file:projects/keyvault-keys.tgz} + resolution: {integrity: sha512-jM7GDoaLV4A6QVyuIgtTRI8mG6i9eQYfH+xpYwnS5FS5jlLaO8HI7r1WDtUHt/0O13Vjlel+rVy5cTCsoSc48Q==, tarball: file:projects/keyvault-keys.tgz} name: '@rush-temp/keyvault-keys' version: 0.0.0 dependencies: @@ -10993,7 +11064,7 @@ packages: dev: false file:projects/keyvault-secrets.tgz: - resolution: {integrity: sha512-UIONXBT2X6Cyj2uiTe1Z0xoC7WbHCEZM57q0FILhGEBsCcCMNvWIbCCespo+y5tq6ifDsfBUKzIYlSgpH/U0eA==, tarball: file:projects/keyvault-secrets.tgz} + resolution: {integrity: sha512-zXOBiQpRQMC4UI3iVyNi/OUP1iA+2ecCo4iAjSf/Fs84cZqgQrhI59zo3PdiORkXFYXnlYaz5Py1GzpDBfFoNg==, tarball: file:projects/keyvault-secrets.tgz} name: '@rush-temp/keyvault-secrets' version: 0.0.0 dependencies: @@ -11249,7 +11320,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-UgcANjV5jnSjCoWWNOq+vt32vd1WiUus0ThQqcU/qhGDVMZS0XF/dn9xex0xEYlAYFEuFqbtXqW0vsrPj6qPFw==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-8p3zpVSw66Il+tOAT6X+xqGPamCZO/F7PSxnkk0S/ouhtNO7YCIKktsBi9lncphLUyTBHvT5wNdrT0F1xYIj1w==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: @@ -11578,7 +11649,7 @@ packages: dev: false file:projects/perf-monitor-query.tgz: - resolution: {integrity: sha512-toEUj6i3XyxLZWIO8erTWaghQaQddo1Fqg5bXigfnfm1Ols9D49XWJlL1TkD4NN02MU04u0j6yYQu+dHSZ+SxQ==, tarball: file:projects/perf-monitor-query.tgz} + resolution: {integrity: sha512-ynQsaPzX6w6HzwbdSOp02RgxtsCBFne9V4mTbhkF3VYOlnWWuJVvWGz8xBnE/sqUnhKww6m/dTbBTwB5wVSNDA==, tarball: file:projects/perf-monitor-query.tgz} name: '@rush-temp/perf-monitor-query' version: 0.0.0 dependencies: @@ -11663,7 +11734,7 @@ packages: dev: false file:projects/perf-storage-file-datalake.tgz: - resolution: {integrity: sha512-6ufEceJOi1bvgS770BFogmRkci1Y30+1eV2ww3783sy5Z5Lehf2n0P1HSzuXZ+YQHILRIUoPegvkM+HuIpLOsA==, tarball: file:projects/perf-storage-file-datalake.tgz} + resolution: {integrity: sha512-dQCiU/2QRhXLoPN66wNLLPV6O80T/QoyDjemtE7U/s01DywegjULQLtnd2hjpper8cOdN+8UGGBK9zsjWenwog==, tarball: file:projects/perf-storage-file-datalake.tgz} name: '@rush-temp/perf-storage-file-datalake' version: 0.0.0 dependencies: @@ -11684,7 +11755,7 @@ packages: dev: false file:projects/perf-storage-file-share.tgz: - resolution: {integrity: sha512-SiG8mj1jxrvNcBKNXRsWgzo1XPvF3HmWYh/ck2sgMzDSnYMg52QXQ202SVx66kWktcTN/LYCJGsLRBerUK34Hw==, tarball: file:projects/perf-storage-file-share.tgz} + resolution: {integrity: sha512-GUzK1okW7DaYkFQy48OiM/ogzIjlnVfMFdIs0Hmq4iFBx4K/mXNVZP+/zGT0KDuw7T59mAtay8lJYPM86GoXyA==, tarball: file:projects/perf-storage-file-share.tgz} name: '@rush-temp/perf-storage-file-share' version: 0.0.0 dependencies: @@ -11948,7 +12019,7 @@ packages: dev: false file:projects/schema-registry-avro.tgz: - resolution: {integrity: sha512-4wULpLuLiMk7+loAe+RwRq6u0i6mPpBa5tfSgnso/gWqPQpMh+UfNseudJInXH0KXwTZMwvkwjQCP/dwvkeG4A==, tarball: file:projects/schema-registry-avro.tgz} + resolution: {integrity: sha512-Dj9zXeDcT7X3avSNb4fB2h21lQ/9+MDS/hty9X2ykdoF31dOgP35b8rWh/CbWJKC/ApK0CknW77zGHJctbvtgg==, tarball: file:projects/schema-registry-avro.tgz} name: '@rush-temp/schema-registry-avro' version: 0.0.0 dependencies: diff --git a/sdk/eventhub/arm-eventhub/CHANGELOG.md b/sdk/eventhub/arm-eventhub/CHANGELOG.md index f2d8d305bf25..899efa069c25 100644 --- a/sdk/eventhub/arm-eventhub/CHANGELOG.md +++ b/sdk/eventhub/arm-eventhub/CHANGELOG.md @@ -1,15 +1,51 @@ -# Release History - -## 30.0.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - +## 30.0.0-beta.2 (2021-10-08) + +**Features** + + - Added operation Clusters.listBySubscription + - Added Interface ClustersListBySubscriptionNextOptionalParams + - Added Interface ClustersListBySubscriptionOptionalParams + - Added Interface SystemData + - Added Interface UserAssignedIdentity + - Added Interface UserAssignedIdentityProperties + - Added Type Alias ClustersListBySubscriptionNextResponse + - Added Type Alias ClustersListBySubscriptionResponse + - Added Type Alias CreatedByType + - Added Type Alias ManagedServiceIdentityType + - Added Type Alias PublicNetworkAccessFlag + - Interface Encryption has a new optional parameter requireInfrastructureEncryption + - Interface Identity has a new optional parameter userAssignedIdentities + - Interface KeyVaultProperties has a new optional parameter identity + - Type Alias ArmDisasterRecovery has a new parameter systemData + - Type Alias AuthorizationRule has a new parameter systemData + - Type Alias Cluster has a new parameter systemData + - Type Alias ConsumerGroup has a new parameter systemData + - Type Alias EHNamespace has a new parameter systemData + - Type Alias EHNamespace has a new parameter privateEndpointConnections + - Type Alias EHNamespace has a new parameter disableLocalAuth + - Type Alias Eventhub has a new parameter systemData + - Type Alias NetworkRuleSet has a new parameter systemData + - Type Alias NetworkRuleSet has a new parameter publicNetworkAccess + - Type Alias PrivateEndpointConnection has a new parameter systemData + - Added Enum KnownCreatedByType + - Added Enum KnownPublicNetworkAccessFlag + - Enum KnownSkuName has a new value Premium + - Enum KnownSkuTier has a new value Premium + +**Breaking Changes** + + - Removed operation group Regions + - Removed operation Namespaces.createOrUpdateIpFilterRule + - Removed operation Namespaces.createOrUpdateVirtualNetworkRule + - Removed operation Namespaces.deleteIpFilterRule + - Removed operation Namespaces.deleteVirtualNetworkRule + - Removed operation Namespaces.getIpFilterRule + - Removed operation Namespaces.getVirtualNetworkRule + - Removed operation Namespaces.listIPFilterRules + - Removed operation Namespaces.listVirtualNetworkRules + - Class EventHubManagementClient no longer has parameter regions + - Removed Enum KnownIPAction + ## 30.0.0-beta.1 (2021-09-07) This is the first preview for the new version of the `@azure/arm-eventhub` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services. diff --git a/sdk/eventhub/arm-eventhub/README.md b/sdk/eventhub/arm-eventhub/README.md index c168d241a910..c0e687381fef 100644 --- a/sdk/eventhub/arm-eventhub/README.md +++ b/sdk/eventhub/arm-eventhub/README.md @@ -33,9 +33,9 @@ npm install @azure/arm-eventhub To create a client object to access the Azure EventHubManagement API, you will need the `endpoint` of your Azure EventHubManagement resource and a `credential`. The Azure EventHubManagement client can use Azure Active Directory credentials to authenticate. You can find the endpoint for your Azure EventHubManagement resource in the [Azure Portal][azure_portal]. -#### Using an Azure Active Directory Credential +You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). -You can authenticate with Azure Active Directory using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: +To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: ```bash npm install @azure/identity @@ -45,6 +45,7 @@ You will also need to **register a new AAD application and grant access to Azure Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). + ```javascript const { EventHubManagementClient } = require("@azure/arm-eventhub"); const { DefaultAzureCredential } = require("@azure/identity"); diff --git a/sdk/eventhub/arm-eventhub/_meta.json b/sdk/eventhub/arm-eventhub/_meta.json index 445c171dc130..352220f4716e 100644 --- a/sdk/eventhub/arm-eventhub/_meta.json +++ b/sdk/eventhub/arm-eventhub/_meta.json @@ -1,7 +1,7 @@ { - "commit": "5d09c12c024fa7efbaca6a95b9741a46a886fe6f", + "commit": "5cf3e4a0c30ad5167088ac839453578b2e8e9afc", "readme": "specification/eventhub/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/eventhub/resource-manager/readme.md --use=@autorest/typescript@6.0.0-beta.12", + "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/eventhub/resource-manager/readme.md --use=@autorest/typescript@6.0.0-beta.13", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-beta.12" + "use": "@autorest/typescript@6.0.0-beta.13" } \ No newline at end of file diff --git a/sdk/eventhub/arm-eventhub/api-extractor.json b/sdk/eventhub/arm-eventhub/api-extractor.json index 3c9d4b6efa33..32aeb099b712 100644 --- a/sdk/eventhub/arm-eventhub/api-extractor.json +++ b/sdk/eventhub/arm-eventhub/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./dist-esm/index.d.ts", + "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", "docModel": { "enabled": true }, "apiReport": { "enabled": true, "reportFolder": "./review" }, "dtsRollup": { diff --git a/sdk/eventhub/arm-eventhub/package.json b/sdk/eventhub/arm-eventhub/package.json index 1b3d34fbd6d3..464e4b1c5d0b 100644 --- a/sdk/eventhub/arm-eventhub/package.json +++ b/sdk/eventhub/arm-eventhub/package.json @@ -4,9 +4,7 @@ "author": "Microsoft Corporation", "description": "A generated SDK for EventHubManagementClient.", "version": "30.0.0-beta.2", - "engines": { - "node": ">=12.0.0" - }, + "engines": { "node": ">=12.0.0" }, "dependencies": { "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", @@ -16,19 +14,13 @@ "@azure/core-rest-pipeline": "^1.1.0", "tslib": "^2.2.0" }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], + "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], "license": "MIT", "main": "./dist/index.js", - "module": "./dist-esm/index.js", + "module": "./dist-esm/src/index.js", "types": "./types/arm-eventhub.d.ts", "devDependencies": { - "@microsoft/api-extractor": "^7.18.11", + "@microsoft/api-extractor": "7.7.11", "@rollup/plugin-commonjs": "11.0.2", "@rollup/plugin-json": "^4.0.0", "@rollup/plugin-multi-entry": "^3.0.0", @@ -37,16 +29,18 @@ "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", "typescript": "~4.2.0", - "uglify-js": "^3.4.9" + "uglify-js": "^3.4.9", + "@azure/identity": "2.0.0-beta.6", + "@azure-tools/test-recorder": "^1.0.0", + "mocha": "^7.1.1", + "cross-env": "^7.0.2" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventhub/arm-eventhub", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, + "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", "dist/**/*.js.map", @@ -81,16 +75,16 @@ "check-format": "echo skipped", "execute:samples": "echo skipped", "format": "echo skipped", - "test": "echo skipped", + "test": "npm run integration-test", "prebuild": "echo skipped", "test:node": "echo skipped", "test:browser": "echo skipped", - "unit-test": "echo skipped", - "unit-test:node": "echo skipped", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "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", "integration-test:browser": "echo skipped", - "integration-test:node": "echo skipped", - "integration-test": "echo skipped", "docs": "echo skipped" }, "sideEffects": false, 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 new file mode 100644 index 000000000000..0d9d7d4346fd --- /dev/null +++ b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_create_test.js @@ -0,0 +1,151 @@ +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', + '34b08262-d419-4c23-84e8-b4a3dad21600', + 'x-ms-ests-server', + '2.1.12108.11 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=Ajf25aqROnNKpSqIOhpNv8k; expires=Sun, 07-Nov-2021 03:05:35 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrsFEP2bAwVyO-ccOttQLM6W8Kb2qZSsBEK5EXD2qYTw2eFuZBM8KyPKdGU6Pl6ZSUwPNednlympHn6bhRnwPAK-9QJVB5BUqHT-aPNOWvKqS_JFqs3FFkiz1Dfvkqbum2A6vTXGi6kuAaWSxFCJ5bTRoLk6_z1DseSMmasvXmANggAA; 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', + 'Fri, 08 Oct 2021 03:05:34 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', + 'cbdd870e-09eb-4be3-b22d-d114e1d00500', + 'x-ms-ests-server', + '2.1.12108.11 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AqzzMqbrVLtJkuGuOo5seRo; expires=Sun, 07-Nov-2021 03:05:35 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJ_WhQf0-fQx0MOJMD9ypgvpBr4eSySlzBWtjDIo8UDkZPcOL2v671Xyfi3MS-h0KgKZShN5kqWmJaQzCMnYYfZOAYfHcNw8NMmWSnUzOBIi_73MHv4D0mJG9pVJ8BLepFLvoqb0_F4NOEjVdqjgKl3CTjqD0043UPfcJ0mRJHiggAA; 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', + 'Fri, 08 Oct 2021 03:05:34 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.2&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=2fbeeb01-6630-4780-85f9-436234f0e124&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', + '2df955eb-876d-4dd3-8a71-ec398da80200', + 'x-ms-ests-server', + '2.1.12108.11 - SEASLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AqdnCVpwLXZDnjTEwK2JT1sWPr5BAQAAAH6s8dgOAAAA; expires=Sun, 07-Nov-2021 03:05:35 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', + 'Fri, 08 Oct 2021 03:05:34 GMT', + 'Content-Length', + '1351' +]); + +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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e4f2ff365fbedf5e4ee325be4cd2a9be678c1fef1eeddbbbb399acc090dfac2fc4e9f7f34fa08cd08c7eec7edf50a1f473a79412f30dce6aef9aca117ca6a9a617cf4d269d6b4e957afe943c27695d76d91371f3dfac51fd17b4d7691bfca5b7a8d9a9e2d9f66d7f4cd3e35cca8153e3ba9d6cb963f6adaac5dd3b71f1d4fdbe2322768d33acfda7c764cdf7fb4b7b3b7bbbdbbb3bd73f066e7dea39dfb8fee1d8cefeddefb296ab65ecd869beddf1bdf7ff800cd6c976733eae57b1fedd067bbf4ff3dfaffbd8fbe4fdd65ab765de74f733b771844becc26654ed3dad6eb7c447f4eab59b1bca0be8e2feb8ade9dd134154ba5c52f36f435a43aaea7731acdf8f80704fa0911ed2dfd33a1d74252356d5513a98ea753d0e39532c31975fbb3ce4dafa5ebbb210a78493fc9e413e19309617f522ddbac58e6356137b5bf8f3eca64ac60986755bdc83021bf187f31fbfc92bbbfd810857e7de96683fefa7df2aca61f5f10b039fd2436a17fbf4d43a01f5f14cb758bb75fe7d4d9ec977cf44b7ec9e8a362d9e6f565569e2de55322e2eede0e3151f183fc79b128dab3e5936b1a327dbcb37f70ffc1a7f77ec92ff925","ff0f01cc50bb9f030000"], [ + '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', + 'ddfde8aa-7b23-4d69-8fd6-9d393b9d5e90_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes', + '1199', + 'x-ms-correlation-request-id', + 'f453c9f1-2df5-4e01-a7dc-17b4def54fd2', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030544Z:f453c9f1-2df5-4e01-a7dc-17b4def54fd2', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:43 GMT' +]); 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 new file mode 100644 index 000000000000..809f15632efb --- /dev/null +++ b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_delete_test.js @@ -0,0 +1,187 @@ +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', + '5796b87a-62db-47ba-a226-100d3fc91700', + 'x-ms-ests-server', + '2.1.12108.11 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AkJwriViOylErsiJLJwuASY; expires=Sun, 07-Nov-2021 03:05:46 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrkse9dRKV_2KhlW96aImUOpY0hSdbPtDQVw92ZRXyfB-s5WnJmPkCC04JLK6UoW1r1qv0VMjC9UiFk2dm3UZHXTtNBvC1OFwJEJpiTX56LymirMq16T15O_CRhjJ7WhOoXAbjQjmC3QLZBXfe9q52h8FBr8xvdCMxLo8Q8tQQ8PEgAA; 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', + 'Fri, 08 Oct 2021 03:05:46 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', + '34b08262-d419-4c23-84e8-b4a397d31600', + 'x-ms-ests-server', + '2.1.12108.11 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=Al1R2XxbhkBFj4ukee7VYq0; expires=Sun, 07-Nov-2021 03:05:47 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrz9JgkyG_egQT1rJgN6MJDILby7Liv3Xr2J9dw5mmtjewbsw_QBhDxzI1ErM1jD-IYAZDzb4_x6z2Y322iqPYhU2LLE3j9sHQJ22Lqq1blq0sJcmgEHXaQJvJ2MB4eC6HlFTFzOLZkdt7cQORCbu3sYI__1dCNknAtrWPU1hirnQgAA; 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', + 'Fri, 08 Oct 2021 03:05:46 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.2&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=329cbe6c-90c1-4341-b7e8-d8d7b15601d2&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', + '2df955eb-876d-4dd3-8a71-ec3930a90200', + 'x-ms-ests-server', + '2.1.12108.11 - SEASLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=As2YaRg2sWdDs-t3CqOsdyoWPr5BAQAAAIqs8dgOAAAA; expires=Sun, 07-Nov-2021 03:05:47 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', + 'Fri, 08 Oct 2021 03:05:46 GMT', + 'Content-Length', + '1351' +]); + +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', + 'd9ed8d17-6c81-4deb-b41d-6827e64caf02_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-deletes', + '14999', + 'x-ms-correlation-request-id', + 'd15640dc-32e8-45a9-a7aa-c06d8b5d0c73', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030549Z:d15640dc-32e8-45a9-a7aa-c06d8b5d0c73', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:48 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', + 'bca84680-7dff-4b26-a3b5-9707a47fc6a9_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11976', + 'x-ms-correlation-request-id', + '85274a4b-fc94-4e15-aca5-5e5658c251ee', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030550Z:85274a4b-fc94-4e15-aca5-5e5658c251ee', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:49 GMT' +]); 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 new file mode 100644 index 000000000000..e55c747227fe --- /dev/null +++ b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_get_test.js @@ -0,0 +1,151 @@ +let nock = require('nock'); + +module.exports.hash = "cc91dec2b569aca558e2eef196034081"; + +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', + '2df955eb-876d-4dd3-8a71-ec390fa90200', + 'x-ms-ests-server', + '2.1.12108.11 - SEASLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AhXTlgUOFQxJpJjFYXgvVjU; expires=Sun, 07-Nov-2021 03:05:44 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXwrBlnYFX2JWVTu1s4CPc-o9igaAB0qCXs9vmmbEZ3M93jjbX17opJ6pUfGPDYxT9NCk3igcxNHONlEhVsbJpdO4mXs0YqtDNHSRy_ROpqznb09sdmgIljXv3bGJbX9mZOBcnNPjFHW9dvldiCT2ONywVQd_pN9EHNbtGUlJKA8gAA; 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', + 'Fri, 08 Oct 2021 03:05:43 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', + '34b08262-d419-4c23-84e8-b4a362d31600', + 'x-ms-ests-server', + '2.1.12108.11 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AknwPmE_VVJGttd44ZuwirE; expires=Sun, 07-Nov-2021 03:05:44 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrrBjYMexFbb9jW9F4LZJxsMjKs3UEInZTMgpxFFumI75bloY5LNncqs9_llCEQgEYXPkUfhurfAC4yyOIRfr86keVvAxdZeEeiyAbjSq78XFcVSs45FJk3hMU5BQxbSyjrBkLaJdXFb0-pwY7dFEyeA-eoyXxxjYyqsAX-RFrR6ggAA; 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', + 'Fri, 08 Oct 2021 03:05:43 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.2&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=657b8e02-368b-4dd7-b458-6d187460b638&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', + '2df955eb-876d-4dd3-8a71-ec3910a90200', + 'x-ms-ests-server', + '2.1.12108.11 - SEASLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AvJzpdC7_GFBpE3RjUwryT4WPr5BAQAAAIes8dgOAAAA; expires=Sun, 07-Nov-2021 03:05:44 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', + 'Fri, 08 Oct 2021 03:05:43 GMT', + 'Content-Length', + '1351' +]); + +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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e4f2ff365fbedf5e4ee325be4cd2a9be678c1fef1eeddbbbb399acc090dfac2fc4e9f7f34fa08cd08c7eec7edf50a1f473a79412f30dce6aef9aca117ca6a9a617cf4d269d6b4e957afe943c27695d76d91371f3dfac51fd17b4d7691bfca5b7a8d9a9e2d9f66d7f4cd3e35cca8153e3ba9d6cb963f6adaac5dd3b71f1d4fdbe2322768d33acfda7c764cdf7fb4b7b3b7bbbdbbb3bd73f066e7dea39dfb8fee1d8cefeddea356ebd56cb8d5febdf1fd870fa895edf06c467d7cefa31dfa6c97febf47ffbff7d1f7a9b36cd5aeebfc696e670e43c897d9a4cc6952db7a9d8fe8cf69352b9617d4d5f1655dd1bb339aa462a994f8c586ba8650c7f5744e63191fff80403f2192bda57f26f45a48a8a6ad6a22d4f1740a6abc525638a36e7fd679e9b5747d3744012fe927997c225c3221ec4faa659b15cbbc26eca6f6f7d147998c15ecf2acaa1719e6e317e32f669e5f72f7171ba2d0af2fdd6cd05fbf4f9ed5f4e30b0236a79fc424f4efb76908f4e38b62b96ef1f6eb9c3a9bfd928f7ec92f197d542cdbbcbecccab3a57c4a44dcdddb21162a7e903f2f16457bb67c724d43a68f77f60fee3ff8f4de2ff925bf","e4ff01191c3aa39d030000"], [ + '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', + '22721803-c793-4a50-a770-4bcc7401cc1e_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11978', + 'x-ms-correlation-request-id', + '1b2746ac-8e63-4220-aa0f-cfdf8133b65e', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030545Z:1b2746ac-8e63-4220-aa0f-cfdf8133b65e', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:44 GMT' +]); 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 new file mode 100644 index 000000000000..1351cd1064ff --- /dev/null +++ b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_eventhubs_listbynamespace_test.js @@ -0,0 +1,153 @@ +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', + '2df955eb-876d-4dd3-8a71-ec3919a90200', + 'x-ms-ests-server', + '2.1.12108.11 - SEASLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AnS7WM8DCk9Phxa1izL28aY; expires=Sun, 07-Nov-2021 03:05:45 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrrsz1Peo723z2WR32kEf9ASGVGUo3e-M0XcmmbYufB5qPgUmD5N5-zTJSV4hzr5T0Z1m8FgVhVEOqRalqjuSgB5QRth__o_irsAm1M3FIegzzNSzEShcsDSu_6tlAxJikZXh2I7BzUSy_Sp_lup7fJfCBXiBKAHVvPc0Wcvzk0e4gAA; 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', + 'Fri, 08 Oct 2021 03:05:44 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', + 'a2e463b4-b621-47b4-91f3-7922a8090600', + 'x-ms-ests-server', + '2.1.12108.11 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AtvzrG3s3nFOo3IaTybgjqg; expires=Sun, 07-Nov-2021 03:05:45 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrcW168HZaEmz-1qodqrfyI4YRyV9C1GCP8YAN-zOYcspbmGqbZQLKKwncxFO4-rwgbbe1AaZqbNt6ZlvA1h_VeEiBi-lR1agKWeWTBZktVlRgEzt8emHFqr7hdL7nSL0eMjQY_2UzNTsquObXe-NUXPH6Us8-oIsJ5GhjGJ9xFrAgAA; 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', + 'Fri, 08 Oct 2021 03:05:44 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.2&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=46db200c-c92f-4397-a851-9e4226d1956f&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', + 'a5a2fec4-a46b-4d18-8e30-c2d641b60500', + 'x-ms-ests-server', + '2.1.12108.11 - SEASLR1 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AtkiN0eUqAZCrJlGUcy-194WPr5BAQAAAIms8dgOAAAA; expires=Sun, 07-Nov-2021 03:05:45 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', + 'Fri, 08 Oct 2021 03:05:45 GMT', + 'Content-Length', + '1351' +]); + +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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffc5131fbe8d147779bf5a499d6c5aa2daa6573f7e1def9c3fbb383f3ed7bd34f1f6cefefeeed6f3fdc9d3ed83e989eef3c98ce26e77bfbbb77ebbca9d6f534ffbcaed6abe6eee2faa79b366fdabbabbaba2c6679dddcfda298d655539db7e3d3cb7cd97e7b3db9bbcc1679b3caa6395eb07fbc7bf7ee6e8e26734283be30bfd3e71f8d3e4233c2b1fb717bbdc2c7914e5ed00b0cb7b96b3e6be885b29a66181fbd749a356dfad56bfa90b05de5755be4cd478f7ef147f45e935de4aff2965ea3a667cba7d9357db34f0d336a85cf4eaaf5b2e58f9a366bd7f4ed47c7d3b6b8cc09dab4ceb3369f1dd3f71fededeced6eefee6cef1cbcd9b9f768e7fea37b07e37bbbf7a8d57a351b6eb57f6f7cffe1036a653b3c9b511fdffb68873edba5ffefd1ffef7df47dea2c5bb5eb3a7f9adb99c310f2653629739ad4b65ee723fa735acd8ae50575757c5957f4ee8c26a9582a257eb1a1ae21d4713d9dd358c6c73f20d04f88646fe99f09bd1612aa69ab9a08753c9d821aaf9415cea8db9f755e7a2d5ddf0d51c04bfa49269f08974c08fb936ad966c532af09bba9fd7df451266305bb3cabea4586f9f8c5f88b99e797dcfdc58628f4eb4b371bf4d7ef936735fdf88280cde9273109fdfb6d1a02fdf8a258ae5bbcfd3aa7ce66bfe4a35ff24b461f15cb36af49e8ce96f2291171776f8758a8f841febc5814edd9f2c9350d993eded93fb8ffe0d37bbfe497fc92ef","ff92ff074cf5f8f1a9030000"], [ + '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', + '690b60e3-595c-49b2-8611-324a78fd5f24_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11977', + 'x-ms-correlation-request-id', + '06fe670c-e7da-4240-b5ea-8c1b6aac5526', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030546Z:06fe670c-e7da-4240-b5ea-8c1b6aac5526', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:46 GMT' +]); 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 new file mode 100644 index 000000000000..db186d71a3d8 --- /dev/null +++ b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_namespaces_create_test.js @@ -0,0 +1,1193 @@ +let nock = require('nock'); + +module.exports.hash = "ad7ff8f3d48f661d7a644a68d9970825"; + +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', + '5796b87a-62db-47ba-a226-100d6fc31700', + 'x-ms-ests-server', + '2.1.12108.11 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=ArOabIVyYkBKn_znvFeRtO8; expires=Sun, 07-Nov-2021 03:04:25 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrfMrBpBSVR7HLLTBV6-7Wurx8BWyI1fTZAfkwK9nNT9m6CXz55Jm4r9b1JpeUGTJgOi9-pjfJnNG6fHmlxb0Y0Bo2_OvjhX5JPkeOb4SDz6gRORKyi9RloNknt5tqeG61CfG_nv25zQ_BOZ9IedJR7JRT2TqYANTAHhEl-AxFTzogAA; 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', + 'Fri, 08 Oct 2021 03:04:25 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', + 'a2e463b4-b621-47b4-91f3-79220b050600', + 'x-ms-ests-server', + '2.1.12108.11 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AsuyEjBJOdRNtzPOvSikfuM; expires=Sun, 07-Nov-2021 03:04:26 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrEdsxjO_QVVHgaifaoEOC6PBkVAbXa1uQFvzi58PRdaGAKkEcpRFucsYTiojP2JdNEmxn5jRC2JV7ZUeLNNOkXsJWh1hIq6YcrFQdsKuOQrhcodg3hWV2ZbxomJ8RM8xTtpPt4AEdSFQnPUm6xYSeKfEyCZ1_5bE_xmWLNGh71O4gAA; 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', + 'Fri, 08 Oct 2021 03:04:25 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.2&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=54dbf043-6a50-4245-af1a-eb4980fda5ea&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', + '7d410443-5b41-4027-a989-1112f32f0600', + 'x-ms-ests-server', + '2.1.12108.11 - KRSLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=Al7Gf5QCdZtOvF_tmVrJV0YWPr5BAQAAADms8dgOAAAA; expires=Sun, 07-Nov-2021 03:04:26 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', + 'Fri, 08 Oct 2021 03:04:25 GMT', + 'Content-Length', + '1351' +]); + +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(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef16f9ca4e947cb6c917ff428fd68717d59d4ed3a2b97797b55d56f3f1af1d7c50c5fde6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e5f489f771505fd132fe9272152799b5d00adefdefd7d3fdadffd74efc1746777fb5ebebfbbbdbfff60677b72ffdeeef6eee4e1dec141b693dd7bb8f7fb7ea42fb6d72b1eec8d3d6bfbb29a661832dec9b3a65d9b2f6810abbc6e8bbca1af9890f2e165d150f36279f1bacd5aeeeaabd58c402c2fe4456a65e9b216dace8866f7b2c983eddd83e9cef6fef9f9ee76367bf8e9f6a7b3d9fe747727dfcf3e3db72f67b319bddfbc5e655340d79edd172febfcbc78c7587dcf7c47dfeeee8cf9bfbbbb9f7e643efebefcf24b0c689a62a232bff97df359489597795ed348c226f9329b94f9d359457d576d3e55729d676593a3c92ff98d93","5ff2ff007b5fc16c6a020000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Retry-After', + '3', + 'Vary', + 'Accept-Encoding', + 'x-ms-request-id', + '466746aa-645f-4143-89ba-5d2fafb21caf', + 'Azure-AsyncOperation', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/466746aa-645f-4143-89ba-5d2fafb21caf?api-version=2021-03-01', + 'x-ms-correlation-request-id', + '7d591d0d-c3f4-4728-94b4-5fbf3f5dfbcd', + 'Azure-AsyncNotification', + 'Enabled', + 'x-ms-arm-service-request-id', + '860de55b-d832-4d80-89b8-d479493a69cf', + '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:20211008T030427Z:7d591d0d-c3f4-4728-94b4-5fbf3f5dfbcd', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:04:26 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/466746aa-645f-4143-89ba-5d2fafb21caf') + .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', + '7adacdca-9963-4b28-bd5d-43bc3e3b55e1', + 'x-ms-correlation-request-id', + '5107bf56-c251-429b-aea0-8e151f59f73d', + 'x-ms-arm-service-request-id', + '4a02ffce-e84c-4e52-83f2-c76957fe652f', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11867', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030427Z:5107bf56-c251-429b-aea0-8e151f59f73d', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:04:26 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/\"4c530812-f9ac-47e7-a016-8fd6ea5af329\"","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', + '3', + 'x-ms-request-id', + 'e38405ca-6f22-4a6e-a7ae-5876c8d136e9', + 'Azure-AsyncOperation', + 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/e38405ca-6f22-4a6e-a7ae-5876c8d136e9?api-version=2021-03-01', + 'x-ms-correlation-request-id', + '8d520ce0-d3d6-48ae-8115-16244c57d29f', + 'x-ms-arm-service-request-id', + '22b6a249-f2bc-49d9-b658-2ba3e0dd46c4', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-writes', + '1197', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030430Z:8d520ce0-d3d6-48ae-8115-16244c57d29f', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:04:29 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Network/locations/eastus/operations/e38405ca-6f22-4a6e-a7ae-5876c8d136e9') + .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', + '9ca2fdd4-069b-4097-817c-a3baf5117ffd', + 'x-ms-correlation-request-id', + '730ae481-2c59-4ff0-9133-7777cba380ae', + 'x-ms-arm-service-request-id', + '8b292e84-e058-41b6-9e28-1c670a916402', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11866', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030430Z:730ae481-2c59-4ff0-9133-7777cba380ae', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:04:29 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(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5ecf7fffcd5eb8f461fb5455e7b9f7ef44b461fbd2d9633fea8aab38bfc27f7a855810fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7dae1dd467e1e4fa7d57ad9e225fd24934fdebd7b4728e970e25fb6d72b7c79236c6a5a56d30c03a2e679d6b46b7cd666170d918c684178aef29a8884bf3f7a9b5f9fd439377f53a07bfe68975edddbd9dbdddeddd9de3978b3b3f7e8fe8347fb07e3fdfd9dfb9f7ebaff5304905aedddd48a7b2b2eb3363f5dce5655b16c4faae5329fa237eafd7bdfa731e7ed5555bf3d9e96f4c12ffe6872bdca1afaeda3e31facebfc755e5f16534274f4d16551b7ebac7c21cd5fad4bfa9401142bef8f597e9eadcbf6987b0094b2acae8046b35eadaaba6dbeddb6abe64d9d9d9f17d32f97e5f5478fda7a9d8f3eca97d3fa9ab9005834a65ffafdbc280d55dec81428a509a97c994dca9c1849809444ec53f94868792375266535f959024ed009ea6b66556adce31b744f0c9637cd1b91976f57e895b8e3b268880ec5f28224a8c5bbafd7d42e9f112ea38fa601b34471b8776f77e7e1fe7d3009cdfe22abafcdec334167e7f4e3a33926e2d1dd98248ca9c5785ad5f9f88ac4b6ba6ac6c4247709da554ec4daf8e60f76ef8da955f46da1f5c6d7d124faee2f5ae76b0c77d3cbdc26fa768b59bbe16d6e137d5b1870e3cb68127997665827e07944233434bbebe6cbf397d284beca2eb3a2041ef8369f56509ffeab57a4e682575f9b46f4a57bf997fc","92ff073789dee4a1050000"], [ + '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', + '7a304e3f-efd0-45f7-9f8c-a038a46171d8', + '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', + '1196', + 'x-ms-correlation-request-id', + 'b6a045d6-92d0-424d-9975-f0a94ef16d9c', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030437Z:b6a045d6-92d0-424d-9975-f0a94ef16d9c', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:04:36 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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + '17878893-7697-47da-a473-a50ab78de05f_M0CH3_M0CH3', + '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', + 'e10de164-07f9-4de4-85c5-154e1c96958f', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030445Z:e10de164-07f9-4de4-85c5-154e1c96958f', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:04:45 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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + '0cfe59b5-dad3-4ba8-a8fb-a0a454223279_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11999', + 'x-ms-correlation-request-id', + 'c1d66983-8eff-4235-8d3f-604cf1fd5d1b', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030446Z:c1d66983-8eff-4235-8d3f-604cf1fd5d1b', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:04:45 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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + 'dd68698e-7818-41c5-a192-aff0a68f6497_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11998', + 'x-ms-correlation-request-id', + '5ca0e9fe-3c73-40fc-bd7c-298d0db02de2', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030448Z:5ca0e9fe-3c73-40fc-bd7c-298d0db02de2', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:04: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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + '2114bbda-56a7-4115-8217-faddb50bf807_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11997', + 'x-ms-correlation-request-id', + 'ba808617-4cd6-4c6a-bd8c-d68cba1d2508', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030450Z:ba808617-4cd6-4c6a-bd8c-d68cba1d2508', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:04: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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + '1b8a902c-9fd1-42e9-a44f-380158803c9d_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11996', + 'x-ms-correlation-request-id', + '53893e1c-1997-43cc-b2e2-c19a5f58be60', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030453Z:53893e1c-1997-43cc-b2e2-c19a5f58be60', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:04: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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + '51424917-d03b-4177-bbfc-1b52af7e0c1c_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11995', + 'x-ms-correlation-request-id', + '72b93329-c119-4159-9b67-a421239d1c41', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030455Z:72b93329-c119-4159-9b67-a421239d1c41', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:04: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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + 'e6f72a5a-c1a2-427b-8b7f-786b7eb1c59e_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', + '7dcafc6c-ec3a-4831-ae70-f16857b39947', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030459Z:7dcafc6c-ec3a-4831-ae70-f16857b39947', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:04:58 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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + '1b42421a-171f-4547-88cf-3f8a46050dc4_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11993', + 'x-ms-correlation-request-id', + '4fa4b9a9-48bd-4f19-8a8e-71625b750653', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030501Z:4fa4b9a9-48bd-4f19-8a8e-71625b750653', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:00 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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + 'e3197af1-b457-4159-aeb3-fb824c300d42_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11992', + 'x-ms-correlation-request-id', + 'ee0cac51-5602-4454-a4eb-4cf0546f5cdf', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030503Z:ee0cac51-5602-4454-a4eb-4cf0546f5cdf', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:03 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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + 'cb23b22b-e898-4354-a452-0dbb155f4399_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11991', + 'x-ms-correlation-request-id', + 'e19e1552-c599-46eb-ae2f-272ef5fc34c4', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030506Z:e19e1552-c599-46eb-ae2f-272ef5fc34c4', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:05 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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + '015f088b-6b0e-4f3f-9ab3-363df86b8e26_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11990', + 'x-ms-correlation-request-id', + '34992113-9744-4844-97de-0a66387d5014', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030508Z:34992113-9744-4844-97de-0a66387d5014', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:08 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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + '6b6219d6-88f0-4697-886e-5dbbff06b052_M3SN1_M3SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11989', + 'x-ms-correlation-request-id', + 'eb90d959-e486-455f-8690-4cea216fa910', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030511Z:eb90d959-e486-455f-8690-4cea216fa910', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:10 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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + '0155768b-c1db-464b-a864-bd349fb42afe_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11988', + 'x-ms-correlation-request-id', + '1d22c204-6e07-427d-9719-201c69a2e78a', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030513Z:1d22c204-6e07-427d-9719-201c69a2e78a', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05: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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + 'bead9e8e-3682-4262-8928-66d9fbe751f7_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11987', + 'x-ms-correlation-request-id', + '92c74614-4851-4c14-ba5a-b231f5c75f77', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030515Z:92c74614-4851-4c14-ba5a-b231f5c75f77', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:15 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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + '711c00dc-38f8-493c-9464-a8425ee1fdc5_M3SN1_M3SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11986', + 'x-ms-correlation-request-id', + '30c5b3aa-cf6d-48fa-a639-32817e908054', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030518Z:30c5b3aa-cf6d-48fa-a639-32817e908054', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:17 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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + '74b20b13-ebf1-4b43-9d99-bdda2b5e586a_M3SN1_M3SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11985', + 'x-ms-correlation-request-id', + '170b7e91-a806-40c7-ac49-d4e1c6037cd5', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030520Z:170b7e91-a806-40c7-ac49-d4e1c6037cd5', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05: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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + '2ab067b7-e03b-4a1d-8c44-adb11df2dcb9_M3SN1_M3SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11984', + 'x-ms-correlation-request-id', + 'f68ce4ce-9a29-4c48-9245-b6ce49e1b8d8', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030523Z:f68ce4ce-9a29-4c48-9245-b6ce49e1b8d8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:22 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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + 'c21f23a7-016e-4849-a085-e79c42ee6e26_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11983', + 'x-ms-correlation-request-id', + '393eed3f-da4d-4cf6-b5c6-675cae0415ef', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030525Z:393eed3f-da4d-4cf6-b5c6-675cae0415ef', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05: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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + '28788f65-866c-43d4-9f43-1be63d8a8cf2_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11982', + 'x-ms-correlation-request-id', + 'f4b6acb5-a24c-4e98-8c47-90cea23f4e69', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030527Z:f4b6acb5-a24c-4e98-8c47-90cea23f4e69', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:27 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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + 'd2f1f714-753c-4b9c-8b0c-a4d9b774cb55_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11981', + 'x-ms-correlation-request-id', + '08edc8e7-1853-4443-a2a6-2864efc1abea', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030530Z:08edc8e7-1853-4443-a2a6-2864efc1abea', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:29 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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518fa499dd32f98bb45ded6c5f48c5a7f749b497ad423e654401d13f21fededeced6eefee6cef1cbcd9b9f76867ffd1febdf1a79f3ef8296ab65ecd6ed3acc9ebcb629a3f5937a7cbd9aa2a40938fe66dbb6a1edded4cf058db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d54f9e878da16973491cb8b8f7ec92f","f97f00d509c9ccd8020000"], [ + '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', + 'ccc22e13-ecce-45ac-8c3c-338e1f671cb8_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11980', + 'x-ms-correlation-request-id', + 'b0755d82-e293-40b0-b6b3-c2f6ac6822d2', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030532Z:b0755d82-e293-40b0-b6b3-c2f6ac6822d2', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05: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, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7e127d36c954d8bf6faa347bbbf64f45131a36fef36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7a797f9b2fdf67a7217f835d47d8e17ec1fefdebd23bcf027e1d2fbbcbd5ee1f308b417a66143cdca6a9a017d6a7a9a356dfad56bfab0cd2e1ad0857eeed2179759b9ce77e5f33df3f7de474406c27a95d7442c6e3e2b9a6c52e6cf096479bc6ee71f3d3acfca261f7df4836a99bfca676ba2e5b2b59f160d35aace96e765d6e6a74bbc4a54d52f17d9bb62b15ebc99139d2ee6ab75fbd5b268a9979dd1476fb3f3b7996ddfd66b6a4e885c160d8da3585ed0a4b518faebf5749ae7336a44e0f2b62ea667d4fea3db4cd3a31e39a7754e5067c784fe477b3b7bbbdbbb3bdb3b076f76ee3ddad97fb47f6ffce9a70f7e8a9aad57b3a166f71fddbb37dedde7664d5e5f16d3fcc9ba395dce565501aa7c346fdb55f3e86e678ac7da76b26ec657c572565d35e365de3edadfbf77179068b06ba2cb47c7d3b6b8cc3ffa25bf","e4ff01fdf703f2d6020000"], [ + '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', + 'c7c10a49-407c-4c42-993e-2383c1d980bc_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11979', + 'x-ms-correlation-request-id', + '04f933ee-9cf4-4ebb-ada9-80e306520555', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030534Z:04f933ee-9cf4-4ebb-ada9-80e306520555', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:34 GMT' +]); 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 new file mode 100644 index 000000000000..6ae98fcc77af --- /dev/null +++ b/sdk/eventhub/arm-eventhub/recordings/node/eventhub_test/recording_namespaces_delete_test.js @@ -0,0 +1,2421 @@ +let nock = require('nock'); + +module.exports.hash = "c84bd82c846a55f760eedabbc4aa3d6b"; + +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', + 'a5a2fec4-a46b-4d18-8e30-c2d687b60500', + 'x-ms-ests-server', + '2.1.12108.11 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=Am34gQcr6wJBgpFNXmMn-Q4; expires=Sun, 07-Nov-2021 03:05:50 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrCaAk26VFZ8YVL6qOp1OrIToDscaNOEe7k_nlbu28ZBii6hs2r02cVNpyl36-D_9293geHPKy7iPM9mzLBd7aUBa_Mr98WzYcwNEeokcmlMI32XeRdm2hVD7KysICwgM2tCpk2_xnRoG3tFCPpnnBVR80x4ieHlR5awiGSPcKwk0gAA; 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', + 'Fri, 08 Oct 2021 03:05:49 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', + '7d410443-5b41-4027-a989-11129b350600', + 'x-ms-ests-server', + '2.1.12108.11 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=Aks0AttpLcxJlOyP6vfjZJ0; expires=Sun, 07-Nov-2021 03:05:50 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrL4cD7Dkp-MQlF4GabKSsxlp3oVI3AuXi83gn9MMwkX1qTiU_tBJsfuQGt4pqHtDjN4FKnT7XZuZXl8c7m8R1D84yl1D_UyQhasAkSvc-ZmRzApu_YYY4BBEauueu0XVI0Y9hPpN8Ze-O9qTxrSyaMitlHofHp2RjG7cV7OH60tYgAA; 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', + 'Fri, 08 Oct 2021 03:05:50 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.2&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=ec93ea7b-6633-4f14-98f6-813ce072c96f&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', + '34b08262-d419-4c23-84e8-b4a3e2d31600', + 'x-ms-ests-server', + '2.1.12108.11 - KRSLR1 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AskN1QyCPkZHnl35gytZ_RcWPr5BAQAAAI6s8dgOAAAA; expires=Sun, 07-Nov-2021 03:05:51 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', + 'Fri, 08 Oct 2021 03:05:50 GMT', + 'Content-Length', + '1351' +]); + +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-06-01-preview', + 'x-ms-request-id', + '9ac6223e-4014-42ee-8dd9-cda258f2b211_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-deletes', + '14998', + 'x-ms-correlation-request-id', + '04c4e422-c92b-4a66-b3a2-b8500cfb09ed', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030552Z:04c4e422-c92b-4a66-b3a2-b8500cfb09ed', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:51 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '48', + 'x-ms-request-id', + '80040dbb-d5a4-4e78-9231-62cda7adafd5_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11975', + 'x-ms-correlation-request-id', + '6bc461c9-8404-4add-9149-05bdfdb9e358', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030553Z:6bc461c9-8404-4add-9149-05bdfdb9e358', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:52 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '53', + 'x-ms-request-id', + '83716470-5f7a-4c87-b34b-a1f76ffcc107_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11974', + 'x-ms-correlation-request-id', + '0cd7c035-957b-4ba3-b4f6-4ab0b1c73c78', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030553Z:0cd7c035-957b-4ba3-b4f6-4ab0b1c73c78', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:52 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '32', + 'x-ms-request-id', + '4369691f-47db-43ef-83d5-bdcdc1372787_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11973', + 'x-ms-correlation-request-id', + '3610d646-f6fd-49fa-a778-32f2b0d4cf35', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030553Z:3610d646-f6fd-49fa-a778-32f2b0d4cf35', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:53 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '31', + 'x-ms-request-id', + '6a2b47b2-157c-43be-afc5-3439aea3bc47_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11972', + 'x-ms-correlation-request-id', + '7d4b5634-e42d-45c4-854a-5a6fa84e58db', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030554Z:7d4b5634-e42d-45c4-854a-5a6fa84e58db', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:53 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '34', + 'x-ms-request-id', + '362b7afb-a93c-4dfa-b131-fb1d6b15492a_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11971', + 'x-ms-correlation-request-id', + '5849ead3-c113-42bf-95eb-c3708560a35e', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030554Z:5849ead3-c113-42bf-95eb-c3708560a35e', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:53 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '36', + 'x-ms-request-id', + 'f6fda73c-e927-46b9-ac4f-081a2ee6fcea_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11970', + 'x-ms-correlation-request-id', + 'a018a73a-7c05-4138-9344-3141210d7d86', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030555Z:a018a73a-7c05-4138-9344-3141210d7d86', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:54 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '45', + 'x-ms-request-id', + 'b1873a55-6b77-4c3e-a8eb-b4c3b2d60f0c_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11969', + 'x-ms-correlation-request-id', + 'be26d8a4-721a-4cb1-aa01-01bf9827f1f2', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030555Z:be26d8a4-721a-4cb1-aa01-01bf9827f1f2', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:54 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '36', + 'x-ms-request-id', + 'd835ca85-7654-471d-a580-65826a896ed2_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11968', + 'x-ms-correlation-request-id', + '8c4f18cc-2ed0-4245-9f1b-0383975637fe', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030555Z:8c4f18cc-2ed0-4245-9f1b-0383975637fe', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:55 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '46', + 'x-ms-request-id', + '69fafc99-ec09-4d98-9f32-bab3f3c028bf_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11967', + 'x-ms-correlation-request-id', + 'c960acdb-3310-4df3-bb80-00996b18131e', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030556Z:c960acdb-3310-4df3-bb80-00996b18131e', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:55 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '39', + 'x-ms-request-id', + 'eadacd7f-85a9-478d-8e3d-00e4082ff38f_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11966', + 'x-ms-correlation-request-id', + '19bc9aa3-662f-44f4-8f98-5c4ec665367d', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030556Z:19bc9aa3-662f-44f4-8f98-5c4ec665367d', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:55 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '44', + 'x-ms-request-id', + 'd856d259-12fd-4bf3-8b63-5b053c6b2495_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11965', + 'x-ms-correlation-request-id', + '631e1dc1-7aac-46bc-b21d-c8ffd69bc339', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030557Z:631e1dc1-7aac-46bc-b21d-c8ffd69bc339', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:56 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '50', + 'x-ms-request-id', + 'b657a59c-6134-4dd3-847a-0e676681d5cd_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11964', + 'x-ms-correlation-request-id', + '27968ca2-01f4-4647-a515-e5f6545c658a', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030557Z:27968ca2-01f4-4647-a515-e5f6545c658a', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:56 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '36', + 'x-ms-request-id', + '8068f0cb-a283-4e68-a5b5-b2ebf57be0f9_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11963', + 'x-ms-correlation-request-id', + 'c553a331-718f-4596-9bf6-5be15fec5ea8', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030558Z:c553a331-718f-4596-9bf6-5be15fec5ea8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:57 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '43', + 'x-ms-request-id', + '2ff1795d-3e00-4a79-a792-9ab07788df86_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11962', + 'x-ms-correlation-request-id', + 'e4d34432-159e-47cc-b937-192d7b6dc742', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030558Z:e4d34432-159e-47cc-b937-192d7b6dc742', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:57 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '42', + 'x-ms-request-id', + 'f89ca027-4d24-47c6-adbc-2320c0c2d1c7_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11961', + 'x-ms-correlation-request-id', + '24c0a8b7-76e3-497d-9e35-431206b3f7e6', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030558Z:24c0a8b7-76e3-497d-9e35-431206b3f7e6', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:57 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '58', + 'x-ms-request-id', + 'e1485973-abd0-4858-b74d-dddca6301cfa_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11960', + 'x-ms-correlation-request-id', + '7349e4f1-f2d1-4461-aadb-492ada536748', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030559Z:7349e4f1-f2d1-4461-aadb-492ada536748', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:58 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '52', + 'x-ms-request-id', + '69b7d042-1dcd-473f-ba25-15f10e1944fb_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11959', + 'x-ms-correlation-request-id', + 'bb4b55a5-782b-4c47-b39e-0db10e50c43b', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030559Z:bb4b55a5-782b-4c47-b39e-0db10e50c43b', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:58 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '35', + 'x-ms-request-id', + 'ff6bdc23-6f2f-4255-9249-cb5022900a93_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11958', + 'x-ms-correlation-request-id', + '4d9fcb58-4ec9-4359-ad8e-9a535bd28b46', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030600Z:4d9fcb58-4ec9-4359-ad8e-9a535bd28b46', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:59 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '58', + 'x-ms-request-id', + '7f6d511d-35fd-40a7-ad5d-3c28fdd3a824_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11957', + 'x-ms-correlation-request-id', + 'b3f512c5-1d1d-4565-9a9e-45d3aac7d433', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030600Z:b3f512c5-1d1d-4565-9a9e-45d3aac7d433', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:59 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '30', + 'x-ms-request-id', + '9872921a-3f85-4357-9067-2c2692cc6902_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11956', + 'x-ms-correlation-request-id', + '2a830ee8-3131-4cbd-b2aa-d5afc72f27f3', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030600Z:2a830ee8-3131-4cbd-b2aa-d5afc72f27f3', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:05:59 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '59', + 'x-ms-request-id', + '3d072a7f-66ca-4795-be88-3c98500531bc_M0CH3_M0CH3', + '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', + '2c10e11d-cd47-41eb-a511-7d2fabe870be', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030601Z:2c10e11d-cd47-41eb-a511-7d2fabe870be', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:00 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '44', + 'x-ms-request-id', + '34c89b8f-82ab-4606-af8f-e314eb7653cf_M0CH3_M0CH3', + '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', + '5f89fdb0-6562-47fd-85b8-b8bc4f7423b6', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030601Z:5f89fdb0-6562-47fd-85b8-b8bc4f7423b6', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:00 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '33', + 'x-ms-request-id', + '9d19fc03-04bd-41b9-a74b-53bad04f7bad_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11953', + 'x-ms-correlation-request-id', + '3e329922-77de-408b-90bd-9ea78ae9f6e8', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030601Z:3e329922-77de-408b-90bd-9ea78ae9f6e8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:00 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '44', + 'x-ms-request-id', + 'a3f93d03-d2c6-4329-91d1-0a041330fe7f_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11952', + 'x-ms-correlation-request-id', + '241d0bfa-d263-4bd1-8532-66969911a558', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030602Z:241d0bfa-d263-4bd1-8532-66969911a558', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:01 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '57', + 'x-ms-request-id', + '8212982e-cb58-4b8c-9ac2-ea688101633f_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11951', + 'x-ms-correlation-request-id', + '109ad007-4da4-479a-82a5-d6fb23420068', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030602Z:109ad007-4da4-479a-82a5-d6fb23420068', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:01 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '57', + 'x-ms-request-id', + '9d9fa1f7-e532-4371-bd08-939ee5fae095_M3SN1_M3SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11950', + 'x-ms-correlation-request-id', + 'db3483c1-de35-4fa4-833b-347d562bf41c', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030603Z:db3483c1-de35-4fa4-833b-347d562bf41c', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:02 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '52', + 'x-ms-request-id', + '4209178b-7b7b-4ac8-9c3d-89295922da98_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11949', + 'x-ms-correlation-request-id', + '81ae5495-061e-4ee2-b8e1-4ebbfbb45d42', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030603Z:81ae5495-061e-4ee2-b8e1-4ebbfbb45d42', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:02 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '43', + 'x-ms-request-id', + '656426c0-6160-4997-a26a-a4914cac2991_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11948', + 'x-ms-correlation-request-id', + '2ef03013-8cc2-44d9-99ce-e90afbab4d2f', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030603Z:2ef03013-8cc2-44d9-99ce-e90afbab4d2f', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:03 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '39', + 'x-ms-request-id', + '156c36dd-5658-42c2-a65c-54b686c1b2b7_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11947', + 'x-ms-correlation-request-id', + '84c19883-f28e-4f61-a140-ca878eaad45b', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030604Z:84c19883-f28e-4f61-a140-ca878eaad45b', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:03 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '56', + 'x-ms-request-id', + '910a6f1e-bf8f-4743-a477-5654fb6a22c2_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11946', + 'x-ms-correlation-request-id', + 'c3ebd051-fd17-4f00-aab0-d07555fceed3', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030604Z:c3ebd051-fd17-4f00-aab0-d07555fceed3', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:03 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '38', + 'x-ms-request-id', + 'bcbec471-6d5b-4d51-b92f-42c53f065887_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11945', + 'x-ms-correlation-request-id', + 'fd1c26c0-57e6-40c3-8f1b-a5bb2eccf25a', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030605Z:fd1c26c0-57e6-40c3-8f1b-a5bb2eccf25a', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:04 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '36', + 'x-ms-request-id', + 'a4ea43cd-dc98-4895-8433-b6f98b8141c7_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11944', + 'x-ms-correlation-request-id', + 'dab37c75-6f0e-46dc-adf1-faf354f2677a', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030605Z:dab37c75-6f0e-46dc-adf1-faf354f2677a', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:04 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '41', + 'x-ms-request-id', + '50e3e967-2841-46fe-a087-f356fafef451_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11943', + 'x-ms-correlation-request-id', + '72a1a6bc-ea7c-475b-8383-c10c2faee26c', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030605Z:72a1a6bc-ea7c-475b-8383-c10c2faee26c', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:04 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '51', + 'x-ms-request-id', + '5130e16e-e77d-46b7-a5e0-8ae87442ed4f_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11942', + 'x-ms-correlation-request-id', + '6930453c-696c-41b6-bbc1-4bc58f4b36df', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030606Z:6930453c-696c-41b6-bbc1-4bc58f4b36df', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:05 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '33', + 'x-ms-request-id', + '80d1845a-6470-4210-995a-c2bb7a7bc180_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11941', + 'x-ms-correlation-request-id', + 'ddc70d08-9ba9-43b5-a67f-d3e482c54577', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030606Z:ddc70d08-9ba9-43b5-a67f-d3e482c54577', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:05 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '55', + 'x-ms-request-id', + 'aab00365-62fa-4192-852a-7dc08c58fd57_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11940', + 'x-ms-correlation-request-id', + '82e37d5c-92ed-4a64-ab4f-4e53986c18c2', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030607Z:82e37d5c-92ed-4a64-ab4f-4e53986c18c2', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:06 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '30', + 'x-ms-request-id', + '6382d6fd-055b-46e5-999b-43881180e9fd_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11939', + 'x-ms-correlation-request-id', + '442433a6-db73-4378-8d43-adc57fca8325', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030607Z:442433a6-db73-4378-8d43-adc57fca8325', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:06 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '55', + 'x-ms-request-id', + 'ecaf8120-63b8-45e6-9f68-cdf8a857491e_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11938', + 'x-ms-correlation-request-id', + '513d41fd-185d-4ace-a5f2-91b2838ef887', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030607Z:513d41fd-185d-4ace-a5f2-91b2838ef887', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:06 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '30', + 'x-ms-request-id', + '35f15d7e-27dc-44a1-8a09-7770f7f0b235_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11937', + 'x-ms-correlation-request-id', + 'f6671915-dce3-4e14-8183-bf270a4ecfab', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030608Z:f6671915-dce3-4e14-8183-bf270a4ecfab', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:07 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '46', + 'x-ms-request-id', + '1081f434-f950-41b0-8fce-79eb40c53afc_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11936', + 'x-ms-correlation-request-id', + 'c6734a73-4130-4836-a17c-05221fc976cb', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030608Z:c6734a73-4130-4836-a17c-05221fc976cb', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:07 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '54', + 'x-ms-request-id', + '9b3b127f-d9eb-4db0-8cb1-68010a5ecaef_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11935', + 'x-ms-correlation-request-id', + '4628fdef-a885-4a8b-b9da-4d5ebcbe1b89', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030609Z:4628fdef-a885-4a8b-b9da-4d5ebcbe1b89', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:08 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '42', + 'x-ms-request-id', + '778851ef-d789-49ce-8436-51048ec3c1a3_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11934', + 'x-ms-correlation-request-id', + 'a671253f-861e-430b-9a12-8029f6bcabc9', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030609Z:a671253f-861e-430b-9a12-8029f6bcabc9', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:08 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '34', + 'x-ms-request-id', + '15014ed7-8b14-458d-b036-9bbac6f1cf99_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11933', + 'x-ms-correlation-request-id', + '37f4cdd8-223f-405d-b4f5-6858c6b0a452', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030609Z:37f4cdd8-223f-405d-b4f5-6858c6b0a452', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:08 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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '56', + 'x-ms-request-id', + '1186366f-b1c2-4b4f-bd10-baba2675a8ac_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11932', + 'x-ms-correlation-request-id', + '5af74387-79a4-43d5-aa27-f914a21a7d93', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030610Z:5af74387-79a4-43d5-aa27-f914a21a7d93', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06: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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '57', + 'x-ms-request-id', + 'b48be349-a671-4ec8-ad44-4c2b7c6c9120_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11931', + 'x-ms-correlation-request-id', + '1cee2620-51dd-45ef-a167-fb55fe4703c7', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030610Z:1cee2620-51dd-45ef-a167-fb55fe4703c7', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06: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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '42', + 'x-ms-request-id', + '2c5fe4d1-af66-4a7c-aefe-f6a5f864b1b6_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11930', + 'x-ms-correlation-request-id', + '36c86744-3e1d-4992-9f65-11d680f08261', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030611Z:36c86744-3e1d-4992-9f65-11d680f08261', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06: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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '51', + 'x-ms-request-id', + '8090b64a-6215-47b5-bdd5-477530138590_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11929', + 'x-ms-correlation-request-id', + '80ed9cdd-e4e0-4e57-8bb6-8e868d8684e8', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030611Z:80ed9cdd-e4e0-4e57-8bb6-8e868d8684e8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06: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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '59', + 'x-ms-request-id', + '810fc1c0-5bed-4455-b369-1a795c7181b0_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11928', + 'x-ms-correlation-request-id', + 'a747083d-b46e-4f5c-8462-4c7ac07c0fd1', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030611Z:a747083d-b46e-4f5c-8462-4c7ac07c0fd1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06: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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '57', + 'x-ms-request-id', + '96c0fc1c-3ffd-4d61-b678-2f872b54c468_M3SN1_M3SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11927', + 'x-ms-correlation-request-id', + '77d0c693-9231-444b-8709-60b72ab55af5', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030612Z:77d0c693-9231-444b-8709-60b72ab55af5', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06: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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '35', + 'x-ms-request-id', + '936d49b8-d33d-4445-9e64-bea5418e0f8c_M4SN1_M4SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11926', + 'x-ms-correlation-request-id', + '176aeaa1-9543-4213-96eb-3190acdf2afd', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030612Z:176aeaa1-9543-4213-96eb-3190acdf2afd', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06: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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '33', + 'x-ms-request-id', + 'c7ee28d3-7b42-4fea-88e8-5a0606d8b77f_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11925', + 'x-ms-correlation-request-id', + 'af50b183-7ccf-4e9b-bdd9-a79a088f170b', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030613Z:af50b183-7ccf-4e9b-bdd9-a79a088f170b', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06: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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '36', + 'x-ms-request-id', + 'c00b4527-b170-439d-ae80-0595f3040d4b_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11924', + 'x-ms-correlation-request-id', + '8008d8cf-3afa-4526-9f9c-6cbfddab1533', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030613Z:8008d8cf-3afa-4526-9f9c-6cbfddab1533', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06: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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '33', + 'x-ms-request-id', + '7775758a-f161-4126-aa35-5ba36ec62a97_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11923', + 'x-ms-correlation-request-id', + '0b63095e-13e0-4d9f-8621-883ffd436a24', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030613Z:0b63095e-13e0-4d9f-8621-883ffd436a24', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06: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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '47', + 'x-ms-request-id', + 'aaad6c77-594b-4a41-9b3c-3b76f4af822c_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11922', + 'x-ms-correlation-request-id', + 'e84b71ec-d515-4363-aa9b-fcc9a7195aff', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030614Z:e84b71ec-d515-4363-aa9b-fcc9a7195aff', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06: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-10-08T03:04:43.667Z","updatedAt":"2021-10-08T03:05:52.407Z","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-06-01-preview', + 'Retry-After', + '58', + 'x-ms-request-id', + 'cf05a0e8-8b03-41ee-93d1-2a92e8fa31c8_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11921', + 'x-ms-correlation-request-id', + '4fe4bb33-384f-4b6b-99ad-4f3ce506f464', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030614Z:4fe4bb33-384f-4b6b-99ad-4f3ce506f464', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06: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(200, "", [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Expires', + '-1', + 'x-ms-request-id', + '14f74354-7981-443b-9158-9270a9177908_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11920', + 'x-ms-correlation-request-id', + 'e82958b7-f521-473d-9a36-aec952e2f18c', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030615Z:e82958b7-f521-473d-9a36-aec952e2f18c', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:14 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', + '0e69b1c7-5867-4d45-b851-ece0a4acee83_M11SN1_M11SN1', + 'Server-SB', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Service-Bus-Resource-Provider/SN1', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'x-ms-ratelimit-remaining-subscription-reads', + '11919', + 'x-ms-correlation-request-id', + '91ffd0c3-6bde-4422-80bc-942b5c662c66', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211008T030615Z:91ffd0c3-6bde-4422-80bc-942b5c662c66', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Fri, 08 Oct 2021 03:06:14 GMT' +]); diff --git a/sdk/eventhub/arm-eventhub/review/arm-eventhub.api.md b/sdk/eventhub/arm-eventhub/review/arm-eventhub.api.md index 9c736f6808d4..9cb2479ae090 100644 --- a/sdk/eventhub/arm-eventhub/review/arm-eventhub.api.md +++ b/sdk/eventhub/arm-eventhub/review/arm-eventhub.api.md @@ -26,6 +26,7 @@ export type AccessRights = string; // @public export type ArmDisasterRecovery = Resource & { + readonly systemData?: SystemData; readonly provisioningState?: ProvisioningStateDR; partnerNamespace?: string; alternateName?: string; @@ -41,6 +42,7 @@ export interface ArmDisasterRecoveryListResult { // @public export type AuthorizationRule = Resource & { + readonly systemData?: SystemData; rights?: AccessRights[]; }; @@ -85,6 +87,7 @@ export interface CheckNameAvailabilityResult { // @public export type Cluster = TrackedResource & { sku?: ClusterSku; + readonly systemData?: SystemData; readonly createdAt?: string; readonly updatedAt?: string; readonly metricId?: string; @@ -115,6 +118,7 @@ export interface Clusters { get(resourceGroupName: string, clusterName: string, options?: ClustersGetOptionalParams): Promise; listAvailableClusterRegion(options?: ClustersListAvailableClusterRegionOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: ClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: ClustersListBySubscriptionOptionalParams): PagedAsyncIterableIterator; listNamespaces(resourceGroupName: string, clusterName: string, options?: ClustersListNamespacesOptionalParams): Promise; } @@ -170,6 +174,20 @@ export interface ClustersListByResourceGroupOptionalParams extends coreClient.Op // @public export type ClustersListByResourceGroupResponse = ClusterListResult; +// @public +export interface ClustersListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ClustersListBySubscriptionNextResponse = ClusterListResult; + +// @public +export interface ClustersListBySubscriptionOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ClustersListBySubscriptionResponse = ClusterListResult; + // @public export interface ClustersListNamespacesOptionalParams extends coreClient.OperationOptions { } @@ -214,6 +232,7 @@ export interface ConnectionState { // @public export type ConsumerGroup = Resource & { + readonly systemData?: SystemData; readonly createdAt?: Date; readonly updatedAt?: Date; userMetadata?: string; @@ -269,6 +288,9 @@ export interface ConsumerGroupsListByEventHubOptionalParams extends coreClient.O // @public export type ConsumerGroupsListByEventHubResponse = ConsumerGroupListResult; +// @public +export type CreatedByType = string; + // @public export type DefaultAction = string; @@ -373,6 +395,7 @@ export type DisasterRecoveryConfigsListResponse = ArmDisasterRecoveryListResult; export type EHNamespace = TrackedResource & { sku?: Sku; identity?: Identity; + readonly systemData?: SystemData; readonly provisioningState?: string; readonly status?: string; readonly createdAt?: Date; @@ -385,6 +408,8 @@ export type EHNamespace = TrackedResource & { kafkaEnabled?: boolean; zoneRedundant?: boolean; encryption?: Encryption; + privateEndpointConnections?: PrivateEndpointConnection[]; + disableLocalAuth?: boolean; }; // @public @@ -410,6 +435,7 @@ export type EncodingCaptureDescription = "Avro" | "AvroDeflate"; export interface Encryption { keySource?: "Microsoft.KeyVault"; keyVaultProperties?: KeyVaultProperties[]; + requireInfrastructureEncryption?: boolean; } // @public @@ -426,6 +452,7 @@ export interface ErrorResponse { // @public export type Eventhub = Resource & { + readonly systemData?: SystemData; readonly partitionIds?: string[]; readonly createdAt?: Date; readonly updatedAt?: Date; @@ -462,8 +489,6 @@ export class EventHubManagementClient extends EventHubManagementClientContext { privateEndpointConnections: PrivateEndpointConnections; // (undocumented) privateLinkResources: PrivateLinkResources; - // (undocumented) - regions: Regions; } // @public (undocumented) @@ -582,33 +607,21 @@ export type EventHubsRegenerateKeysResponse = AccessKeys; // @public export interface Identity { - principalId?: string; - tenantId?: string; - type?: "SystemAssigned"; -} - -// @public -export type IPAction = string; - -// @public -export type IpFilterRule = Resource & { - ipMask?: string; - action?: IPAction; - filterName?: string; -}; - -// @public -export interface IpFilterRuleListResult { - nextLink?: string; - value?: IpFilterRule[]; + readonly principalId?: string; + readonly tenantId?: string; + type?: ManagedServiceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentity; + }; } // @public -type KeyType_2 = "PrimaryKey" | "SecondaryKey"; -export { KeyType_2 as KeyType } +export type KeyType = "PrimaryKey" | "SecondaryKey"; // @public export interface KeyVaultProperties { + // (undocumented) + identity?: UserAssignedIdentityProperties; keyName?: string; keyVaultUri?: string; keyVersion?: string; @@ -630,6 +643,18 @@ export enum KnownClusterSkuName { Dedicated = "Dedicated" } +// @public +export enum KnownCreatedByType { + // (undocumented) + Application = "Application", + // (undocumented) + Key = "Key", + // (undocumented) + ManagedIdentity = "ManagedIdentity", + // (undocumented) + User = "User" +} + // @public export enum KnownDefaultAction { // (undocumented) @@ -654,14 +679,6 @@ export enum KnownEndPointProvisioningState { Updating = "Updating" } -// @public -export enum KnownIPAction { - // (undocumented) - Accept = "Accept", - // (undocumented) - Reject = "Reject" -} - // @public export enum KnownNetworkRuleIPAction { // (undocumented) @@ -680,11 +697,21 @@ export enum KnownPrivateLinkConnectionStatus { Rejected = "Rejected" } +// @public +export enum KnownPublicNetworkAccessFlag { + // (undocumented) + Disabled = "Disabled", + // (undocumented) + Enabled = "Enabled" +} + // @public export enum KnownSkuName { // (undocumented) Basic = "Basic", // (undocumented) + Premium = "Premium", + // (undocumented) Standard = "Standard" } @@ -693,25 +720,13 @@ export enum KnownSkuTier { // (undocumented) Basic = "Basic", // (undocumented) + Premium = "Premium", + // (undocumented) Standard = "Standard" } // @public -export type MessagingRegions = TrackedResource & { - properties?: MessagingRegionsProperties; -}; - -// @public -export interface MessagingRegionsListResult { - readonly nextLink?: string; - value?: MessagingRegions[]; -} - -// @public -export interface MessagingRegionsProperties { - readonly code?: string; - readonly fullName?: string; -} +export type ManagedServiceIdentityType = "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None"; // @public export interface Namespaces { @@ -721,23 +736,15 @@ export interface Namespaces { beginDeleteAndWait(resourceGroupName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams): Promise; checkNameAvailability(parameters: CheckNameAvailabilityParameter, options?: NamespacesCheckNameAvailabilityOptionalParams): Promise; createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: AuthorizationRule, options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams): Promise; - createOrUpdateIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, parameters: IpFilterRule, options?: NamespacesCreateOrUpdateIpFilterRuleOptionalParams): Promise; createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: NetworkRuleSet, options?: NamespacesCreateOrUpdateNetworkRuleSetOptionalParams): Promise; - createOrUpdateVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, parameters: VirtualNetworkRule, options?: NamespacesCreateOrUpdateVirtualNetworkRuleOptionalParams): Promise; deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesDeleteAuthorizationRuleOptionalParams): Promise; - deleteIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, options?: NamespacesDeleteIpFilterRuleOptionalParams): Promise; - deleteVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, options?: NamespacesDeleteVirtualNetworkRuleOptionalParams): Promise; get(resourceGroupName: string, namespaceName: string, options?: NamespacesGetOptionalParams): Promise; getAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesGetAuthorizationRuleOptionalParams): Promise; - getIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, options?: NamespacesGetIpFilterRuleOptionalParams): Promise; getNetworkRuleSet(resourceGroupName: string, namespaceName: string, options?: NamespacesGetNetworkRuleSetOptionalParams): Promise; - getVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, options?: NamespacesGetVirtualNetworkRuleOptionalParams): Promise; list(options?: NamespacesListOptionalParams): PagedAsyncIterableIterator; listAuthorizationRules(resourceGroupName: string, namespaceName: string, options?: NamespacesListAuthorizationRulesOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: NamespacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - listIPFilterRules(resourceGroupName: string, namespaceName: string, options?: NamespacesListIPFilterRulesOptionalParams): PagedAsyncIterableIterator; listKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesListKeysOptionalParams): Promise; - listVirtualNetworkRules(resourceGroupName: string, namespaceName: string, options?: NamespacesListVirtualNetworkRulesOptionalParams): PagedAsyncIterableIterator; regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: RegenerateAccessKeyParameters, options?: NamespacesRegenerateKeysOptionalParams): Promise; update(resourceGroupName: string, namespaceName: string, parameters: EHNamespace, options?: NamespacesUpdateOptionalParams): Promise; } @@ -756,13 +763,6 @@ export interface NamespacesCreateOrUpdateAuthorizationRuleOptionalParams extends // @public export type NamespacesCreateOrUpdateAuthorizationRuleResponse = AuthorizationRule; -// @public -export interface NamespacesCreateOrUpdateIpFilterRuleOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NamespacesCreateOrUpdateIpFilterRuleResponse = IpFilterRule; - // @public export interface NamespacesCreateOrUpdateNetworkRuleSetOptionalParams extends coreClient.OperationOptions { } @@ -779,31 +779,16 @@ export interface NamespacesCreateOrUpdateOptionalParams extends coreClient.Opera // @public export type NamespacesCreateOrUpdateResponse = EHNamespace; -// @public -export interface NamespacesCreateOrUpdateVirtualNetworkRuleOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NamespacesCreateOrUpdateVirtualNetworkRuleResponse = VirtualNetworkRule; - // @public export interface NamespacesDeleteAuthorizationRuleOptionalParams extends coreClient.OperationOptions { } -// @public -export interface NamespacesDeleteIpFilterRuleOptionalParams extends coreClient.OperationOptions { -} - // @public export interface NamespacesDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } -// @public -export interface NamespacesDeleteVirtualNetworkRuleOptionalParams extends coreClient.OperationOptions { -} - // @public export interface NamespacesGetAuthorizationRuleOptionalParams extends coreClient.OperationOptions { } @@ -811,13 +796,6 @@ export interface NamespacesGetAuthorizationRuleOptionalParams extends coreClient // @public export type NamespacesGetAuthorizationRuleResponse = AuthorizationRule; -// @public -export interface NamespacesGetIpFilterRuleOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NamespacesGetIpFilterRuleResponse = IpFilterRule; - // @public export interface NamespacesGetNetworkRuleSetOptionalParams extends coreClient.OperationOptions { } @@ -832,13 +810,6 @@ export interface NamespacesGetOptionalParams extends coreClient.OperationOptions // @public export type NamespacesGetResponse = EHNamespace; -// @public -export interface NamespacesGetVirtualNetworkRuleOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NamespacesGetVirtualNetworkRuleResponse = VirtualNetworkRule; - // @public export interface NamespacesListAuthorizationRulesNextOptionalParams extends coreClient.OperationOptions { } @@ -867,20 +838,6 @@ export interface NamespacesListByResourceGroupOptionalParams extends coreClient. // @public export type NamespacesListByResourceGroupResponse = EHNamespaceListResult; -// @public -export interface NamespacesListIPFilterRulesNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NamespacesListIPFilterRulesNextResponse = IpFilterRuleListResult; - -// @public -export interface NamespacesListIPFilterRulesOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NamespacesListIPFilterRulesResponse = IpFilterRuleListResult; - // @public export interface NamespacesListKeysOptionalParams extends coreClient.OperationOptions { } @@ -902,20 +859,6 @@ export interface NamespacesListOptionalParams extends coreClient.OperationOption // @public export type NamespacesListResponse = EHNamespaceListResult; -// @public -export interface NamespacesListVirtualNetworkRulesNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NamespacesListVirtualNetworkRulesNextResponse = VirtualNetworkRuleListResult; - -// @public -export interface NamespacesListVirtualNetworkRulesOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NamespacesListVirtualNetworkRulesResponse = VirtualNetworkRuleListResult; - // @public export interface NamespacesRegenerateKeysOptionalParams extends coreClient.OperationOptions { } @@ -935,10 +878,12 @@ export type NetworkRuleIPAction = string; // @public export type NetworkRuleSet = Resource & { + readonly systemData?: SystemData; trustedServiceAccessEnabled?: boolean; defaultAction?: DefaultAction; virtualNetworkRules?: NWRuleSetVirtualNetworkRules[]; ipRules?: NWRuleSetIpRules[]; + publicNetworkAccess?: PublicNetworkAccessFlag; }; // @public @@ -998,6 +943,7 @@ export interface PrivateEndpoint { // @public export type PrivateEndpointConnection = Resource & { + readonly systemData?: SystemData; privateEndpoint?: PrivateEndpoint; privateLinkServiceConnectionState?: ConnectionState; provisioningState?: EndPointProvisioningState; @@ -1087,30 +1033,14 @@ export interface PrivateLinkResourcesListResult { export type ProvisioningStateDR = "Accepted" | "Succeeded" | "Failed"; // @public -export interface RegenerateAccessKeyParameters { - key?: string; - keyType: KeyType_2; -} - -// @public -export interface Regions { - listBySku(sku: string, options?: RegionsListBySkuOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface RegionsListBySkuNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type RegionsListBySkuNextResponse = MessagingRegionsListResult; +export type PublicNetworkAccessFlag = string; // @public -export interface RegionsListBySkuOptionalParams extends coreClient.OperationOptions { +export interface RegenerateAccessKeyParameters { + key?: string; + keyType: KeyType; } -// @public -export type RegionsListBySkuResponse = MessagingRegionsListResult; - // @public export interface Resource { readonly id?: string; @@ -1139,6 +1069,16 @@ export interface Subnet { id?: string; } +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + // @public export type TrackedResource = Resource & { location?: string; @@ -1151,16 +1091,17 @@ export type TrackedResource = Resource & { export type UnavailableReason = "None" | "InvalidName" | "SubscriptionIsDisabled" | "NameInUse" | "NameInLockdown" | "TooManyNamespaceInCurrentSubscription"; // @public -export type VirtualNetworkRule = Resource & { - virtualNetworkSubnetId?: string; -}; +export interface UserAssignedIdentity { + readonly clientId?: string; + readonly principalId?: string; +} -// @public -export interface VirtualNetworkRuleListResult { - nextLink?: string; - value?: VirtualNetworkRule[]; +// @public (undocumented) +export interface UserAssignedIdentityProperties { + userAssignedIdentity?: string; } + // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts b/sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts index f9f3fcb01f1b..f1be4eba271d 100644 --- a/sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts +++ b/sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts @@ -9,27 +9,25 @@ import * as coreAuth from "@azure/core-auth"; import { ClustersImpl, + ConfigurationImpl, NamespacesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, - ConfigurationImpl, - DisasterRecoveryConfigsImpl, - EventHubsImpl, - ConsumerGroupsImpl, OperationsImpl, - RegionsImpl + EventHubsImpl, + DisasterRecoveryConfigsImpl, + ConsumerGroupsImpl } from "./operations"; import { Clusters, + Configuration, Namespaces, PrivateEndpointConnections, PrivateLinkResources, - Configuration, - DisasterRecoveryConfigs, - EventHubs, - ConsumerGroups, Operations, - Regions + EventHubs, + DisasterRecoveryConfigs, + ConsumerGroups } from "./operationsInterfaces"; import { EventHubManagementClientContext } from "./eventHubManagementClientContext"; import { EventHubManagementClientOptionalParams } from "./models"; @@ -49,25 +47,23 @@ export class EventHubManagementClient extends EventHubManagementClientContext { ) { super(credentials, subscriptionId, options); this.clusters = new ClustersImpl(this); + this.configuration = new ConfigurationImpl(this); this.namespaces = new NamespacesImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); - this.configuration = new ConfigurationImpl(this); - this.disasterRecoveryConfigs = new DisasterRecoveryConfigsImpl(this); + this.operations = new OperationsImpl(this); this.eventHubs = new EventHubsImpl(this); + this.disasterRecoveryConfigs = new DisasterRecoveryConfigsImpl(this); this.consumerGroups = new ConsumerGroupsImpl(this); - this.operations = new OperationsImpl(this); - this.regions = new RegionsImpl(this); } clusters: Clusters; + configuration: Configuration; namespaces: Namespaces; privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; - configuration: Configuration; - disasterRecoveryConfigs: DisasterRecoveryConfigs; + operations: Operations; eventHubs: EventHubs; + disasterRecoveryConfigs: DisasterRecoveryConfigs; consumerGroups: ConsumerGroups; - operations: Operations; - regions: Regions; } diff --git a/sdk/eventhub/arm-eventhub/src/eventHubManagementClientContext.ts b/sdk/eventhub/arm-eventhub/src/eventHubManagementClientContext.ts index 60a0193d6bc2..6cbbfc4a7eab 100644 --- a/sdk/eventhub/arm-eventhub/src/eventHubManagementClientContext.ts +++ b/sdk/eventhub/arm-eventhub/src/eventHubManagementClientContext.ts @@ -43,7 +43,7 @@ export class EventHubManagementClientContext extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-eventhub/30.0.0-beta.1`; + const packageDetails = `azsdk-js-arm-eventhub/30.0.0-beta.2`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -66,6 +66,6 @@ export class EventHubManagementClientContext extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2018-01-01-preview"; + this.apiVersion = options.apiVersion || "2021-06-01-preview"; } } diff --git a/sdk/eventhub/arm-eventhub/src/models/index.ts b/sdk/eventhub/arm-eventhub/src/models/index.ts index fcace8754478..fd3c0a74d6f7 100644 --- a/sdk/eventhub/arm-eventhub/src/models/index.ts +++ b/sdk/eventhub/arm-eventhub/src/models/index.ts @@ -63,6 +63,22 @@ export interface ClusterSku { capacity?: number; } +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The type of identity that last modified the resource. */ + lastModifiedAt?: Date; +} + /** The response of the List Namespace IDs operation */ export interface EHNamespaceIdListResult { /** Result of the List Namespace IDs operation */ @@ -75,12 +91,10 @@ export interface EHNamespaceIdContainer { id?: string; } -/** The response from the List namespace operation. */ -export interface IpFilterRuleListResult { - /** Result of the List IpFilter Rules operation. */ - value?: IpFilterRule[]; - /** Link to the next set of results. Not empty if Value contains an incomplete list of IpFilter Rules */ - nextLink?: string; +/** Contains all settings for the cluster. */ +export interface ClusterQuotaConfigurationProperties { + /** All possible Cluster settings - a collection of key/value paired settings which apply to quotas and configurations imposed on the cluster. */ + settings?: { [propertyName: string]: string }; } /** The response of the List Namespace operation */ @@ -97,18 +111,40 @@ export interface Sku { name: SkuName; /** The billing tier of this particular SKU. */ tier?: SkuTier; - /** The Event Hubs throughput units, value should be 0 to 20 throughput units. */ + /** The Event Hubs throughput units for Basic or Standard tiers, where value should be 0 to 20 throughput units. The Event Hubs premium units for Premium tier, where value should be 0 to 10 premium units. */ capacity?: number; } /** Properties to configure Identity for Bring your Own Keys */ export interface Identity { - /** ObjectId from the KeyVault */ - principalId?: string; - /** TenantId from the KeyVault */ - tenantId?: string; - /** Enumerates the possible value Identity type, which currently supports only 'SystemAssigned' */ - type?: "SystemAssigned"; + /** + * ObjectId from the KeyVault + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * TenantId from the KeyVault + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** Type of managed service identity. */ + type?: ManagedServiceIdentityType; + /** Properties for User Assigned Identities */ + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; +} + +/** Recognized Dictionary value. */ +export interface UserAssignedIdentity { + /** + * Principal Id of user assigned identity + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * Client Id of user assigned identity + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; } /** Properties to configure Encryption */ @@ -117,6 +153,8 @@ export interface Encryption { keyVaultProperties?: KeyVaultProperties[]; /** Enumerates the possible value of keySource for Encryption */ keySource?: "Microsoft.KeyVault"; + /** Enable Infrastructure Encryption (Double Encryption) */ + requireInfrastructureEncryption?: boolean; } /** Properties to configure keyVault Properties */ @@ -127,14 +165,12 @@ export interface KeyVaultProperties { keyVaultUri?: string; /** Key Version */ keyVersion?: string; + identity?: UserAssignedIdentityProperties; } -/** Result of the list of all private endpoint connections operation. */ -export interface PrivateEndpointConnectionListResult { - /** A collection of private endpoint connection resources. */ - value?: PrivateEndpointConnection[]; - /** A link for the next page of private endpoint connection resources. */ - nextLink?: string; +export interface UserAssignedIdentityProperties { + /** ARM ID of user Identity selected for encryption */ + userAssignedIdentity?: string; } /** PrivateEndpoint information. */ @@ -151,6 +187,14 @@ export interface ConnectionState { description?: string; } +/** Result of the list of all private endpoint connections operation. */ +export interface PrivateEndpointConnectionListResult { + /** A collection of private endpoint connection resources. */ + value?: PrivateEndpointConnection[]; + /** A link for the next page of private endpoint connection resources. */ + nextLink?: string; +} + /** Result of the List private link resources operation. */ export interface PrivateLinkResourcesListResult { /** A collection of private link resources */ @@ -175,135 +219,6 @@ export interface PrivateLinkResource { requiredZoneNames?: string[]; } -/** Contains all settings for the cluster. */ -export interface ClusterQuotaConfigurationProperties { - /** All possible Cluster settings - a collection of key/value paired settings which apply to quotas and configurations imposed on the cluster. */ - settings?: { [propertyName: string]: string }; -} - -/** The response from the List namespace operation. */ -export interface VirtualNetworkRuleListResult { - /** Result of the List VirtualNetwork Rules operation. */ - value?: VirtualNetworkRule[]; - /** Link to the next set of results. Not empty if Value contains an incomplete list of VirtualNetwork Rules */ - nextLink?: string; -} - -/** The response from the List namespace operation. */ -export interface NWRuleSetVirtualNetworkRules { - /** Subnet properties */ - subnet?: Subnet; - /** Value that indicates whether to ignore missing Vnet Service Endpoint */ - ignoreMissingVnetServiceEndpoint?: boolean; -} - -/** Properties supplied for Subnet */ -export interface Subnet { - /** Resource ID of Virtual Network Subnet */ - id?: string; -} - -/** The response from the List namespace operation. */ -export interface NWRuleSetIpRules { - /** IP Mask */ - ipMask?: string; - /** The IP Filter Action */ - action?: NetworkRuleIPAction; -} - -/** The response from the List namespace operation. */ -export interface AuthorizationRuleListResult { - /** Result of the List Authorization Rules operation. */ - value?: AuthorizationRule[]; - /** Link to the next set of results. Not empty if Value contains an incomplete list of Authorization Rules */ - nextLink?: string; -} - -/** Namespace/EventHub Connection String */ -export interface AccessKeys { - /** - * Primary connection string of the created namespace AuthorizationRule. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly primaryConnectionString?: string; - /** - * Secondary connection string of the created namespace AuthorizationRule. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly secondaryConnectionString?: string; - /** - * Primary connection string of the alias if GEO DR is enabled - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly aliasPrimaryConnectionString?: string; - /** - * Secondary connection string of the alias if GEO DR is enabled - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly aliasSecondaryConnectionString?: string; - /** - * A base64-encoded 256-bit primary key for signing and validating the SAS token. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly primaryKey?: string; - /** - * A base64-encoded 256-bit primary key for signing and validating the SAS token. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly secondaryKey?: string; - /** - * A string that describes the AuthorizationRule. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly keyName?: string; -} - -/** Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs to be reset. */ -export interface RegenerateAccessKeyParameters { - /** The access key to regenerate. */ - keyType: KeyType; - /** Optional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType */ - key?: string; -} - -/** Parameter supplied to check Namespace name availability operation */ -export interface CheckNameAvailabilityParameter { - /** Name to check the namespace name availability */ - name: string; -} - -/** The Result of the CheckNameAvailability operation */ -export interface CheckNameAvailabilityResult { - /** - * The detailed info regarding the reason associated with the Namespace. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly message?: string; - /** Value indicating Namespace is availability, true if the Namespace is available; otherwise, false. */ - nameAvailable?: boolean; - /** The reason for unavailability of a Namespace. */ - reason?: UnavailableReason; -} - -/** The result to the List Consumer Group operation. */ -export interface ConsumerGroupListResult { - /** Result of the List Consumer Group operation. */ - value?: ConsumerGroup[]; - /** Link to the next set of results. Not empty if Value contains incomplete list of Consumer Group */ - nextLink?: string; -} - -/** The result of the List Alias(Disaster Recovery configuration) operation. */ -export interface ArmDisasterRecoveryListResult { - /** List of Alias(Disaster Recovery configurations) */ - value?: ArmDisasterRecovery[]; - /** - * Link to the next set of results. Not empty if Value contains incomplete list of Alias(Disaster Recovery configuration) - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - /** Result of the request to list Event Hub operations. It contains a list of operations and a URL link to get the next set of results. */ export interface OperationListResult { /** @@ -384,29 +299,119 @@ export interface Destination { archiveNameFormat?: string; } -/** The response of the List MessagingRegions operation. */ -export interface MessagingRegionsListResult { - /** Result of the List MessagingRegions type. */ - value?: MessagingRegions[]; +/** Parameter supplied to check Namespace name availability operation */ +export interface CheckNameAvailabilityParameter { + /** Name to check the namespace name availability */ + name: string; +} + +/** The Result of the CheckNameAvailability operation */ +export interface CheckNameAvailabilityResult { /** - * Link to the next set of results. Not empty if Value contains incomplete list of MessagingRegions. + * The detailed info regarding the reason associated with the Namespace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** Value indicating Namespace is availability, true if the Namespace is available; otherwise, false. */ + nameAvailable?: boolean; + /** The reason for unavailability of a Namespace. */ + reason?: UnavailableReason; +} + +/** The result of the List Alias(Disaster Recovery configuration) operation. */ +export interface ArmDisasterRecoveryListResult { + /** List of Alias(Disaster Recovery configurations) */ + value?: ArmDisasterRecovery[]; + /** + * Link to the next set of results. Not empty if Value contains incomplete list of Alias(Disaster Recovery configuration) * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } -/** Properties of Messaging Region */ -export interface MessagingRegionsProperties { +/** The response from the List namespace operation. */ +export interface NWRuleSetVirtualNetworkRules { + /** Subnet properties */ + subnet?: Subnet; + /** Value that indicates whether to ignore missing Vnet Service Endpoint */ + ignoreMissingVnetServiceEndpoint?: boolean; +} + +/** Properties supplied for Subnet */ +export interface Subnet { + /** Resource ID of Virtual Network Subnet */ + id?: string; +} + +/** The response from the List namespace operation. */ +export interface NWRuleSetIpRules { + /** IP Mask */ + ipMask?: string; + /** The IP Filter Action */ + action?: NetworkRuleIPAction; +} + +/** The response from the List namespace operation. */ +export interface AuthorizationRuleListResult { + /** Result of the List Authorization Rules operation. */ + value?: AuthorizationRule[]; + /** Link to the next set of results. Not empty if Value contains an incomplete list of Authorization Rules */ + nextLink?: string; +} + +/** Namespace/EventHub Connection String */ +export interface AccessKeys { + /** + * Primary connection string of the created namespace AuthorizationRule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly primaryConnectionString?: string; + /** + * Secondary connection string of the created namespace AuthorizationRule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secondaryConnectionString?: string; + /** + * Primary connection string of the alias if GEO DR is enabled + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly aliasPrimaryConnectionString?: string; + /** + * Secondary connection string of the alias if GEO DR is enabled + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly aliasSecondaryConnectionString?: string; + /** + * A base64-encoded 256-bit primary key for signing and validating the SAS token. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly primaryKey?: string; /** - * Region code + * A base64-encoded 256-bit primary key for signing and validating the SAS token. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly code?: string; + readonly secondaryKey?: string; /** - * Full name of the region + * A string that describes the AuthorizationRule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullName?: string; + readonly keyName?: string; +} + +/** Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs to be reset. */ +export interface RegenerateAccessKeyParameters { + /** The access key to regenerate. */ + keyType: KeyType; + /** Optional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType */ + key?: string; +} + +/** The result to the List Consumer Group operation. */ +export interface ConsumerGroupListResult { + /** Result of the List Consumer Group operation. */ + value?: ConsumerGroup[]; + /** Link to the next set of results. Not empty if Value contains incomplete list of Consumer Group */ + nextLink?: string; } /** Definition of resource. */ @@ -417,18 +422,13 @@ export type TrackedResource = Resource & { tags?: { [propertyName: string]: string }; }; -/** Single item in a List or Get IpFilterRules operation */ -export type IpFilterRule = Resource & { - /** IP Mask */ - ipMask?: string; - /** The IP Filter Action */ - action?: IPAction; - /** IP Filter name */ - filterName?: string; -}; - /** Properties of the PrivateEndpointConnection. */ export type PrivateEndpointConnection = Resource & { + /** + * The system meta data relating to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; /** The Private Endpoint resource for this Connection. */ privateEndpoint?: PrivateEndpoint; /** Details about the state of the connection. */ @@ -437,34 +437,20 @@ export type PrivateEndpointConnection = Resource & { provisioningState?: EndPointProvisioningState; }; -/** Single item in a List or Get VirtualNetworkRules operation */ -export type VirtualNetworkRule = Resource & { - /** ARM ID of Virtual Network Subnet */ - virtualNetworkSubnetId?: string; -}; - -/** Description of topic resource. */ -export type NetworkRuleSet = Resource & { - /** Value that indicates whether Trusted Service Access is Enabled or not. */ - trustedServiceAccessEnabled?: boolean; - /** Default Action for Network Rule Set */ - defaultAction?: DefaultAction; - /** List VirtualNetwork Rules */ - virtualNetworkRules?: NWRuleSetVirtualNetworkRules[]; - /** List of IpRules */ - ipRules?: NWRuleSetIpRules[]; -}; - -/** Single item in a List or Get AuthorizationRule operation */ -export type AuthorizationRule = Resource & { - /** The rights associated with the rule. */ - rights?: AccessRights[]; -}; - -/** Single item in List or Get Consumer group operation */ -export type ConsumerGroup = Resource & { +/** Single item in List or Get Event Hub operation */ +export type Eventhub = Resource & { /** - * Exact time the message was created. + * The system meta data relating to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** + * Current number of shards on the Event Hub. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly partitionIds?: string[]; + /** + * Exact time the Event Hub was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly createdAt?: Date; @@ -473,12 +459,23 @@ export type ConsumerGroup = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ 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; + /** Number of days to retain the events for this Event Hub, value should be 1 to 7 days */ + messageRetentionInDays?: number; + /** Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions. */ + partitionCount?: number; + /** Enumerates the possible values for the status of the Event Hub. */ + status?: EntityStatus; + /** Properties of capture description */ + captureDescription?: CaptureDescription; }; /** Single item in List or Get Alias(Disaster Recovery configuration) operation */ export type ArmDisasterRecovery = Resource & { + /** + * The system meta data relating to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; /** * Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed' * NOTE: This property will not be serialized. It can only be populated by the server. @@ -500,15 +497,45 @@ export type ArmDisasterRecovery = Resource & { readonly pendingReplicationOperationsCount?: number; }; -/** Single item in List or Get Event Hub operation */ -export type Eventhub = Resource & { +/** Description of topic resource. */ +export type NetworkRuleSet = Resource & { /** - * Current number of shards on the Event Hub. + * The system meta data relating to this resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly partitionIds?: string[]; + readonly systemData?: SystemData; + /** Value that indicates whether Trusted Service Access is Enabled or not. */ + trustedServiceAccessEnabled?: boolean; + /** Default Action for Network Rule Set */ + defaultAction?: DefaultAction; + /** List VirtualNetwork Rules */ + virtualNetworkRules?: NWRuleSetVirtualNetworkRules[]; + /** List of IpRules */ + 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 = Resource & { /** - * Exact time the Event Hub was created. + * The system meta data relating to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The rights associated with the rule. */ + rights?: AccessRights[]; +}; + +/** Single item in List or Get Consumer group operation */ +export type ConsumerGroup = Resource & { + /** + * The system meta data relating to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** + * Exact time the message was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly createdAt?: Date; @@ -517,20 +544,19 @@ export type Eventhub = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly updatedAt?: Date; - /** Number of days to retain the events for this Event Hub, value should be 1 to 7 days */ - messageRetentionInDays?: number; - /** Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions. */ - partitionCount?: number; - /** Enumerates the possible values for the status of the Event Hub. */ - status?: EntityStatus; - /** Properties of capture description */ - captureDescription?: CaptureDescription; + /** 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 Event Hubs Cluster resource in List or Get operations. */ export type Cluster = TrackedResource & { /** Properties of the cluster SKU. */ sku?: ClusterSku; + /** + * The system meta data relating to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; /** * The UTC time when the Event Hubs Cluster was created. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -559,6 +585,11 @@ export type EHNamespace = TrackedResource & { sku?: Sku; /** Properties of BYOK Identity description */ identity?: Identity; + /** + * The system meta data relating to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; /** * Provisioning state of the Namespace. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -601,12 +632,10 @@ export type EHNamespace = TrackedResource & { zoneRedundant?: boolean; /** Properties of BYOK Encryption description */ encryption?: Encryption; -}; - -/** Messaging Region */ -export type MessagingRegions = TrackedResource & { - /** Properties of Messaging Region */ - properties?: MessagingRegionsProperties; + /** List of private endpoint connections. */ + privateEndpointConnections?: PrivateEndpointConnection[]; + /** This property disables SAS authentication for the Event Hubs namespace. */ + disableLocalAuth?: boolean; }; /** Known values of {@link ClusterSkuName} that the service accepts. */ @@ -623,26 +652,31 @@ export enum KnownClusterSkuName { */ export type ClusterSkuName = string; -/** Known values of {@link IPAction} that the service accepts. */ -export enum KnownIPAction { - Accept = "Accept", - Reject = "Reject" +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + User = "User", + Application = "Application", + ManagedIdentity = "ManagedIdentity", + Key = "Key" } /** - * Defines values for IPAction. \ - * {@link KnownIPAction} can be used interchangeably with IPAction, + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Accept** \ - * **Reject** + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** */ -export type IPAction = string; +export type CreatedByType = string; /** Known values of {@link SkuName} that the service accepts. */ export enum KnownSkuName { Basic = "Basic", - Standard = "Standard" + Standard = "Standard", + Premium = "Premium" } /** @@ -651,14 +685,16 @@ export enum KnownSkuName { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Basic** \ - * **Standard** + * **Standard** \ + * **Premium** */ export type SkuName = string; /** Known values of {@link SkuTier} that the service accepts. */ export enum KnownSkuTier { Basic = "Basic", - Standard = "Standard" + Standard = "Standard", + Premium = "Premium" } /** @@ -667,7 +703,8 @@ export enum KnownSkuTier { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Basic** \ - * **Standard** + * **Standard** \ + * **Premium** */ export type SkuTier = string; @@ -745,6 +782,22 @@ export enum KnownNetworkRuleIPAction { */ export type NetworkRuleIPAction = string; +/** Known values of {@link PublicNetworkAccessFlag} that the service accepts. */ +export enum KnownPublicNetworkAccessFlag { + Enabled = "Enabled", + Disabled = "Disabled" +} + +/** + * Defines values for PublicNetworkAccessFlag. \ + * {@link KnownPublicNetworkAccessFlag} can be used interchangeably with PublicNetworkAccessFlag, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type PublicNetworkAccessFlag = string; + /** Known values of {@link AccessRights} that the service accepts. */ export enum KnownAccessRights { Manage = "Manage", @@ -762,8 +815,25 @@ export enum KnownAccessRights { * **Listen** */ export type AccessRights = string; -/** Defines values for KeyType. */ -export type KeyType = "PrimaryKey" | "SecondaryKey"; +/** Defines values for ManagedServiceIdentityType. */ +export type ManagedServiceIdentityType = + | "SystemAssigned" + | "UserAssigned" + | "SystemAssigned, UserAssigned" + | "None"; +/** Defines values for EntityStatus. */ +export type EntityStatus = + | "Active" + | "Disabled" + | "Restoring" + | "SendDisabled" + | "ReceiveDisabled" + | "Creating" + | "Deleting" + | "Renaming" + | "Unknown"; +/** Defines values for EncodingCaptureDescription. */ +export type EncodingCaptureDescription = "Avro" | "AvroDeflate"; /** Defines values for UnavailableReason. */ export type UnavailableReason = | "None" @@ -779,19 +849,8 @@ export type RoleDisasterRecovery = | "Primary" | "PrimaryNotReplicating" | "Secondary"; -/** Defines values for EntityStatus. */ -export type EntityStatus = - | "Active" - | "Disabled" - | "Restoring" - | "SendDisabled" - | "ReceiveDisabled" - | "Creating" - | "Deleting" - | "Renaming" - | "Unknown"; -/** Defines values for EncodingCaptureDescription. */ -export type EncodingCaptureDescription = "Avro" | "AvroDeflate"; +/** Defines values for KeyType. */ +export type KeyType = "PrimaryKey" | "SecondaryKey"; /** Optional parameters. */ export interface ClustersListAvailableClusterRegionOptionalParams @@ -800,6 +859,13 @@ export interface ClustersListAvailableClusterRegionOptionalParams /** Contains response data for the listAvailableClusterRegion operation. */ export type ClustersListAvailableClusterRegionResponse = AvailableClustersList; +/** Optional parameters. */ +export interface ClustersListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type ClustersListBySubscriptionResponse = ClusterListResult; + /** Optional parameters. */ export interface ClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions {} @@ -855,36 +921,32 @@ export interface ClustersListNamespacesOptionalParams export type ClustersListNamespacesResponse = EHNamespaceIdListResult; /** Optional parameters. */ -export interface ClustersListByResourceGroupNextOptionalParams +export interface ClustersListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ClustersListByResourceGroupNextResponse = ClusterListResult; +/** Contains response data for the listBySubscriptionNext operation. */ +export type ClustersListBySubscriptionNextResponse = ClusterListResult; /** Optional parameters. */ -export interface NamespacesListIPFilterRulesOptionalParams +export interface ClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listIPFilterRules operation. */ -export type NamespacesListIPFilterRulesResponse = IpFilterRuleListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ClustersListByResourceGroupNextResponse = ClusterListResult; /** Optional parameters. */ -export interface NamespacesCreateOrUpdateIpFilterRuleOptionalParams +export interface ConfigurationPatchOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdateIpFilterRule operation. */ -export type NamespacesCreateOrUpdateIpFilterRuleResponse = IpFilterRule; - -/** Optional parameters. */ -export interface NamespacesDeleteIpFilterRuleOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the patch operation. */ +export type ConfigurationPatchResponse = ClusterQuotaConfigurationProperties; /** Optional parameters. */ -export interface NamespacesGetIpFilterRuleOptionalParams +export interface ConfigurationGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getIpFilterRule operation. */ -export type NamespacesGetIpFilterRuleResponse = IpFilterRule; +/** Contains response data for the get operation. */ +export type ConfigurationGetResponse = ClusterQuotaConfigurationProperties; /** Optional parameters. */ export interface NamespacesListOptionalParams @@ -935,31 +997,6 @@ export interface NamespacesUpdateOptionalParams /** Contains response data for the update operation. */ export type NamespacesUpdateResponse = EHNamespace; -/** Optional parameters. */ -export interface NamespacesListVirtualNetworkRulesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listVirtualNetworkRules operation. */ -export type NamespacesListVirtualNetworkRulesResponse = VirtualNetworkRuleListResult; - -/** Optional parameters. */ -export interface NamespacesCreateOrUpdateVirtualNetworkRuleOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdateVirtualNetworkRule operation. */ -export type NamespacesCreateOrUpdateVirtualNetworkRuleResponse = VirtualNetworkRule; - -/** Optional parameters. */ -export interface NamespacesDeleteVirtualNetworkRuleOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface NamespacesGetVirtualNetworkRuleOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getVirtualNetworkRule operation. */ -export type NamespacesGetVirtualNetworkRuleResponse = VirtualNetworkRule; - /** Optional parameters. */ export interface NamespacesCreateOrUpdateNetworkRuleSetOptionalParams extends coreClient.OperationOptions {} @@ -1020,13 +1057,6 @@ export interface NamespacesCheckNameAvailabilityOptionalParams /** Contains response data for the checkNameAvailability operation. */ export type NamespacesCheckNameAvailabilityResponse = CheckNameAvailabilityResult; -/** Optional parameters. */ -export interface NamespacesListIPFilterRulesNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listIPFilterRulesNext operation. */ -export type NamespacesListIPFilterRulesNextResponse = IpFilterRuleListResult; - /** Optional parameters. */ export interface NamespacesListNextOptionalParams extends coreClient.OperationOptions {} @@ -1041,13 +1071,6 @@ export interface NamespacesListByResourceGroupNextOptionalParams /** Contains response data for the listByResourceGroupNext operation. */ export type NamespacesListByResourceGroupNextResponse = EHNamespaceListResult; -/** Optional parameters. */ -export interface NamespacesListVirtualNetworkRulesNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listVirtualNetworkRulesNext operation. */ -export type NamespacesListVirtualNetworkRulesNextResponse = VirtualNetworkRuleListResult; - /** Optional parameters. */ export interface NamespacesListAuthorizationRulesNextOptionalParams extends coreClient.OperationOptions {} @@ -1100,93 +1123,48 @@ export interface PrivateLinkResourcesGetOptionalParams export type PrivateLinkResourcesGetResponse = PrivateLinkResourcesListResult; /** Optional parameters. */ -export interface ConfigurationPatchOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the patch operation. */ -export type ConfigurationPatchResponse = ClusterQuotaConfigurationProperties; - -/** Optional parameters. */ -export interface ConfigurationGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ConfigurationGetResponse = ClusterQuotaConfigurationProperties; - -/** Optional parameters. */ -export interface DisasterRecoveryConfigsListAuthorizationRulesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listAuthorizationRules operation. */ -export type DisasterRecoveryConfigsListAuthorizationRulesResponse = AuthorizationRuleListResult; - -/** Optional parameters. */ -export interface DisasterRecoveryConfigsGetAuthorizationRuleOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getAuthorizationRule operation. */ -export type DisasterRecoveryConfigsGetAuthorizationRuleResponse = AuthorizationRule; - -/** Optional parameters. */ -export interface DisasterRecoveryConfigsListKeysOptionalParams +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listKeys operation. */ -export type DisasterRecoveryConfigsListKeysResponse = AccessKeys; +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; /** Optional parameters. */ -export interface DisasterRecoveryConfigsCheckNameAvailabilityOptionalParams +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkNameAvailability operation. */ -export type DisasterRecoveryConfigsCheckNameAvailabilityResponse = CheckNameAvailabilityResult; +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; /** Optional parameters. */ -export interface DisasterRecoveryConfigsListOptionalParams - extends coreClient.OperationOptions {} +export interface EventHubsListByNamespaceOptionalParams + extends coreClient.OperationOptions { + /** Skip is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting point to use for subsequent calls. */ + skip?: number; + /** May be used to limit the number of results to the most recent N usageDetails. */ + top?: number; +} -/** Contains response data for the list operation. */ -export type DisasterRecoveryConfigsListResponse = ArmDisasterRecoveryListResult; +/** Contains response data for the listByNamespace operation. */ +export type EventHubsListByNamespaceResponse = EventHubListResult; /** Optional parameters. */ -export interface DisasterRecoveryConfigsCreateOrUpdateOptionalParams +export interface EventHubsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type DisasterRecoveryConfigsCreateOrUpdateResponse = ArmDisasterRecovery; +export type EventHubsCreateOrUpdateResponse = Eventhub; /** Optional parameters. */ -export interface DisasterRecoveryConfigsDeleteOptionalParams +export interface EventHubsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DisasterRecoveryConfigsGetOptionalParams +export interface EventHubsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DisasterRecoveryConfigsGetResponse = ArmDisasterRecovery; - -/** Optional parameters. */ -export interface DisasterRecoveryConfigsBreakPairingOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface DisasterRecoveryConfigsFailOverOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface DisasterRecoveryConfigsListAuthorizationRulesNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listAuthorizationRulesNext operation. */ -export type DisasterRecoveryConfigsListAuthorizationRulesNextResponse = AuthorizationRuleListResult; - -/** Optional parameters. */ -export interface DisasterRecoveryConfigsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type DisasterRecoveryConfigsListNextResponse = ArmDisasterRecoveryListResult; +export type EventHubsGetResponse = Eventhub; /** Optional parameters. */ export interface EventHubsListAuthorizationRulesOptionalParams @@ -1228,7 +1206,7 @@ export interface EventHubsRegenerateKeysOptionalParams export type EventHubsRegenerateKeysResponse = AccessKeys; /** Optional parameters. */ -export interface EventHubsListByNamespaceOptionalParams +export interface EventHubsListByNamespaceNextOptionalParams extends coreClient.OperationOptions { /** Skip is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting point to use for subsequent calls. */ skip?: number; @@ -1236,45 +1214,90 @@ export interface EventHubsListByNamespaceOptionalParams top?: number; } -/** Contains response data for the listByNamespace operation. */ -export type EventHubsListByNamespaceResponse = EventHubListResult; +/** Contains response data for the listByNamespaceNext operation. */ +export type EventHubsListByNamespaceNextResponse = EventHubListResult; /** Optional parameters. */ -export interface EventHubsCreateOrUpdateOptionalParams +export interface EventHubsListAuthorizationRulesNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAuthorizationRulesNext operation. */ +export type EventHubsListAuthorizationRulesNextResponse = AuthorizationRuleListResult; + +/** Optional parameters. */ +export interface DisasterRecoveryConfigsCheckNameAvailabilityOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the checkNameAvailability operation. */ +export type DisasterRecoveryConfigsCheckNameAvailabilityResponse = CheckNameAvailabilityResult; + +/** Optional parameters. */ +export interface DisasterRecoveryConfigsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type DisasterRecoveryConfigsListResponse = ArmDisasterRecoveryListResult; + +/** Optional parameters. */ +export interface DisasterRecoveryConfigsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type EventHubsCreateOrUpdateResponse = Eventhub; +export type DisasterRecoveryConfigsCreateOrUpdateResponse = ArmDisasterRecovery; /** Optional parameters. */ -export interface EventHubsDeleteOptionalParams +export interface DisasterRecoveryConfigsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface EventHubsGetOptionalParams +export interface DisasterRecoveryConfigsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type EventHubsGetResponse = Eventhub; +export type DisasterRecoveryConfigsGetResponse = ArmDisasterRecovery; /** Optional parameters. */ -export interface EventHubsListAuthorizationRulesNextOptionalParams +export interface DisasterRecoveryConfigsBreakPairingOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAuthorizationRulesNext operation. */ -export type EventHubsListAuthorizationRulesNextResponse = AuthorizationRuleListResult; +/** Optional parameters. */ +export interface DisasterRecoveryConfigsFailOverOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface EventHubsListByNamespaceNextOptionalParams - extends coreClient.OperationOptions { - /** Skip is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting point to use for subsequent calls. */ - skip?: number; - /** May be used to limit the number of results to the most recent N usageDetails. */ - top?: number; -} +export interface DisasterRecoveryConfigsListAuthorizationRulesOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByNamespaceNext operation. */ -export type EventHubsListByNamespaceNextResponse = EventHubListResult; +/** Contains response data for the listAuthorizationRules operation. */ +export type DisasterRecoveryConfigsListAuthorizationRulesResponse = AuthorizationRuleListResult; + +/** Optional parameters. */ +export interface DisasterRecoveryConfigsGetAuthorizationRuleOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAuthorizationRule operation. */ +export type DisasterRecoveryConfigsGetAuthorizationRuleResponse = AuthorizationRule; + +/** Optional parameters. */ +export interface DisasterRecoveryConfigsListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type DisasterRecoveryConfigsListKeysResponse = AccessKeys; + +/** Optional parameters. */ +export interface DisasterRecoveryConfigsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type DisasterRecoveryConfigsListNextResponse = ArmDisasterRecoveryListResult; + +/** Optional parameters. */ +export interface DisasterRecoveryConfigsListAuthorizationRulesNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAuthorizationRulesNext operation. */ +export type DisasterRecoveryConfigsListAuthorizationRulesNextResponse = AuthorizationRuleListResult; /** Optional parameters. */ export interface ConsumerGroupsCreateOrUpdateOptionalParams @@ -1318,34 +1341,6 @@ export interface ConsumerGroupsListByEventHubNextOptionalParams /** Contains response data for the listByEventHubNext operation. */ export type ConsumerGroupsListByEventHubNextResponse = ConsumerGroupListResult; -/** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; - -/** Optional parameters. */ -export interface OperationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; - -/** Optional parameters. */ -export interface RegionsListBySkuOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySku operation. */ -export type RegionsListBySkuResponse = MessagingRegionsListResult; - -/** Optional parameters. */ -export interface RegionsListBySkuNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySkuNext operation. */ -export type RegionsListBySkuNextResponse = MessagingRegionsListResult; - /** Optional parameters. */ export interface EventHubManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/eventhub/arm-eventhub/src/models/mappers.ts b/sdk/eventhub/arm-eventhub/src/models/mappers.ts index 67a187ffcb90..958d1b462b78 100644 --- a/sdk/eventhub/arm-eventhub/src/models/mappers.ts +++ b/sdk/eventhub/arm-eventhub/src/models/mappers.ts @@ -147,6 +147,51 @@ export const ClusterSku: coreClient.CompositeMapper = { } }; +export const SystemData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + export const EHNamespaceIdListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -183,27 +228,16 @@ export const EHNamespaceIdContainer: coreClient.CompositeMapper = { } }; -export const IpFilterRuleListResult: coreClient.CompositeMapper = { +export const ClusterQuotaConfigurationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpFilterRuleListResult", + className: "ClusterQuotaConfigurationProperties", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IpFilterRule" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + settings: { + serializedName: "settings", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } @@ -275,20 +309,58 @@ export const Identity: coreClient.CompositeMapper = { modelProperties: { principalId: { serializedName: "principalId", + readOnly: true, type: { name: "String" } }, tenantId: { serializedName: "tenantId", + readOnly: true, type: { name: "String" } }, type: { - defaultValue: "SystemAssigned", - isConstant: true, serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ] + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserAssignedIdentity" } + } + } + } + } + } +}; + +export const UserAssignedIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserAssignedIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + readOnly: true, type: { name: "String" } @@ -321,6 +393,12 @@ export const Encryption: coreClient.CompositeMapper = { type: { name: "String" } + }, + requireInfrastructureEncryption: { + serializedName: "requireInfrastructureEncryption", + type: { + name: "Boolean" + } } } } @@ -348,30 +426,25 @@ export const KeyVaultProperties: coreClient.CompositeMapper = { type: { name: "String" } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "UserAssignedIdentityProperties" + } } } } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const UserAssignedIdentityProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "UserAssignedIdentityProperties", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + userAssignedIdentity: { + serializedName: "userAssignedIdentity", type: { name: "String" } @@ -416,6 +489,33 @@ export const ConnectionState: coreClient.CompositeMapper = { } }; +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const PrivateLinkResourcesListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -498,41 +598,27 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { } }; -export const ClusterQuotaConfigurationProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterQuotaConfigurationProperties", - modelProperties: { - settings: { - serializedName: "settings", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { +export const OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkRuleListResult", + className: "OperationListResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualNetworkRule" + className: "Operation" } } } }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -541,56 +627,51 @@ export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { } }; -export const NWRuleSetVirtualNetworkRules: coreClient.CompositeMapper = { +export const Operation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NWRuleSetVirtualNetworkRules", + className: "Operation", modelProperties: { - subnet: { - serializedName: "subnet", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Composite", - className: "Subnet" + name: "String" } }, - ignoreMissingVnetServiceEndpoint: { - serializedName: "ignoreMissingVnetServiceEndpoint", + display: { + serializedName: "display", type: { - name: "Boolean" + name: "Composite", + className: "OperationDisplay" } } } } }; -export const Subnet: coreClient.CompositeMapper = { +export const OperationDisplay: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Subnet", + className: "OperationDisplay", modelProperties: { - id: { - serializedName: "id", + provider: { + serializedName: "provider", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const NWRuleSetIpRules: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NWRuleSetIpRules", - modelProperties: { - ipMask: { - serializedName: "ipMask", + }, + resource: { + serializedName: "resource", + readOnly: true, type: { name: "String" } }, - action: { - serializedName: "action", + operation: { + serializedName: "operation", + readOnly: true, type: { name: "String" } @@ -599,10 +680,10 @@ export const NWRuleSetIpRules: coreClient.CompositeMapper = { } }; -export const AuthorizationRuleListResult: coreClient.CompositeMapper = { +export const EventHubListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AuthorizationRuleListResult", + className: "EventHubListResult", modelProperties: { value: { serializedName: "value", @@ -611,7 +692,7 @@ export const AuthorizationRuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AuthorizationRule" + className: "Eventhub" } } } @@ -626,79 +707,78 @@ export const AuthorizationRuleListResult: coreClient.CompositeMapper = { } }; -export const AccessKeys: coreClient.CompositeMapper = { +export const CaptureDescription: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccessKeys", + className: "CaptureDescription", modelProperties: { - primaryConnectionString: { - serializedName: "primaryConnectionString", - readOnly: true, + enabled: { + serializedName: "enabled", type: { - name: "String" + name: "Boolean" } }, - secondaryConnectionString: { - serializedName: "secondaryConnectionString", - readOnly: true, + encoding: { + serializedName: "encoding", type: { - name: "String" + name: "Enum", + allowedValues: ["Avro", "AvroDeflate"] } }, - aliasPrimaryConnectionString: { - serializedName: "aliasPrimaryConnectionString", - readOnly: true, + intervalInSeconds: { + serializedName: "intervalInSeconds", type: { - name: "String" + name: "Number" } }, - aliasSecondaryConnectionString: { - serializedName: "aliasSecondaryConnectionString", - readOnly: true, + sizeLimitInBytes: { + serializedName: "sizeLimitInBytes", type: { - name: "String" + name: "Number" } }, - primaryKey: { - serializedName: "primaryKey", - readOnly: true, + destination: { + serializedName: "destination", type: { - name: "String" + name: "Composite", + className: "Destination" } }, - secondaryKey: { - serializedName: "secondaryKey", - readOnly: true, + skipEmptyArchives: { + serializedName: "skipEmptyArchives", type: { - name: "String" - } - }, - keyName: { - serializedName: "keyName", - readOnly: true, - type: { - name: "String" + name: "Boolean" } } } } }; -export const RegenerateAccessKeyParameters: coreClient.CompositeMapper = { +export const Destination: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegenerateAccessKeyParameters", + className: "Destination", modelProperties: { - keyType: { - serializedName: "keyType", - required: true, + name: { + serializedName: "name", type: { - name: "Enum", - allowedValues: ["PrimaryKey", "SecondaryKey"] + name: "String" } }, - key: { - serializedName: "key", + storageAccountResourceId: { + serializedName: "properties.storageAccountResourceId", + type: { + name: "String" + } + }, + blobContainer: { + serializedName: "properties.blobContainer", + type: { + name: "String" + } + }, + archiveNameFormat: { + serializedName: "properties.archiveNameFormat", type: { name: "String" } @@ -759,33 +839,6 @@ export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { } }; -export const ConsumerGroupListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConsumerGroupListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConsumerGroup" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const ArmDisasterRecoveryListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -814,80 +867,56 @@ export const ArmDisasterRecoveryListResult: coreClient.CompositeMapper = { } }; -export const OperationListResult: coreClient.CompositeMapper = { +export const NWRuleSetVirtualNetworkRules: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "NWRuleSetVirtualNetworkRules", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + subnet: { + serializedName: "subnet", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } + name: "Composite", + className: "Subnet" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + ignoreMissingVnetServiceEndpoint: { + serializedName: "ignoreMissingVnetServiceEndpoint", type: { - name: "String" + name: "Boolean" } } } } }; -export const Operation: coreClient.CompositeMapper = { +export const Subnet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "Subnet", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + id: { + serializedName: "id", type: { name: "String" } - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } } } } }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const NWRuleSetIpRules: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "NWRuleSetIpRules", modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - readOnly: true, + ipMask: { + serializedName: "ipMask", type: { name: "String" } }, - operation: { - serializedName: "operation", - readOnly: true, + action: { + serializedName: "action", type: { name: "String" } @@ -896,10 +925,10 @@ export const OperationDisplay: coreClient.CompositeMapper = { } }; -export const EventHubListResult: coreClient.CompositeMapper = { +export const AuthorizationRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EventHubListResult", + className: "AuthorizationRuleListResult", modelProperties: { value: { serializedName: "value", @@ -908,7 +937,7 @@ export const EventHubListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Eventhub" + className: "AuthorizationRule" } } } @@ -923,86 +952,79 @@ export const EventHubListResult: coreClient.CompositeMapper = { } }; -export const CaptureDescription: coreClient.CompositeMapper = { +export const AccessKeys: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CaptureDescription", + className: "AccessKeys", modelProperties: { - enabled: { - serializedName: "enabled", + primaryConnectionString: { + serializedName: "primaryConnectionString", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - encoding: { - serializedName: "encoding", + secondaryConnectionString: { + serializedName: "secondaryConnectionString", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Avro", "AvroDeflate"] + name: "String" } }, - intervalInSeconds: { - constraints: { - InclusiveMaximum: 900, - InclusiveMinimum: 60 - }, - serializedName: "intervalInSeconds", + aliasPrimaryConnectionString: { + serializedName: "aliasPrimaryConnectionString", + readOnly: true, type: { - name: "Number" + name: "String" } }, - sizeLimitInBytes: { - constraints: { - InclusiveMaximum: 524288000, - InclusiveMinimum: 10485760 - }, - serializedName: "sizeLimitInBytes", + aliasSecondaryConnectionString: { + serializedName: "aliasSecondaryConnectionString", + readOnly: true, type: { - name: "Number" + name: "String" } }, - destination: { - serializedName: "destination", + primaryKey: { + serializedName: "primaryKey", + readOnly: true, type: { - name: "Composite", - className: "Destination" + name: "String" } }, - skipEmptyArchives: { - serializedName: "skipEmptyArchives", + secondaryKey: { + serializedName: "secondaryKey", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + keyName: { + serializedName: "keyName", + readOnly: true, + type: { + name: "String" } } } } }; -export const Destination: coreClient.CompositeMapper = { +export const RegenerateAccessKeyParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Destination", + className: "RegenerateAccessKeyParameters", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - storageAccountResourceId: { - serializedName: "properties.storageAccountResourceId", - type: { - name: "String" - } - }, - blobContainer: { - serializedName: "properties.blobContainer", + keyType: { + serializedName: "keyType", + required: true, type: { - name: "String" + name: "Enum", + allowedValues: ["PrimaryKey", "SecondaryKey"] } }, - archiveNameFormat: { - serializedName: "properties.archiveNameFormat", + key: { + serializedName: "key", type: { name: "String" } @@ -1011,10 +1033,10 @@ export const Destination: coreClient.CompositeMapper = { } }; -export const MessagingRegionsListResult: coreClient.CompositeMapper = { +export const ConsumerGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MessagingRegionsListResult", + className: "ConsumerGroupListResult", modelProperties: { value: { serializedName: "value", @@ -1023,14 +1045,13 @@ export const MessagingRegionsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MessagingRegions" + className: "ConsumerGroup" } } } }, nextLink: { serializedName: "nextLink", - readOnly: true, type: { name: "String" } @@ -1039,21 +1060,58 @@ export const MessagingRegionsListResult: coreClient.CompositeMapper = { } }; -export const MessagingRegionsProperties: coreClient.CompositeMapper = { +export const TrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MessagingRegionsProperties", + className: "TrackedResource", modelProperties: { - code: { - serializedName: "code", - readOnly: true, + ...Resource.type.modelProperties, + location: { + serializedName: "location", type: { name: "String" } }, - fullName: { - serializedName: "fullName", - readOnly: true, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...Resource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "ConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", type: { name: "String" } @@ -1062,97 +1120,137 @@ export const MessagingRegionsProperties: coreClient.CompositeMapper = { } }; -export const TrackedResource: coreClient.CompositeMapper = { +export const Eventhub: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrackedResource", + className: "Eventhub", modelProperties: { ...Resource.type.modelProperties, - location: { - serializedName: "location", + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + partitionIds: { + serializedName: "properties.partitionIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + createdAt: { + serializedName: "properties.createdAt", + readOnly: true, + type: { + name: "DateTime" + } + }, + updatedAt: { + serializedName: "properties.updatedAt", + readOnly: true, + type: { + name: "DateTime" + } + }, + messageRetentionInDays: { + constraints: { + InclusiveMinimum: 1 + }, + serializedName: "properties.messageRetentionInDays", + type: { + name: "Number" + } + }, + partitionCount: { + constraints: { + InclusiveMinimum: 1 + }, + serializedName: "properties.partitionCount", + type: { + name: "Number" + } + }, + status: { + serializedName: "properties.status", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Active", + "Disabled", + "Restoring", + "SendDisabled", + "ReceiveDisabled", + "Creating", + "Deleting", + "Renaming", + "Unknown" + ] } }, - tags: { - serializedName: "tags", + captureDescription: { + serializedName: "properties.captureDescription", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "CaptureDescription" } } } } }; -export const IpFilterRule: coreClient.CompositeMapper = { +export const ArmDisasterRecovery: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpFilterRule", + className: "ArmDisasterRecovery", modelProperties: { ...Resource.type.modelProperties, - ipMask: { - serializedName: "properties.ipMask", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - action: { - serializedName: "properties.action", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Accepted", "Succeeded", "Failed"] } }, - filterName: { - serializedName: "properties.filterName", + partnerNamespace: { + serializedName: "properties.partnerNamespace", type: { name: "String" } - } - } - } -}; - -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnection", - modelProperties: { - ...Resource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint" - } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + alternateName: { + serializedName: "properties.alternateName", type: { - name: "Composite", - className: "ConnectionState" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + role: { + serializedName: "properties.role", + readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Primary", "PrimaryNotReplicating", "Secondary"] } - } - } - } -}; - -export const VirtualNetworkRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkRule", - modelProperties: { - ...Resource.type.modelProperties, - virtualNetworkSubnetId: { - serializedName: "properties.virtualNetworkSubnetId", + }, + pendingReplicationOperationsCount: { + serializedName: "properties.pendingReplicationOperationsCount", + readOnly: true, type: { - name: "String" + name: "Number" } } } @@ -1165,6 +1263,13 @@ export const NetworkRuleSet: coreClient.CompositeMapper = { className: "NetworkRuleSet", modelProperties: { ...Resource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, trustedServiceAccessEnabled: { serializedName: "properties.trustedServiceAccessEnabled", type: { @@ -1200,6 +1305,13 @@ export const NetworkRuleSet: coreClient.CompositeMapper = { } } } + }, + publicNetworkAccess: { + defaultValue: "Enabled", + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } } } } @@ -1211,6 +1323,13 @@ export const AuthorizationRule: coreClient.CompositeMapper = { className: "AuthorizationRule", modelProperties: { ...Resource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, rights: { serializedName: "properties.rights", type: { @@ -1232,91 +1351,11 @@ export const ConsumerGroup: coreClient.CompositeMapper = { className: "ConsumerGroup", modelProperties: { ...Resource.type.modelProperties, - createdAt: { - serializedName: "properties.createdAt", - readOnly: true, - type: { - name: "DateTime" - } - }, - updatedAt: { - serializedName: "properties.updatedAt", - readOnly: true, - type: { - name: "DateTime" - } - }, - userMetadata: { - serializedName: "properties.userMetadata", - type: { - name: "String" - } - } - } - } -}; - -export const ArmDisasterRecovery: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ArmDisasterRecovery", - modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["Accepted", "Succeeded", "Failed"] - } - }, - partnerNamespace: { - serializedName: "properties.partnerNamespace", - type: { - name: "String" - } - }, - alternateName: { - serializedName: "properties.alternateName", - type: { - name: "String" - } - }, - role: { - serializedName: "properties.role", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["Primary", "PrimaryNotReplicating", "Secondary"] - } - }, - pendingReplicationOperationsCount: { - serializedName: "properties.pendingReplicationOperationsCount", - readOnly: true, - type: { - name: "Number" - } - } - } - } -}; - -export const Eventhub: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Eventhub", - modelProperties: { - ...Resource.type.modelProperties, - partitionIds: { - serializedName: "properties.partitionIds", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "SystemData" } }, createdAt: { @@ -1333,46 +1372,10 @@ export const Eventhub: coreClient.CompositeMapper = { name: "DateTime" } }, - messageRetentionInDays: { - constraints: { - InclusiveMinimum: 1 - }, - serializedName: "properties.messageRetentionInDays", - type: { - name: "Number" - } - }, - partitionCount: { - constraints: { - InclusiveMinimum: 1 - }, - serializedName: "properties.partitionCount", - type: { - name: "Number" - } - }, - status: { - serializedName: "properties.status", - type: { - name: "Enum", - allowedValues: [ - "Active", - "Disabled", - "Restoring", - "SendDisabled", - "ReceiveDisabled", - "Creating", - "Deleting", - "Renaming", - "Unknown" - ] - } - }, - captureDescription: { - serializedName: "properties.captureDescription", + userMetadata: { + serializedName: "properties.userMetadata", type: { - name: "Composite", - className: "CaptureDescription" + name: "String" } } } @@ -1392,6 +1395,13 @@ export const Cluster: coreClient.CompositeMapper = { className: "ClusterSku" } }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, createdAt: { serializedName: "properties.createdAt", readOnly: true, @@ -1444,6 +1454,13 @@ export const EHNamespace: coreClient.CompositeMapper = { className: "Identity" } }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -1499,10 +1516,6 @@ export const EHNamespace: coreClient.CompositeMapper = { } }, maximumThroughputUnits: { - constraints: { - InclusiveMaximum: 20, - InclusiveMinimum: 0 - }, serializedName: "properties.maximumThroughputUnits", type: { name: "Number" @@ -1526,22 +1539,23 @@ export const EHNamespace: coreClient.CompositeMapper = { name: "Composite", className: "Encryption" } - } - } - } -}; - -export const MessagingRegions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MessagingRegions", - modelProperties: { - ...TrackedResource.type.modelProperties, - properties: { - serializedName: "properties", + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", type: { - name: "Composite", - className: "MessagingRegionsProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", + type: { + name: "Boolean" } } } diff --git a/sdk/eventhub/arm-eventhub/src/models/parameters.ts b/sdk/eventhub/arm-eventhub/src/models/parameters.ts index 82ec35645187..449d5afff15c 100644 --- a/sdk/eventhub/arm-eventhub/src/models/parameters.ts +++ b/sdk/eventhub/arm-eventhub/src/models/parameters.ts @@ -13,17 +13,15 @@ import { } from "@azure/core-client"; import { Cluster as ClusterMapper, - IpFilterRule as IpFilterRuleMapper, + ClusterQuotaConfigurationProperties as ClusterQuotaConfigurationPropertiesMapper, EHNamespace as EHNamespaceMapper, - VirtualNetworkRule as VirtualNetworkRuleMapper, NetworkRuleSet as NetworkRuleSetMapper, AuthorizationRule as AuthorizationRuleMapper, RegenerateAccessKeyParameters as RegenerateAccessKeyParametersMapper, CheckNameAvailabilityParameter as CheckNameAvailabilityParameterMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, - ClusterQuotaConfigurationProperties as ClusterQuotaConfigurationPropertiesMapper, - ArmDisasterRecovery as ArmDisasterRecoveryMapper, Eventhub as EventhubMapper, + ArmDisasterRecovery as ArmDisasterRecoveryMapper, ConsumerGroup as ConsumerGroupMapper } from "../models/mappers"; @@ -65,7 +63,7 @@ export const subscriptionId: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2018-01-01-preview", + defaultValue: "2021-06-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -133,38 +131,9 @@ export const nextLink: OperationURLParameter = { skipEncoding: true }; -export const namespaceName: OperationURLParameter = { - parameterPath: "namespaceName", - mapper: { - constraints: { - MaxLength: 50, - MinLength: 6 - }, - serializedName: "namespaceName", - required: true, - type: { - name: "String" - } - } -}; - export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: IpFilterRuleMapper -}; - -export const ipFilterRuleName: OperationURLParameter = { - parameterPath: "ipFilterRuleName", - mapper: { - constraints: { - MinLength: 1 - }, - serializedName: "ipFilterRuleName", - required: true, - type: { - name: "String" - } - } + mapper: ClusterQuotaConfigurationPropertiesMapper }; export const parameters2: OperationParameter = { @@ -172,18 +141,14 @@ export const parameters2: OperationParameter = { mapper: EHNamespaceMapper }; -export const parameters3: OperationParameter = { - parameterPath: "parameters", - mapper: VirtualNetworkRuleMapper -}; - -export const virtualNetworkRuleName: OperationURLParameter = { - parameterPath: "virtualNetworkRuleName", +export const namespaceName: OperationURLParameter = { + parameterPath: "namespaceName", mapper: { constraints: { - MinLength: 1 + MaxLength: 50, + MinLength: 6 }, - serializedName: "virtualNetworkRuleName", + serializedName: "namespaceName", required: true, type: { name: "String" @@ -191,12 +156,12 @@ export const virtualNetworkRuleName: OperationURLParameter = { } }; -export const parameters4: OperationParameter = { +export const parameters3: OperationParameter = { parameterPath: "parameters", mapper: NetworkRuleSetMapper }; -export const parameters5: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", mapper: AuthorizationRuleMapper }; @@ -215,17 +180,17 @@ export const authorizationRuleName: OperationURLParameter = { } }; -export const parameters6: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", mapper: RegenerateAccessKeyParametersMapper }; -export const parameters7: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", mapper: CheckNameAvailabilityParameterMapper }; -export const parameters8: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointConnectionMapper }; @@ -241,46 +206,6 @@ export const privateEndpointConnectionName: OperationURLParameter = { } }; -export const parameters9: OperationParameter = { - parameterPath: "parameters", - mapper: ClusterQuotaConfigurationPropertiesMapper -}; - -export const alias: OperationURLParameter = { - parameterPath: "alias", - mapper: { - constraints: { - MaxLength: 50, - MinLength: 1 - }, - serializedName: "alias", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters10: OperationParameter = { - parameterPath: "parameters", - mapper: ArmDisasterRecoveryMapper -}; - -export const eventHubName: OperationURLParameter = { - parameterPath: "eventHubName", - mapper: { - constraints: { - MaxLength: 256, - MinLength: 1 - }, - serializedName: "eventHubName", - required: true, - type: { - name: "String" - } - } -}; - export const skip: OperationQueryParameter = { parameterPath: ["options", "skip"], mapper: { @@ -309,24 +234,39 @@ export const top: OperationQueryParameter = { } }; -export const parameters11: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: EventhubMapper }; -export const parameters12: OperationParameter = { +export const eventHubName: OperationURLParameter = { + parameterPath: "eventHubName", + mapper: { + constraints: { + MaxLength: 256, + MinLength: 1 + }, + serializedName: "eventHubName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: ConsumerGroupMapper + mapper: ArmDisasterRecoveryMapper }; -export const consumerGroupName: OperationURLParameter = { - parameterPath: "consumerGroupName", +export const alias: OperationURLParameter = { + parameterPath: "alias", mapper: { constraints: { MaxLength: 50, MinLength: 1 }, - serializedName: "consumerGroupName", + serializedName: "alias", required: true, type: { name: "String" @@ -334,14 +274,19 @@ export const consumerGroupName: OperationURLParameter = { } }; -export const sku: OperationURLParameter = { - parameterPath: "sku", +export const parameters10: OperationParameter = { + parameterPath: "parameters", + mapper: ConsumerGroupMapper +}; + +export const consumerGroupName: OperationURLParameter = { + parameterPath: "consumerGroupName", mapper: { constraints: { MaxLength: 50, MinLength: 1 }, - serializedName: "sku", + serializedName: "consumerGroupName", required: true, type: { name: "String" diff --git a/sdk/eventhub/arm-eventhub/src/operations/clusters.ts b/sdk/eventhub/arm-eventhub/src/operations/clusters.ts index e67062a55a41..9bc0f646b00a 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/clusters.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/clusters.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Clusters } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -17,10 +16,13 @@ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { Cluster, + ClustersListBySubscriptionNextOptionalParams, + ClustersListBySubscriptionOptionalParams, ClustersListByResourceGroupNextOptionalParams, ClustersListByResourceGroupOptionalParams, ClustersListAvailableClusterRegionOptionalParams, ClustersListAvailableClusterRegionResponse, + ClustersListBySubscriptionResponse, ClustersListByResourceGroupResponse, ClustersGetOptionalParams, ClustersGetResponse, @@ -31,6 +33,7 @@ import { ClustersDeleteOptionalParams, ClustersListNamespacesOptionalParams, ClustersListNamespacesResponse, + ClustersListBySubscriptionNextResponse, ClustersListByResourceGroupNextResponse } from "../models"; @@ -47,6 +50,48 @@ export class ClustersImpl implements Clusters { this.client = client; } + /** + * Lists the available Event Hubs Clusters within an ARM resource group + * @param options The options parameters. + */ + public listBySubscription( + options?: ClustersListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listBySubscriptionPagingPage(options); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: ClustersListBySubscriptionOptionalParams + ): AsyncIterableIterator { + let result = await this._listBySubscription(options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listBySubscriptionPagingAll( + options?: ClustersListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + /** * Lists the available Event Hubs Clusters within an ARM resource group * @param resourceGroupName Name of the resource group within the azure subscription. @@ -113,6 +158,19 @@ export class ClustersImpl implements Clusters { ); } + /** + * Lists the available Event Hubs Clusters within an ARM resource group + * @param options The options parameters. + */ + private _listBySubscription( + options?: ClustersListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + /** * Lists the available Event Hubs Clusters within an ARM resource group * @param resourceGroupName Name of the resource group within the azure subscription. @@ -422,6 +480,21 @@ export class ClustersImpl implements Clusters { ); } + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: ClustersListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } + /** * ListByResourceGroupNext * @param resourceGroupName Name of the resource group within the azure subscription. @@ -459,6 +532,22 @@ const listAvailableClusterRegionOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/clusters", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ClusterListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters", @@ -613,6 +702,26 @@ const listNamespacesOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ClusterListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/eventhub/arm-eventhub/src/operations/configuration.ts b/sdk/eventhub/arm-eventhub/src/operations/configuration.ts index be644583296c..ba3e7685bdde 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/configuration.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/configuration.ts @@ -88,7 +88,7 @@ const patchOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/eventhub/arm-eventhub/src/operations/consumerGroups.ts b/sdk/eventhub/arm-eventhub/src/operations/consumerGroups.ts index 36d5549d3fb1..2f4332abbc46 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/consumerGroups.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/consumerGroups.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ConsumerGroups } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -260,7 +259,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/eventhub/arm-eventhub/src/operations/disasterRecoveryConfigs.ts b/sdk/eventhub/arm-eventhub/src/operations/disasterRecoveryConfigs.ts index e5c1cb6747fd..d68af49f4de3 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/disasterRecoveryConfigs.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/disasterRecoveryConfigs.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { DisasterRecoveryConfigs } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -14,17 +13,12 @@ import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { EventHubManagementClientContext } from "../eventHubManagementClientContext"; import { - AuthorizationRule, - DisasterRecoveryConfigsListAuthorizationRulesNextOptionalParams, - DisasterRecoveryConfigsListAuthorizationRulesOptionalParams, ArmDisasterRecovery, DisasterRecoveryConfigsListNextOptionalParams, DisasterRecoveryConfigsListOptionalParams, - DisasterRecoveryConfigsListAuthorizationRulesResponse, - DisasterRecoveryConfigsGetAuthorizationRuleOptionalParams, - DisasterRecoveryConfigsGetAuthorizationRuleResponse, - DisasterRecoveryConfigsListKeysOptionalParams, - DisasterRecoveryConfigsListKeysResponse, + AuthorizationRule, + DisasterRecoveryConfigsListAuthorizationRulesNextOptionalParams, + DisasterRecoveryConfigsListAuthorizationRulesOptionalParams, CheckNameAvailabilityParameter, DisasterRecoveryConfigsCheckNameAvailabilityOptionalParams, DisasterRecoveryConfigsCheckNameAvailabilityResponse, @@ -36,8 +30,13 @@ import { DisasterRecoveryConfigsGetResponse, DisasterRecoveryConfigsBreakPairingOptionalParams, DisasterRecoveryConfigsFailOverOptionalParams, - DisasterRecoveryConfigsListAuthorizationRulesNextResponse, - DisasterRecoveryConfigsListNextResponse + DisasterRecoveryConfigsListAuthorizationRulesResponse, + DisasterRecoveryConfigsGetAuthorizationRuleOptionalParams, + DisasterRecoveryConfigsGetAuthorizationRuleResponse, + DisasterRecoveryConfigsListKeysOptionalParams, + DisasterRecoveryConfigsListKeysResponse, + DisasterRecoveryConfigsListNextResponse, + DisasterRecoveryConfigsListAuthorizationRulesNextResponse } from "../models"; /// @@ -54,24 +53,17 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { } /** - * Gets a list of authorization rules for a Namespace. + * Gets all Alias(Disaster Recovery configurations) * @param resourceGroupName Name of the resource group within the azure subscription. * @param namespaceName The Namespace name - * @param alias The Disaster Recovery configuration name * @param options The options parameters. */ - public listAuthorizationRules( + public list( resourceGroupName: string, namespaceName: string, - alias: string, - options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listAuthorizationRulesPagingAll( - resourceGroupName, - namespaceName, - alias, - options - ); + options?: DisasterRecoveryConfigsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, namespaceName, options); return { next() { return iter.next(); @@ -80,35 +72,23 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { return this; }, byPage: () => { - return this.listAuthorizationRulesPagingPage( - resourceGroupName, - namespaceName, - alias, - options - ); + return this.listPagingPage(resourceGroupName, namespaceName, options); } }; } - private async *listAuthorizationRulesPagingPage( + private async *listPagingPage( resourceGroupName: string, namespaceName: string, - alias: string, - options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams - ): AsyncIterableIterator { - let result = await this._listAuthorizationRules( - resourceGroupName, - namespaceName, - alias, - options - ); + options?: DisasterRecoveryConfigsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, namespaceName, options); yield result.value || []; let continuationToken = result.nextLink; while (continuationToken) { - result = await this._listAuthorizationRulesNext( + result = await this._listNext( resourceGroupName, namespaceName, - alias, continuationToken, options ); @@ -117,16 +97,14 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { } } - private async *listAuthorizationRulesPagingAll( + private async *listPagingAll( resourceGroupName: string, namespaceName: string, - alias: string, - options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listAuthorizationRulesPagingPage( + options?: DisasterRecoveryConfigsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( resourceGroupName, namespaceName, - alias, options )) { yield* page; @@ -134,17 +112,24 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { } /** - * Gets all Alias(Disaster Recovery configurations) + * Gets a list of authorization rules for a Namespace. * @param resourceGroupName Name of the resource group within the azure subscription. * @param namespaceName The Namespace name + * @param alias The Disaster Recovery configuration name * @param options The options parameters. */ - public list( + public listAuthorizationRules( resourceGroupName: string, namespaceName: string, - options?: DisasterRecoveryConfigsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, namespaceName, options); + alias: string, + options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listAuthorizationRulesPagingAll( + resourceGroupName, + namespaceName, + alias, + options + ); return { next() { return iter.next(); @@ -153,23 +138,35 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { return this; }, byPage: () => { - return this.listPagingPage(resourceGroupName, namespaceName, options); + return this.listAuthorizationRulesPagingPage( + resourceGroupName, + namespaceName, + alias, + options + ); } }; } - private async *listPagingPage( + private async *listAuthorizationRulesPagingPage( resourceGroupName: string, namespaceName: string, - options?: DisasterRecoveryConfigsListOptionalParams - ): AsyncIterableIterator { - let result = await this._list(resourceGroupName, namespaceName, options); + alias: string, + options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams + ): AsyncIterableIterator { + let result = await this._listAuthorizationRules( + resourceGroupName, + namespaceName, + alias, + options + ); yield result.value || []; let continuationToken = result.nextLink; while (continuationToken) { - result = await this._listNext( + result = await this._listAuthorizationRulesNext( resourceGroupName, namespaceName, + alias, continuationToken, options ); @@ -178,93 +175,22 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { } } - private async *listPagingAll( + private async *listAuthorizationRulesPagingAll( resourceGroupName: string, namespaceName: string, - options?: DisasterRecoveryConfigsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( + alias: string, + options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listAuthorizationRulesPagingPage( resourceGroupName, namespaceName, + alias, options )) { yield* page; } } - /** - * Gets a list of authorization rules for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param alias The Disaster Recovery configuration name - * @param options The options parameters. - */ - private _listAuthorizationRules( - resourceGroupName: string, - namespaceName: string, - alias: string, - options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, alias, options }, - listAuthorizationRulesOperationSpec - ); - } - - /** - * Gets an AuthorizationRule for a Namespace by rule name. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param alias The Disaster Recovery configuration name - * @param authorizationRuleName The authorization rule name. - * @param options The options parameters. - */ - getAuthorizationRule( - resourceGroupName: string, - namespaceName: string, - alias: string, - authorizationRuleName: string, - options?: DisasterRecoveryConfigsGetAuthorizationRuleOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - namespaceName, - alias, - authorizationRuleName, - options - }, - getAuthorizationRuleOperationSpec - ); - } - - /** - * Gets the primary and secondary connection strings for the Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param alias The Disaster Recovery configuration name - * @param authorizationRuleName The authorization rule name. - * @param options The options parameters. - */ - listKeys( - resourceGroupName: string, - namespaceName: string, - alias: string, - authorizationRuleName: string, - options?: DisasterRecoveryConfigsListKeysOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - namespaceName, - alias, - authorizationRuleName, - options - }, - listKeysOperationSpec - ); - } - /** * Check the give Namespace name availability. * @param resourceGroupName Name of the resource group within the azure subscription. @@ -400,23 +326,75 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { } /** - * ListAuthorizationRulesNext + * Gets a list of authorization rules for a Namespace. * @param resourceGroupName Name of the resource group within the azure subscription. * @param namespaceName The Namespace name * @param alias The Disaster Recovery configuration name - * @param nextLink The nextLink from the previous successful call to the ListAuthorizationRules method. * @param options The options parameters. */ - private _listAuthorizationRulesNext( + private _listAuthorizationRules( resourceGroupName: string, namespaceName: string, alias: string, - nextLink: string, - options?: DisasterRecoveryConfigsListAuthorizationRulesNextOptionalParams - ): Promise { + options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, alias, nextLink, options }, - listAuthorizationRulesNextOperationSpec + { resourceGroupName, namespaceName, alias, options }, + listAuthorizationRulesOperationSpec + ); + } + + /** + * Gets an AuthorizationRule for a Namespace by rule name. + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name + * @param alias The Disaster Recovery configuration name + * @param authorizationRuleName The authorization rule name. + * @param options The options parameters. + */ + getAuthorizationRule( + resourceGroupName: string, + namespaceName: string, + alias: string, + authorizationRuleName: string, + options?: DisasterRecoveryConfigsGetAuthorizationRuleOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + alias, + authorizationRuleName, + options + }, + getAuthorizationRuleOperationSpec + ); + } + + /** + * Gets the primary and secondary connection strings for the Namespace. + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name + * @param alias The Disaster Recovery configuration name + * @param authorizationRuleName The authorization rule name. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + namespaceName: string, + alias: string, + authorizationRuleName: string, + options?: DisasterRecoveryConfigsListKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + alias, + authorizationRuleName, + options + }, + listKeysOperationSpec ); } @@ -438,40 +416,62 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { listNextOperationSpec ); } + + /** + * ListAuthorizationRulesNext + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name + * @param alias The Disaster Recovery configuration name + * @param nextLink The nextLink from the previous successful call to the ListAuthorizationRules method. + * @param options The options parameters. + */ + private _listAuthorizationRulesNext( + resourceGroupName: string, + namespaceName: string, + alias: string, + nextLink: string, + options?: DisasterRecoveryConfigsListAuthorizationRulesNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, namespaceName, alias, nextLink, options }, + listAuthorizationRulesNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { +const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/checkNameAvailability", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AuthorizationRuleListResult + bodyMapper: Mappers.CheckNameAvailabilityResult }, default: { bodyMapper: Mappers.ErrorResponse } }, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.alias + Parameters.namespaceName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; -const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationRule + bodyMapper: Mappers.ArmDisasterRecoveryListResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -482,68 +482,65 @@ const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.authorizationRuleName, - Parameters.alias + Parameters.namespaceName ], headerParameters: [Parameters.accept], serializer }; -const listKeysOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}/listKeys", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AccessKeys + bodyMapper: Mappers.ArmDisasterRecovery }, + 201: {}, default: { bodyMapper: Mappers.ErrorResponse } }, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName, Parameters.alias ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; -const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/checkNameAvailability", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}", + httpMethod: "DELETE", responses: { - 200: { - bodyMapper: Mappers.CheckNameAvailabilityResult - }, + 200: {}, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, + Parameters.alias ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ArmDisasterRecoveryListResult + bodyMapper: Mappers.ArmDisasterRecovery }, default: { bodyMapper: Mappers.ErrorResponse @@ -554,25 +551,22 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, + Parameters.alias ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const breakPairingOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}", - httpMethod: "PUT", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/breakPairing", + httpMethod: "POST", responses: { - 200: { - bodyMapper: Mappers.ArmDisasterRecovery - }, - 201: {}, + 200: {}, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -581,14 +575,13 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.namespaceName, Parameters.alias ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const deleteOperationSpec: coreClient.OperationSpec = { +const failOverOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}", - httpMethod: "DELETE", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/failover", + httpMethod: "POST", responses: { 200: {}, default: { @@ -606,13 +599,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ArmDisasterRecovery + bodyMapper: Mappers.AuthorizationRuleListResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -629,12 +622,14 @@ const getOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const breakPairingOperationSpec: coreClient.OperationSpec = { +const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/breakPairing", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}", + httpMethod: "GET", responses: { - 200: {}, + 200: { + bodyMapper: Mappers.AuthorizationRule + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -645,17 +640,20 @@ const breakPairingOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, + Parameters.authorizationRuleName, Parameters.alias ], headerParameters: [Parameters.accept], serializer }; -const failOverOperationSpec: coreClient.OperationSpec = { +const listKeysOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/failover", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}/listKeys", httpMethod: "POST", responses: { - 200: {}, + 200: { + bodyMapper: Mappers.AccessKeys + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -666,17 +664,18 @@ const failOverOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, + Parameters.authorizationRuleName, Parameters.alias ], headerParameters: [Parameters.accept], serializer }; -const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = { +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationRuleListResult + bodyMapper: Mappers.ArmDisasterRecoveryListResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -688,18 +687,17 @@ const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.namespaceName, - Parameters.alias + Parameters.namespaceName ], headerParameters: [Parameters.accept], serializer }; -const listNextOperationSpec: coreClient.OperationSpec = { +const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ArmDisasterRecoveryListResult + bodyMapper: Mappers.AuthorizationRuleListResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -711,7 +709,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.namespaceName + Parameters.namespaceName, + Parameters.alias ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/eventhub/arm-eventhub/src/operations/eventHubs.ts b/sdk/eventhub/arm-eventhub/src/operations/eventHubs.ts index 6a6b1320fe8c..e7cb51683cd1 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/eventHubs.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/eventHubs.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { EventHubs } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -14,12 +13,18 @@ import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { EventHubManagementClientContext } from "../eventHubManagementClientContext"; import { - AuthorizationRule, - EventHubsListAuthorizationRulesNextOptionalParams, - EventHubsListAuthorizationRulesOptionalParams, Eventhub, EventHubsListByNamespaceNextOptionalParams, EventHubsListByNamespaceOptionalParams, + AuthorizationRule, + EventHubsListAuthorizationRulesNextOptionalParams, + EventHubsListAuthorizationRulesOptionalParams, + EventHubsListByNamespaceResponse, + EventHubsCreateOrUpdateOptionalParams, + EventHubsCreateOrUpdateResponse, + EventHubsDeleteOptionalParams, + EventHubsGetOptionalParams, + EventHubsGetResponse, EventHubsListAuthorizationRulesResponse, EventHubsCreateOrUpdateAuthorizationRuleOptionalParams, EventHubsCreateOrUpdateAuthorizationRuleResponse, @@ -31,14 +36,8 @@ import { RegenerateAccessKeyParameters, EventHubsRegenerateKeysOptionalParams, EventHubsRegenerateKeysResponse, - EventHubsListByNamespaceResponse, - EventHubsCreateOrUpdateOptionalParams, - EventHubsCreateOrUpdateResponse, - EventHubsDeleteOptionalParams, - EventHubsGetOptionalParams, - EventHubsGetResponse, - EventHubsListAuthorizationRulesNextResponse, - EventHubsListByNamespaceNextResponse + EventHubsListByNamespaceNextResponse, + EventHubsListAuthorizationRulesNextResponse } from "../models"; /// @@ -55,22 +54,19 @@ export class EventHubsImpl implements EventHubs { } /** - * Gets the authorization rules for an Event Hub. + * Gets all the Event Hubs in a Namespace. * @param resourceGroupName Name of the resource group within the azure subscription. * @param namespaceName The Namespace name - * @param eventHubName The Event Hub name * @param options The options parameters. */ - public listAuthorizationRules( + public listByNamespace( resourceGroupName: string, namespaceName: string, - eventHubName: string, - options?: EventHubsListAuthorizationRulesOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listAuthorizationRulesPagingAll( + options?: EventHubsListByNamespaceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByNamespacePagingAll( resourceGroupName, namespaceName, - eventHubName, options ); return { @@ -81,35 +77,31 @@ export class EventHubsImpl implements EventHubs { return this; }, byPage: () => { - return this.listAuthorizationRulesPagingPage( + return this.listByNamespacePagingPage( resourceGroupName, namespaceName, - eventHubName, options ); } }; } - private async *listAuthorizationRulesPagingPage( + private async *listByNamespacePagingPage( resourceGroupName: string, namespaceName: string, - eventHubName: string, - options?: EventHubsListAuthorizationRulesOptionalParams - ): AsyncIterableIterator { - let result = await this._listAuthorizationRules( + options?: EventHubsListByNamespaceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByNamespace( resourceGroupName, namespaceName, - eventHubName, options ); yield result.value || []; let continuationToken = result.nextLink; while (continuationToken) { - result = await this._listAuthorizationRulesNext( + result = await this._listByNamespaceNext( resourceGroupName, namespaceName, - eventHubName, continuationToken, options ); @@ -118,16 +110,14 @@ export class EventHubsImpl implements EventHubs { } } - private async *listAuthorizationRulesPagingAll( + private async *listByNamespacePagingAll( resourceGroupName: string, namespaceName: string, - eventHubName: string, - options?: EventHubsListAuthorizationRulesOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listAuthorizationRulesPagingPage( + options?: EventHubsListByNamespaceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByNamespacePagingPage( resourceGroupName, namespaceName, - eventHubName, options )) { yield* page; @@ -135,19 +125,22 @@ export class EventHubsImpl implements EventHubs { } /** - * Gets all the Event Hubs in a Namespace. + * Gets the authorization rules for an Event Hub. * @param resourceGroupName Name of the resource group within the azure subscription. * @param namespaceName The Namespace name + * @param eventHubName The Event Hub name * @param options The options parameters. */ - public listByNamespace( + public listAuthorizationRules( resourceGroupName: string, namespaceName: string, - options?: EventHubsListByNamespaceOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByNamespacePagingAll( + eventHubName: string, + options?: EventHubsListAuthorizationRulesOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listAuthorizationRulesPagingAll( resourceGroupName, namespaceName, + eventHubName, options ); return { @@ -158,31 +151,35 @@ export class EventHubsImpl implements EventHubs { return this; }, byPage: () => { - return this.listByNamespacePagingPage( + return this.listAuthorizationRulesPagingPage( resourceGroupName, namespaceName, + eventHubName, options ); } }; } - private async *listByNamespacePagingPage( + private async *listAuthorizationRulesPagingPage( resourceGroupName: string, namespaceName: string, - options?: EventHubsListByNamespaceOptionalParams - ): AsyncIterableIterator { - let result = await this._listByNamespace( + eventHubName: string, + options?: EventHubsListAuthorizationRulesOptionalParams + ): AsyncIterableIterator { + let result = await this._listAuthorizationRules( resourceGroupName, namespaceName, + eventHubName, options ); yield result.value || []; let continuationToken = result.nextLink; while (continuationToken) { - result = await this._listByNamespaceNext( + result = await this._listAuthorizationRulesNext( resourceGroupName, namespaceName, + eventHubName, continuationToken, options ); @@ -191,20 +188,98 @@ export class EventHubsImpl implements EventHubs { } } - private async *listByNamespacePagingAll( + private async *listAuthorizationRulesPagingAll( resourceGroupName: string, namespaceName: string, - options?: EventHubsListByNamespaceOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByNamespacePagingPage( + eventHubName: string, + options?: EventHubsListAuthorizationRulesOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listAuthorizationRulesPagingPage( resourceGroupName, namespaceName, + eventHubName, options )) { yield* page; } } + /** + * Gets all the Event Hubs in a Namespace. + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name + * @param options The options parameters. + */ + private _listByNamespace( + resourceGroupName: string, + namespaceName: string, + options?: EventHubsListByNamespaceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, namespaceName, options }, + listByNamespaceOperationSpec + ); + } + + /** + * Creates or updates a new Event Hub as a nested resource within a Namespace. + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name + * @param eventHubName The Event Hub name + * @param parameters Parameters supplied to create an Event Hub resource. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + namespaceName: string, + eventHubName: string, + parameters: Eventhub, + options?: EventHubsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, namespaceName, eventHubName, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes an Event Hub from the specified Namespace and resource group. + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name + * @param eventHubName The Event Hub name + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + namespaceName: string, + eventHubName: string, + options?: EventHubsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, namespaceName, eventHubName, options }, + deleteOperationSpec + ); + } + + /** + * Gets an Event Hubs description for the specified Event Hub. + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name + * @param eventHubName The Event Hub name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + namespaceName: string, + eventHubName: string, + options?: EventHubsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, namespaceName, eventHubName, options }, + getOperationSpec + ); + } + /** * Gets the authorization rules for an Event Hub. * @param resourceGroupName Name of the resource group within the azure subscription. @@ -368,78 +443,21 @@ export class EventHubsImpl implements EventHubs { } /** - * Gets all the Event Hubs in a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param options The options parameters. - */ - private _listByNamespace( - resourceGroupName: string, - namespaceName: string, - options?: EventHubsListByNamespaceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, options }, - listByNamespaceOperationSpec - ); - } - - /** - * Creates or updates a new Event Hub as a nested resource within a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param eventHubName The Event Hub name - * @param parameters Parameters supplied to create an Event Hub resource. - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - namespaceName: string, - eventHubName: string, - parameters: Eventhub, - options?: EventHubsCreateOrUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, eventHubName, parameters, options }, - createOrUpdateOperationSpec - ); - } - - /** - * Deletes an Event Hub from the specified Namespace and resource group. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param eventHubName The Event Hub name - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - namespaceName: string, - eventHubName: string, - options?: EventHubsDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, eventHubName, options }, - deleteOperationSpec - ); - } - - /** - * Gets an Event Hubs description for the specified Event Hub. + * ListByNamespaceNext * @param resourceGroupName Name of the resource group within the azure subscription. * @param namespaceName The Namespace name - * @param eventHubName The Event Hub name + * @param nextLink The nextLink from the previous successful call to the ListByNamespace method. * @param options The options parameters. */ - get( + private _listByNamespaceNext( resourceGroupName: string, namespaceName: string, - eventHubName: string, - options?: EventHubsGetOptionalParams - ): Promise { + nextLink: string, + options?: EventHubsListByNamespaceNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, eventHubName, options }, - getOperationSpec + { resourceGroupName, namespaceName, nextLink, options }, + listByNamespaceNextOperationSpec ); } @@ -463,86 +481,64 @@ export class EventHubsImpl implements EventHubs { listAuthorizationRulesNextOperationSpec ); } - - /** - * ListByNamespaceNext - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param nextLink The nextLink from the previous successful call to the ListByNamespace method. - * @param options The options parameters. - */ - private _listByNamespaceNext( - resourceGroupName: string, - namespaceName: string, - nextLink: string, - options?: EventHubsListByNamespaceNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, nextLink, options }, - listByNamespaceNextOperationSpec - ); - } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { +const listByNamespaceOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationRuleListResult + bodyMapper: Mappers.EventHubListResult }, default: { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.eventHubName + Parameters.namespaceName ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AuthorizationRule + bodyMapper: Mappers.Eventhub }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName, Parameters.eventHubName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}", + httpMethod: "DELETE", responses: { - 200: { - bodyMapper: Mappers.AuthorizationRule - }, + 200: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } @@ -553,19 +549,19 @@ const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName, Parameters.eventHubName ], headerParameters: [Parameters.accept], serializer }; -const deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}", - httpMethod: "DELETE", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}", + httpMethod: "GET", responses: { - 200: {}, - 204: {}, + 200: { + bodyMapper: Mappers.Eventhub + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -576,19 +572,18 @@ const deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName, Parameters.eventHubName ], headerParameters: [Parameters.accept], serializer }; -const listKeysOperationSpec: coreClient.OperationSpec = { +const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/listKeys", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessKeys + bodyMapper: Mappers.AuthorizationRuleListResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -600,25 +595,24 @@ const listKeysOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName, Parameters.eventHubName ], headerParameters: [Parameters.accept], serializer }; -const regenerateKeysOperationSpec: coreClient.OperationSpec = { +const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AccessKeys + bodyMapper: Mappers.AuthorizationRule }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -632,60 +626,61 @@ const regenerateKeysOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const listByNamespaceOperationSpec: coreClient.OperationSpec = { +const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EventHubListResult + bodyMapper: Mappers.AuthorizationRule }, default: { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, + Parameters.authorizationRuleName, + Parameters.eventHubName ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}", - httpMethod: "PUT", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}", + httpMethod: "DELETE", responses: { - 200: { - bodyMapper: Mappers.Eventhub - }, + 200: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, + Parameters.authorizationRuleName, Parameters.eventHubName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const deleteOperationSpec: coreClient.OperationSpec = { +const listKeysOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}", - httpMethod: "DELETE", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/listKeys", + httpMethod: "POST", responses: { - 200: {}, - 204: {}, + 200: { + bodyMapper: Mappers.AccessKeys + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -696,75 +691,79 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, + Parameters.authorizationRuleName, Parameters.eventHubName ], headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const regenerateKeysOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.Eventhub + bodyMapper: Mappers.AccessKeys }, default: { bodyMapper: Mappers.ErrorResponse } }, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, + Parameters.authorizationRuleName, Parameters.eventHubName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; -const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = { +const listByNamespaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationRuleListResult + bodyMapper: Mappers.EventHubListResult }, default: { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.namespaceName, - Parameters.eventHubName + Parameters.namespaceName ], headerParameters: [Parameters.accept], serializer }; -const listByNamespaceNextOperationSpec: coreClient.OperationSpec = { +const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EventHubListResult + bodyMapper: Mappers.AuthorizationRuleListResult }, default: { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.namespaceName + Parameters.namespaceName, + Parameters.eventHubName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/eventhub/arm-eventhub/src/operations/index.ts b/sdk/eventhub/arm-eventhub/src/operations/index.ts index 81bf8f142252..b8c8943b9809 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/index.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/index.ts @@ -7,12 +7,11 @@ */ export * from "./clusters"; +export * from "./configuration"; export * from "./namespaces"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; -export * from "./configuration"; -export * from "./disasterRecoveryConfigs"; +export * from "./operations"; export * from "./eventHubs"; +export * from "./disasterRecoveryConfigs"; export * from "./consumerGroups"; -export * from "./operations"; -export * from "./regions"; diff --git a/sdk/eventhub/arm-eventhub/src/operations/namespaces.ts b/sdk/eventhub/arm-eventhub/src/operations/namespaces.ts index a69c62122db0..1800494524ba 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/namespaces.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/namespaces.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Namespaces } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -16,26 +15,14 @@ import { EventHubManagementClientContext } from "../eventHubManagementClientCont import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { - IpFilterRule, - NamespacesListIPFilterRulesNextOptionalParams, - NamespacesListIPFilterRulesOptionalParams, EHNamespace, NamespacesListNextOptionalParams, NamespacesListOptionalParams, NamespacesListByResourceGroupNextOptionalParams, NamespacesListByResourceGroupOptionalParams, - VirtualNetworkRule, - NamespacesListVirtualNetworkRulesNextOptionalParams, - NamespacesListVirtualNetworkRulesOptionalParams, AuthorizationRule, NamespacesListAuthorizationRulesNextOptionalParams, NamespacesListAuthorizationRulesOptionalParams, - NamespacesListIPFilterRulesResponse, - NamespacesCreateOrUpdateIpFilterRuleOptionalParams, - NamespacesCreateOrUpdateIpFilterRuleResponse, - NamespacesDeleteIpFilterRuleOptionalParams, - NamespacesGetIpFilterRuleOptionalParams, - NamespacesGetIpFilterRuleResponse, NamespacesListResponse, NamespacesListByResourceGroupResponse, NamespacesCreateOrUpdateOptionalParams, @@ -45,12 +32,6 @@ import { NamespacesGetResponse, NamespacesUpdateOptionalParams, NamespacesUpdateResponse, - NamespacesListVirtualNetworkRulesResponse, - NamespacesCreateOrUpdateVirtualNetworkRuleOptionalParams, - NamespacesCreateOrUpdateVirtualNetworkRuleResponse, - NamespacesDeleteVirtualNetworkRuleOptionalParams, - NamespacesGetVirtualNetworkRuleOptionalParams, - NamespacesGetVirtualNetworkRuleResponse, NetworkRuleSet, NamespacesCreateOrUpdateNetworkRuleSetOptionalParams, NamespacesCreateOrUpdateNetworkRuleSetResponse, @@ -70,10 +51,8 @@ import { CheckNameAvailabilityParameter, NamespacesCheckNameAvailabilityOptionalParams, NamespacesCheckNameAvailabilityResponse, - NamespacesListIPFilterRulesNextResponse, NamespacesListNextResponse, NamespacesListByResourceGroupNextResponse, - NamespacesListVirtualNetworkRulesNextResponse, NamespacesListAuthorizationRulesNextResponse } from "../models"; @@ -90,77 +69,6 @@ export class NamespacesImpl implements Namespaces { this.client = client; } - /** - * Gets a list of IP Filter rules for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param options The options parameters. - */ - public listIPFilterRules( - resourceGroupName: string, - namespaceName: string, - options?: NamespacesListIPFilterRulesOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listIPFilterRulesPagingAll( - resourceGroupName, - namespaceName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listIPFilterRulesPagingPage( - resourceGroupName, - namespaceName, - options - ); - } - }; - } - - private async *listIPFilterRulesPagingPage( - resourceGroupName: string, - namespaceName: string, - options?: NamespacesListIPFilterRulesOptionalParams - ): AsyncIterableIterator { - let result = await this._listIPFilterRules( - resourceGroupName, - namespaceName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listIPFilterRulesNext( - resourceGroupName, - namespaceName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listIPFilterRulesPagingAll( - resourceGroupName: string, - namespaceName: string, - options?: NamespacesListIPFilterRulesOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listIPFilterRulesPagingPage( - resourceGroupName, - namespaceName, - options - )) { - yield* page; - } - } - /** * Lists all the available Namespaces within a subscription, irrespective of the resource groups. * @param options The options parameters. @@ -256,77 +164,6 @@ export class NamespacesImpl implements Namespaces { } } - /** - * Gets a list of VirtualNetwork rules for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param options The options parameters. - */ - public listVirtualNetworkRules( - resourceGroupName: string, - namespaceName: string, - options?: NamespacesListVirtualNetworkRulesOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listVirtualNetworkRulesPagingAll( - resourceGroupName, - namespaceName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listVirtualNetworkRulesPagingPage( - resourceGroupName, - namespaceName, - options - ); - } - }; - } - - private async *listVirtualNetworkRulesPagingPage( - resourceGroupName: string, - namespaceName: string, - options?: NamespacesListVirtualNetworkRulesOptionalParams - ): AsyncIterableIterator { - let result = await this._listVirtualNetworkRules( - resourceGroupName, - namespaceName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listVirtualNetworkRulesNext( - resourceGroupName, - namespaceName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listVirtualNetworkRulesPagingAll( - resourceGroupName: string, - namespaceName: string, - options?: NamespacesListVirtualNetworkRulesOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listVirtualNetworkRulesPagingPage( - resourceGroupName, - namespaceName, - options - )) { - yield* page; - } - } - /** * Gets a list of authorization rules for a Namespace. * @param resourceGroupName Name of the resource group within the azure subscription. @@ -398,88 +235,6 @@ export class NamespacesImpl implements Namespaces { } } - /** - * Gets a list of IP Filter rules for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param options The options parameters. - */ - private _listIPFilterRules( - resourceGroupName: string, - namespaceName: string, - options?: NamespacesListIPFilterRulesOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, options }, - listIPFilterRulesOperationSpec - ); - } - - /** - * Creates or updates an IpFilterRule for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param ipFilterRuleName The IP Filter Rule name. - * @param parameters The Namespace IpFilterRule. - * @param options The options parameters. - */ - createOrUpdateIpFilterRule( - resourceGroupName: string, - namespaceName: string, - ipFilterRuleName: string, - parameters: IpFilterRule, - options?: NamespacesCreateOrUpdateIpFilterRuleOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - namespaceName, - ipFilterRuleName, - parameters, - options - }, - createOrUpdateIpFilterRuleOperationSpec - ); - } - - /** - * Deletes an IpFilterRule for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param ipFilterRuleName The IP Filter Rule name. - * @param options The options parameters. - */ - deleteIpFilterRule( - resourceGroupName: string, - namespaceName: string, - ipFilterRuleName: string, - options?: NamespacesDeleteIpFilterRuleOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, ipFilterRuleName, options }, - deleteIpFilterRuleOperationSpec - ); - } - - /** - * Gets an IpFilterRule for a Namespace by rule name. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param ipFilterRuleName The IP Filter Rule name. - * @param options The options parameters. - */ - getIpFilterRule( - resourceGroupName: string, - namespaceName: string, - ipFilterRuleName: string, - options?: NamespacesGetIpFilterRuleOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, ipFilterRuleName, options }, - getIpFilterRuleOperationSpec - ); - } - /** * Lists all the available Namespaces within a subscription, irrespective of the resource groups. * @param options The options parameters. @@ -716,88 +471,6 @@ export class NamespacesImpl implements Namespaces { ); } - /** - * Gets a list of VirtualNetwork rules for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param options The options parameters. - */ - private _listVirtualNetworkRules( - resourceGroupName: string, - namespaceName: string, - options?: NamespacesListVirtualNetworkRulesOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, options }, - listVirtualNetworkRulesOperationSpec - ); - } - - /** - * Creates or updates an VirtualNetworkRule for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param virtualNetworkRuleName The Virtual Network Rule name. - * @param parameters The Namespace VirtualNetworkRule. - * @param options The options parameters. - */ - createOrUpdateVirtualNetworkRule( - resourceGroupName: string, - namespaceName: string, - virtualNetworkRuleName: string, - parameters: VirtualNetworkRule, - options?: NamespacesCreateOrUpdateVirtualNetworkRuleOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - namespaceName, - virtualNetworkRuleName, - parameters, - options - }, - createOrUpdateVirtualNetworkRuleOperationSpec - ); - } - - /** - * Deletes an VirtualNetworkRule for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param virtualNetworkRuleName The Virtual Network Rule name. - * @param options The options parameters. - */ - deleteVirtualNetworkRule( - resourceGroupName: string, - namespaceName: string, - virtualNetworkRuleName: string, - options?: NamespacesDeleteVirtualNetworkRuleOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, virtualNetworkRuleName, options }, - deleteVirtualNetworkRuleOperationSpec - ); - } - - /** - * Gets an VirtualNetworkRule for a Namespace by rule name. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param virtualNetworkRuleName The Virtual Network Rule name. - * @param options The options parameters. - */ - getVirtualNetworkRule( - resourceGroupName: string, - namespaceName: string, - virtualNetworkRuleName: string, - options?: NamespacesGetVirtualNetworkRuleOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, virtualNetworkRuleName, options }, - getVirtualNetworkRuleOperationSpec - ); - } - /** * Create or update NetworkRuleSet for a Namespace. * @param resourceGroupName Name of the resource group within the azure subscription. @@ -977,25 +650,6 @@ export class NamespacesImpl implements Namespaces { ); } - /** - * ListIPFilterRulesNext - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param nextLink The nextLink from the previous successful call to the ListIPFilterRules method. - * @param options The options parameters. - */ - private _listIPFilterRulesNext( - resourceGroupName: string, - namespaceName: string, - nextLink: string, - options?: NamespacesListIPFilterRulesNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, nextLink, options }, - listIPFilterRulesNextOperationSpec - ); - } - /** * ListNext * @param nextLink The nextLink from the previous successful call to the List method. @@ -1028,26 +682,6 @@ export class NamespacesImpl implements Namespaces { ); } - /** - * ListVirtualNetworkRulesNext - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param nextLink The nextLink from the previous successful call to the ListVirtualNetworkRules - * method. - * @param options The options parameters. - */ - private _listVirtualNetworkRulesNext( - resourceGroupName: string, - namespaceName: string, - nextLink: string, - options?: NamespacesListVirtualNetworkRulesNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, nextLink, options }, - listVirtualNetworkRulesNextOperationSpec - ); - } - /** * ListAuthorizationRulesNext * @param resourceGroupName Name of the resource group within the azure subscription. @@ -1070,98 +704,6 @@ export class NamespacesImpl implements Namespaces { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listIPFilterRulesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/ipfilterrules", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.IpFilterRuleListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.namespaceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateIpFilterRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/ipfilterrules/{ipFilterRuleName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.IpFilterRule - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.parameters1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.ipFilterRuleName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteIpFilterRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/ipfilterrules/{ipFilterRuleName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.ipFilterRuleName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getIpFilterRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/ipfilterrules/{ipFilterRuleName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.IpFilterRule - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.ipFilterRuleName - ], - headerParameters: [Parameters.accept], - serializer -}; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/namespaces", @@ -1264,9 +806,6 @@ const getOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.EHNamespace }, - 201: { - bodyMapper: Mappers.EHNamespace - }, default: { bodyMapper: Mappers.ErrorResponse } @@ -1309,98 +848,6 @@ const updateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const listVirtualNetworkRulesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/virtualnetworkrules", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkRuleListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.namespaceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateVirtualNetworkRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/virtualnetworkrules/{virtualNetworkRuleName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkRule - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.parameters3, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.virtualNetworkRuleName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteVirtualNetworkRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/virtualnetworkrules/{virtualNetworkRuleName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.virtualNetworkRuleName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getVirtualNetworkRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/virtualnetworkrules/{virtualNetworkRuleName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkRule - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.virtualNetworkRuleName - ], - headerParameters: [Parameters.accept], - serializer -}; const createOrUpdateNetworkRuleSetOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkRuleSets/default", @@ -1413,7 +860,7 @@ const createOrUpdateNetworkRuleSetOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1481,7 +928,7 @@ const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1574,7 +1021,7 @@ const regenerateKeysOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1599,35 +1046,13 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listIPFilterRulesNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.IpFilterRuleListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink, - Parameters.namespaceName - ], - headerParameters: [Parameters.accept], - serializer -}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -1669,28 +1094,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listVirtualNetworkRulesNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkRuleListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink, - Parameters.namespaceName - ], - headerParameters: [Parameters.accept], - serializer -}; const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/eventhub/arm-eventhub/src/operations/operations.ts b/sdk/eventhub/arm-eventhub/src/operations/operations.ts index 9d148737170d..08636f042fbc 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/operations.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/operations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Operations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; diff --git a/sdk/eventhub/arm-eventhub/src/operations/privateEndpointConnections.ts b/sdk/eventhub/arm-eventhub/src/operations/privateEndpointConnections.ts index 3cfb78374e85..af0eff985778 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/privateEndpointConnections.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/privateEndpointConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PrivateEndpointConnections } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; @@ -321,7 +320,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/eventhub/arm-eventhub/src/operations/regions.ts b/sdk/eventhub/arm-eventhub/src/operations/regions.ts deleted file mode 100644 index 91caf392b4b9..000000000000 --- a/sdk/eventhub/arm-eventhub/src/operations/regions.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * 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. - */ - -import "@azure/core-paging"; -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Regions } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { EventHubManagementClientContext } from "../eventHubManagementClientContext"; -import { - MessagingRegions, - RegionsListBySkuNextOptionalParams, - RegionsListBySkuOptionalParams, - RegionsListBySkuResponse, - RegionsListBySkuNextResponse -} from "../models"; - -/// -/** Class containing Regions operations. */ -export class RegionsImpl implements Regions { - private readonly client: EventHubManagementClientContext; - - /** - * Initialize a new instance of the class Regions class. - * @param client Reference to the service client - */ - constructor(client: EventHubManagementClientContext) { - this.client = client; - } - - /** - * Gets the available Regions for a given sku - * @param sku The sku type. - * @param options The options parameters. - */ - public listBySku( - sku: string, - options?: RegionsListBySkuOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listBySkuPagingAll(sku, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listBySkuPagingPage(sku, options); - } - }; - } - - private async *listBySkuPagingPage( - sku: string, - options?: RegionsListBySkuOptionalParams - ): AsyncIterableIterator { - let result = await this._listBySku(sku, options); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listBySkuNext(sku, continuationToken, options); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listBySkuPagingAll( - sku: string, - options?: RegionsListBySkuOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listBySkuPagingPage(sku, options)) { - yield* page; - } - } - - /** - * Gets the available Regions for a given sku - * @param sku The sku type. - * @param options The options parameters. - */ - private _listBySku( - sku: string, - options?: RegionsListBySkuOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { sku, options }, - listBySkuOperationSpec - ); - } - - /** - * ListBySkuNext - * @param sku The sku type. - * @param nextLink The nextLink from the previous successful call to the ListBySku method. - * @param options The options parameters. - */ - private _listBySkuNext( - sku: string, - nextLink: string, - options?: RegionsListBySkuNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { sku, nextLink, options }, - listBySkuNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listBySkuOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/sku/{sku}/regions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MessagingRegionsListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.sku], - headerParameters: [Parameters.accept], - serializer -}; -const listBySkuNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MessagingRegionsListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.sku - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/clusters.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/clusters.ts index b4ac499a9e7c..b86f57c21aff 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/clusters.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/clusters.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { Cluster, + ClustersListBySubscriptionOptionalParams, ClustersListByResourceGroupOptionalParams, ClustersListAvailableClusterRegionOptionalParams, ClustersListAvailableClusterRegionResponse, @@ -28,6 +28,13 @@ import { /// /** Interface representing a Clusters. */ export interface Clusters { + /** + * Lists the available Event Hubs Clusters within an ARM resource group + * @param options The options parameters. + */ + listBySubscription( + options?: ClustersListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; /** * Lists the available Event Hubs Clusters within an ARM resource group * @param resourceGroupName Name of the resource group within the azure subscription. diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/consumerGroups.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/consumerGroups.ts index 82b70a2043ff..d0ee2f0c893f 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/consumerGroups.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/consumerGroups.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ConsumerGroup, diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/disasterRecoveryConfigs.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/disasterRecoveryConfigs.ts index 4c770fd1e4c6..30e41281a090 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/disasterRecoveryConfigs.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/disasterRecoveryConfigs.ts @@ -6,17 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { - AuthorizationRule, - DisasterRecoveryConfigsListAuthorizationRulesOptionalParams, ArmDisasterRecovery, DisasterRecoveryConfigsListOptionalParams, - DisasterRecoveryConfigsGetAuthorizationRuleOptionalParams, - DisasterRecoveryConfigsGetAuthorizationRuleResponse, - DisasterRecoveryConfigsListKeysOptionalParams, - DisasterRecoveryConfigsListKeysResponse, + AuthorizationRule, + DisasterRecoveryConfigsListAuthorizationRulesOptionalParams, CheckNameAvailabilityParameter, DisasterRecoveryConfigsCheckNameAvailabilityOptionalParams, DisasterRecoveryConfigsCheckNameAvailabilityResponse, @@ -26,25 +21,16 @@ import { DisasterRecoveryConfigsGetOptionalParams, DisasterRecoveryConfigsGetResponse, DisasterRecoveryConfigsBreakPairingOptionalParams, - DisasterRecoveryConfigsFailOverOptionalParams + DisasterRecoveryConfigsFailOverOptionalParams, + DisasterRecoveryConfigsGetAuthorizationRuleOptionalParams, + DisasterRecoveryConfigsGetAuthorizationRuleResponse, + DisasterRecoveryConfigsListKeysOptionalParams, + DisasterRecoveryConfigsListKeysResponse } from "../models"; /// /** Interface representing a DisasterRecoveryConfigs. */ export interface DisasterRecoveryConfigs { - /** - * Gets a list of authorization rules for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param alias The Disaster Recovery configuration name - * @param options The options parameters. - */ - listAuthorizationRules( - resourceGroupName: string, - namespaceName: string, - alias: string, - options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams - ): PagedAsyncIterableIterator; /** * Gets all Alias(Disaster Recovery configurations) * @param resourceGroupName Name of the resource group within the azure subscription. @@ -57,35 +43,18 @@ export interface DisasterRecoveryConfigs { options?: DisasterRecoveryConfigsListOptionalParams ): PagedAsyncIterableIterator; /** - * Gets an AuthorizationRule for a Namespace by rule name. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param alias The Disaster Recovery configuration name - * @param authorizationRuleName The authorization rule name. - * @param options The options parameters. - */ - getAuthorizationRule( - resourceGroupName: string, - namespaceName: string, - alias: string, - authorizationRuleName: string, - options?: DisasterRecoveryConfigsGetAuthorizationRuleOptionalParams - ): Promise; - /** - * Gets the primary and secondary connection strings for the Namespace. + * Gets a list of authorization rules for a Namespace. * @param resourceGroupName Name of the resource group within the azure subscription. * @param namespaceName The Namespace name * @param alias The Disaster Recovery configuration name - * @param authorizationRuleName The authorization rule name. * @param options The options parameters. */ - listKeys( + listAuthorizationRules( resourceGroupName: string, namespaceName: string, alias: string, - authorizationRuleName: string, - options?: DisasterRecoveryConfigsListKeysOptionalParams - ): Promise; + options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams + ): PagedAsyncIterableIterator; /** * Check the give Namespace name availability. * @param resourceGroupName Name of the resource group within the azure subscription. @@ -167,4 +136,34 @@ export interface DisasterRecoveryConfigs { alias: string, options?: DisasterRecoveryConfigsFailOverOptionalParams ): Promise; + /** + * Gets an AuthorizationRule for a Namespace by rule name. + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name + * @param alias The Disaster Recovery configuration name + * @param authorizationRuleName The authorization rule name. + * @param options The options parameters. + */ + getAuthorizationRule( + resourceGroupName: string, + namespaceName: string, + alias: string, + authorizationRuleName: string, + options?: DisasterRecoveryConfigsGetAuthorizationRuleOptionalParams + ): Promise; + /** + * Gets the primary and secondary connection strings for the Namespace. + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name + * @param alias The Disaster Recovery configuration name + * @param authorizationRuleName The authorization rule name. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + namespaceName: string, + alias: string, + authorizationRuleName: string, + options?: DisasterRecoveryConfigsListKeysOptionalParams + ): Promise; } diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/eventHubs.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/eventHubs.ts index 03347dd71ae4..0e588c572d00 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/eventHubs.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/eventHubs.ts @@ -6,13 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { - AuthorizationRule, - EventHubsListAuthorizationRulesOptionalParams, Eventhub, EventHubsListByNamespaceOptionalParams, + AuthorizationRule, + EventHubsListAuthorizationRulesOptionalParams, + EventHubsCreateOrUpdateOptionalParams, + EventHubsCreateOrUpdateResponse, + EventHubsDeleteOptionalParams, + EventHubsGetOptionalParams, + EventHubsGetResponse, EventHubsCreateOrUpdateAuthorizationRuleOptionalParams, EventHubsCreateOrUpdateAuthorizationRuleResponse, EventHubsGetAuthorizationRuleOptionalParams, @@ -22,17 +26,23 @@ import { EventHubsListKeysResponse, RegenerateAccessKeyParameters, EventHubsRegenerateKeysOptionalParams, - EventHubsRegenerateKeysResponse, - EventHubsCreateOrUpdateOptionalParams, - EventHubsCreateOrUpdateResponse, - EventHubsDeleteOptionalParams, - EventHubsGetOptionalParams, - EventHubsGetResponse + EventHubsRegenerateKeysResponse } from "../models"; /// /** Interface representing a EventHubs. */ export interface EventHubs { + /** + * Gets all the Event Hubs in a Namespace. + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name + * @param options The options parameters. + */ + listByNamespace( + resourceGroupName: string, + namespaceName: string, + options?: EventHubsListByNamespaceOptionalParams + ): PagedAsyncIterableIterator; /** * Gets the authorization rules for an Event Hub. * @param resourceGroupName Name of the resource group within the azure subscription. @@ -47,16 +57,46 @@ export interface EventHubs { options?: EventHubsListAuthorizationRulesOptionalParams ): PagedAsyncIterableIterator; /** - * Gets all the Event Hubs in a Namespace. + * Creates or updates a new Event Hub as a nested resource within a Namespace. * @param resourceGroupName Name of the resource group within the azure subscription. * @param namespaceName The Namespace name + * @param eventHubName The Event Hub name + * @param parameters Parameters supplied to create an Event Hub resource. * @param options The options parameters. */ - listByNamespace( + createOrUpdate( resourceGroupName: string, namespaceName: string, - options?: EventHubsListByNamespaceOptionalParams - ): PagedAsyncIterableIterator; + eventHubName: string, + parameters: Eventhub, + options?: EventHubsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes an Event Hub from the specified Namespace and resource group. + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name + * @param eventHubName The Event Hub name + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + namespaceName: string, + eventHubName: string, + options?: EventHubsDeleteOptionalParams + ): Promise; + /** + * Gets an Event Hubs description for the specified Event Hub. + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name + * @param eventHubName The Event Hub name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + namespaceName: string, + eventHubName: string, + options?: EventHubsGetOptionalParams + ): Promise; /** * Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the * AuthorizationRule will take a few seconds to take effect. @@ -138,45 +178,4 @@ export interface EventHubs { parameters: RegenerateAccessKeyParameters, options?: EventHubsRegenerateKeysOptionalParams ): Promise; - /** - * Creates or updates a new Event Hub as a nested resource within a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param eventHubName The Event Hub name - * @param parameters Parameters supplied to create an Event Hub resource. - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - namespaceName: string, - eventHubName: string, - parameters: Eventhub, - options?: EventHubsCreateOrUpdateOptionalParams - ): Promise; - /** - * Deletes an Event Hub from the specified Namespace and resource group. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param eventHubName The Event Hub name - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - namespaceName: string, - eventHubName: string, - options?: EventHubsDeleteOptionalParams - ): Promise; - /** - * Gets an Event Hubs description for the specified Event Hub. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param eventHubName The Event Hub name - * @param options The options parameters. - */ - get( - resourceGroupName: string, - namespaceName: string, - eventHubName: string, - options?: EventHubsGetOptionalParams - ): Promise; } diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/index.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/index.ts index 81bf8f142252..b8c8943b9809 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/index.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/index.ts @@ -7,12 +7,11 @@ */ export * from "./clusters"; +export * from "./configuration"; export * from "./namespaces"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; -export * from "./configuration"; -export * from "./disasterRecoveryConfigs"; +export * from "./operations"; export * from "./eventHubs"; +export * from "./disasterRecoveryConfigs"; export * from "./consumerGroups"; -export * from "./operations"; -export * from "./regions"; diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/namespaces.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/namespaces.ts index d235b46eadb6..6fc0964db30a 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/namespaces.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/namespaces.ts @@ -6,24 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { - IpFilterRule, - NamespacesListIPFilterRulesOptionalParams, EHNamespace, NamespacesListOptionalParams, NamespacesListByResourceGroupOptionalParams, - VirtualNetworkRule, - NamespacesListVirtualNetworkRulesOptionalParams, AuthorizationRule, NamespacesListAuthorizationRulesOptionalParams, - NamespacesCreateOrUpdateIpFilterRuleOptionalParams, - NamespacesCreateOrUpdateIpFilterRuleResponse, - NamespacesDeleteIpFilterRuleOptionalParams, - NamespacesGetIpFilterRuleOptionalParams, - NamespacesGetIpFilterRuleResponse, NamespacesCreateOrUpdateOptionalParams, NamespacesCreateOrUpdateResponse, NamespacesDeleteOptionalParams, @@ -31,11 +21,6 @@ import { NamespacesGetResponse, NamespacesUpdateOptionalParams, NamespacesUpdateResponse, - NamespacesCreateOrUpdateVirtualNetworkRuleOptionalParams, - NamespacesCreateOrUpdateVirtualNetworkRuleResponse, - NamespacesDeleteVirtualNetworkRuleOptionalParams, - NamespacesGetVirtualNetworkRuleOptionalParams, - NamespacesGetVirtualNetworkRuleResponse, NetworkRuleSet, NamespacesCreateOrUpdateNetworkRuleSetOptionalParams, NamespacesCreateOrUpdateNetworkRuleSetResponse, @@ -59,17 +44,6 @@ import { /// /** Interface representing a Namespaces. */ export interface Namespaces { - /** - * Gets a list of IP Filter rules for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param options The options parameters. - */ - listIPFilterRules( - resourceGroupName: string, - namespaceName: string, - options?: NamespacesListIPFilterRulesOptionalParams - ): PagedAsyncIterableIterator; /** * Lists all the available Namespaces within a subscription, irrespective of the resource groups. * @param options The options parameters. @@ -86,17 +60,6 @@ export interface Namespaces { resourceGroupName: string, options?: NamespacesListByResourceGroupOptionalParams ): PagedAsyncIterableIterator; - /** - * Gets a list of VirtualNetwork rules for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param options The options parameters. - */ - listVirtualNetworkRules( - resourceGroupName: string, - namespaceName: string, - options?: NamespacesListVirtualNetworkRulesOptionalParams - ): PagedAsyncIterableIterator; /** * Gets a list of authorization rules for a Namespace. * @param resourceGroupName Name of the resource group within the azure subscription. @@ -108,47 +71,6 @@ export interface Namespaces { namespaceName: string, options?: NamespacesListAuthorizationRulesOptionalParams ): PagedAsyncIterableIterator; - /** - * Creates or updates an IpFilterRule for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param ipFilterRuleName The IP Filter Rule name. - * @param parameters The Namespace IpFilterRule. - * @param options The options parameters. - */ - createOrUpdateIpFilterRule( - resourceGroupName: string, - namespaceName: string, - ipFilterRuleName: string, - parameters: IpFilterRule, - options?: NamespacesCreateOrUpdateIpFilterRuleOptionalParams - ): Promise; - /** - * Deletes an IpFilterRule for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param ipFilterRuleName The IP Filter Rule name. - * @param options The options parameters. - */ - deleteIpFilterRule( - resourceGroupName: string, - namespaceName: string, - ipFilterRuleName: string, - options?: NamespacesDeleteIpFilterRuleOptionalParams - ): Promise; - /** - * Gets an IpFilterRule for a Namespace by rule name. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param ipFilterRuleName The IP Filter Rule name. - * @param options The options parameters. - */ - getIpFilterRule( - resourceGroupName: string, - namespaceName: string, - ipFilterRuleName: string, - options?: NamespacesGetIpFilterRuleOptionalParams - ): Promise; /** * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This * operation is idempotent. @@ -231,47 +153,6 @@ export interface Namespaces { parameters: EHNamespace, options?: NamespacesUpdateOptionalParams ): Promise; - /** - * Creates or updates an VirtualNetworkRule for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param virtualNetworkRuleName The Virtual Network Rule name. - * @param parameters The Namespace VirtualNetworkRule. - * @param options The options parameters. - */ - createOrUpdateVirtualNetworkRule( - resourceGroupName: string, - namespaceName: string, - virtualNetworkRuleName: string, - parameters: VirtualNetworkRule, - options?: NamespacesCreateOrUpdateVirtualNetworkRuleOptionalParams - ): Promise; - /** - * Deletes an VirtualNetworkRule for a Namespace. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param virtualNetworkRuleName The Virtual Network Rule name. - * @param options The options parameters. - */ - deleteVirtualNetworkRule( - resourceGroupName: string, - namespaceName: string, - virtualNetworkRuleName: string, - options?: NamespacesDeleteVirtualNetworkRuleOptionalParams - ): Promise; - /** - * Gets an VirtualNetworkRule for a Namespace by rule name. - * @param resourceGroupName Name of the resource group within the azure subscription. - * @param namespaceName The Namespace name - * @param virtualNetworkRuleName The Virtual Network Rule name. - * @param options The options parameters. - */ - getVirtualNetworkRule( - resourceGroupName: string, - namespaceName: string, - virtualNetworkRuleName: string, - options?: NamespacesGetVirtualNetworkRuleOptionalParams - ): Promise; /** * Create or update NetworkRuleSet for a Namespace. * @param resourceGroupName Name of the resource group within the azure subscription. diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/operations.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/operations.ts index 4fe027d7d2f3..d17b96f02fe7 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/operations.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/operations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Operation, OperationsListOptionalParams } from "../models"; diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/privateEndpointConnections.ts index 163221fbccde..37ba1ad4cc36 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/privateEndpointConnections.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/regions.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/regions.ts deleted file mode 100644 index 760020bd1d62..000000000000 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/regions.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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. - */ - -import "@azure/core-paging"; -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { MessagingRegions, RegionsListBySkuOptionalParams } from "../models"; - -/// -/** Interface representing a Regions. */ -export interface Regions { - /** - * Gets the available Regions for a given sku - * @param sku The sku type. - * @param options The options parameters. - */ - listBySku( - sku: string, - options?: RegionsListBySkuOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/eventhub/arm-eventhub/test/eventhub_examples.ts b/sdk/eventhub/arm-eventhub/test/eventhub_examples.ts new file mode 100644 index 000000000000..b2081098c3b3 --- /dev/null +++ b/sdk/eventhub/arm-eventhub/test/eventhub_examples.ts @@ -0,0 +1,196 @@ +/* + * 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. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; +import { ClientSecretCredential } from "@azure/identity"; +import { EventHubManagementClient } from "../src/eventHubManagementClient"; +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: [] +}; + +describe("Eventhub test", () => { + let recorder: Recorder; + let subscriptionId: string; + let client: EventHubManagementClient; + let location: string; + let resourceGroupName: string; + let storageAccountName: string; + let subnetName: string; + let eventhubName: string; + let namespaceName: string; + let virtualNetworkName: string; + let storage_client: StorageManagementClient; + let network_client: NetworkManagementClient; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + 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); + location = "eastus"; + resourceGroupName = "myjstest"; + subnetName = "subnetxxx"; + eventhubName = "myeventhubxxx"; + namespaceName = "mynamespacexxx"; + virtualNetworkName = "myvirtualnetwork"; + storageAccountName = "mystorageaccountxxx"; + }); + + afterEach(async function() { + await recorder.stop(); + }); + + // virtualNetworks.beginCreateOrUpdateAndWait + // subnets.beginCreateOrUpdateAndWait + async function createVirtualNetwork() { + const parameter: VirtualNetwork = { + location: location, + addressSpace: { + addressPrefixes: ["10.0.0.0/16"], + }, + }; + await network_client.virtualNetworks + .beginCreateOrUpdateAndWait( + resourceGroupName, + virtualNetworkName, + parameter + ) + .then((result) => { + console.log(result); + }); + const subnet_info = await network_client.subnets.beginCreateOrUpdateAndWait( + resourceGroupName, + virtualNetworkName, + subnetName, + { addressPrefix: "10.0.0.0/24" } + ); + console.log(subnet_info); + } + + //storageAccounts.beginCreateAndWait + async function storageAccounts_beginCreateAndWait() { + const parameter: StorageAccountCreateParameters = { + sku: { + name: "Standard_GRS", + }, + kind: "StorageV2", + location: location, + }; + const storageaccount = await storage_client.storageAccounts.beginCreateAndWait( + resourceGroupName, + storageAccountName, + parameter + ); + console.log(storageaccount); + } + + it("namespaces create test", async function() { + await createVirtualNetwork(); + await storageAccounts_beginCreateAndWait(); + const res = await client.namespaces.beginCreateOrUpdateAndWait(resourceGroupName,namespaceName,{ + sku: { + name: "Standard", + tier: "Standard", + }, + location: location, + tags: { + tag1: "value1", + tag2: "value2", + } + }); + assert.equal(res.name,"mynamespacexxx"); + }); + + it("eventHubs create test", async function() { + const res = await client.eventHubs.createOrUpdate(resourceGroupName,namespaceName,eventhubName,{ + messageRetentionInDays: 4, + partitionCount: 4, + status: "Active", + captureDescription: { + enabled: true, + encoding: "Avro", + intervalInSeconds: 120, + sizeLimitInBytes: 10485763, + destination: { + name: "EventHubArchive.AzureBlockBlob", + storageAccountResourceId: + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Storage/storageAccounts/" + + storageAccountName, + blobContainer: "container", + archiveNameFormat: + "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}", + } + } + }); + 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 listByNamespace test", async function() { + const resArray = new Array(); + for await (const item of client.eventHubs.listByNamespace(resourceGroupName,namespaceName)){ + resArray.push(item); + } + assert.equal(resArray.length,1); + }); + + 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)){ + resArray.push(item); + } + assert.equal(resArray.length,0); + }); + + it("namespaces delete test", async function() { + const res = await client.namespaces.beginDeleteAndWait(resourceGroupName,namespaceName); + const resArray = new Array(); + for await (const item of client.namespaces.listByResourceGroup(resourceGroupName)){ + resArray.push(item); + } + assert.equal(resArray.length,0); + }); +}); diff --git a/sdk/eventhub/arm-eventhub/tsconfig.json b/sdk/eventhub/arm-eventhub/tsconfig.json index 603440b3a359..6e3251194117 100644 --- a/sdk/eventhub/arm-eventhub/tsconfig.json +++ b/sdk/eventhub/arm-eventhub/tsconfig.json @@ -14,6 +14,6 @@ "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts"], + "include": ["./src/**/*.ts", "./test/**/*.ts"], "exclude": ["node_modules"] } From f689174fedc47f40454cbf32b04cd65cd65d3154 Mon Sep 17 00:00:00 2001 From: colawwj Date: Fri, 8 Oct 2021 11:31:01 +0800 Subject: [PATCH 2/4] eventhub-track2-2021-06-preview --- package.json | 2 ++ .../arm-eventhub/test/eventhub_examples.ts | 18 ++---------------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 69f616ed127b..f14e4db2514d 100644 --- a/package.json +++ b/package.json @@ -62,6 +62,8 @@ "node": ">=10.10.0" }, "dependencies": { + "@azure/arm-network": "^30.0.0-beta.3", + "@azure/arm-storage": "^30.0.0-beta.2", "eng-package-utils": "file:eng/tools/eng-package-utils", "versioning": "file:eng/tools/versioning" } diff --git a/sdk/eventhub/arm-eventhub/test/eventhub_examples.ts b/sdk/eventhub/arm-eventhub/test/eventhub_examples.ts index b2081098c3b3..e06b9d8d4546 100644 --- a/sdk/eventhub/arm-eventhub/test/eventhub_examples.ts +++ b/sdk/eventhub/arm-eventhub/test/eventhub_examples.ts @@ -83,22 +83,8 @@ describe("Eventhub test", () => { addressPrefixes: ["10.0.0.0/16"], }, }; - await network_client.virtualNetworks - .beginCreateOrUpdateAndWait( - resourceGroupName, - virtualNetworkName, - parameter - ) - .then((result) => { - console.log(result); - }); - const subnet_info = await network_client.subnets.beginCreateOrUpdateAndWait( - resourceGroupName, - virtualNetworkName, - subnetName, - { addressPrefix: "10.0.0.0/24" } - ); - console.log(subnet_info); + const network_create = await network_client.virtualNetworks.beginCreateOrUpdateAndWait(resourceGroupName,virtualNetworkName,parameter); + const subnet_info = await network_client.subnets.beginCreateOrUpdateAndWait(resourceGroupName,virtualNetworkName,subnetName,{ addressPrefix: "10.0.0.0/24" }); } //storageAccounts.beginCreateAndWait From 42f620a2090402d4887d4bc49caf3bd62f968fc7 Mon Sep 17 00:00:00 2001 From: colawwj Date: Fri, 8 Oct 2021 11:39:04 +0800 Subject: [PATCH 3/4] eventhub-track2-2021-06-preview --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f14e4db2514d..da61c5822b8e 100644 --- a/package.json +++ b/package.json @@ -56,14 +56,14 @@ "ts-node": "^7.0.1", "tslib": "1.11.2", "typescript": "^3.2.2", - "yargs": "^11.0.0" + "yargs": "^11.0.0", + "@azure/arm-network": "^30.0.0-beta.3", + "@azure/arm-storage": "^30.0.0-beta.2" }, "engines": { "node": ">=10.10.0" }, "dependencies": { - "@azure/arm-network": "^30.0.0-beta.3", - "@azure/arm-storage": "^30.0.0-beta.2", "eng-package-utils": "file:eng/tools/eng-package-utils", "versioning": "file:eng/tools/versioning" } From 0a90be18cb54e2036a9ad14f9aecfa6b07f3e84c Mon Sep 17 00:00:00 2001 From: colawwj Date: Fri, 8 Oct 2021 11:54:49 +0800 Subject: [PATCH 4/4] update package.json --- package.json | 4 +--- sdk/eventhub/arm-eventhub/package.json | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index da61c5822b8e..69f616ed127b 100644 --- a/package.json +++ b/package.json @@ -56,9 +56,7 @@ "ts-node": "^7.0.1", "tslib": "1.11.2", "typescript": "^3.2.2", - "yargs": "^11.0.0", - "@azure/arm-network": "^30.0.0-beta.3", - "@azure/arm-storage": "^30.0.0-beta.2" + "yargs": "^11.0.0" }, "engines": { "node": ">=10.10.0" diff --git a/sdk/eventhub/arm-eventhub/package.json b/sdk/eventhub/arm-eventhub/package.json index 464e4b1c5d0b..fdf4b6c9ddf9 100644 --- a/sdk/eventhub/arm-eventhub/package.json +++ b/sdk/eventhub/arm-eventhub/package.json @@ -33,7 +33,9 @@ "@azure/identity": "2.0.0-beta.6", "@azure-tools/test-recorder": "^1.0.0", "mocha": "^7.1.1", - "cross-env": "^7.0.2" + "cross-env": "^7.0.2", + "@azure/arm-network": "^30.0.0-beta.3", + "@azure/arm-storage": "^30.0.0-beta.2" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventhub/arm-eventhub", "repository": {