From 87885bf5450df2c3f9cf43d55fc6866d18af13e3 Mon Sep 17 00:00:00 2001 From: whisper6284 <61473382+whisper6284@users.noreply.github.com> Date: Thu, 1 Oct 2020 14:16:02 -0700 Subject: [PATCH 1/9] Update TNM Swagger to Oct 1, 2020 --- .../examples/CancelSearchAsync.json | 10 + .../examples/ConfigurePhoneNumberAsync.json | 17 + .../examples/CreateReleaseAsync.json | 17 + .../examples/CreateSearchAsync.json | 27 + .../GetAcquiredPhoneNumbersAsync.json | 32 + .../examples/GetAllReleasesAsync.json | 24 + .../examples/GetAllSearchesAsync.json | 24 + .../examples/GetAreaCodesAsync.json | 22 + .../examples/GetCountriesAsync.json | 29 + .../examples/GetLocationOptionsAsync.json | 71 + .../GetNumberCapabilitiesUpdateAsync.json | 26 + .../examples/GetNumberConfigurationAsync.json | 20 + .../examples/GetPhonePlanGroupsAsync.json | 42 + .../examples/GetPhonePlansAsync.json | 31 + .../examples/GetReleaseByIdAsync.json | 15 + .../examples/GetSearchByIdAsync.json | 26 + .../examples/PurchaseSearchAsync.json | 10 + .../examples/UnconfigurePhoneNumberAsync.json | 12 + .../UpdateNumberCapabilitiesAsync.json | 32 + .../phoneNumberAdministrationService.json | 2056 +++++++++++++++++ 20 files changed, 2543 insertions(+) create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CancelSearchAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateReleaseAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateSearchAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAcquiredPhoneNumbersAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAllReleasesAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAllSearchesAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAreaCodesAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetCountriesAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetLocationOptionsAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberCapabilitiesUpdateAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberConfigurationAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlanGroupsAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlansAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetReleaseByIdAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetSearchByIdAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/PurchaseSearchAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UnconfigurePhoneNumberAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UpdateNumberCapabilitiesAsync.json create mode 100644 specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/phoneNumberAdministrationService.json diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CancelSearchAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CancelSearchAsync.json new file mode 100644 index 000000000000..14ddcdf5a0d3 --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CancelSearchAsync.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "searchId": "0cc077cd-333a-39fd-90f7-560b1e06c63e" + }, + "responses": { + "202": {} + } +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json new file mode 100644 index 000000000000..7a1d5699fab7 --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "body": { + "phoneNumber": "+11234567890", + "pstnConfiguration": { + "callbackUrl": "www.callback.com", + "applicationId": "abc123", + "azurePstnTargetId": "acs:targetId" + } + }, + "endpoint": "https://resourcename.region.dev.communications.azure.net/" + }, + "responses": { + "202": {} + } +} \ No newline at end of file diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateReleaseAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateReleaseAsync.json new file mode 100644 index 000000000000..005e86f971ac --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateReleaseAsync.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "body": { + "phoneNumbers": [ "+11234567890" ] + }, + "endpoint": "https://resourcename.region.dev.communications.azure.net/" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "releaseId": "0cc077cd-333a-39fd-90f7-560b1e06c63e" + } + } + } +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateSearchAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateSearchAsync.json new file mode 100644 index 000000000000..dd7737510774 --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateSearchAsync.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "body": { + "displayName": "Name", + "description": "Search Description", + "phonePlanIds": [ "0cc077cd-333a-39fd-90f7-560b1e06c63e" ], + "areaCode": "425", + "quantity": 2, + "locationOptions": [ + { + "name": "state", + "value": "WA" + } + ] + }, + "endpoint": "https://resourcename.region.dev.communications.azure.net/" + }, + "responses": { + "201": { + "headers": {}, + "body": { + "searchId": "0cc077cd-5337-7msf-964e-560b1e06c63e" + } + } + } +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAcquiredPhoneNumbersAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAcquiredPhoneNumbersAsync.json new file mode 100644 index 000000000000..c382767b192f --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAcquiredPhoneNumbersAsync.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "locale": "en-us" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "phoneNumbers": [ + { + "phoneNumber": "+11234567890", + "acquiredCapabilities": ["FirstPartyAppAssignment"], + "availableCapabilities": [ "FirstPartyAppAssignment", "UserAssignment" ], + "assignmentStatus": "Unassigned", + "placeName": "Toll-Free, United States", + "activationState": "Activated" + }, + { + "phoneNumber": "+18003456789", + "acquiredCapabilities": [ "FirstPartyAppAssignment" ], + "availableCapabilities": [ "FirstPartyAppAssignment", "UserAssignment" ], + "assignmentStatus": "Unassigned", + "placeName": "Toll-Free, United States", + "activationState": "Activated" + } + ] + } + } + } +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAllReleasesAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAllReleasesAsync.json new file mode 100644 index 000000000000..3387fe9723c1 --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAllReleasesAsync.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "endpoint": "https://resourcename.region.dev.communications.azure.net/" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "entities": [ + { + "id": "0cc077cd-333a-39fd-90f7-560b1e06c63e", + "displayName": "Numbers for Vancouver Office", + "createdAt": "2020-06-18T17:11:52.5005818+00:00", + "quantity": 1, + "quantityObtained": 1, + "status": "completed", + "focDate": "2020-06-18T17:11:52.5005818+00:00" + } + ] + } + } + } +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAllSearchesAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAllSearchesAsync.json new file mode 100644 index 000000000000..3387fe9723c1 --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAllSearchesAsync.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "endpoint": "https://resourcename.region.dev.communications.azure.net/" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "entities": [ + { + "id": "0cc077cd-333a-39fd-90f7-560b1e06c63e", + "displayName": "Numbers for Vancouver Office", + "createdAt": "2020-06-18T17:11:52.5005818+00:00", + "quantity": 1, + "quantityObtained": 1, + "status": "completed", + "focDate": "2020-06-18T17:11:52.5005818+00:00" + } + ] + } + } + } +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAreaCodesAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAreaCodesAsync.json new file mode 100644 index 000000000000..b2d381a8511c --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAreaCodesAsync.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "locationType": "Selection", + "countryCode": "CA", + "phonePlanId": "0cc077cd-333a-39fd-90f7-560b1e06c63e" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "primaryAreaCodes": [ + "236", + "604", + "778" + ], + "secondaryAreaCodes": [] + } + } + } +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetCountriesAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetCountriesAsync.json new file mode 100644 index 000000000000..078cf152bf30 --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetCountriesAsync.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "locale": "en-us" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "countries": [ + { + "localizedName": "Australia", + "countryCode": "AU" + }, + { + "localizedName": "Japan", + "countryCode": "JP" + }, + { + "localizedName": "United States", + "countryCode": "US" + } + ] + } + + } + } +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetLocationOptionsAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetLocationOptionsAsync.json new file mode 100644 index 000000000000..1c5c21db499f --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetLocationOptionsAsync.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "countryCode": "US", + "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "phonePlanGroupId": "671ee064-662f-4c3b-82a9-af2ab200dd5c", + "phonePlanId": "27b53eec-8ff4-4070-8900-fbeaabfd158a" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "locationOptions": { + "labelId": "state", + "labelName": "State", + "options": [ + { + "name": "AK", + "value": "AK", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Anchorage", + "value": "NOAM-US-AK-AN", + "locationOptions": null + } + ] + } + ] + }, + { + "name": "AL", + "value": "AL", + "locationOptions": [ + { + "labelId": "city", + "labelName": "City", + "options": [ + { + "name": "Birmingham", + "value": "NOAM-US-AL-BI", + "locationOptions": null + }, + { + "name": "Huntsville", + "value": "NOAM-US-AL-HN", + "locationOptions": null + }, + { + "name": "Mobile", + "value": "NOAM-US-AL-MO", + "locationOptions": null + }, + { + "name": "Montgomery", + "value": "NOAM-US-AL-MN", + "locationOptions": null + } + ] + } + ] + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberCapabilitiesUpdateAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberCapabilitiesUpdateAsync.json new file mode 100644 index 000000000000..415fb57173f5 --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberCapabilitiesUpdateAsync.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "capabilitiesUpdateId": "0cc077cd-333a-39fd-90f7-560b1e06c63e" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "capabilitiesUpdateId": "0cc077cd-333a-39fd-90f7-560b1e06c63e", + "createdAt": "2020-06-18T17:11:52.5005818+00:00", + "capabilitiesUpdateStatus": "Complete", + "phoneNumberCapabilitiesUpdates": { + "12345878991": { + "add": [], + "remove": [ + "InboundA2PSms", + "OutboundA2PSms" + ] + } + } + } + } + } +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberConfigurationAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberConfigurationAsync.json new file mode 100644 index 000000000000..53fa9db05eaf --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberConfigurationAsync.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "body": { + "phoneNumber": "+11234567890" + }, + "endpoint": "https://resourcename.region.dev.communications.azure.net/" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "pstnConfiguration": { + "callbackUrl": "www.callback.com", + "applicationId": "abc123" + } + } + } + } + } diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlanGroupsAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlanGroupsAsync.json new file mode 100644 index 000000000000..75c3161735ff --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlanGroupsAsync.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "countryCode": "US", + "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "locale": "en-us" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "phonePlanGroups": [ + { + "phonePlanGroupId": "671ee064-662f-4c3b-82a9-af2ab200dd5c", + "phoneNumberType": "Geographic", + "localizedName": "Geographic", + "localizedDescription": "These are Toll numbers", + "carrierDetails": null, + "rateInformation": { + "monthlyRate": 2.0, + "currencyType": "USD", + "rateErrorMessage": null + } + }, + { + "phonePlanGroupId": "d47a0cdc-8dc1-4e82-a29b-39067f7fc317", + "phoneNumberType": "TollFree", + "localizedName": "TollFree", + "localizedDescription": "These are toll free numbers used by Azure resources.", + "carrierDetails": null, + "rateInformation": { + "monthlyRate": 1.0, + "currencyType": "USD", + "rateErrorMessage": null + } + } + ] + } + } + } +} + diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlansAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlansAsync.json new file mode 100644 index 000000000000..5ed73f38b9b9 --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlansAsync.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "countryCode": "US", + "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "phonePlanGroupId": "671ee064-662f-4c3b-82a9-af2ab200dd5c" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "phonePlans": [ + { + "phonePlanId": "27b53eec-8ff4-4070-8900-fbeaabfd158a", + "localizedName": "Outbound Only PSTN - Geographic", + "locationType": "Selection", + "areaCodes": null, + "capabilities": [ + "Azure", + "OutboundCalling", + "ThirdPartyAppAssignment", + "Geographic" + ], + "maximumSearchSize": 100 + } + ] + } + } + } +} + diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetReleaseByIdAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetReleaseByIdAsync.json new file mode 100644 index 000000000000..49c2b259456e --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetReleaseByIdAsync.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "releaseId": "0cc077cd-333a-39fd-90f7-560b1e06c63e" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "releaseId": "0cc077cd-333a-39fd-90f7-560b1e06c63e" + } + } + } +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetSearchByIdAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetSearchByIdAsync.json new file mode 100644 index 000000000000..1cb8427dc8ca --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetSearchByIdAsync.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "searchId": "0cc077cd-333a-39fd-90f7-560b1e06c63e" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "searchId": "0cc077cd-333a-39fd-90f7-560b1e06c63e", + "displayName": "Numbers for Vancouver Office", + "createdAt": "2020-06-18T17:11:52.5005818+00:00", + "description": "Get some new numbers for our office in Vancouver", + "phonePlanIds": [ "0cc077cd-333a-39fd-90f7-560b1e06c63e" ], + "areaCode": "604", + "quantity": 1, + "locationOptions": [], + "status": "completed", + "phoneNumbers": [], + "reservationExpiryDate": null, + "errorCode": null + } + } + } +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/PurchaseSearchAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/PurchaseSearchAsync.json new file mode 100644 index 000000000000..14ddcdf5a0d3 --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/PurchaseSearchAsync.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "searchId": "0cc077cd-333a-39fd-90f7-560b1e06c63e" + }, + "responses": { + "202": {} + } +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UnconfigurePhoneNumberAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UnconfigurePhoneNumberAsync.json new file mode 100644 index 000000000000..7424d032c7bf --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UnconfigurePhoneNumberAsync.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "body": { + "phoneNumber": "+11234567890" + }, + "endpoint": "https://resourcename.region.dev.communications.azure.net/" + }, + "responses": { + "202": {} + } + } diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UpdateNumberCapabilitiesAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UpdateNumberCapabilitiesAsync.json new file mode 100644 index 000000000000..35a1923d7ae6 --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UpdateNumberCapabilitiesAsync.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2020-07-20-preview1", + "body": { + "phoneNumberCapabilitiesUpdate": { + "12345878981": { + "add": [ + "InboundA2PSms", + "OutboundA2PSms" + ], + "remove": [] + }, + "12345878991": { + "add": [], + "remove": [ + "InboundA2PSms", + "OutboundA2PSms" + ] + } + } + }, + "endpoint": "https://resourcename.region.dev.communications.azure.net/" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "capabilitiesUpdateId": "0cc077cd-5337-7msf-964e-560b1e06c63e" + } + } + } +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/phoneNumberAdministrationService.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/phoneNumberAdministrationService.json new file mode 100644 index 000000000000..5371400ca346 --- /dev/null +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/phoneNumberAdministrationService.json @@ -0,0 +1,2056 @@ +{ + "swagger": "2.0", + "info": { + "title": "Phone Number Administration Service", + "description": "Phone Number Administration Service", + "contact": { + "email": "acsdevexdisc@microsoft.com" + }, + "version": "2020-07-20-preview1" + }, + "paths": { + "/administration/phonenumbers/phonenumbers": { + "get": { + "tags": [ + "AcquiredNumbers" + ], + "summary": "Gets the list of the acquired phone numbers.", + "operationId": "PhoneNumberAdministration_GetAllPhoneNumbers", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "query", + "name": "locale", + "description": "A language-locale pairing which will be used to localise the names of countries", + "type": "string", + "default": "en-US" + }, + { + "in": "query", + "name": "skip", + "description": "An optional parameter for how many entries to skip, for pagination purposes.", + "type": "integer", + "format": "int32", + "default": 0 + }, + { + "in": "query", + "name": "take", + "description": "An optional parameter for how many entries to return, for pagination purposes.", + "type": "integer", + "format": "int32", + "default": 100 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AcquiredPhoneNumbers" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "phoneNumbers" + }, + "x-ms-examples": { + "List acquired phone numbers": { + "$ref": "./examples/GetAcquiredPhoneNumbersAsync.json" + } + } + } + }, + "/administration/phonenumbers/countries/{countryCode}/areacodes": { + "post": { + "tags": [ + "AreaCodes" + ], + "summary": "Gets a list of the supported area codes", + "operationId": "PhoneNumberAdministration_GetAllAreaCodes", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "query", + "name": "locationType", + "description": "The type of location information required by the plan.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "countryCode", + "description": "The ISO 3166-2 country code", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "phonePlanId", + "description": "The plan id from which to search area codes.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "Location options for when location type is selection.", + "schema": { + "$ref": "#/definitions/LocationOptionsQueries" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AreaCodes" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get area codes": { + "$ref": "./examples/GetAreaCodesAsync.json" + } + } + } + }, + "/administration/phonenumbers/capabilities/{capabilitiesUpdateId}": { + "get": { + "tags": [ + "Capabilities" + ], + "summary": "Get capabilities by capabilities update id.", + "operationId": "PhoneNumberAdministration_GetCapabilitiesUpdate", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "capabilitiesUpdateId", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/UpdatePhoneNumberCapabilitiesResponse" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get number capabilities update": { + "$ref": "./examples/GetNumberCapabilitiesUpdateAsync.json" + } + } + } + }, + "/administration/phonenumbers/capabilities": { + "post": { + "tags": [ + "Capabilities" + ], + "summary": "Adds or removes phone number capabilities", + "operationId": "PhoneNumberAdministration_UpdateCapabilities", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "", + "schema": { + "$ref": "#/definitions/UpdateNumberCapabilitiesRequest" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/UpdateNumberCapabilitiesResponse" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update number capabilities": { + "$ref": "./examples/UpdateNumberCapabilitiesAsync.json" + } + } + } + }, + "/administration/phonenumbers/countries": { + "get": { + "tags": [ + "Countries" + ], + "summary": "Gets a list of supported countries", + "operationId": "PhoneNumberAdministration_GetAllSupportedCountries", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "query", + "name": "locale", + "description": "A language-locale pairing which will be used to localise the names of countries", + "type": "string", + "default": "en-US" + }, + { + "in": "query", + "name": "skip", + "description": "An optional parameter for how many entries to skip, for pagination purposes.", + "type": "integer", + "format": "int32", + "default": 0 + }, + { + "in": "query", + "name": "take", + "description": "An optional parameter for how many entries to return, for pagination purposes.", + "type": "integer", + "format": "int32", + "default": 100 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PhoneNumberCountries" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "countries" + }, + "x-ms-examples": { + "Get countries": { + "$ref": "./examples/GetCountriesAsync.json" + } + } + } + }, + "/administration/phonenumbers/numberconfiguration": { + "post": { + "tags": [ + "NumberConfiguration" + ], + "summary": "Endpoint for getting number configurations", + "operationId": "PhoneNumberAdministration_GetNumberConfiguration", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "The phone number whose configuration is to be fetched", + "schema": { + "$ref": "#/definitions/NumberConfigurationPhoneNumber" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/NumberConfigurationResponse" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get number configuration for phone number": { + "$ref": "./examples/GetNumberConfigurationAsync.json" + } + } + } + }, + "/administration/phonenumbers/numberconfiguration/configure": { + "patch": { + "tags": [ + "NumberConfiguration" + ], + "summary": "Endpoint for configuring a pstn number", + "operationId": "PhoneNumberAdministration_ConfigureNumber", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "Details of pstn number configuration of the given phoneNumber", + "schema": { + "$ref": "#/definitions/NumberConfiguration" + } + } + ], + "responses": { + "200": { + "description": "Success" + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Configure phone number": { + "$ref": "./examples/ConfigurePhoneNumberAsync.json" + } + } + } + }, + "/administration/phonenumbers/numberconfiguration/unconfigure": { + "patch": { + "tags": [ + "NumberConfiguration" + ], + "summary": "Endpoint for unconfiguring a pstn number by removing the configuration", + "operationId": "PhoneNumberAdministration_UnconfigureNumber", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "The phone number to un-configure", + "schema": { + "$ref": "#/definitions/NumberConfigurationPhoneNumber" + } + } + ], + "responses": { + "200": { + "description": "Success" + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Unconfigure phone number": { + "$ref": "./examples/UnconfigurePhoneNumberAsync.json" + } + } + } + }, + "/administration/phonenumbers/countries/{countryCode}/phoneplangroups": { + "get": { + "tags": [ + "Plans" + ], + "summary": "Gets a list of phone plan groups for the given country", + "operationId": "PhoneNumberAdministration_GetPhonePlanGroups", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "countryCode", + "description": "The ISO 3166-2 country code.", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "locale", + "description": "A language-locale pairing which will be used to localise the names of countries", + "type": "string", + "default": "en-US" + }, + { + "in": "query", + "name": "includeRateInformation", + "type": "boolean", + "default": false + }, + { + "in": "query", + "name": "skip", + "description": "An optional parameter for how many entries to skip, for pagination purposes.", + "type": "integer", + "format": "int32", + "default": 0 + }, + { + "in": "query", + "name": "take", + "description": "An optional parameter for how many entries to return, for pagination purposes.", + "type": "integer", + "format": "int32", + "default": 100 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PhonePlanGroups" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "phonePlanGroups" + }, + "x-ms-examples": { + "Get plans": { + "$ref": "./examples/GetPhonePlanGroupsAsync.json" + } + } + } + }, + "/administration/phonenumbers/countries/{countryCode}/phoneplangroups/{phonePlanGroupId}/phoneplans": { + "get": { + "tags": [ + "Plans" + ], + "summary": "Gets a list of phone plans for a phone plan group", + "operationId": "PhoneNumberAdministration_GetPhonePlans", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "countryCode", + "description": "The ISO 3166-2 country code.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "phonePlanGroupId", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "locale", + "description": "A language-locale pairing which will be used to localise the names of countries", + "type": "string", + "default": "en-US" + }, + { + "in": "query", + "name": "skip", + "description": "An optional parameter for how many entries to skip, for pagination purposes.", + "type": "integer", + "format": "int32", + "default": 0 + }, + { + "in": "query", + "name": "take", + "description": "An optional parameter for how many entries to return, for pagination purposes.", + "type": "integer", + "format": "int32", + "default": 100 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PhonePlansResponse" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "phonePlans" + }, + "x-ms-examples": { + "Get plans": { + "$ref": "./examples/GetPhonePlansAsync.json" + } + } + } + }, + "/administration/phonenumbers/countries/{countryCode}/phoneplangroups/{phonePlanGroupId}/phoneplans/{phonePlanId}/locationoptions": { + "get": { + "tags": [ + "Plans" + ], + "summary": "Gets a list of location options for a phone plan", + "operationId": "PhoneNumberAdministration_GetPhonePlanLocationOptions", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "countryCode", + "description": "The ISO 3166-2 country code.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "phonePlanGroupId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "phonePlanId", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "locale", + "description": "A language-locale pairing which will be used to localise the names of countries", + "type": "string", + "default": "en-US" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LocationOptionsResponse" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get plans": { + "$ref": "./examples/GetLocationOptionsAsync.json" + } + } + } + }, + "/administration/phonenumbers/releases/{releaseId}": { + "get": { + "tags": [ + "Release" + ], + "summary": "Gets a release by a release id", + "operationId": "PhoneNumberAdministration_GetReleaseById", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "releaseId", + "description": "Represents the release id", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PhoneNumberRelease" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get release by id": { + "$ref": "./examples/GetReleaseByIdAsync.json" + } + } + } + }, + "/administration/phonenumbers/releases": { + "post": { + "tags": [ + "Release" + ], + "summary": "Creates a release for the given phone numbers", + "operationId": "PhoneNumberAdministration_ReleasePhoneNumbers", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "Config api Release request", + "schema": { + "$ref": "#/definitions/ReleaseRequest" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ReleaseResponse" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get release": { + "$ref": "./examples/CreateReleaseAsync.json" + } + } + }, + "get": { + "tags": [ + "Release" + ], + "summary": "Gets a list of all releases", + "operationId": "PhoneNumberAdministration_GetAllReleases", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "query", + "name": "skip", + "description": "An optional parameter for how many entries to skip, for pagination purposes.", + "type": "integer", + "format": "int32", + "default": 0 + }, + { + "in": "query", + "name": "take", + "description": "An optional parameter for how many entries to return, for pagination purposes.", + "type": "integer", + "format": "int32", + "default": 100 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PhoneNumberEntities" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "entities" + }, + "x-ms-examples": { + "Get all releases": { + "$ref": "./examples/GetAllReleasesAsync.json" + } + } + } + }, + "/administration/phonenumbers/searches/{searchId}": { + "get": { + "tags": [ + "Search" + ], + "summary": "Get search by search id", + "operationId": "PhoneNumberAdministration_GetSearchById", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "searchId", + "description": "The search id to be searched for", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PhoneNumberSearch" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get search by search id": { + "$ref": "./examples/GetSearchByIdAsync.json" + } + } + } + }, + "/administration/phonenumbers/searches": { + "post": { + "tags": [ + "Search" + ], + "summary": "Creates a phone number search", + "operationId": "PhoneNumberAdministration_CreateSearch", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "Defines the search options", + "schema": { + "$ref": "#/definitions/CreateSearchOptions" + } + } + ], + "responses": { + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/CreateSearchResponse" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create search": { + "$ref": "./examples/CreateSearchAsync.json" + } + } + }, + "get": { + "tags": [ + "Search" + ], + "summary": "Gets a list of all searches", + "operationId": "PhoneNumberAdministration_GetAllSearches", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "query", + "name": "skip", + "description": "An optional parameter for how many entries to skip, for pagination purposes.", + "type": "integer", + "format": "int32", + "default": 0 + }, + { + "in": "query", + "name": "take", + "description": "An optional parameter for how many entries to return, for pagination purposes.", + "type": "integer", + "format": "int32", + "default": 100 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/PhoneNumberEntities" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "entities" + }, + "x-ms-examples": { + "Get all searches": { + "$ref": "./examples/GetAllSearchesAsync.json" + } + } + } + }, + "/administration/phonenumbers/searches/{searchId}/cancel": { + "post": { + "tags": [ + "Search" + ], + "summary": "Cancels the search. This means existing numbers in the search will be made available.", + "operationId": "PhoneNumberAdministration_CancelSearch", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "searchId", + "description": "The search id to be canceled", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Success" + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Cancel phone number search": { + "$ref": "./examples/CancelSearchAsync.json" + } + } + } + }, + "/administration/phonenumbers/searches/{searchId}/purchase": { + "post": { + "tags": [ + "Search" + ], + "summary": "Purchases the phone number search.", + "operationId": "PhoneNumberAdministration_PurchaseSearch", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "searchId", + "description": "The search id to be purchased", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Success" + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Purchase phone number search": { + "$ref": "./examples/PurchaseSearchAsync.json" + } + } + } + } + }, + "definitions": { + "AcquiredPhoneNumber": { + "description": "Represents an acquired phone number.", + "required": [ + "acquiredCapabilities", + "availableCapabilities", + "phoneNumber" + ], + "type": "object", + "properties": { + "phoneNumber": { + "description": "String of the E.164 format of the phone number", + "type": "string" + }, + "acquiredCapabilities": { + "description": "The set of all acquired capabilities of the phone number.", + "type": "array", + "items": { + "description": "Represents the capabilities of a phone number.", + "enum": [ + "UserAssignment", + "FirstPartyVoiceAppAssignment", + "ConferenceAssignment", + "P2PSmsEnabled", + "Geographic", + "NonGeographic", + "TollCalling", + "TollFreeCalling", + "Premium", + "P2PSmsCapable", + "A2PSmsCapable", + "A2PSmsEnabled", + "Calling", + "TollFree", + "FirstPartyAppAssignment", + "ThirdPartyAppAssignment", + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "InboundA2PSms", + "OutboundA2PSms", + "InboundP2PSms", + "OutboundP2PSms" + ], + "type": "string", + "x-ms-enum": { + "name": "Capability", + "modelAsString": true + } + } + }, + "availableCapabilities": { + "description": "The set of all available capabilities that can be acquired for this phone number.", + "type": "array", + "items": { + "description": "Represents the capabilities of a phone number.", + "enum": [ + "UserAssignment", + "FirstPartyVoiceAppAssignment", + "ConferenceAssignment", + "P2PSmsEnabled", + "Geographic", + "NonGeographic", + "TollCalling", + "TollFreeCalling", + "Premium", + "P2PSmsCapable", + "A2PSmsCapable", + "A2PSmsEnabled", + "Calling", + "TollFree", + "FirstPartyAppAssignment", + "ThirdPartyAppAssignment", + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "InboundA2PSms", + "OutboundA2PSms", + "InboundP2PSms", + "OutboundP2PSms" + ], + "type": "string", + "x-ms-enum": { + "name": "Capability", + "modelAsString": true + } + } + }, + "assignmentStatus": { + "description": "The assignment status of the phone number. Conveys what type of entity the number is assigned to.", + "enum": [ + "Unassigned", + "Unknown", + "UserAssigned", + "ConferenceAssigned", + "FirstPartyAppAssigned", + "ThirdPartyAppAssigned" + ], + "type": "string", + "x-ms-enum": { + "name": "AssignmentStatus", + "modelAsString": true + } + }, + "placeName": { + "description": "The name of the place of the phone number.", + "type": "string" + }, + "activationState": { + "description": "The activation state of the phone number. Can be \"Activated\", \"AssignmentPending\", \"AssignmentFailed\", \"UpdatePending\", \"UpdateFailed\"", + "enum": [ + "Activated", + "AssignmentPending", + "AssignmentFailed", + "UpdatePending", + "UpdateFailed" + ], + "type": "string", + "x-ms-enum": { + "name": "ActivationState", + "modelAsString": true + } + } + } + }, + "AcquiredPhoneNumbers": { + "description": "A wrapper of list of phone numbers", + "type": "object", + "properties": { + "phoneNumbers": { + "description": "Represents a list of phone numbers", + "type": "array", + "items": { + "$ref": "#/definitions/AcquiredPhoneNumber" + } + }, + "nextLink": { + "description": "Represents the URL link to the next page", + "type": "string" + } + } + }, + "ErrorBody": { + "description": "Represents a service error response body.", + "type": "object", + "properties": { + "code": { + "description": "The error code in the error response.", + "type": "string" + }, + "message": { + "description": "The error message in the error response.", + "type": "string" + } + } + }, + "ErrorResponse": { + "description": "Represents a service error response.", + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/ErrorBody" + } + } + }, + "LocationOptionsQuery": { + "description": "Represents a location options parameter, used for fetching area codes.", + "type": "object", + "properties": { + "labelId": { + "description": "Represents the location option label id, returned from the GetLocationOptions API.", + "type": "string" + }, + "optionsValue": { + "description": "Represents the location options value, returned from the GetLocationOptions API.", + "type": "string" + } + } + }, + "LocationOptionsQueries": { + "description": "Represents a list of location option queries, used for fetching area codes.", + "type": "object", + "properties": { + "locationOptions": { + "description": "Represents the underlying list of countries.", + "type": "array", + "items": { + "$ref": "#/definitions/LocationOptionsQuery" + } + } + } + }, + "AreaCodes": { + "description": "Represents a list of area codes.", + "type": "object", + "properties": { + "primaryAreaCodes": { + "description": "Represents the list of primary area codes.", + "type": "array", + "items": { + "type": "string" + } + }, + "secondaryAreaCodes": { + "description": "Represents the list of secondary area codes.", + "type": "array", + "items": { + "type": "string" + } + }, + "nextLink": { + "description": "Represents the URL link to the next page", + "type": "string" + } + } + }, + "NumberUpdateCapabilities": { + "description": "Represents an individual number capabilities update request", + "type": "object", + "properties": { + "add": { + "description": "Capabilities to be added to a phone number", + "type": "array", + "items": { + "description": "Represents the capabilities of a phone number.", + "enum": [ + "UserAssignment", + "FirstPartyVoiceAppAssignment", + "ConferenceAssignment", + "P2PSmsEnabled", + "Geographic", + "NonGeographic", + "TollCalling", + "TollFreeCalling", + "Premium", + "P2PSmsCapable", + "A2PSmsCapable", + "A2PSmsEnabled", + "Calling", + "TollFree", + "FirstPartyAppAssignment", + "ThirdPartyAppAssignment", + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "InboundA2PSms", + "OutboundA2PSms", + "InboundP2PSms", + "OutboundP2PSms" + ], + "type": "string", + "x-ms-enum": { + "name": "Capability", + "modelAsString": true + } + } + }, + "remove": { + "description": "Capabilities to be removed from a phone number", + "type": "array", + "items": { + "description": "Represents the capabilities of a phone number.", + "enum": [ + "UserAssignment", + "FirstPartyVoiceAppAssignment", + "ConferenceAssignment", + "P2PSmsEnabled", + "Geographic", + "NonGeographic", + "TollCalling", + "TollFreeCalling", + "Premium", + "P2PSmsCapable", + "A2PSmsCapable", + "A2PSmsEnabled", + "Calling", + "TollFree", + "FirstPartyAppAssignment", + "ThirdPartyAppAssignment", + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "InboundA2PSms", + "OutboundA2PSms", + "InboundP2PSms", + "OutboundP2PSms" + ], + "type": "string", + "x-ms-enum": { + "name": "Capability", + "modelAsString": true + } + } + } + } + }, + "UpdatePhoneNumberCapabilitiesResponse": { + "description": "Response for getting a phone number update capabilities.", + "type": "object", + "properties": { + "capabilitiesUpdateId": { + "description": "The id of the phone number capabilties update", + "type": "string" + }, + "createdAt": { + "format": "date-time", + "description": "The time the capabilities update was created", + "type": "string" + }, + "capabilitiesUpdateStatus": { + "description": "Status of the capabilities update.", + "enum": [ + "Pending", + "InProgress", + "Complete", + "Error" + ], + "type": "string", + "x-ms-enum": { + "name": "CapabilitiesUpdateStatus", + "modelAsString": true + } + }, + "phoneNumberCapabilitiesUpdates": { + "description": "The capabilities update for each of a set of phone numbers.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/NumberUpdateCapabilities" + } + } + } + }, + "UpdateNumberCapabilitiesRequest": { + "description": "Represents a numbers capabilities update request", + "required": [ + "phoneNumberCapabilitiesUpdate" + ], + "type": "object", + "properties": { + "phoneNumberCapabilitiesUpdate": { + "description": "The map of phone numbers to the capabilities update applied to the phone number.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/NumberUpdateCapabilities" + } + } + } + }, + "UpdateNumberCapabilitiesResponse": { + "description": "Represents a number capability update response.", + "required": [ + "capabilitiesUpdateId" + ], + "type": "object", + "properties": { + "capabilitiesUpdateId": { + "description": "The capabilities id", + "type": "string" + } + } + }, + "PhoneNumberCountry": { + "description": "Represents a country.", + "required": [ + "countryCode", + "localizedName" + ], + "type": "object", + "properties": { + "localizedName": { + "description": "Represents the name of the country.", + "type": "string" + }, + "countryCode": { + "description": "Represents the abbreviated name of the country.", + "type": "string" + } + } + }, + "PhoneNumberCountries": { + "description": "Represents a wrapper around a list of countries.", + "type": "object", + "properties": { + "countries": { + "description": "Represents the underlying list of countries.", + "type": "array", + "items": { + "$ref": "#/definitions/PhoneNumberCountry" + } + }, + "nextLink": { + "description": "Represents the URL link to the next page", + "type": "string" + } + } + }, + "NumberConfigurationPhoneNumber": { + "description": "The phone number wrapper representing a number configuration request", + "required": [ + "phoneNumber" + ], + "type": "object", + "properties": { + "phoneNumber": { + "description": "The phone number in the E.164 format", + "type": "string" + } + } + }, + "PstnConfiguration": { + "description": "Definition for pstn number configuration", + "required": [ + "callbackUrl" + ], + "type": "object", + "properties": { + "callbackUrl": { + "description": "The webhook URL on the phone number configuration.", + "type": "string" + }, + "applicationId": { + "description": "The application id of the application to which to configure", + "type": "string" + } + } + }, + "NumberConfigurationResponse": { + "description": "Definition for number configuration", + "required": [ + "pstnConfiguration" + ], + "type": "object", + "properties": { + "pstnConfiguration": { + "$ref": "#/definitions/PstnConfiguration" + } + } + }, + "NumberConfiguration": { + "description": "Definition for number configuration", + "required": [ + "phoneNumber", + "pstnConfiguration" + ], + "type": "object", + "properties": { + "pstnConfiguration": { + "$ref": "#/definitions/PstnConfiguration" + }, + "phoneNumber": { + "description": "The phone number to configure", + "type": "string" + } + } + }, + "CarrierDetails": { + "description": "Represents carrier details.", + "type": "object", + "properties": { + "name": { + "description": "Name of carrier details", + "type": "string" + }, + "localizedName": { + "description": "Display name of carrier details", + "type": "string" + } + } + }, + "RateInformation": { + "description": "Represents a wrapper of rate information", + "type": "object", + "properties": { + "monthlyRate": { + "format": "double", + "description": "The monthly rate of a phone plan group", + "type": "number" + }, + "currencyType": { + "description": "The currency of a phone plan group", + "enum": [ + "USD" + ], + "type": "string", + "x-ms-enum": { + "name": "CurrencyType", + "modelAsString": true + } + }, + "rateErrorMessage": { + "description": "The error code of a phone plan group", + "type": "string" + } + } + }, + "PhonePlanGroup": { + "description": "Represents a plan group.", + "required": [ + "localizedDescription", + "localizedName", + "phonePlanGroupId" + ], + "type": "object", + "properties": { + "phonePlanGroupId": { + "description": "The id of the plan group", + "type": "string" + }, + "phoneNumberType": { + "description": "The phone number type of the plan group", + "enum": [ + "Unknown", + "Geographic", + "TollFree", + "Indirect" + ], + "type": "string", + "x-ms-enum": { + "name": "PhoneNumberType", + "modelAsString": true + } + }, + "localizedName": { + "description": "The name of the plan group.", + "type": "string" + }, + "localizedDescription": { + "description": "The description of the plan group.", + "type": "string" + }, + "carrierDetails": { + "$ref": "#/definitions/CarrierDetails" + }, + "rateInformation": { + "$ref": "#/definitions/RateInformation" + } + } + }, + "PhonePlanGroups": { + "description": "Represents a wrapper of list of plan groups.", + "type": "object", + "properties": { + "phonePlanGroups": { + "description": "The underlying list of phone plan groups.", + "type": "array", + "items": { + "$ref": "#/definitions/PhonePlanGroup" + } + }, + "nextLink": { + "description": "Represents the URL link to the next page", + "type": "string" + } + } + }, + "PhonePlan": { + "description": "Represents a phone plan.", + "required": [ + "localizedName", + "locationType", + "phonePlanId" + ], + "type": "object", + "properties": { + "phonePlanId": { + "description": "The phone plan id", + "type": "string" + }, + "localizedName": { + "description": "The name of the phone plan", + "type": "string" + }, + "locationType": { + "description": "The location type of the phone plan.", + "enum": [ + "CivicAddress", + "NotRequired", + "Selection" + ], + "type": "string", + "x-ms-enum": { + "name": "LocationType", + "modelAsString": true + } + }, + "areaCodes": { + "description": "The list of available area codes in the phone plan.", + "type": "array", + "items": { + "type": "string" + } + }, + "capabilities": { + "description": "Capabilities of the phone plan.", + "type": "array", + "items": { + "description": "Represents the capabilities of a phone number.", + "enum": [ + "UserAssignment", + "FirstPartyVoiceAppAssignment", + "ConferenceAssignment", + "P2PSmsEnabled", + "Geographic", + "NonGeographic", + "TollCalling", + "TollFreeCalling", + "Premium", + "P2PSmsCapable", + "A2PSmsCapable", + "A2PSmsEnabled", + "Calling", + "TollFree", + "FirstPartyAppAssignment", + "ThirdPartyAppAssignment", + "Azure", + "Office365", + "InboundCalling", + "OutboundCalling", + "InboundA2PSms", + "OutboundA2PSms", + "InboundP2PSms", + "OutboundP2PSms" + ], + "type": "string", + "x-ms-enum": { + "name": "Capability", + "modelAsString": true + } + } + }, + "maximumSearchSize": { + "format": "int32", + "description": "The maximum number of phone numbers one can acquire in a search in this phone plan.", + "type": "integer" + } + } + }, + "PhonePlansResponse": { + "description": "Represents a wrapper around a list of countries.", + "type": "object", + "properties": { + "phonePlans": { + "description": "Represents the underlying list of phone plans.", + "type": "array", + "items": { + "$ref": "#/definitions/PhonePlan" + } + }, + "nextLink": { + "description": "Represents the URL link to the next page", + "type": "string" + } + } + }, + "LocationOptionsDetails": { + "description": "Represents location options deatils.", + "type": "object", + "properties": { + "name": { + "description": "The name of the location options", + "type": "string" + }, + "value": { + "description": "The abbreviated name of the location options", + "type": "string" + }, + "locationOptions": { + "description": "The underlying location options", + "type": "array", + "items": { + "$ref": "#/definitions/LocationOptions" + } + } + } + }, + "LocationOptions": { + "description": "Represents a location options.", + "type": "object", + "properties": { + "labelId": { + "description": "The label id of the location.", + "type": "string" + }, + "labelName": { + "description": "The display name of the location.", + "type": "string" + }, + "options": { + "description": "The underlying location option details.", + "type": "array", + "items": { + "$ref": "#/definitions/LocationOptionsDetails" + } + } + } + }, + "LocationOptionsResponse": { + "description": "Represents a wrapper around a list of location options.", + "type": "object", + "properties": { + "locationOptions": { + "$ref": "#/definitions/LocationOptions" + } + } + }, + "PhoneNumberReleaseDetails": { + "type": "object", + "properties": { + "status": { + "description": "The release status of a phone number.", + "enum": [ + "Pending", + "Success", + "Error", + "InProgress" + ], + "type": "string", + "x-ms-enum": { + "name": "PhoneNumberReleaseStatus", + "modelAsString": true + } + }, + "errorCode": { + "format": "int32", + "description": "The error code in the case the status is error.", + "type": "integer" + } + } + }, + "PhoneNumberRelease": { + "description": "Represents a release", + "type": "object", + "properties": { + "releaseId": { + "description": "The id of the release.", + "type": "string" + }, + "createdAt": { + "format": "date-time", + "description": "The creation time of the release.", + "type": "string" + }, + "status": { + "description": "The release status.", + "enum": [ + "Pending", + "InProgress", + "Complete", + "Failed", + "Expired" + ], + "type": "string", + "x-ms-enum": { + "name": "ReleaseStatus", + "modelAsString": true + } + }, + "errorMessage": { + "description": "The underlying error message of a release.", + "type": "string" + }, + "phoneNumberReleaseStatusDetails": { + "description": "The list of phone numbers in the release, mapped to its individual statuses.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/PhoneNumberReleaseDetails" + } + } + } + }, + "ReleaseRequest": { + "description": "Represents a release request.", + "required": [ + "phoneNumbers" + ], + "type": "object", + "properties": { + "phoneNumbers": { + "description": "The list of phone numbers in the release request.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ReleaseResponse": { + "description": "Represents a release response.", + "required": [ + "releaseId" + ], + "type": "object", + "properties": { + "releaseId": { + "description": "The release id of a created release.", + "type": "string" + } + } + }, + "PhoneNumberEntity": { + "description": "Represents a phone number entity, as part of the response when calling get all searches or releases.", + "type": "object", + "properties": { + "id": { + "description": "The id of the entity. It is the search id of a searc. It is the release id of a release.", + "type": "string" + }, + "createdAt": { + "format": "date-time", + "description": "Date and time the entity is created.", + "type": "string" + }, + "displayName": { + "description": "Name of the entity.", + "type": "string" + }, + "quantity": { + "format": "int32", + "description": "Quantity of requested phone numbers in the entity.", + "type": "integer" + }, + "quantityObtained": { + "format": "int32", + "description": "Quantity of acquired phone numbers in the entity.", + "type": "integer" + }, + "status": { + "description": "Status of the entity.", + "type": "string" + }, + "focDate": { + "format": "date-time", + "description": "The Firm Order Confirmation date of the phone number entity.", + "type": "string" + } + } + }, + "PhoneNumberEntities": { + "description": "Represents a list of searchs or releases, as part of the response when fetching all searches or releases.", + "type": "object", + "properties": { + "entities": { + "description": "The underlying list of entities.", + "type": "array", + "items": { + "$ref": "#/definitions/PhoneNumberEntity" + } + }, + "nextLink": { + "description": "Represents the URL link to the next page", + "type": "string" + } + } + }, + "PhoneNumberSearch": { + "description": "Represents a phone number search", + "type": "object", + "properties": { + "searchId": { + "description": "The id of the search.", + "type": "string" + }, + "displayName": { + "description": "The name of the search.", + "type": "string" + }, + "createdAt": { + "format": "date-time", + "description": "The creation time of the search.", + "type": "string" + }, + "description": { + "description": "The description of the search.", + "type": "string" + }, + "phonePlanIds": { + "description": "The phone plan ids of the search.", + "type": "array", + "items": { + "type": "string" + } + }, + "areaCode": { + "description": "The area code of the search.", + "type": "string" + }, + "quantity": { + "format": "int32", + "description": "The quantity of phone numbers in the search.", + "type": "integer" + }, + "locationOptions": { + "description": "The location options of the search.", + "type": "array", + "items": { + "$ref": "#/definitions/LocationOptionsDetails" + } + }, + "status": { + "description": "The status of the search.", + "enum": [ + "Pending", + "InProgress", + "Reserved", + "Expired", + "Expiring", + "Completing", + "Refreshing", + "Success", + "Manual", + "Cancelled", + "Cancelling", + "Error", + "PurchasePending" + ], + "type": "string", + "x-ms-enum": { + "name": "SearchStatus", + "modelAsString": true + } + }, + "phoneNumbers": { + "description": "The list of phone numbers in the search, in the case the status is reserved or success.", + "type": "array", + "items": { + "type": "string" + } + }, + "reservationExpiryDate": { + "format": "date-time", + "description": "The date that search expires and the numbers become available.", + "type": "string" + }, + "errorCode": { + "format": "int32", + "description": "The error code of the search.", + "type": "integer" + } + } + }, + "CreateSearchOptions": { + "description": "Represents a search creation option.", + "required": [ + "areaCode", + "description", + "displayName", + "phonePlanIds" + ], + "type": "object", + "properties": { + "displayName": { + "description": "Display name of the search.", + "maxLength": 255, + "type": "string" + }, + "description": { + "description": "Description of the search.", + "maxLength": 255, + "type": "string" + }, + "phonePlanIds": { + "description": "The plan subtype ids from which to create the search.", + "type": "array", + "items": { + "type": "string" + } + }, + "areaCode": { + "description": "The area code from which to create the search.", + "type": "string" + }, + "quantity": { + "format": "int32", + "description": "The quantity of phone numbers to request.", + "maximum": 2147483647, + "minimum": 1, + "type": "integer" + }, + "locationOptions": { + "description": "The location options of the search.", + "type": "array", + "items": { + "$ref": "#/definitions/LocationOptionsDetails" + } + } + } + }, + "CreateSearchResponse": { + "description": "Represents a search creation response.", + "required": [ + "searchId" + ], + "type": "object", + "properties": { + "searchId": { + "description": "The search id of the search that was created.", + "type": "string" + } + } + } + }, + "parameters": { + "ApiVersionParameter": { + "in": "query", + "name": "api-version", + "description": "Version of API to invoke", + "required": true, + "type": "string" + }, + "Endpoint": { + "in": "path", + "name": "endpoint", + "description": "The endpoint of the Azure Communication resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "client" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "description": "Azure Active Directory OAuth2 Flow" + } + }, + "x-ms-parameterized-host": { + "hostTemplate": "{endpoint}", + "useSchemePrefix": false, + "parameters": [ + { + "$ref": "#/parameters/Endpoint" + } + ] + } +} \ No newline at end of file From f3e9f31a8d0bf49f3c169c1f6f80d0ff041c200f Mon Sep 17 00:00:00 2001 From: whisper6284 <61473382+whisper6284@users.noreply.github.com> Date: Thu, 1 Oct 2020 14:30:33 -0700 Subject: [PATCH 2/9] Prettier fix and example fix --- .../examples/ConfigurePhoneNumberAsync.json | 5 ++--- .../examples/CreateReleaseAsync.json | 4 +++- .../examples/CreateSearchAsync.json | 4 +++- .../examples/GetAcquiredPhoneNumbersAsync.json | 18 ++++++++++++++---- .../examples/GetCountriesAsync.json | 1 - .../examples/GetLocationOptionsAsync.json | 2 +- .../examples/GetNumberConfigurationAsync.json | 16 ++++++++-------- .../examples/GetPhonePlanGroupsAsync.json | 3 +-- .../examples/GetPhonePlansAsync.json | 1 - .../examples/GetSearchByIdAsync.json | 4 +++- .../examples/UnconfigurePhoneNumberAsync.json | 6 +++--- .../phoneNumberAdministrationService.json | 2 +- 12 files changed, 39 insertions(+), 27 deletions(-) diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json index 7a1d5699fab7..78de2911776f 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json @@ -5,8 +5,7 @@ "phoneNumber": "+11234567890", "pstnConfiguration": { "callbackUrl": "www.callback.com", - "applicationId": "abc123", - "azurePstnTargetId": "acs:targetId" + "applicationId": "abc123" } }, "endpoint": "https://resourcename.region.dev.communications.azure.net/" @@ -14,4 +13,4 @@ "responses": { "202": {} } -} \ No newline at end of file +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateReleaseAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateReleaseAsync.json index 005e86f971ac..6c55d8cb860f 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateReleaseAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateReleaseAsync.json @@ -2,7 +2,9 @@ "parameters": { "api-version": "2020-07-20-preview1", "body": { - "phoneNumbers": [ "+11234567890" ] + "phoneNumbers": [ + "+11234567890" + ] }, "endpoint": "https://resourcename.region.dev.communications.azure.net/" }, diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateSearchAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateSearchAsync.json index dd7737510774..b5ab9e4c10ce 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateSearchAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateSearchAsync.json @@ -4,7 +4,9 @@ "body": { "displayName": "Name", "description": "Search Description", - "phonePlanIds": [ "0cc077cd-333a-39fd-90f7-560b1e06c63e" ], + "phonePlanIds": [ + "0cc077cd-333a-39fd-90f7-560b1e06c63e" + ], "areaCode": "425", "quantity": 2, "locationOptions": [ diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAcquiredPhoneNumbersAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAcquiredPhoneNumbersAsync.json index c382767b192f..f6b9ef21a0bb 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAcquiredPhoneNumbersAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAcquiredPhoneNumbersAsync.json @@ -11,16 +11,26 @@ "phoneNumbers": [ { "phoneNumber": "+11234567890", - "acquiredCapabilities": ["FirstPartyAppAssignment"], - "availableCapabilities": [ "FirstPartyAppAssignment", "UserAssignment" ], + "acquiredCapabilities": [ + "FirstPartyAppAssignment" + ], + "availableCapabilities": [ + "FirstPartyAppAssignment", + "UserAssignment" + ], "assignmentStatus": "Unassigned", "placeName": "Toll-Free, United States", "activationState": "Activated" }, { "phoneNumber": "+18003456789", - "acquiredCapabilities": [ "FirstPartyAppAssignment" ], - "availableCapabilities": [ "FirstPartyAppAssignment", "UserAssignment" ], + "acquiredCapabilities": [ + "FirstPartyAppAssignment" + ], + "availableCapabilities": [ + "FirstPartyAppAssignment", + "UserAssignment" + ], "assignmentStatus": "Unassigned", "placeName": "Toll-Free, United States", "activationState": "Activated" diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetCountriesAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetCountriesAsync.json index 078cf152bf30..162cc02780c9 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetCountriesAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetCountriesAsync.json @@ -23,7 +23,6 @@ } ] } - } } } diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetLocationOptionsAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetLocationOptionsAsync.json index 1c5c21db499f..d012af81a95e 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetLocationOptionsAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetLocationOptionsAsync.json @@ -68,4 +68,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberConfigurationAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberConfigurationAsync.json index 53fa9db05eaf..5bf1854425c4 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberConfigurationAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberConfigurationAsync.json @@ -6,15 +6,15 @@ }, "endpoint": "https://resourcename.region.dev.communications.azure.net/" }, - "responses": { - "200": { - "headers": {}, - "body": { - "pstnConfiguration": { - "callbackUrl": "www.callback.com", - "applicationId": "abc123" - } + "responses": { + "200": { + "headers": {}, + "body": { + "pstnConfiguration": { + "callbackUrl": "www.callback.com", + "applicationId": "abc123" } } } } +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlanGroupsAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlanGroupsAsync.json index 75c3161735ff..d40a10b90bdb 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlanGroupsAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlanGroupsAsync.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2020-07-20-preview1", - "countryCode": "US", + "countryCode": "US", "endpoint": "https://resourcename.region.dev.communications.azure.net/", "locale": "en-us" }, @@ -39,4 +39,3 @@ } } } - diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlansAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlansAsync.json index 5ed73f38b9b9..aba05f26d27a 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlansAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlansAsync.json @@ -28,4 +28,3 @@ } } } - diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetSearchByIdAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetSearchByIdAsync.json index 1cb8427dc8ca..6f4763381276 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetSearchByIdAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetSearchByIdAsync.json @@ -12,7 +12,9 @@ "displayName": "Numbers for Vancouver Office", "createdAt": "2020-06-18T17:11:52.5005818+00:00", "description": "Get some new numbers for our office in Vancouver", - "phonePlanIds": [ "0cc077cd-333a-39fd-90f7-560b1e06c63e" ], + "phonePlanIds": [ + "0cc077cd-333a-39fd-90f7-560b1e06c63e" + ], "areaCode": "604", "quantity": 1, "locationOptions": [], diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UnconfigurePhoneNumberAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UnconfigurePhoneNumberAsync.json index 7424d032c7bf..d9d30501a0d4 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UnconfigurePhoneNumberAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UnconfigurePhoneNumberAsync.json @@ -6,7 +6,7 @@ }, "endpoint": "https://resourcename.region.dev.communications.azure.net/" }, - "responses": { - "202": {} - } + "responses": { + "202": {} } +} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/phoneNumberAdministrationService.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/phoneNumberAdministrationService.json index 5371400ca346..bec35dcf54cc 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/phoneNumberAdministrationService.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/phoneNumberAdministrationService.json @@ -2053,4 +2053,4 @@ } ] } -} \ No newline at end of file +} From ac6f8b9012ecb28d4c0d044ec18895fa885fc70f Mon Sep 17 00:00:00 2001 From: whisper6284 <61473382+whisper6284@users.noreply.github.com> Date: Thu, 1 Oct 2020 14:33:50 -0700 Subject: [PATCH 3/9] Fix example configure/unconfigure responses to 200 --- .../2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json | 2 +- .../examples/UnconfigurePhoneNumberAsync.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json index 78de2911776f..4c450c0f5fc0 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json @@ -11,6 +11,6 @@ "endpoint": "https://resourcename.region.dev.communications.azure.net/" }, "responses": { - "202": {} + "200": {} } } diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UnconfigurePhoneNumberAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UnconfigurePhoneNumberAsync.json index d9d30501a0d4..5c1aa243741b 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UnconfigurePhoneNumberAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UnconfigurePhoneNumberAsync.json @@ -7,6 +7,6 @@ "endpoint": "https://resourcename.region.dev.communications.azure.net/" }, "responses": { - "202": {} + "200": {} } } From 8276fab1755d94b8d86a4851a3c30a324c12869d Mon Sep 17 00:00:00 2001 From: whisper6284 <61473382+whisper6284@users.noreply.github.com> Date: Thu, 1 Oct 2020 14:40:13 -0700 Subject: [PATCH 4/9] Fix spelling errors and update README. --- ... => communicationservicesadministration.json} | 16 ++++++++-------- specification/communication/data-plane/readme.md | 16 ++++++++++++++++ 2 files changed, 24 insertions(+), 8 deletions(-) rename specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/{phoneNumberAdministrationService.json => communicationservicesadministration.json} (99%) diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/phoneNumberAdministrationService.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/communicationservicesadministration.json similarity index 99% rename from specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/phoneNumberAdministrationService.json rename to specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/communicationservicesadministration.json index bec35dcf54cc..51b072d65fe2 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/phoneNumberAdministrationService.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/communicationservicesadministration.json @@ -23,7 +23,7 @@ { "in": "query", "name": "locale", - "description": "A language-locale pairing which will be used to localise the names of countries", + "description": "A language-locale pairing which will be used to localize the names of countries", "type": "string", "default": "en-US" }, @@ -243,7 +243,7 @@ { "in": "query", "name": "locale", - "description": "A language-locale pairing which will be used to localise the names of countries", + "description": "A language-locale pairing which will be used to localize the names of countries", "type": "string", "default": "en-US" }, @@ -448,7 +448,7 @@ { "in": "query", "name": "locale", - "description": "A language-locale pairing which will be used to localise the names of countries", + "description": "A language-locale pairing which will be used to localize the names of countries", "type": "string", "default": "en-US" }, @@ -530,7 +530,7 @@ { "in": "query", "name": "locale", - "description": "A language-locale pairing which will be used to localise the names of countries", + "description": "A language-locale pairing which will be used to localize the names of countries", "type": "string", "default": "en-US" }, @@ -612,7 +612,7 @@ { "in": "query", "name": "locale", - "description": "A language-locale pairing which will be used to localise the names of countries", + "description": "A language-locale pairing which will be used to localize the names of countries", "type": "string", "default": "en-US" }, @@ -1669,7 +1669,7 @@ } }, "LocationOptionsDetails": { - "description": "Represents location options deatils.", + "description": "Represents location options details.", "type": "object", "properties": { "name": { @@ -1818,7 +1818,7 @@ "type": "object", "properties": { "id": { - "description": "The id of the entity. It is the search id of a searc. It is the release id of a release.", + "description": "The id of the entity. It is the search id of a search. It is the release id of a release.", "type": "string" }, "createdAt": { @@ -1852,7 +1852,7 @@ } }, "PhoneNumberEntities": { - "description": "Represents a list of searchs or releases, as part of the response when fetching all searches or releases.", + "description": "Represents a list of searches or releases, as part of the response when fetching all searches or releases.", "type": "object", "properties": { "entities": { diff --git a/specification/communication/data-plane/readme.md b/specification/communication/data-plane/readme.md index e4d7480f69cd..5ca7d052d5c4 100644 --- a/specification/communication/data-plane/readme.md +++ b/specification/communication/data-plane/readme.md @@ -33,6 +33,22 @@ tag: package-2020-07-20-preview1 These settings apply only when `--tag=package-2020-07-20-preview1` is specified on the command line. +```yaml $(tag) == 'package-2020-07-20-preview1' +input-file: + - Microsoft.CommunicationServicesSms/preview/2020-07-20-preview1/communicationservicesadministration.json +title: + Azure Communication Services +``` + +```yaml +openapi-type: data-plane +tag: package-2020-07-20-preview1 +``` + +### Tag: package-2020-07-20-preview1 + +These settings apply only when `--tag=package-2020-07-20-preview1` is specified on the command line. + ```yaml $(tag) == 'package-2020-07-20-preview1' input-file: - Microsoft.CommunicationServicesSms/preview/2020-07-20-preview1/communicationservicessms.json From b57308826e4e030e1063dd74384dfdcb4d80c8f2 Mon Sep 17 00:00:00 2001 From: whisper6284 <61473382+whisper6284@users.noreply.github.com> Date: Thu, 1 Oct 2020 14:41:02 -0700 Subject: [PATCH 5/9] Fix read me --- specification/communication/data-plane/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/communication/data-plane/readme.md b/specification/communication/data-plane/readme.md index 5ca7d052d5c4..0b573a193c8a 100644 --- a/specification/communication/data-plane/readme.md +++ b/specification/communication/data-plane/readme.md @@ -35,7 +35,7 @@ These settings apply only when `--tag=package-2020-07-20-preview1` is specified ```yaml $(tag) == 'package-2020-07-20-preview1' input-file: - - Microsoft.CommunicationServicesSms/preview/2020-07-20-preview1/communicationservicesadministration.json + - Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/communicationservicesadministration.json title: Azure Communication Services ``` From a7be4db80f4f1bac748e8fdb56361ff43ac67988 Mon Sep 17 00:00:00 2001 From: whisper6284 <61473382+whisper6284@users.noreply.github.com> Date: Thu, 1 Oct 2020 15:34:10 -0700 Subject: [PATCH 6/9] . --- specification/communication/data-plane/readme.md | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/specification/communication/data-plane/readme.md b/specification/communication/data-plane/readme.md index 0b573a193c8a..32387d6d037d 100644 --- a/specification/communication/data-plane/readme.md +++ b/specification/communication/data-plane/readme.md @@ -36,21 +36,6 @@ These settings apply only when `--tag=package-2020-07-20-preview1` is specified ```yaml $(tag) == 'package-2020-07-20-preview1' input-file: - Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/communicationservicesadministration.json -title: - Azure Communication Services -``` - -```yaml -openapi-type: data-plane -tag: package-2020-07-20-preview1 -``` - -### Tag: package-2020-07-20-preview1 - -These settings apply only when `--tag=package-2020-07-20-preview1` is specified on the command line. - -```yaml $(tag) == 'package-2020-07-20-preview1' -input-file: - Microsoft.CommunicationServicesSms/preview/2020-07-20-preview1/communicationservicessms.json title: Azure Communication Services From 16cc13c56062644ae438e81b4bf058320fb5964f Mon Sep 17 00:00:00 2001 From: whisper6284 <61473382+whisper6284@users.noreply.github.com> Date: Thu, 1 Oct 2020 16:19:12 -0700 Subject: [PATCH 7/9] Add acceptable spelling errors. --- cSpell.json | 16 ++++++++++++++-- .../communicationservicesadministration.json | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/cSpell.json b/cSpell.json index 15c786ff967f..24271ac7e1cb 100644 --- a/cSpell.json +++ b/cSpell.json @@ -728,13 +728,25 @@ "Fcontoso", "Fpushpins" ] - } - , + }, { "filename": "**/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-09-21-preview2/communicationserviceschat.json", "words": [ "readreceipts" ] + }, + { + "filename": "**/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/communicationservicesadministration.json", + "words": [ + "areacodes", + "locationoptions", + "phonenumbers", + "phoneplangroups", + "phoneplans", + "pstn", + "unconfiguring" + + ] } ] } diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/communicationservicesadministration.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/communicationservicesadministration.json index 51b072d65fe2..84d87cd2c9b0 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/communicationservicesadministration.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/communicationservicesadministration.json @@ -1315,7 +1315,7 @@ "type": "object", "properties": { "capabilitiesUpdateId": { - "description": "The id of the phone number capabilties update", + "description": "The id of the phone number capabilities update", "type": "string" }, "createdAt": { From c5d75285d15a1dbb4b359d5d3c71ae16f78de5f4 Mon Sep 17 00:00:00 2001 From: whisper6284 <61473382+whisper6284@users.noreply.github.com> Date: Thu, 1 Oct 2020 16:19:24 -0700 Subject: [PATCH 8/9] . --- cSpell.json | 1 - 1 file changed, 1 deletion(-) diff --git a/cSpell.json b/cSpell.json index 24271ac7e1cb..851e31d46c51 100644 --- a/cSpell.json +++ b/cSpell.json @@ -745,7 +745,6 @@ "phoneplans", "pstn", "unconfiguring" - ] } ] From cdf4e5071c678ea58144f85bb3f2abfb4296c64b Mon Sep 17 00:00:00 2001 From: whisper6284 <61473382+whisper6284@users.noreply.github.com> Date: Fri, 2 Oct 2020 09:44:48 -0700 Subject: [PATCH 9/9] Rename example resource names and remove nulls from examples --- .../examples/CancelSearchAsync.json | 2 +- .../examples/ConfigurePhoneNumberAsync.json | 2 +- .../examples/CreateReleaseAsync.json | 2 +- .../examples/CreateSearchAsync.json | 2 +- .../examples/GetAcquiredPhoneNumbersAsync.json | 2 +- .../examples/GetAllReleasesAsync.json | 2 +- .../examples/GetAllSearchesAsync.json | 2 +- .../examples/GetAreaCodesAsync.json | 2 +- .../examples/GetCountriesAsync.json | 2 +- .../examples/GetLocationOptionsAsync.json | 17 ++++++----------- .../GetNumberCapabilitiesUpdateAsync.json | 2 +- .../examples/GetNumberConfigurationAsync.json | 2 +- .../examples/GetPhonePlanGroupsAsync.json | 10 +++------- .../examples/GetPhonePlansAsync.json | 3 +-- .../examples/GetReleaseByIdAsync.json | 2 +- .../examples/GetSearchByIdAsync.json | 6 ++---- .../examples/PurchaseSearchAsync.json | 2 +- .../examples/UnconfigurePhoneNumberAsync.json | 2 +- .../examples/UpdateNumberCapabilitiesAsync.json | 2 +- 19 files changed, 27 insertions(+), 39 deletions(-) diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CancelSearchAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CancelSearchAsync.json index 14ddcdf5a0d3..0d393b557bc5 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CancelSearchAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CancelSearchAsync.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2020-07-20-preview1", - "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "endpoint": "https://resourcename.communications.azure.net/", "searchId": "0cc077cd-333a-39fd-90f7-560b1e06c63e" }, "responses": { diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json index 4c450c0f5fc0..d95a9053bddb 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/ConfigurePhoneNumberAsync.json @@ -8,7 +8,7 @@ "applicationId": "abc123" } }, - "endpoint": "https://resourcename.region.dev.communications.azure.net/" + "endpoint": "https://resourcename.communications.azure.net/" }, "responses": { "200": {} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateReleaseAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateReleaseAsync.json index 6c55d8cb860f..b1c75ce1facd 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateReleaseAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateReleaseAsync.json @@ -6,7 +6,7 @@ "+11234567890" ] }, - "endpoint": "https://resourcename.region.dev.communications.azure.net/" + "endpoint": "https://resourcename.communications.azure.net/" }, "responses": { "200": { diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateSearchAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateSearchAsync.json index b5ab9e4c10ce..2e253c17abc1 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateSearchAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/CreateSearchAsync.json @@ -16,7 +16,7 @@ } ] }, - "endpoint": "https://resourcename.region.dev.communications.azure.net/" + "endpoint": "https://resourcename.communications.azure.net/" }, "responses": { "201": { diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAcquiredPhoneNumbersAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAcquiredPhoneNumbersAsync.json index f6b9ef21a0bb..3ad4280fe83a 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAcquiredPhoneNumbersAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAcquiredPhoneNumbersAsync.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2020-07-20-preview1", - "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "endpoint": "https://resourcename.communications.azure.net/", "locale": "en-us" }, "responses": { diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAllReleasesAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAllReleasesAsync.json index 3387fe9723c1..29a8ddb4979e 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAllReleasesAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAllReleasesAsync.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2020-07-20-preview1", - "endpoint": "https://resourcename.region.dev.communications.azure.net/" + "endpoint": "https://resourcename.communications.azure.net/" }, "responses": { "200": { diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAllSearchesAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAllSearchesAsync.json index 3387fe9723c1..29a8ddb4979e 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAllSearchesAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAllSearchesAsync.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2020-07-20-preview1", - "endpoint": "https://resourcename.region.dev.communications.azure.net/" + "endpoint": "https://resourcename.communications.azure.net/" }, "responses": { "200": { diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAreaCodesAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAreaCodesAsync.json index b2d381a8511c..1288173209cc 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAreaCodesAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetAreaCodesAsync.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2020-07-20-preview1", - "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "endpoint": "https://resourcename.communications.azure.net/", "locationType": "Selection", "countryCode": "CA", "phonePlanId": "0cc077cd-333a-39fd-90f7-560b1e06c63e" diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetCountriesAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetCountriesAsync.json index 162cc02780c9..fe4dbb0b999f 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetCountriesAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetCountriesAsync.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2020-07-20-preview1", - "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "endpoint": "https://resourcename.communications.azure.net/", "locale": "en-us" }, "responses": { diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetLocationOptionsAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetLocationOptionsAsync.json index d012af81a95e..b551fa840089 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetLocationOptionsAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetLocationOptionsAsync.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2020-07-20-preview1", "countryCode": "US", - "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "endpoint": "https://resourcename.communications.azure.net/", "phonePlanGroupId": "671ee064-662f-4c3b-82a9-af2ab200dd5c", "phonePlanId": "27b53eec-8ff4-4070-8900-fbeaabfd158a" }, @@ -24,8 +24,7 @@ "options": [ { "name": "Anchorage", - "value": "NOAM-US-AK-AN", - "locationOptions": null + "value": "NOAM-US-AK-AN" } ] } @@ -41,23 +40,19 @@ "options": [ { "name": "Birmingham", - "value": "NOAM-US-AL-BI", - "locationOptions": null + "value": "NOAM-US-AL-BI" }, { "name": "Huntsville", - "value": "NOAM-US-AL-HN", - "locationOptions": null + "value": "NOAM-US-AL-HN" }, { "name": "Mobile", - "value": "NOAM-US-AL-MO", - "locationOptions": null + "value": "NOAM-US-AL-MO" }, { "name": "Montgomery", - "value": "NOAM-US-AL-MN", - "locationOptions": null + "value": "NOAM-US-AL-MN" } ] } diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberCapabilitiesUpdateAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberCapabilitiesUpdateAsync.json index 415fb57173f5..11949cff84a3 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberCapabilitiesUpdateAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberCapabilitiesUpdateAsync.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2020-07-20-preview1", - "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "endpoint": "https://resourcename.communications.azure.net/", "capabilitiesUpdateId": "0cc077cd-333a-39fd-90f7-560b1e06c63e" }, "responses": { diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberConfigurationAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberConfigurationAsync.json index 5bf1854425c4..573d697b2934 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberConfigurationAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetNumberConfigurationAsync.json @@ -4,7 +4,7 @@ "body": { "phoneNumber": "+11234567890" }, - "endpoint": "https://resourcename.region.dev.communications.azure.net/" + "endpoint": "https://resourcename.communications.azure.net/" }, "responses": { "200": { diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlanGroupsAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlanGroupsAsync.json index d40a10b90bdb..f418ffd2ff23 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlanGroupsAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlanGroupsAsync.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2020-07-20-preview1", "countryCode": "US", - "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "endpoint": "https://resourcename.communications.azure.net/", "locale": "en-us" }, "responses": { @@ -15,11 +15,9 @@ "phoneNumberType": "Geographic", "localizedName": "Geographic", "localizedDescription": "These are Toll numbers", - "carrierDetails": null, "rateInformation": { "monthlyRate": 2.0, - "currencyType": "USD", - "rateErrorMessage": null + "currencyType": "USD" } }, { @@ -27,11 +25,9 @@ "phoneNumberType": "TollFree", "localizedName": "TollFree", "localizedDescription": "These are toll free numbers used by Azure resources.", - "carrierDetails": null, "rateInformation": { "monthlyRate": 1.0, - "currencyType": "USD", - "rateErrorMessage": null + "currencyType": "USD" } } ] diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlansAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlansAsync.json index aba05f26d27a..88ed446f84e8 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlansAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetPhonePlansAsync.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2020-07-20-preview1", "countryCode": "US", - "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "endpoint": "https://resourcename.communications.azure.net/", "phonePlanGroupId": "671ee064-662f-4c3b-82a9-af2ab200dd5c" }, "responses": { @@ -14,7 +14,6 @@ "phonePlanId": "27b53eec-8ff4-4070-8900-fbeaabfd158a", "localizedName": "Outbound Only PSTN - Geographic", "locationType": "Selection", - "areaCodes": null, "capabilities": [ "Azure", "OutboundCalling", diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetReleaseByIdAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetReleaseByIdAsync.json index 49c2b259456e..10813ab35c36 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetReleaseByIdAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetReleaseByIdAsync.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2020-07-20-preview1", - "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "endpoint": "https://resourcename.communications.azure.net/", "releaseId": "0cc077cd-333a-39fd-90f7-560b1e06c63e" }, "responses": { diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetSearchByIdAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetSearchByIdAsync.json index 6f4763381276..a0e892008493 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetSearchByIdAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/GetSearchByIdAsync.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2020-07-20-preview1", - "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "endpoint": "https://resourcename.communications.azure.net/", "searchId": "0cc077cd-333a-39fd-90f7-560b1e06c63e" }, "responses": { @@ -19,9 +19,7 @@ "quantity": 1, "locationOptions": [], "status": "completed", - "phoneNumbers": [], - "reservationExpiryDate": null, - "errorCode": null + "phoneNumbers": [] } } } diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/PurchaseSearchAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/PurchaseSearchAsync.json index 14ddcdf5a0d3..0d393b557bc5 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/PurchaseSearchAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/PurchaseSearchAsync.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2020-07-20-preview1", - "endpoint": "https://resourcename.region.dev.communications.azure.net/", + "endpoint": "https://resourcename.communications.azure.net/", "searchId": "0cc077cd-333a-39fd-90f7-560b1e06c63e" }, "responses": { diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UnconfigurePhoneNumberAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UnconfigurePhoneNumberAsync.json index 5c1aa243741b..e8da11cf3109 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UnconfigurePhoneNumberAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UnconfigurePhoneNumberAsync.json @@ -4,7 +4,7 @@ "body": { "phoneNumber": "+11234567890" }, - "endpoint": "https://resourcename.region.dev.communications.azure.net/" + "endpoint": "https://resourcename.communications.azure.net/" }, "responses": { "200": {} diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UpdateNumberCapabilitiesAsync.json b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UpdateNumberCapabilitiesAsync.json index 35a1923d7ae6..612b5f2b2740 100644 --- a/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UpdateNumberCapabilitiesAsync.json +++ b/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/examples/UpdateNumberCapabilitiesAsync.json @@ -19,7 +19,7 @@ } } }, - "endpoint": "https://resourcename.region.dev.communications.azure.net/" + "endpoint": "https://resourcename.communications.azure.net/" }, "responses": { "200": {