From dbe1b1b36d8d4afd16cce19ff4d67f6afcd8c4f0 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 5 Jan 2022 09:55:20 +0000 Subject: [PATCH] CodeGen from PR 16492 in Azure/azure-rest-api-specs [Hub Generated] Review request for Microsoft.Devices to add version stable/2021-07-02 (#16492) * Adds base for updating Microsoft.Devices from version stable/2021-07-01 to version 2021-07-02 * Updates readme * Updates API version in new specs and examples * iothub creation time * Add Data Residency Flag * Fixing the version in the readme file --- sdk/iothub/arm-iothub/CHANGELOG.md | 25 +- sdk/iothub/arm-iothub/LICENSE | 2 +- sdk/iothub/arm-iothub/README.md | 2 +- sdk/iothub/arm-iothub/_meta.json | 6 +- sdk/iothub/arm-iothub/package.json | 18 +- .../recording_iothubresource_create_test.js | 2125 ----------------- .../recording_iothubresource_delete_test.js | 293 --- .../recording_iothubresource_get_test.js | 147 -- .../recording_iothubresource_list_test.js | 147 -- .../recording_iothubresource_update_test.js | 147 -- .../arm-iothub/review/arm-iothub.api.md | 23 + sdk/iothub/arm-iothub/src/iotHubClient.ts | 4 +- sdk/iothub/arm-iothub/src/models/index.ts | 36 +- sdk/iothub/arm-iothub/src/models/mappers.ts | 83 + .../arm-iothub/src/models/parameters.ts | 2 +- .../src/operations/iotHubResource.ts | 6 +- .../operationsInterfaces/iotHubResource.ts | 6 +- sdk/iothub/arm-iothub/test/iothub_examples.ts | 163 -- sdk/iothub/arm-iothub/test/sampleTest.ts | 48 + 19 files changed, 217 insertions(+), 3066 deletions(-) delete mode 100644 sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_create_test.js delete mode 100644 sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_delete_test.js delete mode 100644 sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_get_test.js delete mode 100644 sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_list_test.js delete mode 100644 sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_update_test.js delete mode 100644 sdk/iothub/arm-iothub/test/iothub_examples.ts create mode 100644 sdk/iothub/arm-iothub/test/sampleTest.ts diff --git a/sdk/iothub/arm-iothub/CHANGELOG.md b/sdk/iothub/arm-iothub/CHANGELOG.md index 5ca426d8043b..519e9337c5ff 100644 --- a/sdk/iothub/arm-iothub/CHANGELOG.md +++ b/sdk/iothub/arm-iothub/CHANGELOG.md @@ -1,15 +1,18 @@ # Release History - -## 6.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + +## 6.1.0-beta.1 (2022-01-05) + +**Features** + + - Added Interface EncryptionPropertiesDescription + - Added Interface IotHubPropertiesDeviceStreams + - Added Interface KeyVaultKeyProperties + - Interface IotHubProperties has a new optional parameter deviceStreams + - Interface IotHubProperties has a new optional parameter encryption + - Enum KnownRoutingSource has a new value DigitalTwinChangeEvents + - Enum KnownRoutingSource has a new value MqttBrokerMessages + + ## 6.0.0 (2021-12-17) The package of @azure/arm-iothub is using our next generation design principles since version 6.0.0, which contains breaking changes. diff --git a/sdk/iothub/arm-iothub/LICENSE b/sdk/iothub/arm-iothub/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/iothub/arm-iothub/LICENSE +++ b/sdk/iothub/arm-iothub/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Microsoft +Copyright (c) 2022 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/iothub/arm-iothub/README.md b/sdk/iothub/arm-iothub/README.md index 81af5383d079..27ce6ea23df1 100644 --- a/sdk/iothub/arm-iothub/README.md +++ b/sdk/iothub/arm-iothub/README.md @@ -6,7 +6,7 @@ Use this API to manage the IoT hubs in your Azure subscription. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/iothub/arm-iothub) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-iothub) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-iothub) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-iothub?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/iothub/arm-iothub/_meta.json b/sdk/iothub/arm-iothub/_meta.json index d56468474e3e..d2b85181c54e 100644 --- a/sdk/iothub/arm-iothub/_meta.json +++ b/sdk/iothub/arm-iothub/_meta.json @@ -1,7 +1,7 @@ { - "commit": "e6d1396612965f2af8df6bb941be19681147930a", + "commit": "27c89d071d6a3d6edc908d86655773e0aa9e59d0", "readme": "specification/iothub/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 --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/iothub/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211207.1", + "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=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/iothub/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20211207.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1" } \ No newline at end of file diff --git a/sdk/iothub/arm-iothub/package.json b/sdk/iothub/arm-iothub/package.json index bff4498042a0..3c1f6eb7ee7b 100644 --- a/sdk/iothub/arm-iothub/package.json +++ b/sdk/iothub/arm-iothub/package.json @@ -3,10 +3,8 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for IotHubClient.", - "version": "6.0.1", - "engines": { - "node": ">=12.0.0" - }, + "version": "6.1.0-beta.1", + "engines": { "node": ">=12.0.0" }, "dependencies": { "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", @@ -16,13 +14,7 @@ "@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/src/index.js", @@ -49,9 +41,7 @@ "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", diff --git a/sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_create_test.js b/sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_create_test.js deleted file mode 100644 index b2cc366bc579..000000000000 --- a/sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_create_test.js +++ /dev/null @@ -1,2125 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "26edd9fff69b00fd60ebaa1b94cf2391"; - -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', - '4150cca7-f51d-4a39-827d-43dbbebd0f00', - 'x-ms-ests-server', - '2.1.12261.15 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AmR1A5ecasxEhBvfvJmMVGM; expires=Sun, 16-Jan-2022 06:42:12 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrNI72xBPfYS3EhQoRMUgfhASfpq0uU5-Dyv8XQyB7dreMxRPePCbPyLoy3Ba4tgeEH9lg8kq-eIUl1F1QZjTBLffCWE_jkFMSheqGPc1zpNabP6m-eMOWDzqxu_lAXwOyO1jjkKzV-qWvXJj6HgobeaeKOKHgPDAHGK5QS4lEf-AgAA; 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, 17 Dec 2021 06:42:11 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', - '6edbaf0b-a0a4-49c7-852a-1809e06a1000', - 'x-ms-ests-server', - '2.1.12261.15 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AiEHC3P1vRlPlMC9pVm4sfQ; expires=Sun, 16-Jan-2022 06:42:12 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrWhFvvhW8cj5Di5cnx4FlPFFqxElUKRhI5yhd8n5VpGVvjPHKJZOUVi33Um-GwgO27uaOe4Hzl2LnKQxmeTsos61hkNSYRlFknoiClyKtWEszykhSazrbPoEf01zHcS_s_e41-a5Rm_zY-YuW60ip9VxhDj5iXvmabwWuAX-IgmYgAA; 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, 17 Dec 2021 06:42:11 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.4.0&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=0f2ecb92-6815-433d-9543-229746320dc4&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', - 'e0170dd1-a540-4246-afce-71fb6ba70a00', - 'x-ms-ests-server', - '2.1.12261.15 - SEASLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Auv30kBy0f9Hlt0ejoGCX3nLj78gAQAAAEMoTtkOAAAA; expires=Sun, 16-Jan-2022 06:42:12 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, 17 Dec 2021 06:42:12 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Devices/IotHubs/myiothubxxxxyyyjjrr', {"location":"eastus","tags":{"key":"value1"},"etag":"AAAAAAFD6M4=","properties":{"ipFilterRules":[],"networkRuleSets":{"defaultAction":"Deny","applyToBuiltInEventHubEndpoint":true,"ipRules":[{"filterName":"rule1","action":"Allow","ipMask":"131.117.159.53"}]},"minTlsVersion":"1.2","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":2}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[]},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","capacity":1}}) - .query(true) - .reply(201, {"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Devices/IotHubs/myiothubxxxxyyyjjrr","name":"myiothubxxxxyyyjjrr","type":"Microsoft.Devices/IotHubs","location":"eastus","tags":{"key":"value1"},"subscriptionid":"azure_subscription_id","resourcegroup":"myjstest","etag":"AAAAAAFD6M4=","properties":{"state":"Activating","provisioningState":"Accepted","ipFilterRules":[{"filterName":"rule1","action":"Accept","ipMask":"131.117.159.53"}],"networkRuleSets":{"defaultAction":"Deny","applyToBuiltInEventHubEndpoint":true,"ipRules":[{"filterName":"rule1","action":"Allow","ipMask":"131.117.159.53"}]},"eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":2},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":2}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[],"cosmosDBSqlCollections":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":false}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None","minTlsVersion":"1.2","allowedFqdnList":[]},"sku":{"name":"S1","tier":"Standard","capacity":1}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '1616', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Azure-AsyncOperation', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=?api-version=2021-07-01&operationSource=other&asyncinfo', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-resource-requests', - '4999', - 'x-ms-request-id', - 'b2f75b6d-a900-4bad-adaa-b5b6bc32c421', - 'x-ms-correlation-request-id', - 'b2f75b6d-a900-4bad-adaa-b5b6bc32c421', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064220Z:b2f75b6d-a900-4bad-adaa-b5b6bc32c421', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:20 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11999', - 'x-ms-request-id', - 'cd945919-9b54-4d17-8463-1e228e3fc352', - 'x-ms-correlation-request-id', - 'cd945919-9b54-4d17-8463-1e228e3fc352', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064221Z:cd945919-9b54-4d17-8463-1e228e3fc352', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:20 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11998', - 'x-ms-request-id', - '2ff6ee57-a243-4901-9eb1-f7140a31088f', - 'x-ms-correlation-request-id', - '2ff6ee57-a243-4901-9eb1-f7140a31088f', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064223Z:2ff6ee57-a243-4901-9eb1-f7140a31088f', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:23 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11997', - 'x-ms-request-id', - '7b8c73c6-3a2e-4a7e-94cf-64f470d35410', - 'x-ms-correlation-request-id', - '7b8c73c6-3a2e-4a7e-94cf-64f470d35410', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064225Z:7b8c73c6-3a2e-4a7e-94cf-64f470d35410', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:25 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11996', - 'x-ms-request-id', - 'eb7b74f8-f10f-4393-8c16-f6bf21a56fa7', - 'x-ms-correlation-request-id', - 'eb7b74f8-f10f-4393-8c16-f6bf21a56fa7', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064227Z:eb7b74f8-f10f-4393-8c16-f6bf21a56fa7', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:27 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11995', - 'x-ms-request-id', - '9fabb90e-6199-47e4-95da-e62ef429ffe5', - 'x-ms-correlation-request-id', - '9fabb90e-6199-47e4-95da-e62ef429ffe5', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064230Z:9fabb90e-6199-47e4-95da-e62ef429ffe5', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:29 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11994', - 'x-ms-request-id', - 'd16a1cf3-993b-4706-822e-b22bd5c652ff', - 'x-ms-correlation-request-id', - 'd16a1cf3-993b-4706-822e-b22bd5c652ff', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064232Z:d16a1cf3-993b-4706-822e-b22bd5c652ff', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:32 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11993', - 'x-ms-request-id', - '5fad08a9-99c2-437e-a690-fe448ba35036', - 'x-ms-correlation-request-id', - '5fad08a9-99c2-437e-a690-fe448ba35036', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064234Z:5fad08a9-99c2-437e-a690-fe448ba35036', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:34 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11992', - 'x-ms-request-id', - '16ed3f91-b610-4fcc-bcf8-db764732ed16', - 'x-ms-correlation-request-id', - '16ed3f91-b610-4fcc-bcf8-db764732ed16', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064237Z:16ed3f91-b610-4fcc-bcf8-db764732ed16', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:36 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11991', - 'x-ms-request-id', - '2607ce60-3f1c-4eaf-9ddb-a6a6dbdcf0ff', - 'x-ms-correlation-request-id', - '2607ce60-3f1c-4eaf-9ddb-a6a6dbdcf0ff', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064239Z:2607ce60-3f1c-4eaf-9ddb-a6a6dbdcf0ff', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:38 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11990', - 'x-ms-request-id', - 'a1463920-db8a-4b0a-b127-a3030232af6d', - 'x-ms-correlation-request-id', - 'a1463920-db8a-4b0a-b127-a3030232af6d', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064241Z:a1463920-db8a-4b0a-b127-a3030232af6d', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:41 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11989', - 'x-ms-request-id', - '2cb40794-df08-424e-9581-190d4f653774', - 'x-ms-correlation-request-id', - '2cb40794-df08-424e-9581-190d4f653774', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064243Z:2cb40794-df08-424e-9581-190d4f653774', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:43 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11988', - 'x-ms-request-id', - '0ebf0e53-9add-4f4b-b45b-678235663b4a', - 'x-ms-correlation-request-id', - '0ebf0e53-9add-4f4b-b45b-678235663b4a', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064246Z:0ebf0e53-9add-4f4b-b45b-678235663b4a', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:45 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11987', - 'x-ms-request-id', - 'eda76ef1-4337-4b27-ba76-3b8a54d53a09', - 'x-ms-correlation-request-id', - 'eda76ef1-4337-4b27-ba76-3b8a54d53a09', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064248Z:eda76ef1-4337-4b27-ba76-3b8a54d53a09', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:48 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11986', - 'x-ms-request-id', - '5e65a24c-e0b5-473b-91dd-866bcc18ae1b', - 'x-ms-correlation-request-id', - '5e65a24c-e0b5-473b-91dd-866bcc18ae1b', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064250Z:5e65a24c-e0b5-473b-91dd-866bcc18ae1b', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:50 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11985', - 'x-ms-request-id', - 'c421a69d-e11b-4972-8d3d-29d57366f43b', - 'x-ms-correlation-request-id', - 'c421a69d-e11b-4972-8d3d-29d57366f43b', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064253Z:c421a69d-e11b-4972-8d3d-29d57366f43b', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:52 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11984', - 'x-ms-request-id', - 'f25f0e7d-59b2-4a01-ab19-954618b691b8', - 'x-ms-correlation-request-id', - 'f25f0e7d-59b2-4a01-ab19-954618b691b8', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064255Z:f25f0e7d-59b2-4a01-ab19-954618b691b8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:54 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11983', - 'x-ms-request-id', - 'ee428f6a-6c4a-4af2-a688-8d724bfff7ca', - 'x-ms-correlation-request-id', - 'ee428f6a-6c4a-4af2-a688-8d724bfff7ca', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064257Z:ee428f6a-6c4a-4af2-a688-8d724bfff7ca', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:57 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11982', - 'x-ms-request-id', - '93e6e81b-4b9f-44c1-8f93-aeedee2669bc', - 'x-ms-correlation-request-id', - '93e6e81b-4b9f-44c1-8f93-aeedee2669bc', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064259Z:93e6e81b-4b9f-44c1-8f93-aeedee2669bc', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:42:59 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11981', - 'x-ms-request-id', - '3a89af8e-4319-49d4-bf23-0a89a23ef52a', - 'x-ms-correlation-request-id', - '3a89af8e-4319-49d4-bf23-0a89a23ef52a', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064302Z:3a89af8e-4319-49d4-bf23-0a89a23ef52a', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:01 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11980', - 'x-ms-request-id', - '5e3948cd-f69e-4c3b-bf8f-c2ce723d519f', - 'x-ms-correlation-request-id', - '5e3948cd-f69e-4c3b-bf8f-c2ce723d519f', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064304Z:5e3948cd-f69e-4c3b-bf8f-c2ce723d519f', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:03 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11979', - 'x-ms-request-id', - 'bb19421f-379d-4adf-baf9-d2f18ae80786', - 'x-ms-correlation-request-id', - 'bb19421f-379d-4adf-baf9-d2f18ae80786', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064306Z:bb19421f-379d-4adf-baf9-d2f18ae80786', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:06 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11978', - 'x-ms-request-id', - 'aba51d0d-8365-4c5b-adf3-3d3af5e7dd1b', - 'x-ms-correlation-request-id', - 'aba51d0d-8365-4c5b-adf3-3d3af5e7dd1b', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064309Z:aba51d0d-8365-4c5b-adf3-3d3af5e7dd1b', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:08 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11977', - 'x-ms-request-id', - '173f9ca4-8015-4ba0-b1e6-01dd4930306b', - 'x-ms-correlation-request-id', - '173f9ca4-8015-4ba0-b1e6-01dd4930306b', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064311Z:173f9ca4-8015-4ba0-b1e6-01dd4930306b', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:10 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11976', - 'x-ms-request-id', - 'a2f5bdfc-1bf2-49b7-8caa-4a72bd0afce7', - 'x-ms-correlation-request-id', - 'a2f5bdfc-1bf2-49b7-8caa-4a72bd0afce7', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064313Z:a2f5bdfc-1bf2-49b7-8caa-4a72bd0afce7', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:12 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11975', - 'x-ms-request-id', - '854c48f9-0ac6-4d40-9749-ff50b5020c06', - 'x-ms-correlation-request-id', - '854c48f9-0ac6-4d40-9749-ff50b5020c06', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064316Z:854c48f9-0ac6-4d40-9749-ff50b5020c06', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:15 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11974', - 'x-ms-request-id', - 'e49c5724-d10e-417d-85ae-43187fa15ded', - 'x-ms-correlation-request-id', - 'e49c5724-d10e-417d-85ae-43187fa15ded', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064318Z:e49c5724-d10e-417d-85ae-43187fa15ded', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:17 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11973', - 'x-ms-request-id', - 'baa7397c-67e1-4d09-94c5-dbe1bc058457', - 'x-ms-correlation-request-id', - 'baa7397c-67e1-4d09-94c5-dbe1bc058457', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064320Z:baa7397c-67e1-4d09-94c5-dbe1bc058457', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:19 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11972', - 'x-ms-request-id', - 'd347046a-9bad-4e5e-a867-99f47f345378', - 'x-ms-correlation-request-id', - 'd347046a-9bad-4e5e-a867-99f47f345378', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064322Z:d347046a-9bad-4e5e-a867-99f47f345378', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:22 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11971', - 'x-ms-request-id', - '11271384-dc71-4923-9f6a-77fd50bad41f', - 'x-ms-correlation-request-id', - '11271384-dc71-4923-9f6a-77fd50bad41f', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064325Z:11271384-dc71-4923-9f6a-77fd50bad41f', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:24 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11970', - 'x-ms-request-id', - '9bf0c515-627b-4fd5-9ec2-1100ff6a8747', - 'x-ms-correlation-request-id', - '9bf0c515-627b-4fd5-9ec2-1100ff6a8747', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064327Z:9bf0c515-627b-4fd5-9ec2-1100ff6a8747', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:26 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11969', - 'x-ms-request-id', - 'd277cdd5-a5eb-4a39-a832-13396a41c0f8', - 'x-ms-correlation-request-id', - 'd277cdd5-a5eb-4a39-a832-13396a41c0f8', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064329Z:d277cdd5-a5eb-4a39-a832-13396a41c0f8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:28 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11968', - 'x-ms-request-id', - 'af7b1907-e13f-4f1e-b974-d50c77f67333', - 'x-ms-correlation-request-id', - 'af7b1907-e13f-4f1e-b974-d50c77f67333', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064332Z:af7b1907-e13f-4f1e-b974-d50c77f67333', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:31 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11967', - 'x-ms-request-id', - '854183cc-ae8a-46db-a766-4c334d06bfb7', - 'x-ms-correlation-request-id', - '854183cc-ae8a-46db-a766-4c334d06bfb7', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064334Z:854183cc-ae8a-46db-a766-4c334d06bfb7', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:33 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11966', - 'x-ms-request-id', - 'adfa4baf-48a5-437d-b167-544c3a3d05ad', - 'x-ms-correlation-request-id', - 'adfa4baf-48a5-437d-b167-544c3a3d05ad', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064336Z:adfa4baf-48a5-437d-b167-544c3a3d05ad', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:35 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11965', - 'x-ms-request-id', - 'b4568a61-9b09-49de-97b3-fc70ee98b434', - 'x-ms-correlation-request-id', - 'b4568a61-9b09-49de-97b3-fc70ee98b434', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064338Z:b4568a61-9b09-49de-97b3-fc70ee98b434', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:37 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11964', - 'x-ms-request-id', - 'a4827807-1573-4b57-b335-dc4b09fa2d5a', - 'x-ms-correlation-request-id', - 'a4827807-1573-4b57-b335-dc4b09fa2d5a', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064341Z:a4827807-1573-4b57-b335-dc4b09fa2d5a', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:41 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11963', - 'x-ms-request-id', - 'e5a8fa08-21cb-42a2-86ce-b403333e6525', - 'x-ms-correlation-request-id', - 'e5a8fa08-21cb-42a2-86ce-b403333e6525', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064343Z:e5a8fa08-21cb-42a2-86ce-b403333e6525', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:43 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11962', - 'x-ms-request-id', - '48a2a377-3879-4b2e-b10a-9445e8b4711f', - 'x-ms-correlation-request-id', - '48a2a377-3879-4b2e-b10a-9445e8b4711f', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064345Z:48a2a377-3879-4b2e-b10a-9445e8b4711f', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:45 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11961', - 'x-ms-request-id', - '012379ff-ebfc-46b8-b8d8-1c286861a542', - 'x-ms-correlation-request-id', - '012379ff-ebfc-46b8-b8d8-1c286861a542', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064348Z:012379ff-ebfc-46b8-b8d8-1c286861a542', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:48 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11960', - 'x-ms-request-id', - '4ad22438-5fb6-4418-8496-7fa57404cdf5', - 'x-ms-correlation-request-id', - '4ad22438-5fb6-4418-8496-7fa57404cdf5', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064350Z:4ad22438-5fb6-4418-8496-7fa57404cdf5', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:50 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11959', - 'x-ms-request-id', - 'd4a2c1cb-35c7-464f-afab-7664bb7809eb', - 'x-ms-correlation-request-id', - 'd4a2c1cb-35c7-464f-afab-7664bb7809eb', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064352Z:d4a2c1cb-35c7-464f-afab-7664bb7809eb', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:52 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11958', - 'x-ms-request-id', - 'aa274c04-624b-4344-bc42-343b73deffbf', - 'x-ms-correlation-request-id', - 'aa274c04-624b-4344-bc42-343b73deffbf', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064354Z:aa274c04-624b-4344-bc42-343b73deffbf', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:54 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11957', - 'x-ms-request-id', - 'efc067fc-e48c-41e0-8af9-d42591c4fad0', - 'x-ms-correlation-request-id', - 'efc067fc-e48c-41e0-8af9-d42591c4fad0', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064357Z:efc067fc-e48c-41e0-8af9-d42591c4fad0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:57 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11956', - 'x-ms-request-id', - '908ff09c-df2e-4a09-b0d5-f94f312d1171', - 'x-ms-correlation-request-id', - '908ff09c-df2e-4a09-b0d5-f94f312d1171', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064359Z:908ff09c-df2e-4a09-b0d5-f94f312d1171', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:43:59 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11955', - 'x-ms-request-id', - '7ee5d679-df27-45b6-a94b-d0c2a2e936fc', - 'x-ms-correlation-request-id', - '7ee5d679-df27-45b6-a94b-d0c2a2e936fc', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064401Z:7ee5d679-df27-45b6-a94b-d0c2a2e936fc', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:01 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11954', - 'x-ms-request-id', - 'fb0587bf-bec6-489e-bff2-4f8ec12d1da2', - 'x-ms-correlation-request-id', - 'fb0587bf-bec6-489e-bff2-4f8ec12d1da2', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064404Z:fb0587bf-bec6-489e-bff2-4f8ec12d1da2', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:03 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11953', - 'x-ms-request-id', - 'c9cd9555-03a3-4972-96fb-7ccacc659a1e', - 'x-ms-correlation-request-id', - 'c9cd9555-03a3-4972-96fb-7ccacc659a1e', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064406Z:c9cd9555-03a3-4972-96fb-7ccacc659a1e', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:06 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11952', - 'x-ms-request-id', - '2a760c20-827e-4e03-8096-bfd5fc4d98e0', - 'x-ms-correlation-request-id', - '2a760c20-827e-4e03-8096-bfd5fc4d98e0', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064408Z:2a760c20-827e-4e03-8096-bfd5fc4d98e0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:08 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11951', - 'x-ms-request-id', - '2a7b551b-1444-4a27-a01a-9adb1e848903', - 'x-ms-correlation-request-id', - '2a7b551b-1444-4a27-a01a-9adb1e848903', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064411Z:2a7b551b-1444-4a27-a01a-9adb1e848903', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:10 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11950', - 'x-ms-request-id', - '47212d7f-9e87-48db-af48-161b47053e97', - 'x-ms-correlation-request-id', - '47212d7f-9e87-48db-af48-161b47053e97', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064413Z:47212d7f-9e87-48db-af48-161b47053e97', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:13 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11949', - 'x-ms-request-id', - '54d2e8d6-096c-49e8-a66c-1dbc1760edd3', - 'x-ms-correlation-request-id', - '54d2e8d6-096c-49e8-a66c-1dbc1760edd3', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064415Z:54d2e8d6-096c-49e8-a66c-1dbc1760edd3', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:15 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11948', - 'x-ms-request-id', - '83bc8de6-3a2c-4cad-a4c9-1c4f3742bd7b', - 'x-ms-correlation-request-id', - '83bc8de6-3a2c-4cad-a4c9-1c4f3742bd7b', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064417Z:83bc8de6-3a2c-4cad-a4c9-1c4f3742bd7b', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:17 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11947', - 'x-ms-request-id', - '416c18d1-0ed4-4676-8587-3403a5a28f40', - 'x-ms-correlation-request-id', - '416c18d1-0ed4-4676-8587-3403a5a28f40', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064420Z:416c18d1-0ed4-4676-8587-3403a5a28f40', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:19 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfMWFiNTIxY2QtZjI1Ny00MzBkLWI3ZGQtYzJmMmFhMTA0NDJhO3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5e4fa7793ecb671ffd","92ff0720887be416000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11946', - 'x-ms-request-id', - '04dea6fc-459e-411b-aef6-0e322d623e9a', - 'x-ms-correlation-request-id', - '04dea6fc-459e-411b-aef6-0e322d623e9a', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064422Z:04dea6fc-459e-411b-aef6-0e322d623e9a', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:22 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Devices/IotHubs/myiothubxxxxyyyjjrr') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e9fe697c5346fee9e55edb7a9276a5c54ed7c3d7947cff5f5f54fff745d7f34fa68992d724226fe657bbdc2978330a949594d330c809ae559d3aef1599b5d341f3dfac51fbdcdafe9e3cbac5ce7bb1ffd92d147fe809904b71933c133a3bec0a8e935336cfa2aa7bee893637a9e3efb7471f5faec33fa94c8b1caebb6c8190d8322fdf13df717bd754a08a75fbda617eaaac4405775b1c8ea6bc23568f75dea2b68d7e4d36a39e396dfa761b5598b4f8fa76d7199532beafeb268e8dd6279f15abf7cbd9e4ef37c96cfe8fb62f5ac28dbbc7eb52e81212175ce7fbfc8782e6afa18c3ce081ef77f4cafae30da62f545d6bca54f76efed8e77771f8c77ef3f1cdfbfc7582cf3f6aaaadf02e6ebbc25b0bff8a3597e9eadcb1678319ca7f9f29aa064ab5579fda67ab2a64ecf96a797f9129379ba9cadaa62d97ef4a8add739fa02288273337a65595dd107c3d8d1dccfaba65500115e1b673f58d7f9f64cd86b4c632178790733c2e517cb87fc5b9db7f42ba1f0a658e467cba7d9357dbc4bd4cf68e6f1f949b5c670f6bc8fce66d4e67b1fed10f4dd8f8868abac9dc731a216b9f64b0d9ac9a3bb77a5cdf6b2d976edb7773fddbfb777ffdedef6c18387f974b2bf933f1837798d714cd6cdf8aa58ceaa2b1ed1dd8f7e09d18158b825b6c0000c7c42e9177fa4ef3c59373fb1ced74c77c2cf7dfaa65a1553fd94694084d13f9bb6aab38bfca45ab659b12425808fb52b03e83c2bcb49367dfb0a9fa13f95fbdfcd7c41e31521a30f45cabfc89b86c042a0c1ed4c3ffa12dc411f19e431a7e843906a40d4a2395d66939258fd11416f720c5b710ca6f27753fec4ef4dd6bc69cbe3e6aca90e3eddd9a57e5ebed9fd36f5435d2f73e6b4d76dcd84fb483e95b1a27b7c843e08114298da04bd10efe62faab6382f449ef94312eeb74fd7357fd0e9f40b02df46515964ef9ee62589787dadacb5bb837e731e2d8974fed5aaacb259a737a601a15c56ebd99b4a680b1c62e0464666e3c438270dc29345af7fa34338cfb3960490b0fde845b5c4fc2e8ae59bb2f949e226824f1fef8ef7e8536296ea2a9f3dfb45b3e5f3821430f116bdddbc5d032365a9d7500e6d91d7f8bdcda027a1f4a6d92a9b162d59845d7a858c15c92efefac5c6ca70c7bfe497","fc3f03e74d631e070000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11945', - 'x-ms-request-id', - 'a3a07955-6ee4-484a-a7fd-93ea0bd978ae', - 'x-ms-correlation-request-id', - 'a3a07955-6ee4-484a-a7fd-93ea0bd978ae', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064424Z:a3a07955-6ee4-484a-a7fd-93ea0bd978ae', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:24 GMT' -]); diff --git a/sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_delete_test.js b/sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_delete_test.js deleted file mode 100644 index df0008a17a6c..000000000000 --- a/sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_delete_test.js +++ /dev/null @@ -1,293 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "d67edb5c49e1b89a9794527c1a3680b1"; - -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', - 'd3033c4a-b30b-4222-a25d-93df37770a00', - 'x-ms-ests-server', - '2.1.12261.15 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AsXV0cT59CpMmgjpa4P3AdU; expires=Sun, 16-Jan-2022 06:44:30 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr5zdxeoO5BKcwQMnpA7CP5cNlEsXdW_fZGgqVldOpKi3dAw4f2Q4PdfhX6YOQt2NZ868ezPXMz6v4bN_Wx378gVKKjrlphMGFcAraLrSKrZ3A6sGZLT3RpgEgaKYX9Yj4yIDwENJmJ5co9DlY1KVkkE7mdQv55W4uv3sDZmgwRmEgAA; 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, 17 Dec 2021 06:44:29 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', - '53945eb4-3dd6-4ced-b70e-f5e5ecec0a00', - 'x-ms-ests-server', - '2.1.12261.15 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AlHRFvl6pi1NrSu6fR3uaI0; expires=Sun, 16-Jan-2022 06:44:30 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-HoX41saGOmcQB1Be5TFuKyyelxEceu4NRT5MkVaFsPmJO5Zm7ECBAbG9fOKgq-HJOTXVS5DPHsrnlvm9oHHMyB2HcwWviT4ALJW4dWxRsxkGMq-45YPuW3bNHXHipfy7DdZZt9viAFWsZPKJF1EjfpfA8ZEDaJFoCmJtGEpjjogAA; 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, 17 Dec 2021 06:44:30 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.4.0&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=e624348c-21f6-44ca-8fbc-58aeff9a4041&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', - '53945eb4-3dd6-4ced-b70e-f5e5eeec0a00', - 'x-ms-ests-server', - '2.1.12261.15 - SEASLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Ao8Nux78KF5FqwHejb9-4s3Lj78gAQAAAM4oTtkOAAAA; expires=Sun, 16-Jan-2022 06:44:31 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, 17 Dec 2021 06:44:30 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Devices/IotHubs/myiothubxxxxyyyjjrr') - .query(true) - .reply(202, null, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '4', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfNmQ0ZjY4NzItMzQwZC00NmZiLWIyZjEtNzkzY2MxOWNlZmM0O3JlZ2lvbj1lYXN0dXM=?api-version=2021-07-01&operationSource=other', - 'Retry-After', - '0', - 'Azure-AsyncOperation', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfNmQ0ZjY4NzItMzQwZC00NmZiLWIyZjEtNzkzY2MxOWNlZmM0O3JlZ2lvbj1lYXN0dXM=?api-version=2021-07-01&operationSource=other&asyncinfo', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-deletes', - '14999', - 'x-ms-request-id', - '8819d82e-dbef-4a9a-8230-b8a392ba3d6e', - 'x-ms-correlation-request-id', - '8819d82e-dbef-4a9a-8230-b8a392ba3d6e', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064432Z:8819d82e-dbef-4a9a-8230-b8a392ba3d6e', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:31 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfNmQ0ZjY4NzItMzQwZC00NmZiLWIyZjEtNzkzY2MxOWNlZmM0O3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11942', - 'x-ms-request-id', - '2545db46-8aa1-4bae-ba96-3ee428e03e3d', - 'x-ms-correlation-request-id', - '2545db46-8aa1-4bae-ba96-3ee428e03e3d', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064432Z:2545db46-8aa1-4bae-ba96-3ee428e03e3d', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:31 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfNmQ0ZjY4NzItMzQwZC00NmZiLWIyZjEtNzkzY2MxOWNlZmM0O3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5a2f97c5f2e2a3","5ff2ff0089ccbd4914000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11941', - 'x-ms-request-id', - '5561d8b2-b2d7-4bf7-83ce-e76da991e507', - 'x-ms-correlation-request-id', - '5561d8b2-b2d7-4bf7-83ce-e76da991e507', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064434Z:5561d8b2-b2d7-4bf7-83ce-e76da991e507', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:34 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Devices/locations/eastus/operationResults/aWQ9b3NfaWhfNmQ0ZjY4NzItMzQwZC00NmZiLWIyZjEtNzkzY2MxOWNlZmM0O3JlZ2lvbj1lYXN0dXM=') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1474d9bb5ebe6a3471fbd5e4fa7793ecb671ffd","92ff0720887be416000000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11940', - 'x-ms-request-id', - '1cd9acdf-3385-41d4-9e1e-9d2762a26cbd', - 'x-ms-correlation-request-id', - '1cd9acdf-3385-41d4-9e1e-9d2762a26cbd', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064436Z:1cd9acdf-3385-41d4-9e1e-9d2762a26cbd', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:36 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Devices/IotHubs') - .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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11939', - 'x-ms-request-id', - 'c47eb2c0-656a-46cd-af85-c794c3cc8b4b', - 'x-ms-correlation-request-id', - 'c47eb2c0-656a-46cd-af85-c794c3cc8b4b', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064437Z:c47eb2c0-656a-46cd-af85-c794c3cc8b4b', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:36 GMT' -]); diff --git a/sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_get_test.js b/sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_get_test.js deleted file mode 100644 index f03827ac6108..000000000000 --- a/sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_get_test.js +++ /dev/null @@ -1,147 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "37a08100ed6592cd54bb718b89d4b663"; - -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', - '414eea9f-1cc9-485f-a776-546cf12b0f00', - 'x-ms-ests-server', - '2.1.12261.15 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AlKTlj9cLt5GvLZIDJ9nA1w; expires=Sun, 16-Jan-2022 06:44:25 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIchzCH9lE4rscGfuSlPJzA5wZc_KCaSSg4SCygNw4zRyjP9UYZGfWyB20qTLbv5HRlLCBsMDTQQnMRSRh7jSkhf9UU4B4bR8qHCjFxjcF1K4cP7HHeeAOFS-ylh7UqljrYObYb3RwSjZQfGxN_bDOGL5IGpq8O6RUSrB8KliRcUgAA; 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, 17 Dec 2021 06:44:24 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', - '4150cca7-f51d-4a39-827d-43dba6c10f00', - 'x-ms-ests-server', - '2.1.12261.15 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AlfcWs6EvTZHvcfNh5p2ugc; expires=Sun, 16-Jan-2022 06:44:25 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrlZoL-FHEvfEaCDDjln3rfhCtUe99ZIPh_nlJUSxh9g0CQos0JgVGgGkwxLqxy3_yq8370Rn980Gyj66UuEnATIn9R2RMp_mHXPognSFYSxrmeZ7kIPaWnnP2NBbLnTGTazxu7CyfZ7C9QojAP2sBh5f8hy2HC3Fo-PF63aQcdCIgAA; 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, 17 Dec 2021 06:44:24 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.4.0&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=ebd2f7e0-886b-4ea9-ad76-ca8cff21cf95&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', - '4150cca7-f51d-4a39-827d-43dba8c10f00', - 'x-ms-ests-server', - '2.1.12261.15 - KRSLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AmE3cB26FkJPlLYM13IhlTzLj78gAQAAAMgoTtkOAAAA; expires=Sun, 16-Jan-2022 06:44:25 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, 17 Dec 2021 06:44:24 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Devices/IotHubs/myiothubxxxxyyyjjrr') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e9fe697c5346fee9e55edb7a9276a5c54ed7c3d7947cff5f5f54fff745d7f34fa68992d724226fe657bbdc2978330a949594d330c809ae559d3aef1599b5d341f3dfac51fbdcdafe9e3cbac5ce7bb1ffd92d147fe809904b71933c133a3bec0a8e935336cfa2aa7bee893637a9e3efb7471f5faec33fa94c8b1caebb6c8190d8322fdf13df717bd754a08a75fbda617eaaac4405775b1c8ea6bc23568f75dea2b68d7e4d36a39e396dfa761b5598b4f8fa76d7199532beafeb268e8dd6279f15abf7cbd9e4ef37c96cfe8fb62f5ac28dbbc7eb52e81212175ce7fbfc8782e6afa18c3ce081ef77f4cafae30da62f545d6bca54f76efed8e77771f8c77ef3f1cdfbfc7582cf3f6aaaadf02e6ebbc25b0bff8a3597e9eadcb1678319ca7f9f29aa064ab5579fda67ab2a64ecf96a797f9129379ba9cadaa62d97ef4a8add739fa02288273337a65595dd107c3d8d1dccfaba65500115e1b673f58d7f9f64cd86b4c632178790733c2e517cb87fc5b9db7f42ba1f0a658e467cba7d9357dbc4bd4cf68e6f1f949b5c670f6bc8fce66d4e67b1fed10f4dd8f8868abac9dc731a216b9f64b0d9ac9a3bb77a5cdf6b2d976edb7773fddbfb777ffdedef6c18387f974b2bf933f1837798d714cd6cdf8aa58ceaa2b1ed1dd8f7e09d18158b825b6c0000c7c42e9177fa4ef3c59373fb1ced74c77c2cf7dfaa65a1553fd94694084d13f9bb6aab38bfca45ab659b12425808fb52b03e83c2bcb49367dfb0a9fa13f95fbdfcd7c41e31521a30f45cabfc89b86c042a0c1ed4c3ffa12dc411f19e431a7e843906a40d4a2395d66939258fd11416f720c5b710ca6f27753fec4ef4dd6bc69cbe3e6aca90e3eddd9a57e5ebed9fd36f5435d2f73e6b4d76dcd84fb483e95b1a27b7c843e08114298da04bd10efe62faab6382f449ef94312eeb74fd7357fd0e9f40b02df46515964ef9ee62589787dadacb5bb837e731e2d8974fed5aaacb259a737a601a15c56ebd99b4a680b1c62e0464666e3c438270dc29345af7fa34338cfb3960490b0fde845b5c4fc2e8ae59bb2f949e226824f1fef8ef7e8536296ea2a9f3dfb45b3e5f3821430f116bdddbc5d032365a9d7500e6d91d7f8bdcda027a1f4a6d92a9b162d59845d7a858c15c92efefac5c6ca70c7bfe497","fc3f03e74d631e070000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11944', - 'x-ms-request-id', - '1212fa4b-8fc4-4688-af60-d15721e5adf8', - 'x-ms-correlation-request-id', - '1212fa4b-8fc4-4688-af60-d15721e5adf8', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064426Z:1212fa4b-8fc4-4688-af60-d15721e5adf8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:25 GMT' -]); diff --git a/sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_list_test.js b/sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_list_test.js deleted file mode 100644 index d419adb73fb0..000000000000 --- a/sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_list_test.js +++ /dev/null @@ -1,147 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "8e5894c76622a8c97acb6ec3ef36fa63"; - -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', - 'd3033c4a-b30b-4222-a25d-93df17770a00', - 'x-ms-ests-server', - '2.1.12261.15 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AvH9zNoTYwVDuuzp65Q4DVQ; expires=Sun, 16-Jan-2022 06:44:26 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrT3FAngV0gtvl9AjjxaQuL4NLp3b6nrSxoy1M30Ft0TayMnu7uwrHGm5GgeRdReQr6l-qKBt7_6CKciaI2pVqHCriPRo8Wqh-iUuIeVqnZL0FVhn6X2ce_SP8kTFB0tBHJjDCkOtqwGx5gOW3HVCjXAOyCk8ZYPNDFhuxIzjqoe8gAA; 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, 17 Dec 2021 06:44: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', - 'd0c9695e-6cfc-4eda-9b3f-58d3aa110b00', - 'x-ms-ests-server', - '2.1.12261.15 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AhrD-SeJQg9Gt0Vs0otVLNA; expires=Sun, 16-Jan-2022 06:44:26 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrpUxLoai2PuEL8g4AzCvuk3aOEw1tBXqAgb2-o8_sHVloyBGIFBkjCSUnWozD4nSDlGBklkOYTZf9NkckErpUhzxDBVbMvd8l5PI1UfPvKXqaxa3LKTraNSpdJfwDos3myHj0fdThK4VMvCWdjSwRFBRTSM23bm4RI1DBl6YlTZggAA; 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, 17 Dec 2021 06:44: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.4.0&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=238344f3-70ff-4663-ad11-1518a32db617&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', - 'e9fffaaa-ac72-407c-a105-da26e06b0a00', - 'x-ms-ests-server', - '2.1.12261.15 - SEASLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AtAYvBVDGBBGimqN2jSNgAbLj78gAQAAAMooTtkOAAAA; expires=Sun, 16-Jan-2022 06:44: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, 17 Dec 2021 06:44:25 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Devices/IotHubs') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffc5131fbe8d147779bf5a499d6c5aa2daa6573f7e1def9c3fbb383f3ed7bd34f1f6cefefeeed6f3fdc9d3ed83e989eef3c98ce26e77bfbbb77ebbca9d6f534ffbcaed6abe6eee2faa79b366fdabbabbaba2c6679dddcfda298d655539db7e3a7f96531cd9bbb6755fb6dea891a17553b5f4fded1737d7dfdd33f5dd71f8d3e5a660bc2e9a3f897edf50a5f0ec2a4266535cd30006a96674dbbc6676d76d17cf4e8177ff436bfa68f79d8bb1ffd92d147fe809904b71933c133a3bec0a8e935336cfa2aa7bee893637a9e3efb7471f5faec33fa94c8b1caebb6c8190d8322fd41b4377fd15ba78470fad56b7aa1ae4a0c7455178bacbe265c8376dfa5be82764d3ead96336ef97d1a569bb5f8f478da169739b5a2ee2f8b86de2d9617aff5cbd7ebe934cf67f98cbe2f56cf8ab2cdeb57eb12181252e7fcf78b8ce7a2a68f31ec8ce071ffc7f4ea0aa32d565f64cd5bfa64f7deee7877f7c178f7fec3f1fd7b8cc5326fafaafa2d60bece5b02fb8b3f9ae5e7d9ba6c8117c3799a2faf094ab65a95d76faa276beaf46c797a992f3199a7cbd9aa2a96ed478fda7a9da32f80223837a35796d5157d308c1dcdfdbc6a5a0510e1b571f683759d6fcf84bdc6341682977730235c7eb17cc8bfd5794bbf120a6f8a457eb67c9a5dd3c7bb44fd8c661e9f9f546b0c67cffbe86c466dbef7d10e41dffd8888b6cada791c236a916bbfd4a0993cba7b57da6c2f9b6dd77e7bf7d3fd7b7bf7efed6d1f3c78984f27fb3bf9837193d718c764dd8caf8ae5acbae211ddfde897101d88855b620b0cc0c027947ef147face9375f313eb7ccd7427fcdca76faa5531d54f99064418fdb369ab3abbc84faa659b154b5202f858bb3280ceb3b29c64d3b7aff019fa53b9ffddcc17345e1132fa50a4fc8bbc69082c041adccef4a32fc11df491411e738a3e04a906442d9ad365362989d51f11f426c7b015c7602a7f37e54ffcde64cd9bb63c6ece9aeae0d39d5deae7e59bdd6f533fd4f532674e7bddd64cb88fe453192bbac747e883102184a94dd00bf16efea26a8bf342e4993f24e17efb745df3079d4ebf20f06d149545f6ee695e9288d7d7ca5abb3be837e7d19248e75fadca2a9b757a631a10ca65b59ebda984b6c021066e6464364e8c73d2203c59f4fa373a84f33c6b490009db8f5e544bccefa258be299b9f246e22f8f4f1ee788f3e2566a9aef2d9b35f345b3e2f4801136fd1dbcddb353052967a0de5d016798ddfdb0c7a124a6f9aadb269d19245d8a557c85891ece2af5f6cac0c77fc4b7ec9f77f","c9ff03fba1aa0d2a070000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11943', - 'x-ms-request-id', - '9107796e-1f6f-40a1-8394-f5f7ff1e74cb', - 'x-ms-correlation-request-id', - '9107796e-1f6f-40a1-8394-f5f7ff1e74cb', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064426Z:9107796e-1f6f-40a1-8394-f5f7ff1e74cb', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:26 GMT' -]); diff --git a/sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_update_test.js b/sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_update_test.js deleted file mode 100644 index d3b811acbbbb..000000000000 --- a/sdk/iothub/arm-iothub/recordings/node/iothub_test/recording_iothubresource_update_test.js +++ /dev/null @@ -1,147 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "e3cd214a3cbe23dd7ad2cb121caa5d1a"; - -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', - '4150cca7-f51d-4a39-827d-43dbafc10f00', - 'x-ms-ests-server', - '2.1.12261.15 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AsqrYJbCBPNGuofLlZaFOLg; expires=Sun, 16-Jan-2022 06:44:27 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr79VTas2biSySqB-BVP5p3cmM4P_w2iMLIIWCrKWYtDMBOzFnIf0Qfs6XTPvjr8dKukI3qORLoPnjeeoDkuHMBqIBOKtLM5um1zKDQVx4Gj3aZhJBMU3e3q20jn_TZprfPTsalua6gn62RiFm4EU1zRm0oaetEtWIfXBsocfZbYggAA; 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, 17 Dec 2021 06:44:26 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', - '653645f0-3ec7-4ea4-98be-8ae41f150b00', - 'x-ms-ests-server', - '2.1.12261.15 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Asi3yICY47FFgiKHmVy_Dmo; expires=Sun, 16-Jan-2022 06:44:27 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrhf6rAU7u8aeLCh2MYNFDHyIJvd9XiZQKP5Zedj9fBeZyQG-a-GVQFa0VgHtbi6IHvh5e7n2JfazXVaQNWORWclXe7R1PU7LiWOQKIvVazqaSEUgV4_NtxkHLbQ4401A0qkXKUF1p8R2XKuyW6XEwMh9T0OfLj0-Ubvo-usMEAMMgAA; 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, 17 Dec 2021 06:44:26 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.4.0&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=3f3f1031-f0d8-44ce-a07e-214989462ef3&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', - 'd3033c4a-b30b-4222-a25d-93df20770a00', - 'x-ms-ests-server', - '2.1.12261.15 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AkNvo0gZSkBAlVptCrkrVazLj78gAQAAAMooTtkOAAAA; expires=Sun, 16-Jan-2022 06:44:27 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, 17 Dec 2021 06:44:26 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .patch('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Devices/IotHubs/myiothubxxxxyyyjjrr', {"tags":{"tag1":"value1"}}) - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e9fe697c5346fee9e55edb7a9276a5c54ed7c3d7947cff5f5f54fff745d7f34fa68992d724226fe657bbdc2978330a949594d330c809ae559d3aef1599b5d341f3dfac5f8b94b9f5f66e53adffde8978c3ef247cc34b8cda009a019f605864daf9971d3573975429fd06f4483555eb745ce7d1bbce88fefb9bfa8e52961997ef59a5ea8ab12a35bd5c522abaf09bfa0dd77097ed0aec9a7d572c62dbf4f4369b3169f1e4fdbe232a756d4fd65d1d0bbc5f2e2b57ef97a3d9de6f92c9fd1f7c5ea5951b679fd6a5d024342ea9cff7e91f104d4f431869a113ceeff985e5d6184c5ea8bac794b9fecdedb1defee3e18efde7f38be7f8fb158e6ed5555bf05ccd7794b607ff147b3fc3c5b972df062384ff3e53541c956abf2fa4df5644d9d9e2d4f2ff32566f074395b55c5b2fde8515baf73f4055004e766f4cab2baa20f86b1a3f99e574dab00220c36ce7eb0aef3ed99f0d498c642f0f20e6684cb2f960ff9b73a6fe95742e14db1c8cf964fb36bfa7897a89fd1cce3f3936a8de1ec791f9dcda8cdf73eda21e8bb1f11d156593b8f63442d72ed971a34934777ef4a9bed65b3edda6fef7eba7f6feffebdbded83070ff3e9647f277f306ef21ae398ac9bf155b19c55573ca2bb1ffd12a203b16d4b6c810118f884d22ffe48df79b26e7e629daf99ee849ffbf44db52aa6fa29d38008a37f366d556717f949b56cb36249928f8fb52b03e83c2bcb49367dfb0a9fa13f15f6dfcd7c41e315c1a20f45b4bfc89b86c0428ac1ed4c3ffa12dc411f19e431a7e843906a40d4a2395d66939258fd11416f720c5b710ca6f27753fec4ef4dd6bc69cbe3e6aca90e3edd81aa78f966f7dbd40f75bdcc99d35eb735130e024e9fca58d13d3e421f8408214c6d825e8877f317555b9c1722cffc2109f7dba7eb9a3fe874fa05816fa3a82cb2774ff39244bcbe56d6dadd41bf398f96443aff6a5556d9acd31bd380502eabf5ec4d25b4050e31702323b371629c9306e1c9a2d7bfd1219ce7594b0248d87ef4a25a627e17c5f24dd9fc247113c1a78f77c77bf429314b7595cf9efda2d9f279414a97788bde6edeae8191b2d46b2887b6c86bfcde66d093507ad36c954d8bf69abaa457c84291ece22fb20d625ab8e35ff2","4bfe1f97e5720713070000"], [ - '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', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-resource-requests', - '4998', - 'x-ms-request-id', - '3f766c8b-3cbc-475e-9d39-036311c76ada', - 'x-ms-correlation-request-id', - '3f766c8b-3cbc-475e-9d39-036311c76ada', - 'x-ms-routing-request-id', - 'JAPANEAST:20211217T064430Z:3f766c8b-3cbc-475e-9d39-036311c76ada', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 17 Dec 2021 06:44:30 GMT' -]); diff --git a/sdk/iothub/arm-iothub/review/arm-iothub.api.md b/sdk/iothub/arm-iothub/review/arm-iothub.api.md index 94a542ae6415..8fe9beb0115a 100644 --- a/sdk/iothub/arm-iothub/review/arm-iothub.api.md +++ b/sdk/iothub/arm-iothub/review/arm-iothub.api.md @@ -152,6 +152,12 @@ export interface CloudToDeviceProperties { // @public export type DefaultAction = string; +// @public +export interface EncryptionPropertiesDescription { + keySource?: string; + keyVaultProperties?: KeyVaultKeyProperties[]; +} + // @public export interface EndpointHealthData { endpointId?: string; @@ -369,10 +375,12 @@ export interface IotHubProperties { authorizationPolicies?: SharedAccessSignatureAuthorizationRule[]; cloudToDevice?: CloudToDeviceProperties; comments?: string; + deviceStreams?: IotHubPropertiesDeviceStreams; disableDeviceSAS?: boolean; disableLocalAuth?: boolean; disableModuleSAS?: boolean; enableFileUploadNotifications?: boolean; + encryption?: EncryptionPropertiesDescription; eventHubEndpoints?: { [propertyName: string]: EventHubProperties; }; @@ -396,6 +404,11 @@ export interface IotHubProperties { }; } +// @public +export interface IotHubPropertiesDeviceStreams { + streamingEndpoints?: string[]; +} + // @public export interface IotHubQuotaMetricInfo { readonly currentValue?: number; @@ -726,6 +739,12 @@ export type JobStatus = "unknown" | "enqueued" | "running" | "completed" | "fail // @public export type JobType = string; +// @public +export interface KeyVaultKeyProperties { + identity?: ManagedIdentity; + keyIdentifier?: string; +} + // @public export enum KnownAuthenticationType { // (undocumented) @@ -859,8 +878,12 @@ export enum KnownRoutingSource { // (undocumented) DeviceMessages = "DeviceMessages", // (undocumented) + DigitalTwinChangeEvents = "DigitalTwinChangeEvents", + // (undocumented) Invalid = "Invalid", // (undocumented) + MqttBrokerMessages = "MqttBrokerMessages", + // (undocumented) TwinChangeEvents = "TwinChangeEvents" } diff --git a/sdk/iothub/arm-iothub/src/iotHubClient.ts b/sdk/iothub/arm-iothub/src/iotHubClient.ts index e07d85b093e4..c9921a32d2f4 100644 --- a/sdk/iothub/arm-iothub/src/iotHubClient.ts +++ b/sdk/iothub/arm-iothub/src/iotHubClient.ts @@ -60,7 +60,7 @@ export class IotHubClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-iothub/6.0.0`; + const packageDetails = `azsdk-js-arm-iothub/6.1.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -83,7 +83,7 @@ export class IotHubClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-07-01"; + this.apiVersion = options.apiVersion || "2021-07-01-preview"; this.operations = new OperationsImpl(this); this.iotHubResource = new IotHubResourceImpl(this); this.resourceProviderCommon = new ResourceProviderCommonImpl(this); diff --git a/sdk/iothub/arm-iothub/src/models/index.ts b/sdk/iothub/arm-iothub/src/models/index.ts index ea885397feb4..4b6a66f2de78 100644 --- a/sdk/iothub/arm-iothub/src/models/index.ts +++ b/sdk/iothub/arm-iothub/src/models/index.ts @@ -134,8 +134,12 @@ export interface IotHubProperties { cloudToDevice?: CloudToDeviceProperties; /** IoT hub comments. */ comments?: string; + /** The device streams properties of iothub. */ + deviceStreams?: IotHubPropertiesDeviceStreams; /** The capabilities and features enabled for the IoT hub. */ features?: Capabilities; + /** The encryption properties for the IoT hub. */ + encryption?: EncryptionPropertiesDescription; /** * Primary and secondary location for iot hub * NOTE: This property will not be serialized. It can only be populated by the server. @@ -464,6 +468,28 @@ export interface FeedbackProperties { maxDeliveryCount?: number; } +/** The device streams properties of iothub. */ +export interface IotHubPropertiesDeviceStreams { + /** List of Device Streams Endpoints. */ + streamingEndpoints?: string[]; +} + +/** The encryption properties for the IoT hub. */ +export interface EncryptionPropertiesDescription { + /** The source of the key. */ + keySource?: string; + /** The properties of the KeyVault key. */ + keyVaultProperties?: KeyVaultKeyProperties[]; +} + +/** The properties of the KeyVault key. */ +export interface KeyVaultKeyProperties { + /** The identifier of the key. */ + keyIdentifier?: string; + /** Managed identity properties of KeyVault Key. */ + identity?: ManagedIdentity; +} + /** Public representation of one of the locations where a resource is provisioned. */ export interface IotHubLocationDescription { /** The name of the Azure region */ @@ -496,7 +522,7 @@ export interface ArmIdentity { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly tenantId?: string; - /** The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the service. */ + /** The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the service. */ type?: ResourceIdentityType; /** Dictionary of */ userAssignedIdentities?: { [propertyName: string]: ArmUserIdentity }; @@ -1286,7 +1312,9 @@ export enum KnownRoutingSource { TwinChangeEvents = "TwinChangeEvents", DeviceLifecycleEvents = "DeviceLifecycleEvents", DeviceJobLifecycleEvents = "DeviceJobLifecycleEvents", - DeviceConnectionStateEvents = "DeviceConnectionStateEvents" + DigitalTwinChangeEvents = "DigitalTwinChangeEvents", + DeviceConnectionStateEvents = "DeviceConnectionStateEvents", + MqttBrokerMessages = "MqttBrokerMessages" } /** @@ -1299,7 +1327,9 @@ export enum KnownRoutingSource { * **TwinChangeEvents** \ * **DeviceLifecycleEvents** \ * **DeviceJobLifecycleEvents** \ - * **DeviceConnectionStateEvents** + * **DigitalTwinChangeEvents** \ + * **DeviceConnectionStateEvents** \ + * **MqttBrokerMessages** */ export type RoutingSource = string; diff --git a/sdk/iothub/arm-iothub/src/models/mappers.ts b/sdk/iothub/arm-iothub/src/models/mappers.ts index 2fcb7be870c6..33d1825431a9 100644 --- a/sdk/iothub/arm-iothub/src/models/mappers.ts +++ b/sdk/iothub/arm-iothub/src/models/mappers.ts @@ -306,12 +306,26 @@ export const IotHubProperties: coreClient.CompositeMapper = { name: "String" } }, + deviceStreams: { + serializedName: "deviceStreams", + type: { + name: "Composite", + className: "IotHubPropertiesDeviceStreams" + } + }, features: { serializedName: "features", type: { name: "String" } }, + encryption: { + serializedName: "encryption", + type: { + name: "Composite", + className: "EncryptionPropertiesDescription" + } + }, locations: { serializedName: "locations", readOnly: true, @@ -1334,6 +1348,75 @@ export const FeedbackProperties: coreClient.CompositeMapper = { } }; +export const IotHubPropertiesDeviceStreams: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IotHubPropertiesDeviceStreams", + modelProperties: { + streamingEndpoints: { + serializedName: "streamingEndpoints", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const EncryptionPropertiesDescription: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionPropertiesDescription", + modelProperties: { + keySource: { + serializedName: "keySource", + type: { + name: "String" + } + }, + keyVaultProperties: { + serializedName: "keyVaultProperties", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "KeyVaultKeyProperties" + } + } + } + } + } + } +}; + +export const KeyVaultKeyProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultKeyProperties", + modelProperties: { + keyIdentifier: { + serializedName: "keyIdentifier", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedIdentity" + } + } + } + } +}; + export const IotHubLocationDescription: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/iothub/arm-iothub/src/models/parameters.ts b/sdk/iothub/arm-iothub/src/models/parameters.ts index 14646b843a2e..b3084abfad7c 100644 --- a/sdk/iothub/arm-iothub/src/models/parameters.ts +++ b/sdk/iothub/arm-iothub/src/models/parameters.ts @@ -53,7 +53,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-07-01", + defaultValue: "2021-07-01-preview", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/iothub/arm-iothub/src/operations/iotHubResource.ts b/sdk/iothub/arm-iothub/src/operations/iotHubResource.ts index 2725e248063f..5ab17efb0917 100644 --- a/sdk/iothub/arm-iothub/src/operations/iotHubResource.ts +++ b/sdk/iothub/arm-iothub/src/operations/iotHubResource.ts @@ -650,8 +650,7 @@ export class IotHubResourceImpl implements IotHubResource { /** * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve * the IoT hub metadata and security metadata, and then combine them with the modified values in a new - * body to update the IoT hub. If certain properties are missing in the JSON, updating IoT Hub may - * cause these values to fallback to default, which may lead to unexpected behavior. + * body to update the IoT hub. * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param iotHubDescription The IoT hub metadata and security metadata. @@ -721,8 +720,7 @@ export class IotHubResourceImpl implements IotHubResource { /** * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve * the IoT hub metadata and security metadata, and then combine them with the modified values in a new - * body to update the IoT hub. If certain properties are missing in the JSON, updating IoT Hub may - * cause these values to fallback to default, which may lead to unexpected behavior. + * body to update the IoT hub. * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param iotHubDescription The IoT hub metadata and security metadata. diff --git a/sdk/iothub/arm-iothub/src/operationsInterfaces/iotHubResource.ts b/sdk/iothub/arm-iothub/src/operationsInterfaces/iotHubResource.ts index f07c95da16b2..5fb2acabb49f 100644 --- a/sdk/iothub/arm-iothub/src/operationsInterfaces/iotHubResource.ts +++ b/sdk/iothub/arm-iothub/src/operationsInterfaces/iotHubResource.ts @@ -166,8 +166,7 @@ export interface IotHubResource { /** * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve * the IoT hub metadata and security metadata, and then combine them with the modified values in a new - * body to update the IoT hub. If certain properties are missing in the JSON, updating IoT Hub may - * cause these values to fallback to default, which may lead to unexpected behavior. + * body to update the IoT hub. * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param iotHubDescription The IoT hub metadata and security metadata. @@ -187,8 +186,7 @@ export interface IotHubResource { /** * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve * the IoT hub metadata and security metadata, and then combine them with the modified values in a new - * body to update the IoT hub. If certain properties are missing in the JSON, updating IoT Hub may - * cause these values to fallback to default, which may lead to unexpected behavior. + * body to update the IoT hub. * @param resourceGroupName The name of the resource group that contains the IoT hub. * @param resourceName The name of the IoT hub. * @param iotHubDescription The IoT hub metadata and security metadata. diff --git a/sdk/iothub/arm-iothub/test/iothub_examples.ts b/sdk/iothub/arm-iothub/test/iothub_examples.ts deleted file mode 100644 index 036604439aaf..000000000000 --- a/sdk/iothub/arm-iothub/test/iothub_examples.ts +++ /dev/null @@ -1,163 +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 { - env, - record, - RecorderEnvironmentSetup, - Recorder, - delay, - isPlaybackMode -} from "@azure-tools/test-recorder"; -import * as assert from "assert"; -import { ClientSecretCredential } from "@azure/identity"; -import { IotHubClient } from "../src/iotHubClient"; - -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: [] -}; - -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; - -describe("Iothub test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: IotHubClient; - let location: string; - let resourceGroup: string; - let iothubName: string; - - 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 IotHubClient(credential, subscriptionId); - location = "eastus"; - resourceGroup = "myjstest"; - iothubName = "myiothubxxxxyyyjjrr"; - }); - - afterEach(async function() { - await recorder.stop(); - }); - - it("iotHubResource create test", async function() { - const res = await client.iotHubResource.beginCreateOrUpdateAndWait(resourceGroup,iothubName,{ - location: location, - tags: {key: "value1"}, - etag: "AAAAAAFD6M4=", - properties: { - ipFilterRules: [], - networkRuleSets: { - defaultAction: "Deny", - applyToBuiltInEventHubEndpoint: true, - ipRules: [ - { - filterName: "rule1", - action: "Allow", - ipMask: "131.117.159.53" - } - ] - }, - eventHubEndpoints: { - events: { - retentionTimeInDays: 1, - partitionCount: 2 - } - }, - routing: { - endpoints: { - serviceBusQueues: [], - serviceBusTopics: [], - eventHubs: [], - storageContainers: [] - }, - routes: [], - }, - storageEndpoints: { - $default: { - sasTtlAsIso8601: "PT1H", - connectionString: "", - containerName: "" - } - }, - messagingEndpoints: { - fileNotifications: { - lockDurationAsIso8601: "PT1M", - ttlAsIso8601: "PT1H", - maxDeliveryCount: 10 - } - }, - enableFileUploadNotifications: false, - cloudToDevice: { - maxDeliveryCount: 10, - defaultTtlAsIso8601: "PT1H", - feedback: { - lockDurationAsIso8601: "PT1M", - ttlAsIso8601: "PT1H", - maxDeliveryCount: 10 - } - }, - features: "None", - minTlsVersion: "1.2" - }, - sku: { - name: "S1", - capacity: 1 - } - },testPollingOptions); - assert.equal(res.name,iothubName); - }); - - it("iotHubResource get test", async function() { - const res = await client.iotHubResource.get(resourceGroup,iothubName); - assert.equal(res.name,iothubName); - }); - - it("iotHubResource list test", async function() { - const resArray = new Array(); - for await (let item of client.iotHubResource.listByResourceGroup(resourceGroup)){ - resArray.push(item); - } - assert.equal(resArray.length,1); - }); - - it("iotHubResource update test", async function() { - const res = await client.iotHubResource.beginUpdateAndWait(resourceGroup,iothubName,{tags: {tag1 : "value1"}},testPollingOptions); - assert.equal(res.name,iothubName); - }); - - it("iotHubResource delete test", async function() { - const res = await client.iotHubResource.beginDeleteAndWait(resourceGroup,iothubName,testPollingOptions); - const resArray = new Array(); - for await (let item of client.iotHubResource.listByResourceGroup(resourceGroup)){ - resArray.push(item); - } - assert.equal(resArray.length,0); - }); -}); diff --git a/sdk/iothub/arm-iothub/test/sampleTest.ts b/sdk/iothub/arm-iothub/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/iothub/arm-iothub/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * 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"; + +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("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +});