Contact Center AI Platform API . projects . locations . contactCenters . phoneNumbers

Instance Methods

close()

Close httplib2 connections.

list(parent, pageSize=None, pageToken=None, x__xgafv=None)

Lists phone numbers allocated to a single ContactCenter.

list_next(previous_request, previous_response)

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists phone numbers allocated to a single ContactCenter.

Args:
  parent: string, Required. The parent ContactCenter resource name. Format: projects/{project}/locations/{location}/contactCenters/{contact_center} (required)
  pageSize: integer, Optional. Requested page size. The maximum value is 1000; values above 1000 will be coerced to 1000. If unspecified, the default page size is 500.
  pageToken: string, Optional. Page token from a previous ListPhoneNumbers call.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for ListPhoneNumbers.
  "nextPageToken": "A String", # Token identifying the next page of results.
  "phoneNumbers": [ # The list of phone numbers allocated to the ContactCenter.
    { # Message describing a phone number allocated to a ContactCenter tenant.
      "assignmentState": "A String", # Output only. Current assignment and lifecycle state.
      "carrier": "A String", # Output only. Underlying carrier hosting the number.
      "complianceState": "A String", # Output only. Regulatory compliance state.
      "countryCode": "A String", # Output only. ISO 3166-1 alpha-2 country code (e.g., "US", "GB", "IT").
      "createTime": "A String", # Output only. Timestamp when the phone number was added to the tenant.
      "numberType": "A String", # Output only. Tariff and routing classification.
      "phoneNumber": "A String", # Output only. E.164 formatted phone number (e.g., "+16502530000").
      "regulatoryBundleId": "A String", # Output only. Reference ID for the country-specific regulatory bundle, or "LEGACY_VERIFIED".
      "smsState": "A String", # Output only. SMS capability state.
      "updateTime": "A String", # Output only. Timestamp when the phone number record was last modified.
      "voiceEnabled": True or False, # Output only. Whether voice capabilities are enabled for this phone number.
    },
  ],
}
list_next(previous_request, previous_response)
Retrieves the next page of results.

Args:
  previous_request: The request for the previous page. (required)
  previous_response: The response from the request for the previous page. (required)

Returns:
  A request object that you can call 'execute()' on to request the next
  page. Returns None if there are no more items in the collection.