public sealed class EssentialContactsServiceClientImpl : EssentialContactsServiceClient
Reference documentation and code samples for the Essential Contacts v1 API class EssentialContactsServiceClientImpl.
EssentialContactsService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.EssentialContacts.V1Assembly
Google.Cloud.EssentialContacts.V1.dll
Remarks
Manages contacts for important Google Cloud notifications.
Constructors
EssentialContactsServiceClientImpl(EssentialContactsService.EssentialContactsServiceClient, EssentialContactsServiceSettings, ILogger)
public EssentialContactsServiceClientImpl(EssentialContactsService.EssentialContactsServiceClient grpcClient, EssentialContactsServiceSettings settings, ILogger logger)
Constructs a client wrapper for the EssentialContactsService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | EssentialContactsService.EssentialContactsServiceClient The underlying gRPC client. |
settings | EssentialContactsServiceSettings The base EssentialContactsServiceSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override EssentialContactsService.EssentialContactsServiceClient GrpcClient { get; }
The underlying gRPC EssentialContactsService client
Property Value | |
---|---|
Type | Description |
EssentialContactsService.EssentialContactsServiceClient |
Methods
ComputeContacts(ComputeContactsRequest, CallSettings)
public override PagedEnumerable<ComputeContactsResponse, Contact> ComputeContacts(ComputeContactsRequest request, CallSettings callSettings = null)
Lists all contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.
Parameters | |
---|---|
Name | Description |
request | ComputeContactsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ComputeContactsResponse, Contact> | A pageable sequence of Contact resources. |
ComputeContactsAsync(ComputeContactsRequest, CallSettings)
public override PagedAsyncEnumerable<ComputeContactsResponse, Contact> ComputeContactsAsync(ComputeContactsRequest request, CallSettings callSettings = null)
Lists all contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.
Parameters | |
---|---|
Name | Description |
request | ComputeContactsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ComputeContactsResponse, Contact> | A pageable asynchronous sequence of Contact resources. |
CreateContact(CreateContactRequest, CallSettings)
public override Contact CreateContact(CreateContactRequest request, CallSettings callSettings = null)
Adds a new contact for a resource.
Parameters | |
---|---|
Name | Description |
request | CreateContactRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Contact | The RPC response. |
CreateContactAsync(CreateContactRequest, CallSettings)
public override Task<Contact> CreateContactAsync(CreateContactRequest request, CallSettings callSettings = null)
Adds a new contact for a resource.
Parameters | |
---|---|
Name | Description |
request | CreateContactRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Contact> | A Task containing the RPC response. |
DeleteContact(DeleteContactRequest, CallSettings)
public override void DeleteContact(DeleteContactRequest request, CallSettings callSettings = null)
Deletes a contact.
Parameters | |
---|---|
Name | Description |
request | DeleteContactRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
DeleteContactAsync(DeleteContactRequest, CallSettings)
public override Task DeleteContactAsync(DeleteContactRequest request, CallSettings callSettings = null)
Deletes a contact.
Parameters | |
---|---|
Name | Description |
request | DeleteContactRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
GetContact(GetContactRequest, CallSettings)
public override Contact GetContact(GetContactRequest request, CallSettings callSettings = null)
Gets a single contact.
Parameters | |
---|---|
Name | Description |
request | GetContactRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Contact | The RPC response. |
GetContactAsync(GetContactRequest, CallSettings)
public override Task<Contact> GetContactAsync(GetContactRequest request, CallSettings callSettings = null)
Gets a single contact.
Parameters | |
---|---|
Name | Description |
request | GetContactRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Contact> | A Task containing the RPC response. |
ListContacts(ListContactsRequest, CallSettings)
public override PagedEnumerable<ListContactsResponse, Contact> ListContacts(ListContactsRequest request, CallSettings callSettings = null)
Lists the contacts that have been set on a resource.
Parameters | |
---|---|
Name | Description |
request | ListContactsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListContactsResponse, Contact> | A pageable sequence of Contact resources. |
ListContactsAsync(ListContactsRequest, CallSettings)
public override PagedAsyncEnumerable<ListContactsResponse, Contact> ListContactsAsync(ListContactsRequest request, CallSettings callSettings = null)
Lists the contacts that have been set on a resource.
Parameters | |
---|---|
Name | Description |
request | ListContactsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListContactsResponse, Contact> | A pageable asynchronous sequence of Contact resources. |
SendTestMessage(SendTestMessageRequest, CallSettings)
public override void SendTestMessage(SendTestMessageRequest request, CallSettings callSettings = null)
Allows a contact admin to send a test message to contact to verify that it has been configured correctly.
Parameters | |
---|---|
Name | Description |
request | SendTestMessageRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
SendTestMessageAsync(SendTestMessageRequest, CallSettings)
public override Task SendTestMessageAsync(SendTestMessageRequest request, CallSettings callSettings = null)
Allows a contact admin to send a test message to contact to verify that it has been configured correctly.
Parameters | |
---|---|
Name | Description |
request | SendTestMessageRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
UpdateContact(UpdateContactRequest, CallSettings)
public override Contact UpdateContact(UpdateContactRequest request, CallSettings callSettings = null)
Updates a contact. Note: A contact's email address cannot be changed.
Parameters | |
---|---|
Name | Description |
request | UpdateContactRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Contact | The RPC response. |
UpdateContactAsync(UpdateContactRequest, CallSettings)
public override Task<Contact> UpdateContactAsync(UpdateContactRequest request, CallSettings callSettings = null)
Updates a contact. Note: A contact's email address cannot be changed.
Parameters | |
---|---|
Name | Description |
request | UpdateContactRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Contact> | A Task containing the RPC response. |