Show / Hide Table of Contents

Class FoldersResource.ContactsResource

The "contacts" collection of methods.

Inheritance
object
FoldersResource.ContactsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Essentialcontacts.v1
Assembly: Google.Apis.Essentialcontacts.v1.dll
Syntax
public class FoldersResource.ContactsResource

Constructors

ContactsResource(IClientService)

Constructs a new resource.

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

Methods

Compute(string)

Lists all contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

Declaration
public virtual FoldersResource.ContactsResource.ComputeRequest Compute(string parent)
Parameters
Type Name Description
string parent

Required. The name of the resource to compute contacts for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

Returns
Type Description
FoldersResource.ContactsResource.ComputeRequest

Create(GoogleCloudEssentialcontactsV1Contact, string)

Adds a new contact for a resource.

Declaration
public virtual FoldersResource.ContactsResource.CreateRequest Create(GoogleCloudEssentialcontactsV1Contact body, string parent)
Parameters
Type Name Description
GoogleCloudEssentialcontactsV1Contact body

The body of the request.

string parent

Required. The resource to save this contact for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

Returns
Type Description
FoldersResource.ContactsResource.CreateRequest

Delete(string)

Deletes a contact.

Declaration
public virtual FoldersResource.ContactsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the contact to delete. Format: organizations/{organization_id}/contacts/{contact_id}, folders/{folder_id}/contacts/{contact_id} or projects/{project_id}/contacts/{contact_id}

Returns
Type Description
FoldersResource.ContactsResource.DeleteRequest

Get(string)

Gets a single contact.

Declaration
public virtual FoldersResource.ContactsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the contact to retrieve. Format: organizations/{organization_id}/contacts/{contact_id}, folders/{folder_id}/contacts/{contact_id} or projects/{project_id}/contacts/{contact_id}

Returns
Type Description
FoldersResource.ContactsResource.GetRequest

List(string)

Lists the contacts that have been set on a resource.

Declaration
public virtual FoldersResource.ContactsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The parent resource name. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

Returns
Type Description
FoldersResource.ContactsResource.ListRequest

Patch(GoogleCloudEssentialcontactsV1Contact, string)

Updates a contact. Note: A contact's email address cannot be changed.

Declaration
public virtual FoldersResource.ContactsResource.PatchRequest Patch(GoogleCloudEssentialcontactsV1Contact body, string name)
Parameters
Type Name Description
GoogleCloudEssentialcontactsV1Contact body

The body of the request.

string name

Output only. The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}

Returns
Type Description
FoldersResource.ContactsResource.PatchRequest

SendTestMessage(GoogleCloudEssentialcontactsV1SendTestMessageRequest, string)

Allows a contact admin to send a test message to contact to verify that it has been configured correctly.

Declaration
public virtual FoldersResource.ContactsResource.SendTestMessageRequest SendTestMessage(GoogleCloudEssentialcontactsV1SendTestMessageRequest body, string resource)
Parameters
Type Name Description
GoogleCloudEssentialcontactsV1SendTestMessageRequest body

The body of the request.

string resource

Required. The name of the resource to send the test message for. All contacts must either be set directly on this resource or inherited from another resource that is an ancestor of this one. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

Returns
Type Description
FoldersResource.ContactsResource.SendTestMessageRequest
In This Article
Back to top Generated by DocFX