Google Cloud Monitoring v3 API - Class NotificationChannelService.NotificationChannelServiceClient (3.4.0)

public class NotificationChannelService.NotificationChannelServiceClient : ClientBase<NotificationChannelService.NotificationChannelServiceClient>

Reference documentation and code samples for the Google Cloud Monitoring v3 API class NotificationChannelService.NotificationChannelServiceClient.

Client for NotificationChannelService

Inheritance

object > ClientBase > ClientBaseNotificationChannelServiceNotificationChannelServiceClient > NotificationChannelService.NotificationChannelServiceClient

Namespace

Google.Cloud.Monitoring.V3

Assembly

Google.Cloud.Monitoring.V3.dll

Constructors

NotificationChannelServiceClient()

protected NotificationChannelServiceClient()

Protected parameterless constructor to allow creation of test doubles.

NotificationChannelServiceClient(CallInvoker)

public NotificationChannelServiceClient(CallInvoker callInvoker)

Creates a new client for NotificationChannelService that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

NotificationChannelServiceClient(ChannelBase)

public NotificationChannelServiceClient(ChannelBase channel)

Creates a new client for NotificationChannelService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

NotificationChannelServiceClient(ClientBaseConfiguration)

protected NotificationChannelServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateNotificationChannel(CreateNotificationChannelRequest, CallOptions)

public virtual NotificationChannel CreateNotificationChannel(CreateNotificationChannelRequest request, CallOptions options)

Creates a new notification channel, representing a single notification endpoint such as an email address, SMS number, or PagerDuty service.

Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.

Parameters
NameDescription
requestCreateNotificationChannelRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
NotificationChannel

The response received from the server.

CreateNotificationChannel(CreateNotificationChannelRequest, Metadata, DateTime?, CancellationToken)

public virtual NotificationChannel CreateNotificationChannel(CreateNotificationChannelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a new notification channel, representing a single notification endpoint such as an email address, SMS number, or PagerDuty service.

Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.

Parameters
NameDescription
requestCreateNotificationChannelRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
NotificationChannel

The response received from the server.

CreateNotificationChannelAsync(CreateNotificationChannelRequest, CallOptions)

public virtual AsyncUnaryCall<NotificationChannel> CreateNotificationChannelAsync(CreateNotificationChannelRequest request, CallOptions options)

Creates a new notification channel, representing a single notification endpoint such as an email address, SMS number, or PagerDuty service.

Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.

Parameters
NameDescription
requestCreateNotificationChannelRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallNotificationChannel

The call object.

CreateNotificationChannelAsync(CreateNotificationChannelRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<NotificationChannel> CreateNotificationChannelAsync(CreateNotificationChannelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a new notification channel, representing a single notification endpoint such as an email address, SMS number, or PagerDuty service.

Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.

Parameters
NameDescription
requestCreateNotificationChannelRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallNotificationChannel

The call object.

DeleteNotificationChannel(DeleteNotificationChannelRequest, CallOptions)

public virtual Empty DeleteNotificationChannel(DeleteNotificationChannelRequest request, CallOptions options)

Deletes a notification channel.

Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.

Parameters
NameDescription
requestDeleteNotificationChannelRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteNotificationChannel(DeleteNotificationChannelRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteNotificationChannel(DeleteNotificationChannelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a notification channel.

Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.

Parameters
NameDescription
requestDeleteNotificationChannelRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteNotificationChannelAsync(DeleteNotificationChannelRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteNotificationChannelAsync(DeleteNotificationChannelRequest request, CallOptions options)

Deletes a notification channel.

Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.

Parameters
NameDescription
requestDeleteNotificationChannelRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

DeleteNotificationChannelAsync(DeleteNotificationChannelRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteNotificationChannelAsync(DeleteNotificationChannelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a notification channel.

Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.

Parameters
NameDescription
requestDeleteNotificationChannelRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.