Skip to content

Commit

Permalink
refresh swagger link and auto generated code (#14210)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeliWang authored and Tural Farhadov committed Oct 2, 2020
1 parent ea3d6c3 commit 175ad0a
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 2,075 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_all_phone_numbers(
Gets the list of the acquired phone numbers.
:param locale: A language-locale pairing which will be used to localise the names of countries.
:param locale: A language-locale pairing which will be used to localize the names of countries.
:type locale: str
:param skip: An optional parameter for how many entries to skip, for pagination purposes.
:type skip: int
Expand Down Expand Up @@ -331,7 +331,7 @@ def get_all_supported_countries(
Gets a list of supported countries.
:param locale: A language-locale pairing which will be used to localise the names of countries.
:param locale: A language-locale pairing which will be used to localize the names of countries.
:type locale: str
:param skip: An optional parameter for how many entries to skip, for pagination purposes.
:type skip: int
Expand Down Expand Up @@ -607,7 +607,7 @@ def get_phone_plan_groups(
:param country_code: The ISO 3166-2 country code.
:type country_code: str
:param locale: A language-locale pairing which will be used to localise the names of countries.
:param locale: A language-locale pairing which will be used to localize the names of countries.
:type locale: str
:param include_rate_information:
:type include_rate_information: bool
Expand Down Expand Up @@ -704,7 +704,7 @@ def get_phone_plans(
:type country_code: str
:param phone_plan_group_id:
:type phone_plan_group_id: str
:param locale: A language-locale pairing which will be used to localise the names of countries.
:param locale: A language-locale pairing which will be used to localize the names of countries.
:type locale: str
:param skip: An optional parameter for how many entries to skip, for pagination purposes.
:type skip: int
Expand Down Expand Up @@ -800,7 +800,7 @@ async def get_phone_plan_location_options(
:type phone_plan_group_id: str
:param phone_plan_id:
:type phone_plan_id: str
:param locale: A language-locale pairing which will be used to localise the names of countries.
:param locale: A language-locale pairing which will be used to localize the names of countries.
:type locale: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: LocationOptionsResponse, or the result of cls(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def __init__(


class LocationOptionsDetails(msrest.serialization.Model):
"""Represents location options deatils.
"""Represents location options details.
:param name: The name of the location options.
:type name: str
Expand Down Expand Up @@ -527,7 +527,7 @@ def __init__(


class PhoneNumberEntities(msrest.serialization.Model):
"""Represents a list of searchs or releases, as part of the response when fetching all searches or releases.
"""Represents a list of searches or releases, as part of the response when fetching all searches or releases.
:param entities: The underlying list of entities.
:type entities: list[~azure.communication.administration.models.PhoneNumberEntity]
Expand All @@ -552,7 +552,7 @@ def __init__(
class PhoneNumberEntity(msrest.serialization.Model):
"""Represents a phone number entity, as part of the response when calling get all searches or releases.
:param id: The id of the entity. It is the search id of a searc. It is the release id of a
:param id: The id of the entity. It is the search id of a search. It is the release id of a
release.
:type id: str
:param created_at: Date and time the entity is created.
Expand Down Expand Up @@ -1025,7 +1025,7 @@ def __init__(
class UpdatePhoneNumberCapabilitiesResponse(msrest.serialization.Model):
"""Response for getting a phone number update capabilities.
:param capabilities_update_id: The id of the phone number capabilties update.
:param capabilities_update_id: The id of the phone number capabilities update.
:type capabilities_update_id: str
:param created_at: The time the capabilities update was created.
:type created_at: ~datetime.datetime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def __init__(


class LocationOptionsDetails(msrest.serialization.Model):
"""Represents location options deatils.
"""Represents location options details.
:param name: The name of the location options.
:type name: str
Expand Down Expand Up @@ -594,7 +594,7 @@ def __init__(


class PhoneNumberEntities(msrest.serialization.Model):
"""Represents a list of searchs or releases, as part of the response when fetching all searches or releases.
"""Represents a list of searches or releases, as part of the response when fetching all searches or releases.
:param entities: The underlying list of entities.
:type entities: list[~azure.communication.administration.models.PhoneNumberEntity]
Expand Down Expand Up @@ -622,7 +622,7 @@ def __init__(
class PhoneNumberEntity(msrest.serialization.Model):
"""Represents a phone number entity, as part of the response when calling get all searches or releases.
:param id: The id of the entity. It is the search id of a searc. It is the release id of a
:param id: The id of the entity. It is the search id of a search. It is the release id of a
release.
:type id: str
:param created_at: Date and time the entity is created.
Expand Down Expand Up @@ -1160,7 +1160,7 @@ def __init__(
class UpdatePhoneNumberCapabilitiesResponse(msrest.serialization.Model):
"""Response for getting a phone number update capabilities.
:param capabilities_update_id: The id of the phone number capabilties update.
:param capabilities_update_id: The id of the phone number capabilities update.
:type capabilities_update_id: str
:param created_at: The time the capabilities update was created.
:type created_at: ~datetime.datetime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_all_phone_numbers(
Gets the list of the acquired phone numbers.
:param locale: A language-locale pairing which will be used to localise the names of countries.
:param locale: A language-locale pairing which will be used to localize the names of countries.
:type locale: str
:param skip: An optional parameter for how many entries to skip, for pagination purposes.
:type skip: int
Expand Down Expand Up @@ -340,7 +340,7 @@ def get_all_supported_countries(
Gets a list of supported countries.
:param locale: A language-locale pairing which will be used to localise the names of countries.
:param locale: A language-locale pairing which will be used to localize the names of countries.
:type locale: str
:param skip: An optional parameter for how many entries to skip, for pagination purposes.
:type skip: int
Expand Down Expand Up @@ -620,7 +620,7 @@ def get_phone_plan_groups(
:param country_code: The ISO 3166-2 country code.
:type country_code: str
:param locale: A language-locale pairing which will be used to localise the names of countries.
:param locale: A language-locale pairing which will be used to localize the names of countries.
:type locale: str
:param include_rate_information:
:type include_rate_information: bool
Expand Down Expand Up @@ -718,7 +718,7 @@ def get_phone_plans(
:type country_code: str
:param phone_plan_group_id:
:type phone_plan_group_id: str
:param locale: A language-locale pairing which will be used to localise the names of countries.
:param locale: A language-locale pairing which will be used to localize the names of countries.
:type locale: str
:param skip: An optional parameter for how many entries to skip, for pagination purposes.
:type skip: int
Expand Down Expand Up @@ -815,7 +815,7 @@ def get_phone_plan_location_options(
:type phone_plan_group_id: str
:param phone_plan_id:
:type phone_plan_id: str
:param locale: A language-locale pairing which will be used to localise the names of countries.
:param locale: A language-locale pairing which will be used to localize the names of countries.
:type locale: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: LocationOptionsResponse, or the result of cls(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ autorest ./PHONE_NUMBER_SWAGGER.md

### Settings
``` yaml
input-file: ./phone_number_swagger.json
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/257f060be8b60d8468584682aa2d71b1faa5f82c/specification/communication/data-plane/Microsoft.CommunicationServicesAdministration/preview/2020-07-20-preview1/communicationservicesadministration.json
output-folder: ../azure/communication/administration/_phonenumber/_generated
namespace: azure.communication.administration
license-header: MICROSOFT_MIT_NO_VERSION
Expand Down
Loading

0 comments on commit 175ad0a

Please sign in to comment.