Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.PhoneNumbersResource

The "phoneNumbers" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.PhoneNumbersResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Dialogflow.v2beta1
Assembly: Google.Apis.Dialogflow.v2beta1.dll
Syntax
public class ProjectsResource.LocationsResource.PhoneNumbersResource

Constructors

PhoneNumbersResource(IClientService)

Constructs a new resource.

Declaration
public PhoneNumbersResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Delete(string)

Requests deletion of a PhoneNumber. The PhoneNumber is moved into the DELETE_REQUESTED state immediately, and is deleted approximately 30 days later. This method may only be called on a PhoneNumber in the ACTIVE state.

Declaration
public virtual ProjectsResource.LocationsResource.PhoneNumbersResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The unique identifier of the PhoneNumber to delete. Format: projects//phoneNumbers/. Format: projects//locations//phoneNumbers/.

Returns
Type Description
ProjectsResource.LocationsResource.PhoneNumbersResource.DeleteRequest

List(string)

Returns the list of all phone numbers in the specified project.

Declaration
public virtual ProjectsResource.LocationsResource.PhoneNumbersResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The project to list all PhoneNumber resources from. Format: projects/. Format: projects//locations/.

Returns
Type Description
ProjectsResource.LocationsResource.PhoneNumbersResource.ListRequest

Patch(GoogleCloudDialogflowV2beta1PhoneNumber, string)

Updates the specified PhoneNumber.

Declaration
public virtual ProjectsResource.LocationsResource.PhoneNumbersResource.PatchRequest Patch(GoogleCloudDialogflowV2beta1PhoneNumber body, string name)
Parameters
Type Name Description
GoogleCloudDialogflowV2beta1PhoneNumber body

The body of the request.

string name

Optional. The unique identifier of this phone number. Required for PhoneNumbers.UpdatePhoneNumber method. Format: projects//phoneNumbers/. Format: projects//locations//phoneNumbers/.

Returns
Type Description
ProjectsResource.LocationsResource.PhoneNumbersResource.PatchRequest

Undelete(GoogleCloudDialogflowV2beta1UndeletePhoneNumberRequest, string)

Cancels the deletion request for a PhoneNumber. This method may only be called on a PhoneNumber in the DELETE_REQUESTED state.

Declaration
public virtual ProjectsResource.LocationsResource.PhoneNumbersResource.UndeleteRequest Undelete(GoogleCloudDialogflowV2beta1UndeletePhoneNumberRequest body, string name)
Parameters
Type Name Description
GoogleCloudDialogflowV2beta1UndeletePhoneNumberRequest body

The body of the request.

string name

Required. The unique identifier of the PhoneNumber to delete. Format: projects//phoneNumbers/. Format: projects//locations//phoneNumbers/.

Returns
Type Description
ProjectsResource.LocationsResource.PhoneNumbersResource.UndeleteRequest
In this article
Back to top Generated by DocFX