From f11ce9b5cb16a4a36c2e2f86bdd7a1383a679a42 Mon Sep 17 00:00:00 2001 From: Wayne Mo Date: Thu, 1 Oct 2020 11:37:37 -0700 Subject: [PATCH 1/2] Update swagger and regenerate code --- .../PhoneNumberAdministrationsImpl.java | 4 +- .../models/PstnConfiguration.java | 26 - .../swagger/PNM_Swagger.json | 3694 ++++++++--------- 3 files changed, 1847 insertions(+), 1877 deletions(-) diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/implementation/PhoneNumberAdministrationsImpl.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/implementation/PhoneNumberAdministrationsImpl.java index 6c426d5b931e..c886f5067f11 100644 --- a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/implementation/PhoneNumberAdministrationsImpl.java +++ b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/implementation/PhoneNumberAdministrationsImpl.java @@ -140,7 +140,7 @@ Mono> getNumberConfiguration( Context context); @Patch("/administration/phonenumbers/numberconfiguration/configure") - @ExpectedResponses({202}) + @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> configureNumber( @HostParam("endpoint") String endpoint, @@ -149,7 +149,7 @@ Mono> configureNumber( Context context); @Patch("/administration/phonenumbers/numberconfiguration/unconfigure") - @ExpectedResponses({202}) + @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> unconfigureNumber( @HostParam("endpoint") String endpoint, diff --git a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/PstnConfiguration.java b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/PstnConfiguration.java index fc6c8c672d61..5911e69cbb9d 100644 --- a/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/PstnConfiguration.java +++ b/sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/models/PstnConfiguration.java @@ -22,12 +22,6 @@ public final class PstnConfiguration { @JsonProperty(value = "applicationId") private String applicationId; - /* - * Routable TargetId for the ACS Number - */ - @JsonProperty(value = "azurePstnTargetId") - private String azurePstnTargetId; - /** * Get the callbackUrl property: The webhook URL on the phone number configuration. * @@ -67,24 +61,4 @@ public PstnConfiguration setApplicationId(String applicationId) { this.applicationId = applicationId; return this; } - - /** - * Get the azurePstnTargetId property: Routable TargetId for the ACS Number. - * - * @return the azurePstnTargetId value. - */ - public String getAzurePstnTargetId() { - return this.azurePstnTargetId; - } - - /** - * Set the azurePstnTargetId property: Routable TargetId for the ACS Number. - * - * @param azurePstnTargetId the azurePstnTargetId value to set. - * @return the PstnConfiguration object itself. - */ - public PstnConfiguration setAzurePstnTargetId(String azurePstnTargetId) { - this.azurePstnTargetId = azurePstnTargetId; - return this; - } } diff --git a/sdk/communication/azure-communication-administration/swagger/PNM_Swagger.json b/sdk/communication/azure-communication-administration/swagger/PNM_Swagger.json index c4e9f78440b9..ef652de3adaa 100644 --- a/sdk/communication/azure-communication-administration/swagger/PNM_Swagger.json +++ b/sdk/communication/azure-communication-administration/swagger/PNM_Swagger.json @@ -1,2060 +1,2056 @@ { - "swagger": "2.0", - "info": { - "title": "Phone Number Administration Service", - "description": "Phone Number Administration Service", - "contact": { - "email": "acsdevexdisc@microsoft.com" + "swagger": "2.0", + "info": { + "title": "Phone Number Administration Service", + "description": "Phone Number Administration Service", + "contact": { + "email": "acsdevexdisc@microsoft.com" + }, + "version": "2020-07-20-preview1" }, - "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 + "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" + } + } }, - { - "in": "query", - "name": "take", - "description": "An optional parameter for how many entries to return, for pagination purposes.", - "type": "integer", - "format": "int32", - "default": 100 + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "phoneNumbers" }, - { - "$ref": "#/parameters/ApiVersionParameter" + "x-ms-examples": { + "List acquired phone numbers": { + "$ref": "./examples/GetAcquiredPhoneNumbersAsync.json" + } } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/AcquiredPhoneNumbers" + } + }, + "/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" + } } }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "x-ms-examples": { + "Get area codes": { + "$ref": "./examples/GetAreaCodesAsync.json" } } - }, - "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" + }, + "/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" + } + } }, - { - "in": "body", - "name": "body", - "description": "Location options for when location type is selection.", - "schema": { - "$ref": "#/definitions/LocationOptionsQueries" + "x-ms-examples": { + "Get number capabilities update": { + "$ref": "./examples/GetNumberCapabilitiesUpdateAsync.json" } } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/AreaCodes" + } + }, + "/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" + } } }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "x-ms-examples": { + "Update number capabilities": { + "$ref": "./examples/UpdateNumberCapabilitiesAsync.json" } } - }, - "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" + }, + "/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" + } + } }, - { - "$ref": "#/parameters/ApiVersionParameter" + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "countries" + }, + "x-ms-examples": { + "Get countries": { + "$ref": "./examples/GetCountriesAsync.json" + } } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/UpdatePhoneNumberCapabilitiesResponse" + } + }, + "/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" + } } }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "x-ms-examples": { + "Get number configuration for phone number": { + "$ref": "./examples/GetNumberConfigurationAsync.json" } } - }, - "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" + }, + "/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" + } + } }, - { - "in": "body", - "name": "body", - "description": "", - "schema": { - "$ref": "#/definitions/UpdateNumberCapabilitiesRequest" + "x-ms-examples": { + "Configure phone number": { + "$ref": "./examples/ConfigurePhoneNumberAsync.json" } } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/UpdateNumberCapabilitiesResponse" + } + }, + "/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" + } } }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "x-ms-examples": { + "Unconfigure phone number": { + "$ref": "./examples/UnconfigurePhoneNumberAsync.json" } } - }, - "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 + }, + "/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" + } + } }, - { - "in": "query", - "name": "take", - "description": "An optional parameter for how many entries to return, for pagination purposes.", - "type": "integer", - "format": "int32", - "default": 100 + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "phonePlanGroups" }, - { - "$ref": "#/parameters/ApiVersionParameter" + "x-ms-examples": { + "Get plans": { + "$ref": "./examples/GetPhonePlanGroupsAsync.json" + } } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/PhoneNumberCountries" + } + }, + "/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" + } } }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "phonePlans" + }, + "x-ms-examples": { + "Get plans": { + "$ref": "./examples/GetPhonePlansAsync.json" } } - }, - "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" + }, + "/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/NumberConfigurationResponse" + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LocationOptionsResponse" + } + }, + "default": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "x-ms-examples": { + "Get plans": { + "$ref": "./examples/GetLocationOptionsAsync.json" } } - }, - "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" + }, + "/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" + } + } }, - { - "in": "body", - "name": "body", - "description": "Details of pstn number configuration of the given phoneNumber", - "schema": { - "$ref": "#/definitions/NumberConfiguration" + "x-ms-examples": { + "Get release by id": { + "$ref": "./examples/GetReleaseByIdAsync.json" } } - ], - "responses": { - "202": { - "description": "Success" + } + }, + "/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" + } + } }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "x-ms-examples": { + "Get release": { + "$ref": "./examples/CreateReleaseAsync.json" } } }, - "x-ms-examples": { - "Configure phone number": { - "$ref": "./examples/ConfigurePhoneNumberAsync.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/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" + }, + "/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" + } + } }, - { - "in": "body", - "name": "body", - "description": "The phone number to un-configure", - "schema": { - "$ref": "#/definitions/NumberConfigurationPhoneNumber" + "x-ms-examples": { + "Get search by search id": { + "$ref": "./examples/GetSearchByIdAsync.json" } } - ], - "responses": { - "202": { - "description": "Success" + } + }, + "/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" + } + } }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "x-ms-examples": { + "Create search": { + "$ref": "./examples/CreateSearchAsync.json" } } }, - "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 + "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" + } + } }, - { - "in": "query", - "name": "take", - "description": "An optional parameter for how many entries to return, for pagination purposes.", - "type": "integer", - "format": "int32", - "default": 100 + "x-ms-pageable": { + "nextLinkName": "nextLink", + "itemName": "entities" }, - { - "$ref": "#/parameters/ApiVersionParameter" + "x-ms-examples": { + "Get all searches": { + "$ref": "./examples/GetAllSearchesAsync.json" + } } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/PhonePlanGroups" + } + }, + "/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" + } } }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "x-ms-examples": { + "Cancel phone number search": { + "$ref": "./examples/CancelSearchAsync.json" } } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink", - "itemName": "phonePlanGroups" - }, - "x-ms-examples": { - "Get plans": { - "$ref": "./examples/GetPhonePlanGroupsAsync.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" + } } } } }, - "/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, + "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" }, - { - "in": "path", - "name": "phonePlanGroupId", - "required": true, - "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 + } + } }, - { - "in": "query", - "name": "locale", - "description": "A language-locale pairing which will be used to localise the names of countries", - "type": "string", - "default": "en-US" + "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 + } + } }, - { - "in": "query", - "name": "skip", - "description": "An optional parameter for how many entries to skip, for pagination purposes.", - "type": "integer", - "format": "int32", - "default": 0 + "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 + } }, - { - "in": "query", - "name": "take", - "description": "An optional parameter for how many entries to return, for pagination purposes.", - "type": "integer", - "format": "int32", - "default": 100 + "placeName": { + "description": "The name of the place of the phone number.", + "type": "string" }, - { - "$ref": "#/parameters/ApiVersionParameter" + "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 + } } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/PhonePlansResponse" + } + }, + "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" } }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink", - "itemName": "phonePlans" - }, - "x-ms-examples": { - "Get plans": { - "$ref": "./examples/GetPhonePlansAsync.json" + "nextLink": { + "description": "Represents the URL link to the next page", + "type": "string" } } - } - }, - "/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, + }, + "ErrorBody": { + "description": "Represents a service error response body.", + "type": "object", + "properties": { + "code": { + "description": "The error code in the error response.", "type": "string" }, - { - "in": "path", - "name": "phonePlanId", - "required": true, + "message": { + "description": "The error message in the error response.", "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" + } + }, + "ErrorResponse": { + "description": "Represents a service error response.", + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/ErrorBody" } } - } - }, - "/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, + }, + "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" }, - { - "$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" + "optionsValue": { + "description": "Represents the location options value, returned from the GetLocationOptions API.", + "type": "string" } } - } - }, - "/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" + }, + "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" } } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/ReleaseResponse" + } + }, + "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" } }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "secondaryAreaCodes": { + "description": "Represents the list of secondary area codes.", + "type": "array", + "items": { + "type": "string" } - } - }, - "x-ms-examples": { - "Get release": { - "$ref": "./examples/CreateReleaseAsync.json" + }, + "nextLink": { + "description": "Represents the URL link to the next page", + "type": "string" } } }, - "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" + "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 + } } }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "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 + } } } - }, - "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, + }, + "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" }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/PhoneNumberSearch" - } + "createdAt": { + "format": "date-time", + "description": "The time the capabilities update was created", + "type": "string" }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "capabilitiesUpdateStatus": { + "description": "Status of the capabilities update.", + "enum": [ + "Pending", + "InProgress", + "Complete", + "Error" + ], + "type": "string", + "x-ms-enum": { + "name": "CapabilitiesUpdateStatus", + "modelAsString": true } - } - }, - "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" + "phoneNumberCapabilitiesUpdates": { + "description": "The capabilities update for each of a set of phone numbers.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/NumberUpdateCapabilities" } } - ], - "responses": { - "201": { - "description": "Success", - "schema": { - "$ref": "#/definitions/CreateSearchResponse" - } - }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" + } + }, + "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" } } - }, - "x-ms-examples": { - "Create search": { - "$ref": "./examples/CreateSearchAsync.json" + } + }, + "UpdateNumberCapabilitiesResponse": { + "description": "Represents a number capability update response.", + "required": [ + "capabilitiesUpdateId" + ], + "type": "object", + "properties": { + "capabilitiesUpdateId": { + "description": "The capabilities id", + "type": "string" } } }, - "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 + "PhoneNumberCountry": { + "description": "Represents a country.", + "required": [ + "countryCode", + "localizedName" + ], + "type": "object", + "properties": { + "localizedName": { + "description": "Represents the name of the country.", + "type": "string" }, - { - "$ref": "#/parameters/ApiVersionParameter" + "countryCode": { + "description": "Represents the abbreviated name of the country.", + "type": "string" } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/PhoneNumberEntities" + } + }, + "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" } }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "nextLink": { + "description": "Represents the URL link to the next page", + "type": "string" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink", - "itemName": "entities" - }, - "x-ms-examples": { - "Get all searches": { - "$ref": "./examples/GetAllSearchesAsync.json" + } + }, + "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" } } - } - }, - "/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, + }, + "PstnConfiguration": { + "description": "Definition for pstn number configuration", + "required": [ + "callbackUrl" + ], + "type": "object", + "properties": { + "callbackUrl": { + "description": "The webhook URL on the phone number configuration.", "type": "string" }, - { - "$ref": "#/parameters/ApiVersionParameter" + "applicationId": { + "description": "The application id of the application to which to configure", + "type": "string" } + } + }, + "NumberConfigurationResponse": { + "description": "Definition for number configuration", + "required": [ + "pstnConfiguration" ], - "responses": { - "202": { - "description": "Success" - }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "type": "object", + "properties": { + "pstnConfiguration": { + "$ref": "#/definitions/PstnConfiguration" } - }, - "x-ms-examples": { - "Cancel phone number search": { - "$ref": "./examples/CancelSearchAsync.json" + } + }, + "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" } } - } - }, - "/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, + }, + "CarrierDetails": { + "description": "Represents carrier details.", + "type": "object", + "properties": { + "name": { + "description": "Name of carrier details", "type": "string" }, - { - "$ref": "#/parameters/ApiVersionParameter" + "localizedName": { + "description": "Display name of carrier details", + "type": "string" } - ], - "responses": { - "202": { - "description": "Success" + } + }, + "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" }, - "default": { - "description": "Failure", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "currencyType": { + "description": "The currency of a phone plan group", + "enum": [ + "USD" + ], + "type": "string", + "x-ms-enum": { + "name": "CurrencyType", + "modelAsString": true } - } - }, - "x-ms-examples": { - "Purchase phone number search": { - "$ref": "./examples/PurchaseSearchAsync.json" + }, + "rateErrorMessage": { + "description": "The error code of a phone plan group", + "type": "string" } } - } - } - }, - "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.", + }, + "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": [ - "UserAssignment", - "FirstPartyVoiceAppAssignment", - "ConferenceAssignment", - "P2PSmsEnabled", + "Unknown", "Geographic", - "NonGeographic", - "TollCalling", - "TollFreeCalling", - "Premium", - "P2PSmsCapable", - "A2PSmsCapable", - "A2PSmsEnabled", - "Calling", "TollFree", - "FirstPartyAppAssignment", - "ThirdPartyAppAssignment", - "Azure", - "Office365", - "InboundCalling", - "OutboundCalling", - "InboundA2PSms", - "OutboundA2PSms", - "InboundP2PSms", - "OutboundP2PSms" + "Indirect" ], "type": "string", "x-ms-enum": { - "name": "Capability", + "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" } - }, - "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.", + } + }, + "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": [ - "UserAssignment", - "FirstPartyVoiceAppAssignment", - "ConferenceAssignment", - "P2PSmsEnabled", - "Geographic", - "NonGeographic", - "TollCalling", - "TollFreeCalling", - "Premium", - "P2PSmsCapable", - "A2PSmsCapable", - "A2PSmsEnabled", - "Calling", - "TollFree", - "FirstPartyAppAssignment", - "ThirdPartyAppAssignment", - "Azure", - "Office365", - "InboundCalling", - "OutboundCalling", - "InboundA2PSms", - "OutboundA2PSms", - "InboundP2PSms", - "OutboundP2PSms" + "CivicAddress", + "NotRequired", + "Selection" ], "type": "string", "x-ms-enum": { - "name": "Capability", + "name": "LocationType", "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 + }, + "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" } } - } - }, - "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" + }, + "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" } - }, - "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" + }, + "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" + } } } - } - }, - "AreaCodes": { - "description": "Represents a list of area codes.", - "type": "object", - "properties": { - "primaryAreaCodes": { - "description": "Represents the list of primary area codes.", - "type": "array", - "items": { + }, + "LocationOptions": { + "description": "Represents a location options.", + "type": "object", + "properties": { + "labelId": { + "description": "The label id of the location.", "type": "string" - } - }, - "secondaryAreaCodes": { - "description": "Represents the list of secondary area codes.", - "type": "array", - "items": { + }, + "labelName": { + "description": "The display name of the location.", "type": "string" + }, + "options": { + "description": "The underlying location option details.", + "type": "array", + "items": { + "$ref": "#/definitions/LocationOptionsDetails" + } } - }, - "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.", + }, + "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": [ - "UserAssignment", - "FirstPartyVoiceAppAssignment", - "ConferenceAssignment", - "P2PSmsEnabled", - "Geographic", - "NonGeographic", - "TollCalling", - "TollFreeCalling", - "Premium", - "P2PSmsCapable", - "A2PSmsCapable", - "A2PSmsEnabled", - "Calling", - "TollFree", - "FirstPartyAppAssignment", - "ThirdPartyAppAssignment", - "Azure", - "Office365", - "InboundCalling", - "OutboundCalling", - "InboundA2PSms", - "OutboundA2PSms", - "InboundP2PSms", - "OutboundP2PSms" + "Pending", + "Success", + "Error", + "InProgress" ], "type": "string", "x-ms-enum": { - "name": "Capability", + "name": "PhoneNumberReleaseStatus", "modelAsString": true } + }, + "errorCode": { + "format": "int32", + "description": "The error code in the case the status is error.", + "type": "integer" } - }, - "remove": { - "description": "Capabilities to be removed from a phone number", - "type": "array", - "items": { - "description": "Represents the capabilities of a phone number.", + } + }, + "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": [ - "UserAssignment", - "FirstPartyVoiceAppAssignment", - "ConferenceAssignment", - "P2PSmsEnabled", - "Geographic", - "NonGeographic", - "TollCalling", - "TollFreeCalling", - "Premium", - "P2PSmsCapable", - "A2PSmsCapable", - "A2PSmsEnabled", - "Calling", - "TollFree", - "FirstPartyAppAssignment", - "ThirdPartyAppAssignment", - "Azure", - "Office365", - "InboundCalling", - "OutboundCalling", - "InboundA2PSms", - "OutboundA2PSms", - "InboundP2PSms", - "OutboundP2PSms" + "Pending", + "InProgress", + "Complete", + "Failed", + "Expired" ], "type": "string", "x-ms-enum": { - "name": "Capability", + "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" + } } } - } - }, - "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" + }, + "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" + } } - }, - "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" - }, - "azurePstnTargetId": { - "description": "Routable TargetId for the ACS Number", - "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 + }, + "ReleaseResponse": { + "description": "Represents a release response.", + "required": [ + "releaseId" + ], + "type": "object", + "properties": { + "releaseId": { + "description": "The release id of a created release.", + "type": "string" } - }, - "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 + }, + "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" } - }, - "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" + }, + "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" } - }, - "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": { + }, + "PhoneNumberSearch": { + "description": "Represents a phone number search", + "type": "object", + "properties": { + "searchId": { + "description": "The id of the search.", "type": "string" - } - }, - "capabilities": { - "description": "Capabilities of the phone plan.", - "type": "array", - "items": { - "description": "Represents the capabilities of a phone number.", + }, + "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": [ - "UserAssignment", - "FirstPartyVoiceAppAssignment", - "ConferenceAssignment", - "P2PSmsEnabled", - "Geographic", - "NonGeographic", - "TollCalling", - "TollFreeCalling", - "Premium", - "P2PSmsCapable", - "A2PSmsCapable", - "A2PSmsEnabled", - "Calling", - "TollFree", - "FirstPartyAppAssignment", - "ThirdPartyAppAssignment", - "Azure", - "Office365", - "InboundCalling", - "OutboundCalling", - "InboundA2PSms", - "OutboundA2PSms", - "InboundP2PSms", - "OutboundP2PSms" + "Pending", + "InProgress", + "Reserved", + "Expired", + "Expiring", + "Completing", + "Refreshing", + "Success", + "Manual", + "Cancelled", + "Cancelling", + "Error", + "PurchasePending" ], "type": "string", "x-ms-enum": { - "name": "Capability", + "name": "SearchStatus", "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": { + }, + "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" } } - } - }, - "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": { + }, + "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" - } - }, - "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": { + }, + "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" + } } - }, - "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": { + }, + "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" } - }, - "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" } - } - }, - "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" + "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" } - ] - } -} \ No newline at end of file + }, + "x-ms-parameterized-host": { + "hostTemplate": "{endpoint}", + "useSchemePrefix": false, + "parameters": [ + { + "$ref": "#/parameters/Endpoint" + } + ] + } + } \ No newline at end of file From c0e5e4512ad37f97d0be8129898694a6d3b56a19 Mon Sep 17 00:00:00 2001 From: Wayne Mo Date: Thu, 1 Oct 2020 11:38:16 -0700 Subject: [PATCH 2/2] Fix tests after code regeneration --- .../PhoneNumberAsyncClientIntegrationTest.java | 6 ++---- .../administration/PhoneNumberClientIntegrationTest.java | 6 ++---- .../src/test/resources/session-records/configureNumber.json | 2 +- .../session-records/configureNumberWithResponse.json | 2 +- .../resources/session-records/getNumberConfiguration.json | 2 +- .../session-records/getNumberConfigurationWithResponse.json | 2 +- .../test/resources/session-records/unconfigureNumber.json | 2 +- .../session-records/unconfigureNumberWithResponse.json | 2 +- 8 files changed, 10 insertions(+), 14 deletions(-) diff --git a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberAsyncClientIntegrationTest.java b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberAsyncClientIntegrationTest.java index 39f8f51e619c..73e101c2c66c 100644 --- a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberAsyncClientIntegrationTest.java +++ b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberAsyncClientIntegrationTest.java @@ -346,7 +346,6 @@ public void configureNumber() { PhoneNumber number = new PhoneNumber(PHONENUMBER_TO_CONFIGURE); PstnConfiguration pstnConfiguration = new PstnConfiguration(); pstnConfiguration.setApplicationId("ApplicationId"); - pstnConfiguration.setAzurePstnTargetId("AzurePstnTargetId"); pstnConfiguration.setCallbackUrl("https://callbackurl"); Mono mono = this.getClient().configureNumber(number, pstnConfiguration); @@ -359,14 +358,13 @@ public void configureNumberWithResponse() { PhoneNumber number = new PhoneNumber(PHONENUMBER_TO_CONFIGURE); PstnConfiguration pstnConfiguration = new PstnConfiguration(); pstnConfiguration.setApplicationId("ApplicationId"); - pstnConfiguration.setAzurePstnTargetId("AzurePstnTargetId"); pstnConfiguration.setCallbackUrl("https://callbackurl"); Mono> mono = this.getClient().configureNumberWithResponse(number, pstnConfiguration, Context.NONE); StepVerifier.create(mono) .assertNext(item -> { - assertEquals(202, item.getStatusCode()); + assertEquals(200, item.getStatusCode()); }) .verifyComplete(); } @@ -416,7 +414,7 @@ public void unconfigureNumberWithResponse() { StepVerifier.create(mono) .assertNext(item -> { - assertEquals(202, item.getStatusCode()); + assertEquals(200, item.getStatusCode()); }) .verifyComplete(); } diff --git a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberClientIntegrationTest.java b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberClientIntegrationTest.java index ea0ec3161be3..5a189e0e42dd 100644 --- a/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberClientIntegrationTest.java +++ b/sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/PhoneNumberClientIntegrationTest.java @@ -264,7 +264,6 @@ public void configureNumber() { PhoneNumber number = new PhoneNumber(PHONENUMBER_TO_CONFIGURE); PstnConfiguration pstnConfiguration = new PstnConfiguration(); pstnConfiguration.setApplicationId("ApplicationId"); - pstnConfiguration.setAzurePstnTargetId("AzurePstnTargetId"); pstnConfiguration.setCallbackUrl("https://callbackurl"); this.getClient().configureNumber(number, pstnConfiguration); @@ -275,12 +274,11 @@ public void configureNumberWithResponse() { PhoneNumber number = new PhoneNumber(PHONENUMBER_TO_CONFIGURE); PstnConfiguration pstnConfiguration = new PstnConfiguration(); pstnConfiguration.setApplicationId("ApplicationId"); - pstnConfiguration.setAzurePstnTargetId("AzurePstnTargetId"); pstnConfiguration.setCallbackUrl("https://callbackurl"); Response response = this.getClient().configureNumberWithResponse(number, pstnConfiguration, Context.NONE); - assertEquals(202, response.getStatusCode()); + assertEquals(200, response.getStatusCode()); } @Test() @@ -315,7 +313,7 @@ public void unconfigureNumberWithResponse() { Response response = this.getClient().unconfigureNumberWithResponse(number, Context.NONE); - assertEquals(202, response.getStatusCode()); + assertEquals(200, response.getStatusCode()); } @Test() diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/configureNumber.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/configureNumber.json index 010d7f6bb53a..277986f249dc 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/configureNumber.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/configureNumber.json @@ -12,7 +12,7 @@ "retry-after" : "0", "X-Azure-Ref" : "0R3xpXwAAAADR0b9AJJ/fT4MZwVQ912XOWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "Content-Length" : "0", - "StatusCode" : "202", + "StatusCode" : "200", "Date" : "Tue, 22 Sep 2020 04:23:34 GMT" }, "Exception" : null diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/configureNumberWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/configureNumberWithResponse.json index 0b187667e67d..fa05ca42d6c5 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/configureNumberWithResponse.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/configureNumberWithResponse.json @@ -12,7 +12,7 @@ "retry-after" : "0", "X-Azure-Ref" : "0RXxpXwAAAAA/H8wY0GrvSaITi8Q5Mz9xWVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "Content-Length" : "0", - "StatusCode" : "202", + "StatusCode" : "200", "Date" : "Tue, 22 Sep 2020 04:23:33 GMT" }, "Exception" : null diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getNumberConfiguration.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getNumberConfiguration.json index b209d46bf039..a1e9f70925f5 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getNumberConfiguration.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getNumberConfiguration.json @@ -13,7 +13,7 @@ "retry-after" : "0", "X-Azure-Ref" : "0RXxpXwAAAAAip43zYy9hQKnfk3RZ1OJ6WVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"pstnConfiguration\":{\"callbackUrl\":\"https://callbackurl\",\"applicationId\":\"ApplicationId\",\"azurePstnTargetId\":\"AzurePstnTargetId\"}}", + "Body" : "{\"pstnConfiguration\":{\"callbackUrl\":\"https://callbackurl\",\"applicationId\":\"ApplicationId\"}}", "Date" : "Tue, 22 Sep 2020 04:23:33 GMT", "Content-Type" : "application/json; charset=utf-8" }, diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getNumberConfigurationWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getNumberConfigurationWithResponse.json index 8a93a955abb1..db63c4d5590d 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/getNumberConfigurationWithResponse.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/getNumberConfigurationWithResponse.json @@ -13,7 +13,7 @@ "retry-after" : "0", "X-Azure-Ref" : "0RXxpXwAAAAAip43zYy9hQKnfk3RZ1OJ6WVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "200", - "Body" : "{\"pstnConfiguration\":{\"callbackUrl\":\"https://callbackurl\",\"applicationId\":\"ApplicationId\",\"azurePstnTargetId\":\"AzurePstnTargetId\"}}", + "Body" : "{\"pstnConfiguration\":{\"callbackUrl\":\"https://callbackurl\",\"applicationId\":\"ApplicationId\"}}", "Date" : "Tue, 22 Sep 2020 04:23:33 GMT", "Content-Type" : "application/json; charset=utf-8" }, diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/unconfigureNumber.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/unconfigureNumber.json index ae1be3f9cf1d..c4c60f88b5f0 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/unconfigureNumber.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/unconfigureNumber.json @@ -12,7 +12,7 @@ "retry-after" : "0", "X-Azure-Ref" : "0SXxpXwAAAACzA2zcS3YsSbP9fYFrMoz/WVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "Content-Length" : "0", - "StatusCode" : "202", + "StatusCode" : "200", "Date" : "Tue, 22 Sep 2020 04:23:36 GMT" }, "Exception" : null diff --git a/sdk/communication/azure-communication-administration/src/test/resources/session-records/unconfigureNumberWithResponse.json b/sdk/communication/azure-communication-administration/src/test/resources/session-records/unconfigureNumberWithResponse.json index 826078fb6444..79e8e91e4aed 100644 --- a/sdk/communication/azure-communication-administration/src/test/resources/session-records/unconfigureNumberWithResponse.json +++ b/sdk/communication/azure-communication-administration/src/test/resources/session-records/unconfigureNumberWithResponse.json @@ -12,7 +12,7 @@ "retry-after" : "0", "X-Azure-Ref" : "0SXxpXwAAAACzA2zcS3YsSbP9fYFrMoz/WVZSMzBFREdFMDMwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "Content-Length" : "0", - "StatusCode" : "202", + "StatusCode" : "200", "Date" : "Tue, 22 Sep 2020 04:23:36 GMT" }, "Exception" : null