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