diff --git a/src/communication/HISTORY.rst b/src/communication/HISTORY.rst index fba9fafbe16..8c84af70a8c 100644 --- a/src/communication/HISTORY.rst +++ b/src/communication/HISTORY.rst @@ -3,6 +3,11 @@ Release History =============== +1.1.1 +++++++ +* Fix codestyle issues in communiction command group. + + 1.1.0 ++++++ * Add communication identity command group. diff --git a/src/communication/azext_communication/tests/latest/recording_processors.py b/src/communication/azext_communication/tests/latest/recording_processors.py index 49c274d7f8d..7286235e088 100644 --- a/src/communication/azext_communication/tests/latest/recording_processors.py +++ b/src/communication/azext_communication/tests/latest/recording_processors.py @@ -69,6 +69,8 @@ def __init__(self, keys=None, replacement="sanitized"): def process_request(self, request): import json try: + if request.body is None: + return request body = json.loads(request.body.decode()) if 'smsRecipients' in body: for item in body["smsRecipients"]: diff --git a/src/communication/azext_communication/tests/latest/recordings/test_communication_Scenario.yaml b/src/communication/azext_communication/tests/latest/recordings/test_communication_Scenario.yaml index cca240ef61c..f451e81f600 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_communication_Scenario.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_communication_Scenario.yaml @@ -1,660 +1,835 @@ -interactions: -- request: - body: '{"location": "Global", "properties": {"dataLocation": "United States"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication create - Connection: - - keep-alive - Content-Length: - - '71' - Content-Type: - - application/json - ParameterSetName: - - --name --location --data-location --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-07-15T05:11:28.9683653Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-07-15T05:11:28.9683653Z"},"properties":{"dataLocation":"United - States","provisioningState":"Accepted"}}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/bb56224b-5c9b-45cd-a4f0-83d12887bd23?api-version=2020-08-20 - cache-control: - - no-cache - content-length: - - '646' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:11:33 GMT - etag: - - '"4800c903-0000-0700-0000-60efc3840000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - communication create - Connection: - - keep-alive - ParameterSetName: - - --name --location --data-location --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/bb56224b-5c9b-45cd-a4f0-83d12887bd23?api-version=2020-08-20 - response: - body: - string: '{"id":"/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/bb56224b-5c9b-45cd-a4f0-83d12887bd23","name":"bb56224b-5c9b-45cd-a4f0-83d12887bd23","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2021-07-15T05:11:31.3597706Z","properties":null}' - headers: - cache-control: - - no-cache - content-length: - - '482' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:03 GMT - etag: - - '"1c006a18-0000-0800-0000-60efc39a0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - communication create - Connection: - - keep-alive - ParameterSetName: - - --name --location --data-location --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-07-15T05:11:28.9683653Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-07-15T05:11:28.9683653Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicau3s63ukzwwyw.communication.azure.com","immutableResourceId":"34c728a2-02c4-4560-a704-6d443f3d1304","dataLocation":"United - States"}}' - headers: - cache-control: - - no-cache - content-length: - - '769' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:04 GMT - etag: - - '"4800fb03-0000-0700-0000-60efc39a0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication wait - Connection: - - keep-alive - ParameterSetName: - - --created --name --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-07-15T05:11:28.9683653Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-07-15T05:11:28.9683653Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicau3s63ukzwwyw.communication.azure.com","immutableResourceId":"34c728a2-02c4-4560-a704-6d443f3d1304","dataLocation":"United - States"}}' - headers: - cache-control: - - no-cache - content-length: - - '769' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:05 GMT - etag: - - '"4800fb03-0000-0700-0000-60efc39a0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication show - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-07-15T05:11:28.9683653Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-07-15T05:11:28.9683653Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicau3s63ukzwwyw.communication.azure.com","immutableResourceId":"34c728a2-02c4-4560-a704-6d443f3d1304","dataLocation":"United - States"}}' - headers: - cache-control: - - no-cache - content-length: - - '769' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:06 GMT - etag: - - '"4800fb03-0000-0700-0000-60efc39a0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication list - Connection: - - keep-alive - ParameterSetName: - - --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices?api-version=2020-08-20 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-07-15T05:11:28.9683653Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-07-15T05:11:28.9683653Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicau3s63ukzwwyw.communication.azure.com","immutableResourceId":"34c728a2-02c4-4560-a704-6d443f3d1304","dataLocation":"United - States"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '781' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:08 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication list - Connection: - - keep-alive - ParameterSetName: - - -g - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/communicationServices?api-version=2020-08-20 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-07-15T05:11:28.9683653Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-07-15T05:11:28.9683653Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicau3s63ukzwwyw.communication.azure.com","immutableResourceId":"34c728a2-02c4-4560-a704-6d443f3d1304","dataLocation":"United - States"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '781' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:08 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - status: - code: 200 - message: OK -- request: - body: '{"tags": {"newTag": "newVal"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication update - Connection: - - keep-alive - Content-Length: - - '30' - Content-Type: - - application/json - ParameterSetName: - - --name --tags --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","tags":{"newTag":"newVal"},"systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-07-15T05:11:28.9683653Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-07-15T05:12:11.1294403Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunicau3s63ukzwwyw.communication.azure.com","immutableResourceId":"34c728a2-02c4-4560-a704-6d443f3d1304","dataLocation":"United - States"}}' - headers: - cache-control: - - no-cache - content-length: - - '796' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:15 GMT - etag: - - '"48000f04-0000-0700-0000-60efc3ac0000"' - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId= - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: '{"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub", - "connectionString": "Endpoint=sb://MyNamespace.servicebus.windows.net/;SharedAccessKey=abcd1234"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication link-notification-hub - Connection: - - keep-alive - Content-Length: - - '341' - Content-Type: - - application/json - ParameterSetName: - - --name --connection-string --resource-id --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001/linkNotificationHub?api-version=2020-08-20 - response: - body: - string: '{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub"}' - headers: - cache-control: - - no-cache - content-length: - - '242' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:17 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId= - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication list-key - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --name --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001/listKeys?api-version=2020-08-20 - response: - body: - string: '{"primaryKey":"XXXXXXXX","secondaryKey":"XXXXXXXX","primaryConnectionString":"endpoint=https://mycommunicau3s63ukzwwyw.communication.azure.com/;accesskey=XXXXXXXX","secondaryConnectionString":"endpoint=https://mycommunicau3s63ukzwwyw.communication.azure.com/;accesskey=XXXXXXXX"}' - headers: - cache-control: - - no-cache - content-length: - - '599' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:19 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId= - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: '{"keyType": "Primary"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication regenerate-key - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json - ParameterSetName: - - --name --key-type --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001/regenerateKey?api-version=2020-08-20 - response: - body: - string: '{"primaryKey":"XXXXXXXX","primaryConnectionString":"endpoint=https://mycommunicau3s63ukzwwyw.communication.azure.com/;accesskey=XXXXXXXX"}' - headers: - cache-control: - - no-cache - content-length: - - '298' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:21 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId= - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - communication delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -y --name --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 - response: - body: - string: 'null' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/0e4b1591-b06e-478d-91e6-5ed141c710db?api-version=2020-08-20 - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:23 GMT - etag: - - '"48003104-0000-0700-0000-60efc3b70000"' - expires: - - '-1' - location: - - https://management.azure.com/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/0e4b1591-b06e-478d-91e6-5ed141c710db?api-version=2020-08-20 - pragma: - - no-cache - request-context: - - appId= - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - communication delete - Connection: - - keep-alive - ParameterSetName: - - -y --name --resource-group - User-Agent: - - AZURECLI/2.26.0 azsdk-python-mgmt-communication/1.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/0e4b1591-b06e-478d-91e6-5ed141c710db?api-version=2020-08-20 - response: - body: - string: '{"id":"/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/0e4b1591-b06e-478d-91e6-5ed141c710db","name":"0e4b1591-b06e-478d-91e6-5ed141c710db","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2021-07-15T05:12:23.1447165Z","endTime":"2021-07-15T05:12:25.5840953Z","percentComplete":100.0,"properties":null}' - headers: - cache-control: - - no-cache - content-length: - - '547' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 15 Jul 2021 05:12:54 GMT - etag: - - '"1c00a018-0000-0800-0000-60efc3b90000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 \ No newline at end of file +interactions: +- request: + body: '{"location": "Global", "properties": {"dataLocation": "United States"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication create + Connection: + - keep-alive + Content-Length: + - '71' + Content-Type: + - application/json + ParameterSetName: + - --name --location --data-location --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"lakshmans@microsoft.com","createdByType":"User","createdAt":"2022-06-08T18:00:55.6740354Z","lastModifiedBy":"lakshmans@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-08T18:00:55.6740354Z"},"properties":{"dataLocation":"United + States","provisioningState":"Accepted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 + cache-control: + - no-cache + content-length: + - '580' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:00:56 GMT + etag: + - '"75002503-0000-0700-0000-62a0e3d80000"' + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - communication create + Connection: + - keep-alive + ParameterSetName: + - --name --location --data-location --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","name":"53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-06-08T18:00:56.1908518Z"}' + headers: + cache-control: + - no-cache + content-length: + - '576' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:01:26 GMT + etag: + - '"4200fb9d-0000-0800-0000-62a0e3d80000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - communication create + Connection: + - keep-alive + ParameterSetName: + - --name --location --data-location --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","name":"53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Accepted","startTime":"2022-06-08T18:00:56.1908518Z"}' + headers: + cache-control: + - no-cache + content-length: + - '576' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:01:56 GMT + etag: + - '"4200fb9d-0000-0800-0000-62a0e3d80000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - communication create + Connection: + - keep-alive + ParameterSetName: + - --name --location --data-location --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","name":"53c3d44f-cf97-48e3-8998-caa26343bec6*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-06-08T18:00:56.1908518Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '595' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:02:26 GMT + etag: + - '"4200339e-0000-0800-0000-62a0e41a0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - communication create + Connection: + - keep-alive + ParameterSetName: + - --name --location --data-location --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"lakshmans@microsoft.com","createdByType":"User","createdAt":"2022-06-08T18:00:55.6740354Z","lastModifiedBy":"lakshmans@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-08T18:00:55.6740354Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunica2mrpbter43mx.communication.azure.com","immutableResourceId":"fa754975-e1ac-4b98-b487-3a2bf7ca2477","dataLocation":"United + States"}}' + headers: + cache-control: + - no-cache + content-length: + - '703' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:02:26 GMT + etag: + - '"75004b03-0000-0700-0000-62a0e3de0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication wait + Connection: + - keep-alive + ParameterSetName: + - --created --name --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"lakshmans@microsoft.com","createdByType":"User","createdAt":"2022-06-08T18:00:55.6740354Z","lastModifiedBy":"lakshmans@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-08T18:00:55.6740354Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunica2mrpbter43mx.communication.azure.com","immutableResourceId":"fa754975-e1ac-4b98-b487-3a2bf7ca2477","dataLocation":"United + States"}}' + headers: + cache-control: + - no-cache + content-length: + - '703' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:02:27 GMT + etag: + - '"75004b03-0000-0700-0000-62a0e3de0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication show + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"lakshmans@microsoft.com","createdByType":"User","createdAt":"2022-06-08T18:00:55.6740354Z","lastModifiedBy":"lakshmans@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-08T18:00:55.6740354Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunica2mrpbter43mx.communication.azure.com","immutableResourceId":"fa754975-e1ac-4b98-b487-3a2bf7ca2477","dataLocation":"United + States"}}' + headers: + cache-control: + - no-cache + content-length: + - '703' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:02:28 GMT + etag: + - '"75004b03-0000-0700-0000-62a0e3de0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication list + Connection: + - keep-alive + ParameterSetName: + - --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices?api-version=2020-08-20 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","systemData":{"createdBy":"lakshmans@microsoft.com","createdByType":"User","createdAt":"2022-06-08T18:00:55.6740354Z","lastModifiedBy":"lakshmans@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-08T18:00:55.6740354Z"},"properties":{"provisioningState":"Succeeded","hostName":"mycommunica2mrpbter43mx.communication.azure.com","immutableResourceId":"fa754975-e1ac-4b98-b487-3a2bf7ca2477","dataLocation":"United + States"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '715' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:02:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"tags": {"newTag": "newVal"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication update + Connection: + - keep-alive + Content-Length: + - '30' + Content-Type: + - application/json + ParameterSetName: + - --name --tags --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","name":"MyCommunica000001","type":"microsoft.communication/communicationservices","location":"Global","tags":{"newTag":"newVal"},"systemData":{"createdBy":"lakshmans@microsoft.com","createdByType":"User","createdAt":"2022-06-08T18:00:55.6740354Z","lastModifiedBy":"lakshmans@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-08T18:02:29.625223Z"},"properties":{"hostName":"mycommunica2mrpbter43mx.communication.azure.com","immutableResourceId":"fa754975-e1ac-4b98-b487-3a2bf7ca2477","dataLocation":"United + States","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '729' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:02:29 GMT + etag: + - '"75006104-0000-0700-0000-62a0e4360000"' + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: '{"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub", + "connectionString": "Endpoint=sb://MyNamespace.servicebus.windows.net/;SharedAccessKey=abcd1234"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication link-notification-hub + Connection: + - keep-alive + Content-Length: + - '279' + Content-Type: + - application/json + ParameterSetName: + - --name --connection-string --resource-id --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001/linkNotificationHub?api-version=2020-08-20 + response: + body: + string: '{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub"}' + headers: + cache-control: + - no-cache + content-length: + - '180' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:02:31 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication list-key + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001/listKeys?api-version=2020-08-20 + response: + body: + string: '{"primaryKey":"XXXXXXXX","secondaryKey":"XXXXXXXX","primaryConnectionString":"endpoint=https://mycommunica2mrpbter43mx.communication.azure.com/;accesskey=XXXXXXXX","secondaryConnectionString":"endpoint=https://mycommunica2mrpbter43mx.communication.azure.com/;accesskey=XXXXXXXX"}' + headers: + cache-control: + - no-cache + content-length: + - '599' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:02:32 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: '{"keyType": "Primary"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication regenerate-key + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - --name --key-type --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001/regenerateKey?api-version=2020-08-20 + response: + body: + string: '{"primaryKey":"XXXXXXXX","primaryConnectionString":"endpoint=https://mycommunica2mrpbter43mx.communication.azure.com/;accesskey=XXXXXXXX"}' + headers: + cache-control: + - no-cache + content-length: + - '298' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:02:33 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - communication delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --name --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001?api-version=2020-08-20 + response: + body: + string: 'null' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:02:34 GMT + etag: + - '"75007304-0000-0700-0000-62a0e43a0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - communication delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","name":"1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-06-08T18:02:34.5102735Z"}' + headers: + cache-control: + - no-cache + content-length: + - '576' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:03:04 GMT + etag: + - '"4200689e-0000-0800-0000-62a0e43a0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - communication delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","name":"1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Deleting","startTime":"2022-06-08T18:02:34.5102735Z"}' + headers: + cache-control: + - no-cache + content-length: + - '576' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:03:34 GMT + etag: + - '"4200689e-0000-0800-0000-62a0e43a0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - communication delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","name":"1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-06-08T18:02:34.5102735Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '595' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:04:04 GMT + etag: + - '"4200b59e-0000-0800-0000-62a0e47c0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - communication delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group + User-Agent: + - AZURECLI/2.37.0 azsdk-python-mgmt-communication/1.0.0 Python/3.6.7 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960?api-version=2020-08-20 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","name":"1ec93f0b-63ae-47b0-8885-8ccd059c2a98*8D13F51CA89E2C4BB062051BF979196FAFD3CD94D8CFA098318864C914E2B960","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000003/providers/Microsoft.Communication/communicationServices/MyCommunica000001","status":"Succeeded","startTime":"2022-06-08T18:02:34.5102735Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '595' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:04:04 GMT + etag: + - '"4200b59e-0000-0800-0000-62a0e47c0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token.yaml b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token.yaml index a2b2a920eaf..39de6eeaae6 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token.yaml @@ -1,54 +1,54 @@ -interactions: -- request: - body: '{"createTokenWithScopes": ["chat"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '35' - Content-Type: - - application/json - Date: - - Mon, 06 Dec 2021 14:07:12 GMT - User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 - response: - body: - string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2021-12-07T14:07:13.468764+00:00"}}' - headers: - api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, - 2021-10-31-preview, 2021-11-01 - content-length: - - '919' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Dec 2021 14:07:12 GMT - ms-cv: - - lVPrNvJU5EaYuMAuqOGE7g.2.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 0EBmuYQAAAAB2qxxHbORwTbng1P82bMArREVMMDFFREdFMDYxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 53ms - status: - code: 201 - message: Created -version: 1 +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + Date: + - Wed, 08 Jun 2022 18:00:51 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - kWpGozyV35fifbpKdY8mbdG64VG0Pdq5upzo7YKAFM0= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-06-09T18:00:51.176298+00:00"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01 + content-length: + - '121' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:00:50 GMT + ms-cv: + - eElIgNeTt0O5mbftDOJZFQ.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 00uOgYgAAAAANw4rItbYIRri9LyqlAuPbWVZSMzExMDAwMTE2MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 186ms + status: + code: 201 + message: Created +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_id.yaml b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_id.yaml index 2dc0b23389a..ef861c00c3e 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_id.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_issue_access_token_with_id.yaml @@ -1,104 +1,104 @@ -interactions: -- request: - body: '{}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '2' - Content-Type: - - application/json - Date: - - Mon, 06 Dec 2021 14:07:15 GMT - User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 - response: - body: - string: '{"identity": {"id": "sanitized"}}' - headers: - api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, - 2021-10-31-preview, 2021-11-01 - content-length: - - '101' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Dec 2021 14:07:17 GMT - ms-cv: - - db5x9gldH0Oox282mizq9A.2.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 0ExmuYQAAAAD3Vfx251tyRo6XckH+lfvVREVMMDFFREdFMDUwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 42ms - status: - code: 201 - message: Created -- request: - body: '{"scopes": ["chat"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '20' - Content-Type: - - application/json - Date: - - Mon, 06 Dec 2021 14:07:17 GMT - User-Agent: - - azsdk-python-communication-identity/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - sZHRO4JkAmw3HcI1PyxrC5twHvkHIWjyMLVIkauXKRA= - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 - response: - body: - string: '{"token": "sanitized", "expiresOn": "2021-12-07T14:07:19.6772889+00:00"}' - headers: - api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1, - 2021-10-31-preview, 2021-11-01 - content-length: - - '804' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Dec 2021 14:07:18 GMT - ms-cv: - - ZeXdP0jb4kO0WUp2B31C7g.2.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-azure-ref: - - 0FhmuYQAAAAC/PBbMDZ7pSZFPgP+KVjugREVMMDFFREdFMDYyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 47ms - status: - code: 200 - message: OK -version: 1 +interactions: +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + Date: + - Wed, 08 Jun 2022 18:00:51 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01 + content-length: + - '33' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:00:51 GMT + ms-cv: + - l2JTnDME60aMsbUTOQuXKQ.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 00uOgYgAAAADuzh9y4GprTpDLQ3dRPhyNWVZSMzExMDAwMTE2MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 109ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Wed, 08 Jun 2022 18:00:51 GMT + User-Agent: + - azsdk-python-communication-identity/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - sZHRO4JkAmw3HcI1PyxrC5twHvkHIWjyMLVIkauXKRA= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + response: + body: + string: '{"token": "sanitized", "expiresOn": "2022-06-09T18:00:51.9039474+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01 + content-length: + - '72' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:00:51 GMT + ms-cv: + - dusEax8NZ0mpZZ9E46pR+A.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 00+OgYgAAAAAcpqvANpg0SbG1xR0iRxwxWVZSMzExMDAwMTE2MDMxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 183ms + status: + code: 200 + message: OK +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_list_phonenumbers.yaml b/src/communication/azext_communication/tests/latest/recordings/test_list_phonenumbers.yaml index 535c4011638..5611221923d 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_list_phonenumbers.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_list_phonenumbers.yaml @@ -1,373 +1,310 @@ -interactions: -- request: - body: '{"phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": - {"calling": "inbound", "sms": "inbound+outbound"}, "areaCode": "833"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '150' - Content-Type: - - application/json - Date: - - Mon, 06 Dec 2021 14:58:52 GMT - User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - k+8I+2XWVv8hfjOcXxUS3pkWDzlyAVYSAkE9keeVQKQ= - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2021-03-07 - response: - body: - string: '' - headers: - access-control-expose-headers: - - Location,Operation-Location,operation-id,search-id - api-supported-versions: - - '2021-03-07' - content-length: - - '0' - date: - - Mon, 06 Dec 2021 14:58:55 GMT - location: - - /availablePhoneNumbers/searchResults/5198a1ca-73d6-4fc9-a435-2d6fab200026?api-version=2021-03-07 - ms-cv: - - TphBgYsAx0mhayt5jm5ydg.0 - operation-id: - - search_5198a1ca-73d6-4fc9-a435-2d6fab200026 - operation-location: - - /phoneNumbers/operations/search_5198a1ca-73d6-4fc9-a435-2d6fab200026?api-version=2021-03-07 - request-context: - - appId= - search-id: - - 5198a1ca-73d6-4fc9-a435-2d6fab200026 - x-azure-ref: - - 0LSWuYQAAAACXHITBS5tiQrnS4SHxO5R+REVMMDFFREdFMDYyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 2154ms - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Date: - - Mon, 06 Dec 2021 14:59:26 GMT - User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= - x-ms-return-client-request-id: - - 'true' - method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_5198a1ca-73d6-4fc9-a435-2d6fab200026?api-version=2021-03-07 - response: - body: - string: '{"operationType": "search", "status": "succeeded", "resourceLocation": - "/availablePhoneNumbers/searchResults/5198a1ca-73d6-4fc9-a435-2d6fab200026?api-version=2021-03-07", - "createdDateTime": "2021-12-06T14:58:55.7391553+00:00", "id": "sanitized", - "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' - headers: - access-control-expose-headers: - - Location - api-supported-versions: - - '2021-03-07' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Dec 2021 14:59:26 GMT - location: - - /availablePhoneNumbers/searchResults/5198a1ca-73d6-4fc9-a435-2d6fab200026?api-version=2021-03-07 - ms-cv: - - ueyyTekDV0q7YM6o4Wk8dg.0 - request-context: - - appId= - transfer-encoding: - - chunked - x-azure-ref: - - 0TiWuYQAAAAAEK1xXX1leSL0ZN+EYgzEKREVMMDFFREdFMDYyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 247ms - status: - code: 200 - message: OK - url: sanitized -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Date: - - Mon, 06 Dec 2021 14:59:26 GMT - User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= - x-ms-return-client-request-id: - - 'true' - method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/5198a1ca-73d6-4fc9-a435-2d6fab200026?api-version=2021-03-07 - response: - body: - string: '{"searchId": "5198a1ca-73d6-4fc9-a435-2d6fab200026", "phoneNumbers": - ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", - "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2021-12-06T15:14:58.1021432+00:00"}' - headers: - api-supported-versions: - - '2021-03-07' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Dec 2021 14:59:27 GMT - ms-cv: - - Qkkas7hLjUyZ2Jn2Eyz/8w.0 - request-context: - - appId= - transfer-encoding: - - chunked - x-azure-ref: - - 0TiWuYQAAAADGQyi9ZfamToBHfKhv/uwdREVMMDFFREdFMDYyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 843ms - status: - code: 200 - message: OK - url: sanitized -- request: - body: '{"searchId": "5198a1ca-73d6-4fc9-a435-2d6fab200026"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '52' - Content-Type: - - application/json - Date: - - Mon, 06 Dec 2021 14:59:27 GMT - User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - q7k7dQmReElvco5HyMOMKjtmo0X24DIPCWqYL6+MTkY= - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/:purchase?api-version=2021-03-07 - response: - body: - string: '' - headers: - access-control-expose-headers: - - Operation-Location,operation-id,purchase-id - api-supported-versions: - - '2021-03-07' - content-length: - - '0' - date: - - Mon, 06 Dec 2021 14:59:29 GMT - ms-cv: - - KkJTT8iP0UmCc629ExcpNA.0 - operation-id: - - purchase_5198a1ca-73d6-4fc9-a435-2d6fab200026 - operation-location: - - /phoneNumbers/operations/purchase_5198a1ca-73d6-4fc9-a435-2d6fab200026?api-version=2021-03-07 - purchase-id: - - 5198a1ca-73d6-4fc9-a435-2d6fab200026 - request-context: - - appId= - x-azure-ref: - - 0TyWuYQAAAAA5ywhIx0IDRoxWDL+wDJJWREVMMDFFREdFMDYyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 1808ms - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Date: - - Mon, 06 Dec 2021 14:59:59 GMT - User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= - x-ms-return-client-request-id: - - 'true' - method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_5198a1ca-73d6-4fc9-a435-2d6fab200026?api-version=2021-03-07 - response: - body: - string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": - null, "createdDateTime": "2021-12-06T14:58:55.7391553+00:00", "id": "sanitized", - "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' - headers: - api-supported-versions: - - '2021-03-07' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Dec 2021 14:59:59 GMT - ms-cv: - - 1e34DE/Vck60Ag439mDuGg.0 - request-context: - - appId= - transfer-encoding: - - chunked - x-azure-ref: - - 0cCWuYQAAAAA28NbjrOS4QJ2nZdv5YJOuREVMMDFFREdFMDYyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 308ms - status: - code: 200 - message: OK - url: sanitized -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Date: - - Mon, 06 Dec 2021 15:00:00 GMT - User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= - x-ms-return-client-request-id: - - 'true' - method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers?skip=0&top=100&api-version=2021-03-07 - response: - body: - string: '{"phoneNumbers": [{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": - "US", "phoneNumberType": "geographic", "capabilities": {"calling": "inbound+outbound", - "sms": "none"}, "assignmentType": "application", "purchaseDate": "2021-04-08T17:35:37.4352574+00:00", - "cost": {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-11-17T11:47:47.2286877+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-12-06T14:48:37.2341582+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-12-06T14:59:45.3037046+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-12-06T14:38:13.1987611+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-08-04T09:49:45.3765116+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound+outbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T23:29:30.1082746+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound+outbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-08T19:23:21.6246128+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound+outbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-08T19:23:49.1286852+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-12T08:20:46.6769231+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-12T13:14:11.6087977+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "outbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-12T13:18:16.5746747+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-12T15:41:20.7171509+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-13T12:13:04.2873741+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-13T12:15:50.8017707+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-12-06T14:42:54.2122448+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-12-06T14:54:33.3820288+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}]}' - headers: - api-supported-versions: - - '2021-03-07' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Dec 2021 15:00:05 GMT - ms-cv: - - /ussJzn8ckSzlBOSdDRu5g.0 - request-context: - - appId= - transfer-encoding: - - chunked - x-azure-ref: - - 0cCWuYQAAAABQVtDD6YS/T7TMIoPNqdu9REVMMDFFREdFMDYxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 4648ms - status: - code: 200 - message: OK - url: sanitized -version: 1 +interactions: +- request: + body: '{"phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": + {"calling": "inbound", "sms": "inbound+outbound"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '131' + Content-Type: + - application/json + Date: + - Wed, 08 Jun 2022 18:00:51 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2021-03-07 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Location,Operation-Location,operation-id,search-id + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-length: + - '0' + date: + - Wed, 08 Jun 2022 18:00:54 GMT + location: + - /availablePhoneNumbers/searchResults/57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 + ms-cv: + - tNidcKnOGk6i8nmozvpySA.0 + operation-id: + - search_57ed2b65-3611-40b9-aa38-0df5f4291b2a + operation-location: + - /phoneNumbers/operations/search_57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 + search-id: + - 57ed2b65-3611-40b9-aa38-0df5f4291b2a + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 00uOgYgAAAACESRSYtxqFTLkpacwwIWI8WVZSMzExMDAwMTE2MDM5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 3948ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Wed, 08 Jun 2022 18:01:25 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 + response: + body: + string: '{"operationType": "search", "status": "succeeded", "resourceLocation": + "/availablePhoneNumbers/searchResults/57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07", + "createdDateTime": "2022-06-08T18:00:54.6717955+00:00", "id": "sanitized", + "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + headers: + access-control-expose-headers: + - Location + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:01:24 GMT + location: + - /availablePhoneNumbers/searchResults/57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 + ms-cv: + - 4rhhQFobjU+zNfd6nPVCnw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 09eOgYgAAAABx7MvFB/xvQJOu2thlMlzYWVZSMzExMDAwMTE2MDM5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 391ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Wed, 08 Jun 2022 18:01:26 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 + response: + body: + string: '{"searchId": "57ed2b65-3611-40b9-aa38-0df5f4291b2a", "phoneNumbers": + ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", + "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": + {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": + "2022-06-08T18:17:00.3072592+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:01:26 GMT + ms-cv: + - /P7NTDCbcEe4V+EvxJ70wA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 09eOgYgAAAACgNKZXbd/LSKRjj7kCjtS7WVZSMzExMDAwMTE2MDM5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 1061ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: '{"searchId": "57ed2b65-3611-40b9-aa38-0df5f4291b2a"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '52' + Content-Type: + - application/json + Date: + - Wed, 08 Jun 2022 18:01:27 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - 4ztvkrPnGXN1Lms0ny44NvlCOk0qMW2/GAFb7Vkvy+k= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/:purchase?api-version=2021-03-07 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Operation-Location,operation-id,purchase-id + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-length: + - '0' + date: + - Wed, 08 Jun 2022 18:01:28 GMT + ms-cv: + - gHSQLQB3o0qiHLYLQoaB/Q.0 + operation-id: + - purchase_57ed2b65-3611-40b9-aa38-0df5f4291b2a + operation-location: + - /phoneNumbers/operations/purchase_57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 + purchase-id: + - 57ed2b65-3611-40b9-aa38-0df5f4291b2a + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 09uOgYgAAAABcg5WUapHtS5XQnLop0wq3WVZSMzExMDAwMTE2MDM5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 2399ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Wed, 08 Jun 2022 18:01:59 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_57ed2b65-3611-40b9-aa38-0df5f4291b2a?api-version=2021-03-07 + response: + body: + string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": + null, "createdDateTime": "2022-06-08T18:00:54.6717955+00:00", "id": "sanitized", + "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:02:02 GMT + ms-cv: + - 2MSgGRW+s0K8inmJxei0UQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0F+SgYgAAAACt2WMAMGD7TJzFt5Xpb/jUWVZSMzExMDAwMTE2MDM5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 3376ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Wed, 08 Jun 2022 18:02:03 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/phoneNumbers?skip=0&top=100&api-version=2021-03-07 + response: + body: + string: '{"phoneNumbers": [{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": + "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", + "sms": "inbound+outbound"}, "assignmentType": "application", "purchaseDate": + "2022-06-08T18:01:43.7922431+00:00", "cost": {"amount": 2.0, "currencyCode": + "USD", "billingFrequency": "monthly"}}]}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:02:05 GMT + ms-cv: + - yeu88UFdLEOXJ3RhBiPLPQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0G+SgYgAAAAAqDZN2dXA/SbZVXPJGmxDTWVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 2066ms + status: + code: 200 + message: OK + url: sanitized +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_send_sms.yaml b/src/communication/azext_communication/tests/latest/recordings/test_send_sms.yaml index d51f151c947..c18496a0724 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_send_sms.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_send_sms.yaml @@ -1,54 +1,313 @@ -interactions: -- request: - body: '{"from": "sanitized", "smsRecipients": [{"to": "sanitized", "repeatabilityRequestId": - "sanitized", "repeatabilityFirstSent": "sanitized"}], "message": "Hello there!!", - "smsSendOptions": {"enableDeliveryReport": false}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '272' - Content-Type: - - application/json - Date: - - Mon, 06 Dec 2021 15:36:19 GMT - User-Agent: - - azsdk-python-communication-sms/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - sbLx+oenggMafURnlxO00AGzgCK+WSJHuexmoPo3DyA= - x-ms-return-client-request-id: - - 'true' - method: POST - uri: https://sanitized.communication.azure.com/sms?api-version=2021-03-07 - response: - body: - string: '{"value": [{"to": "sanitized", "messageId": "sanitized", "httpStatusCode": - 202, "repeatabilityResult": "accepted", "successful": true}]}' - headers: - api-supported-versions: - - 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Dec 2021 15:36:20 GMT - ms-cv: - - Ughjm5n6kEilMk/999Ucjg.0 - request-context: - - appId= - transfer-encoding: - - chunked - x-azure-ref: - - 08y2uYQAAAAAV31ZEY/dhTpUOlNFrXq3mREVMMDFFREdFMDYxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 442ms - status: - code: 202 - message: Accepted - url: sanitized -version: 1 +interactions: +- request: + body: '{"phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": + {"calling": "inbound", "sms": "inbound+outbound"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '131' + Content-Type: + - application/json + Date: + - Wed, 08 Jun 2022 18:02:28 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2021-03-07 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Location,Operation-Location,operation-id,search-id + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-length: + - '0' + date: + - Wed, 08 Jun 2022 18:02:30 GMT + location: + - /availablePhoneNumbers/searchResults/2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 + ms-cv: + - wc/MCoMN1keywSc8+QuPsg.0 + operation-id: + - search_2d19903b-7822-4be9-86f8-377c31f6ebd8 + operation-location: + - /phoneNumbers/operations/search_2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 + search-id: + - 2d19903b-7822-4be9-86f8-377c31f6ebd8 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0NOSgYgAAAAC68Dpsh9UXQpx3Q4xyPfU5WVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 3153ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Wed, 08 Jun 2022 18:03:01 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 + response: + body: + string: '{"operationType": "search", "status": "succeeded", "resourceLocation": + "/availablePhoneNumbers/searchResults/2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07", + "createdDateTime": "2022-06-08T18:02:30.9157918+00:00", "id": "search_2d19903b-7822-4be9-86f8-377c31f6ebd8", + "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + headers: + access-control-expose-headers: + - Location + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:03:01 GMT + location: + - /availablePhoneNumbers/searchResults/2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 + ms-cv: + - BkOg+uQH/0+c8J3mWA1Ntw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0VeSgYgAAAACdaRoazdmkRIwEjtG5OEeUWVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 440ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Wed, 08 Jun 2022 18:03:02 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 + response: + body: + string: '{"searchId": "2d19903b-7822-4be9-86f8-377c31f6ebd8", "phoneNumbers": + ["+18772136127"], "phoneNumberType": "tollFree", "assignmentType": "application", + "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": + {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": + "2022-06-08T18:18:34.2527577+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:03:02 GMT + ms-cv: + - KftmnlmZCEuRQXGSAKSWew.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0VuSgYgAAAACzQX6HdkuVQo9jpwDikjNSWVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 1351ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: '{"searchId": "2d19903b-7822-4be9-86f8-377c31f6ebd8"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '52' + Content-Type: + - application/json + Date: + - Wed, 08 Jun 2022 18:03:03 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - 6KqXgRvvk0OY7unyaDWoIwxdZiw3zPrEZA+ZxnoQtiE= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/:purchase?api-version=2021-03-07 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Operation-Location,operation-id,purchase-id + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-length: + - '0' + date: + - Wed, 08 Jun 2022 18:03:05 GMT + ms-cv: + - cFfdSeiOBkCKoxwWgQ7Tvg.0 + operation-id: + - purchase_2d19903b-7822-4be9-86f8-377c31f6ebd8 + operation-location: + - /phoneNumbers/operations/purchase_2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 + purchase-id: + - 2d19903b-7822-4be9-86f8-377c31f6ebd8 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 0V+SgYgAAAAC7WoZTMar7SbFI/I34BaOPWVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 2356ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Wed, 08 Jun 2022 18:03:36 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_2d19903b-7822-4be9-86f8-377c31f6ebd8?api-version=2021-03-07 + response: + body: + string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": + null, "createdDateTime": "2022-06-08T18:02:30.9157918+00:00", "id": "purchase_2d19903b-7822-4be9-86f8-377c31f6ebd8", + "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:03:35 GMT + ms-cv: + - yK2hANyhFEWAxcVDTeQ+gw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0d+SgYgAAAACkf6llJn4PRJ7zBU8vQCrqWVZSMzExMDAwMTE1MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 605ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: '{"from": "sanitized", "smsRecipients": [{"to": "sanitized", "repeatabilityRequestId": + "sanitized", "repeatabilityFirstSent": "sanitized"}], "message": "Hello there!!", + "smsSendOptions": {"enableDeliveryReport": false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '218' + Content-Type: + - application/json + Date: + - Wed, 08 Jun 2022 18:03:37 GMT + User-Agent: + - azsdk-python-communication-sms/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - MHxiUlyEp5c1qcJx+CiIZ0pGD9nPTrRNrJLpmTrI9fE= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/sms?api-version=2021-03-07 + response: + body: + string: '{"value": [{"to": "sanitized", "messageId": "sanitized", "httpStatusCode": + 202, "repeatabilityResult": "accepted", "successful": true}]}' + headers: + api-supported-versions: + - 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:03:37 GMT + ms-cv: + - caOZFxgqzEq0S5SXOsANOQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0eOSgYgAAAADLZumqCoXoRL4bqT/E1BTrWVZSMzExMDAwMTE1MDI1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 147ms + status: + code: 202 + message: Accepted + url: sanitized +version: 1 diff --git a/src/communication/azext_communication/tests/latest/recordings/test_show_phonenumbers.yaml b/src/communication/azext_communication/tests/latest/recordings/test_show_phonenumbers.yaml index 7604e85beb3..d924533ff31 100644 --- a/src/communication/azext_communication/tests/latest/recordings/test_show_phonenumbers.yaml +++ b/src/communication/azext_communication/tests/latest/recordings/test_show_phonenumbers.yaml @@ -1,51 +1,309 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Date: - - Fri, 10 Dec 2021 13:47:18 GMT - User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.10 (Windows-10-10.0.22000-SP0) - x-ms-content-sha256: - - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= - x-ms-return-client-request-id: - - 'true' - method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2021-03-07 - response: - body: - string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", - "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound+outbound", - "sms": "inbound+outbound"}, "assignmentType": "application", "purchaseDate": - "2021-04-06T23:29:30.1082746+00:00", "cost": {"amount": 2.0, "currencyCode": - "USD", "billingFrequency": "monthly"}}' - headers: - api-supported-versions: - - 2021-03-07, 2022-01-11-preview - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Dec 2021 13:47:20 GMT - ms-cv: - - t1sLcRKtiEafCidj5PG1hQ.0 - request-context: - - appId= - transfer-encoding: - - chunked - x-azure-ref: - - 0ZlqzYQAAAADKZ2o7XZjuRb2RbOfSdZtpREVMMDFFREdFMDUyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE= - x-cache: - - CONFIG_NOCACHE - x-processing-time: - - 1311ms - status: - code: 200 - message: OK - url: sanitized -version: 1 \ No newline at end of file +interactions: +- request: + body: '{"phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": + {"calling": "inbound", "sms": "inbound+outbound"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '131' + Content-Type: + - application/json + Date: + - Wed, 08 Jun 2022 18:00:50 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - ecyowPPqS6i2jEjg4ZPaHAki9yDR8IHa8lF+VXRefVM= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2021-03-07 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Location,Operation-Location,operation-id,search-id + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-length: + - '0' + date: + - Wed, 08 Jun 2022 18:00:54 GMT + location: + - /availablePhoneNumbers/searchResults/1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 + ms-cv: + - +95abflzOUmlk3tSLWhRLQ.0 + operation-id: + - search_1a2d9e4f-67ac-4504-8085-bf164927bab1 + operation-location: + - /phoneNumbers/operations/search_1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 + search-id: + - 1a2d9e4f-67ac-4504-8085-bf164927bab1 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 00uOgYgAAAAAS+y0Jx9PyRprYYcDyXUEjWVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 4165ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Wed, 08 Jun 2022 18:01:25 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 + response: + body: + string: '{"operationType": "search", "status": "succeeded", "resourceLocation": + "/availablePhoneNumbers/searchResults/1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07", + "createdDateTime": "2022-06-08T18:00:54.7468605+00:00", "id": "sanitized", + "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + headers: + access-control-expose-headers: + - Location + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:01:24 GMT + location: + - /availablePhoneNumbers/searchResults/1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 + ms-cv: + - 9+nN/zPYvEyJH6ULvl7dvw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 09eOgYgAAAACO5C35sAplQrhPfjRIIIDkWVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 439ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Wed, 08 Jun 2022 18:01:26 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 + response: + body: + string: '{"searchId": "1a2d9e4f-67ac-4504-8085-bf164927bab1", "phoneNumbers": + ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", + "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": + {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": + "2022-06-08T18:16:56.9281142+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:01:26 GMT + ms-cv: + - DfhdOwAgzkuRawjRAras0w.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 09eOgYgAAAACzzt9J629RQ4ozG60tJ887WVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 945ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: '{"searchId": "1a2d9e4f-67ac-4504-8085-bf164927bab1"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '52' + Content-Type: + - application/json + Date: + - Wed, 08 Jun 2022 18:01:27 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - v84BmvdsKwYRawMlPEH3VbuI+187cFdqCQSoJro/11E= + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/:purchase?api-version=2021-03-07 + response: + body: + string: '' + headers: + access-control-expose-headers: + - Operation-Location,operation-id,purchase-id + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-length: + - '0' + date: + - Wed, 08 Jun 2022 18:01:28 GMT + ms-cv: + - /O20/K3SKkeqgSvN2PRshw.0 + operation-id: + - purchase_1a2d9e4f-67ac-4504-8085-bf164927bab1 + operation-location: + - /phoneNumbers/operations/purchase_1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 + purchase-id: + - 1a2d9e4f-67ac-4504-8085-bf164927bab1 + strict-transport-security: + - max-age=2592000 + x-azure-ref: + - 09uOgYgAAAADXwQN7buKLTqLYWJYgXcY2WVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 2091ms + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Wed, 08 Jun 2022 18:01:59 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/purchase_1a2d9e4f-67ac-4504-8085-bf164927bab1?api-version=2021-03-07 + response: + body: + string: '{"operationType": "purchase", "status": "succeeded", "resourceLocation": + null, "createdDateTime": "2022-06-08T18:00:54.7468605+00:00", "id": "sanitized", + "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:01:59 GMT + ms-cv: + - cx4cPLs0bEmoRvdTGlJGYg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0F+SgYgAAAADOic9R8uaWTJ/mL8KB/xBVWVZSMzExMDAwMTE2MDE3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 384ms + status: + code: 200 + message: OK + url: sanitized +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Wed, 08 Jun 2022 18:02:00 GMT + User-Agent: + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.6.7 (Windows-10-10.0.22000-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2021-03-07 + response: + body: + string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", + "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": + "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2022-06-08T18:01:44.9739305+00:00", + "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' + headers: + api-supported-versions: + - 2021-03-07, 2022-01-11-preview2, 2022-06-01-preview + content-type: + - application/json; charset=utf-8 + date: + - Wed, 08 Jun 2022 18:02:01 GMT + ms-cv: + - p1Tqe4PGSUyRGbMpaAW3xg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-azure-ref: + - 0F+SgYgAAAAA7kwsqPWzWR4qQCGjVjRalWVZSMzExMDAwMTE2MDIzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ== + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 2459ms + status: + code: 200 + message: OK + url: sanitized +version: 1 diff --git a/src/communication/azext_communication/tests/latest/test_communication_scenario.py b/src/communication/azext_communication/tests/latest/test_communication_scenario.py index 1fafcaaf46f..4f9661e2a60 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_scenario.py +++ b/src/communication/azext_communication/tests/latest/test_communication_scenario.py @@ -11,6 +11,7 @@ import os from azure.cli.testsdk import ScenarioTest from azure.cli.testsdk import ResourceGroupPreparer +from azure.cli.testsdk.scenario_tests import AllowLargeResponse from .example_steps import step_create from .example_steps import step_show from .example_steps import step_list @@ -59,9 +60,6 @@ def call_scenario(test, rg_2, rg): step_list(test, rg_2, rg, checks=[ test.check('length(@)', 1), ]) - step_list2(test, rg_2, rg, checks=[ - test.check('length(@)', 1), - ]) step_update(test, rg_2, rg, checks=[ test.check("name", "{myCommunicationService}", case_sensitive=False), test.check("location", "Global", case_sensitive=False), @@ -90,6 +88,7 @@ def __init__(self, *args, **kwargs): }) + @AllowLargeResponse() @ResourceGroupPreparer(name_prefix='clitestcommunication_MyOtherResourceGroup'[:7], key='rg_2', parameter_name='rg_2') @ResourceGroupPreparer(name_prefix='clitestcommunication_MyResourceGroup'[:7], key='rg', parameter_name='rg') diff --git a/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md b/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md index 53d24e8680b..d2842a5aca3 100644 --- a/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md +++ b/src/communication/azext_communication/tests/latest/test_communication_scenario_coverage.md @@ -1,11 +1,10 @@ -|Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt| -|step_create|successed||||2021-07-15 05:28:42.600879|2021-07-15 05:28:44.014667| -|step_show|successed||||2021-07-15 05:28:44.015669|2021-07-15 05:28:44.150585| -|step_list|successed||||2021-07-15 05:28:44.151889|2021-07-15 05:28:44.335519| -|step_list2|successed||||2021-07-15 05:28:44.335519|2021-07-15 05:28:44.479516| -|step_update|successed||||2021-07-15 05:28:44.479516|2021-07-15 05:28:44.628518| -|step_link_notification_hub|successed||||2021-07-15 05:28:44.628518|2021-07-15 05:28:44.841516| -|step_list_key|successed||||2021-07-15 05:28:44.841516|2021-07-15 05:28:44.984517| -|step_regenerate_key|successed||||2021-07-15 05:28:44.985517|2021-07-15 05:28:45.130055| -|step_delete|successed||||2021-07-15 05:28:45.130055|2021-07-15 05:28:45.385899| -Coverage: 9/9 +|Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt| +|step_create|successed||||2022-06-08 18:52:11.409628|2022-06-08 18:52:11.498719| +|step_show|successed||||2022-06-08 18:52:11.498719|2022-06-08 18:52:11.517137| +|step_list|successed||||2022-06-08 18:52:11.517137|2022-06-08 18:52:11.533773| +|step_update|successed||||2022-06-08 18:52:11.533773|2022-06-08 18:52:11.565078| +|step_link_notification_hub|successed||||2022-06-08 18:52:11.565078|2022-06-08 18:52:11.581173| +|step_list_key|successed||||2022-06-08 18:52:11.581173|2022-06-08 18:52:11.596888| +|step_regenerate_key|successed||||2022-06-08 18:52:11.596888|2022-06-08 18:52:11.612457| +|step_delete|successed||||2022-06-08 18:52:11.612457|2022-06-08 18:52:12.310677| +Coverage: 8/8 diff --git a/src/communication/azext_communication/tests/latest/utils.py b/src/communication/azext_communication/tests/latest/utils.py index 73edf756d13..fb1d112b021 100644 --- a/src/communication/azext_communication/tests/latest/utils.py +++ b/src/communication/azext_communication/tests/latest/utils.py @@ -53,8 +53,8 @@ def get_test_recipient_phonenumber(is_live, in_recording): def get_new_phonenumber(connection_string): try: - phone_numbers_client = PhoneNumbersClient.from_connection_string( - connection_string) + phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_string) + capabilities = PhoneNumberCapabilities( calling=PhoneNumberCapabilityType.INBOUND, sms=PhoneNumberCapabilityType.INBOUND_OUTBOUND @@ -64,7 +64,6 @@ def get_new_phonenumber(connection_string): PhoneNumberType.TOLL_FREE, PhoneNumberAssignmentType.APPLICATION, capabilities, - area_code="833", polling=True ) search_result = search_poller.result() @@ -72,7 +71,8 @@ def get_new_phonenumber(connection_string): purchase_poller = phone_numbers_client.begin_purchase_phone_numbers( search_result.search_id, polling=True) purchase_poller.result() - if(purchase_poller.status() == 'succeeded'): + + if (purchase_poller.status() == 'succeeded'): phone_number_list = search_result.phone_numbers for phone_number in phone_number_list: return phone_number diff --git a/src/communication/azext_communication/vendored_sdks/communication/aio/operations/_communication_service_operations.py b/src/communication/azext_communication/vendored_sdks/communication/aio/operations/_communication_service_operations.py index 653c522839a..8cb41b97cd1 100644 --- a/src/communication/azext_communication/vendored_sdks/communication/aio/operations/_communication_service_operations.py +++ b/src/communication/azext_communication/vendored_sdks/communication/aio/operations/_communication_service_operations.py @@ -21,6 +21,7 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + class CommunicationServiceOperations: """CommunicationServiceOperations async operations. @@ -508,7 +509,7 @@ async def _create_or_update_initial( deserialized = self._deserialize('CommunicationServiceResource', pipeline_response) if response.status_code == 201: - response_headers['Azure-AsyncOperation']=self._deserialize('str', response.headers.get('Azure-AsyncOperation')) + response_headers['Azure-AsyncOperation'] = self._deserialize('str', response.headers.get('Azure-AsyncOperation')) deserialized = self._deserialize('CommunicationServiceResource', pipeline_response) if cls: @@ -556,7 +557,7 @@ async def begin_create_or_update( resource_group_name=resource_group_name, communication_service_name=communication_service_name, parameters=parameters, - cls=lambda x,y,z: x, + cls=lambda x, y, z: x, **kwargs ) @@ -566,7 +567,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response_headers = {} response = pipeline_response.http_response - response_headers['Azure-AsyncOperation']=self._deserialize('str', response.headers.get('Azure-AsyncOperation')) + response_headers['Azure-AsyncOperation'] = self._deserialize('str', response.headers.get('Azure-AsyncOperation')) deserialized = self._deserialize('CommunicationServiceResource', pipeline_response) if cls: @@ -579,9 +580,12 @@ def get_long_running_output(pipeline_response): 'communicationServiceName': self._serialize.url("communication_service_name", communication_service_name, 'str', max_length=63, min_length=1, pattern=r'^[-\w]+$'), } - if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = AsyncNoPolling() - else: polling_method = polling + if polling is True: + polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: + polling_method = AsyncNoPolling() + else: + polling_method = polling if cont_token: return AsyncLROPoller.from_continuation_token( polling_method=polling_method, @@ -635,7 +639,7 @@ async def _delete_initial( response_headers = {} if response.status_code == 202: - response_headers['location']=self._deserialize('str', response.headers.get('location')) + response_headers['location'] = self._deserialize('str', response.headers.get('location')) if cls: return cls(pipeline_response, None, response_headers) @@ -677,7 +681,7 @@ async def begin_delete( raw_result = await self._delete_initial( resource_group_name=resource_group_name, communication_service_name=communication_service_name, - cls=lambda x,y,z: x, + cls=lambda x, y, z: x, **kwargs ) @@ -694,9 +698,12 @@ def get_long_running_output(pipeline_response): 'communicationServiceName': self._serialize.url("communication_service_name", communication_service_name, 'str', max_length=63, min_length=1, pattern=r'^[-\w]+$'), } - if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = AsyncNoPolling() - else: polling_method = polling + if polling is True: + polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: + polling_method = AsyncNoPolling() + else: + polling_method = polling if cont_token: return AsyncLROPoller.from_continuation_token( polling_method=polling_method, diff --git a/src/communication/azext_communication/vendored_sdks/communication/aio/operations/_operations.py b/src/communication/azext_communication/vendored_sdks/communication/aio/operations/_operations.py index cab8774de0c..f18ef2a950b 100644 --- a/src/communication/azext_communication/vendored_sdks/communication/aio/operations/_operations.py +++ b/src/communication/azext_communication/vendored_sdks/communication/aio/operations/_operations.py @@ -19,6 +19,7 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + class Operations: """Operations async operations. diff --git a/src/communication/azext_communication/vendored_sdks/communication/models/_communication_service_management_client_enums.py b/src/communication/azext_communication/vendored_sdks/communication/models/_communication_service_management_client_enums.py index 6cfd385f1f3..64633bb8010 100644 --- a/src/communication/azext_communication/vendored_sdks/communication/models/_communication_service_management_client_enums.py +++ b/src/communication/azext_communication/vendored_sdks/communication/models/_communication_service_management_client_enums.py @@ -9,6 +9,7 @@ from enum import Enum, EnumMeta from six import with_metaclass + class _CaseInsensitiveEnumMeta(EnumMeta): def __getitem__(self, name): return super().__getitem__(name.upper()) @@ -32,6 +33,7 @@ class ActionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): INTERNAL = "Internal" + class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The type of identity that created the resource. """ @@ -41,6 +43,7 @@ class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): MANAGED_IDENTITY = "ManagedIdentity" KEY = "Key" + class KeyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The keyType to regenerate. Must be either 'primary' or 'secondary'(case-insensitive). """ @@ -48,6 +51,7 @@ class KeyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): PRIMARY = "Primary" SECONDARY = "Secondary" + class Origin(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" @@ -57,6 +61,7 @@ class Origin(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): SYSTEM = "system" USER_SYSTEM = "user,system" + class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Provisioning state of the resource. """ diff --git a/src/communication/azext_communication/vendored_sdks/communication/models/_models_py3.py b/src/communication/azext_communication/vendored_sdks/communication/models/_models_py3.py index 0fc54319e8a..5796a8cc733 100644 --- a/src/communication/azext_communication/vendored_sdks/communication/models/_models_py3.py +++ b/src/communication/azext_communication/vendored_sdks/communication/models/_models_py3.py @@ -12,7 +12,8 @@ from azure.core.exceptions import HttpResponseError import msrest.serialization -from ._communication_service_management_client_enums import * +from ._communication_service_management_client_enums import KeyType +from ._communication_service_management_client_enums import CreatedByType class CommunicationServiceKeys(msrest.serialization.Model): diff --git a/src/communication/azext_communication/vendored_sdks/communication/operations/_communication_service_operations.py b/src/communication/azext_communication/vendored_sdks/communication/operations/_communication_service_operations.py index fe42efc70c1..7f8ea4bf5b7 100644 --- a/src/communication/azext_communication/vendored_sdks/communication/operations/_communication_service_operations.py +++ b/src/communication/azext_communication/vendored_sdks/communication/operations/_communication_service_operations.py @@ -25,6 +25,7 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + class CommunicationServiceOperations(object): """CommunicationServiceOperations operations. @@ -519,7 +520,7 @@ def _create_or_update_initial( deserialized = self._deserialize('CommunicationServiceResource', pipeline_response) if response.status_code == 201: - response_headers['Azure-AsyncOperation']=self._deserialize('str', response.headers.get('Azure-AsyncOperation')) + response_headers['Azure-AsyncOperation'] = self._deserialize('str', response.headers.get('Azure-AsyncOperation')) deserialized = self._deserialize('CommunicationServiceResource', pipeline_response) if cls: @@ -568,7 +569,7 @@ def begin_create_or_update( resource_group_name=resource_group_name, communication_service_name=communication_service_name, parameters=parameters, - cls=lambda x,y,z: x, + cls=lambda x, y, z: x, **kwargs ) @@ -578,7 +579,7 @@ def begin_create_or_update( def get_long_running_output(pipeline_response): response_headers = {} response = pipeline_response.http_response - response_headers['Azure-AsyncOperation']=self._deserialize('str', response.headers.get('Azure-AsyncOperation')) + response_headers['Azure-AsyncOperation'] = self._deserialize('str', response.headers.get('Azure-AsyncOperation')) deserialized = self._deserialize('CommunicationServiceResource', pipeline_response) if cls: @@ -591,9 +592,12 @@ def get_long_running_output(pipeline_response): 'communicationServiceName': self._serialize.url("communication_service_name", communication_service_name, 'str', max_length=63, min_length=1, pattern=r'^[-\w]+$'), } - if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling + if polling is True: + polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: + polling_method = NoPolling() + else: + polling_method = polling if cont_token: return LROPoller.from_continuation_token( polling_method=polling_method, @@ -648,7 +652,7 @@ def _delete_initial( response_headers = {} if response.status_code == 202: - response_headers['location']=self._deserialize('str', response.headers.get('location')) + response_headers['location'] = self._deserialize('str', response.headers.get('location')) if cls: return cls(pipeline_response, None, response_headers) @@ -691,7 +695,7 @@ def begin_delete( raw_result = self._delete_initial( resource_group_name=resource_group_name, communication_service_name=communication_service_name, - cls=lambda x,y,z: x, + cls=lambda x, y, z: x, **kwargs ) @@ -708,9 +712,12 @@ def get_long_running_output(pipeline_response): 'communicationServiceName': self._serialize.url("communication_service_name", communication_service_name, 'str', max_length=63, min_length=1, pattern=r'^[-\w]+$'), } - if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling + if polling is True: + polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: + polling_method = NoPolling() + else: + polling_method = polling if cont_token: return LROPoller.from_continuation_token( polling_method=polling_method, diff --git a/src/communication/azext_communication/vendored_sdks/communication/operations/_operations.py b/src/communication/azext_communication/vendored_sdks/communication/operations/_operations.py index 703916fa8c0..bab4b88f962 100644 --- a/src/communication/azext_communication/vendored_sdks/communication/operations/_operations.py +++ b/src/communication/azext_communication/vendored_sdks/communication/operations/_operations.py @@ -23,6 +23,7 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + class Operations(object): """Operations operations. diff --git a/src/communication/setup.py b/src/communication/setup.py index 772b8164543..7a843d03f66 100644 --- a/src/communication/setup.py +++ b/src/communication/setup.py @@ -10,7 +10,7 @@ from setuptools import setup, find_packages # HISTORY.rst entry. -VERSION = '1.1.0' +VERSION = '1.1.1' try: from azext_communication.manual.version import VERSION except ImportError: