/// Creates a sink that exports specified log entries to a destination. The
/// export of newly-ingested log entries begins immediately, unless the sink's
/// `writer_identity` is not permitted to write to the destination. A sink can
/// export log entries only from the resource owning the sink.
Creates a sink that exports specified log entries to a destination. The
export of newly-ingested log entries begins immediately, unless the sink's
`writer_identity` is not permitted to write to the destination. A sink can
export log entries only from the resource owning the sink.
Creates a sink that exports specified log entries to a destination . The export of newly - ingested log entries begins immediately unless the sink ' s ` writer_identity ` is not permitted to write to the destination . A sink can export log entries only from the resource owning the sink .
pub async fn create_sink(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateSinkRequest>,
        ) -> Result<tonic::Response<super::LogSink>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.logging.v2.ConfigServiceV2/CreateSink",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
pub async fn create_sink ( & mut self , request : impl tonic :: IntoRequest < super :: CreateSinkRequest > , ) -> Result < tonic :: Response < super :: LogSink > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( " " e into ( ) ) , ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( " " , ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await }
Creates a sink that exports specified log entries to a destination.
Creates a sink that exports specified log entries to a destination .
&mut self
request
impl tonic::IntoRequest<super::CreateSinkRequest>