Class ProjectsResource.ContactsResource
The "contacts" collection of methods.
Inherited Members
Namespace: Google.Apis.Essentialcontacts.v1
Assembly: Google.Apis.Essentialcontacts.v1.dll
Syntax
public class ProjectsResource.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 ProjectsResource.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 |
---|---|
ProjectsResource.ContactsResource.ComputeRequest |
Create(GoogleCloudEssentialcontactsV1Contact, string)
Adds a new contact for a resource.
Declaration
public virtual ProjectsResource.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 |
---|---|
ProjectsResource.ContactsResource.CreateRequest |
Delete(string)
Deletes a contact.
Declaration
public virtual ProjectsResource.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 |
---|---|
ProjectsResource.ContactsResource.DeleteRequest |
Get(string)
Gets a single contact.
Declaration
public virtual ProjectsResource.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 |
---|---|
ProjectsResource.ContactsResource.GetRequest |
List(string)
Lists the contacts that have been set on a resource.
Declaration
public virtual ProjectsResource.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 |
---|---|
ProjectsResource.ContactsResource.ListRequest |
Patch(GoogleCloudEssentialcontactsV1Contact, string)
Updates a contact. Note: A contact's email address cannot be changed.
Declaration
public virtual ProjectsResource.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 |
---|---|
ProjectsResource.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 ProjectsResource.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 |
---|---|
ProjectsResource.ContactsResource.SendTestMessageRequest |