Struct gapi_grpc::google::monitoring::v3::notification_channel_service_client::NotificationChannelServiceClient [−][src]
The Notification Channel API provides access to configuration that controls how messages related to incidents are sent.
Implementations
impl NotificationChannelServiceClient<Channel>
[src]
pub async fn connect<D>(dst: D) -> Result<Self, Error> where
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
[src]
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
Attempt to create a new client by connecting to a given endpoint.
impl<T> NotificationChannelServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
[src]
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
[src]
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
[src]
pub async fn list_notification_channel_descriptors(
&mut self,
request: impl IntoRequest<ListNotificationChannelDescriptorsRequest>
) -> Result<Response<ListNotificationChannelDescriptorsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListNotificationChannelDescriptorsRequest>
) -> Result<Response<ListNotificationChannelDescriptorsResponse>, Status>
Lists the descriptors for supported channel types. The use of descriptors makes it possible for new channel types to be dynamically added.
pub async fn get_notification_channel_descriptor(
&mut self,
request: impl IntoRequest<GetNotificationChannelDescriptorRequest>
) -> Result<Response<NotificationChannelDescriptor>, Status>
[src]
&mut self,
request: impl IntoRequest<GetNotificationChannelDescriptorRequest>
) -> Result<Response<NotificationChannelDescriptor>, Status>
Gets a single channel descriptor. The descriptor indicates which fields are expected / permitted for a notification channel of the given type.
pub async fn list_notification_channels(
&mut self,
request: impl IntoRequest<ListNotificationChannelsRequest>
) -> Result<Response<ListNotificationChannelsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListNotificationChannelsRequest>
) -> Result<Response<ListNotificationChannelsResponse>, Status>
Lists the notification channels that have been created for the project.
pub async fn get_notification_channel(
&mut self,
request: impl IntoRequest<GetNotificationChannelRequest>
) -> Result<Response<NotificationChannel>, Status>
[src]
&mut self,
request: impl IntoRequest<GetNotificationChannelRequest>
) -> Result<Response<NotificationChannel>, Status>
Gets a single notification channel. The channel includes the relevant configuration details with which the channel was created. However, the response may truncate or omit passwords, API keys, or other private key matter and thus the response may not be 100% identical to the information that was supplied in the call to the create method.
pub async fn create_notification_channel(
&mut self,
request: impl IntoRequest<CreateNotificationChannelRequest>
) -> Result<Response<NotificationChannel>, Status>
[src]
&mut self,
request: impl IntoRequest<CreateNotificationChannelRequest>
) -> Result<Response<NotificationChannel>, Status>
Creates a new notification channel, representing a single notification endpoint such as an email address, SMS number, or PagerDuty service.
pub async fn update_notification_channel(
&mut self,
request: impl IntoRequest<UpdateNotificationChannelRequest>
) -> Result<Response<NotificationChannel>, Status>
[src]
&mut self,
request: impl IntoRequest<UpdateNotificationChannelRequest>
) -> Result<Response<NotificationChannel>, Status>
Updates a notification channel. Fields not specified in the field mask remain unchanged.
pub async fn delete_notification_channel(
&mut self,
request: impl IntoRequest<DeleteNotificationChannelRequest>
) -> Result<Response<()>, Status>
[src]
&mut self,
request: impl IntoRequest<DeleteNotificationChannelRequest>
) -> Result<Response<()>, Status>
Deletes a notification channel.
pub async fn send_notification_channel_verification_code(
&mut self,
request: impl IntoRequest<SendNotificationChannelVerificationCodeRequest>
) -> Result<Response<()>, Status>
[src]
&mut self,
request: impl IntoRequest<SendNotificationChannelVerificationCodeRequest>
) -> Result<Response<()>, Status>
Causes a verification code to be delivered to the channel. The code
can then be supplied in VerifyNotificationChannel
to verify the channel.
pub async fn get_notification_channel_verification_code(
&mut self,
request: impl IntoRequest<GetNotificationChannelVerificationCodeRequest>
) -> Result<Response<GetNotificationChannelVerificationCodeResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<GetNotificationChannelVerificationCodeRequest>
) -> Result<Response<GetNotificationChannelVerificationCodeResponse>, Status>
Requests a verification code for an already verified channel that can then be used in a call to VerifyNotificationChannel() on a different channel with an equivalent identity in the same or in a different project. This makes it possible to copy a channel between projects without requiring manual reverification of the channel. If the channel is not in the verified state, this method will fail (in other words, this may only be used if the SendNotificationChannelVerificationCode and VerifyNotificationChannel paths have already been used to put the given channel into the verified state).
There is no guarantee that the verification codes returned by this method will be of a similar structure or form as the ones that are delivered to the channel via SendNotificationChannelVerificationCode; while VerifyNotificationChannel() will recognize both the codes delivered via SendNotificationChannelVerificationCode() and returned from GetNotificationChannelVerificationCode(), it is typically the case that the verification codes delivered via SendNotificationChannelVerificationCode() will be shorter and also have a shorter expiration (e.g. codes such as “G-123456”) whereas GetVerificationCode() will typically return a much longer, websafe base 64 encoded string that has a longer expiration time.
pub async fn verify_notification_channel(
&mut self,
request: impl IntoRequest<VerifyNotificationChannelRequest>
) -> Result<Response<NotificationChannel>, Status>
[src]
&mut self,
request: impl IntoRequest<VerifyNotificationChannelRequest>
) -> Result<Response<NotificationChannel>, Status>
Verifies a NotificationChannel
by proving receipt of the code
delivered to the channel as a result of calling
SendNotificationChannelVerificationCode
.
Trait Implementations
impl<T: Clone> Clone for NotificationChannelServiceClient<T>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for NotificationChannelServiceClient<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for NotificationChannelServiceClient<T>
impl<T> Send for NotificationChannelServiceClient<T> where
T: Send,
T: Send,
impl<T> Sync for NotificationChannelServiceClient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for NotificationChannelServiceClient<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for NotificationChannelServiceClient<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,