Struct google_api_proto::google::actions::sdk::v2::actions_sdk_client::ActionsSdkClient
source · pub struct ActionsSdkClient<T> { /* private fields */ }
Expand description
Actions SDK API which allows developers to build projects using the SDK.
Implementations§
source§impl<T> ActionsSdkClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> ActionsSdkClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ActionsSdkClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn write_draft(
&mut self,
request: impl IntoStreamingRequest<Message = WriteDraftRequest>,
) -> Result<Response<Draft>, Status>
pub async fn write_draft( &mut self, request: impl IntoStreamingRequest<Message = WriteDraftRequest>, ) -> Result<Response<Draft>, Status>
Updates the project draft based on the model.
sourcepub async fn write_preview(
&mut self,
request: impl IntoStreamingRequest<Message = WritePreviewRequest>,
) -> Result<Response<Preview>, Status>
pub async fn write_preview( &mut self, request: impl IntoStreamingRequest<Message = WritePreviewRequest>, ) -> Result<Response<Preview>, Status>
Updates the user’s project preview based on the model.
sourcepub async fn create_version(
&mut self,
request: impl IntoStreamingRequest<Message = CreateVersionRequest>,
) -> Result<Response<Version>, Status>
pub async fn create_version( &mut self, request: impl IntoStreamingRequest<Message = CreateVersionRequest>, ) -> Result<Response<Version>, Status>
Creates a project version based on the model and triggers deployment to the specified release channel, if specified.
sourcepub async fn read_draft(
&mut self,
request: impl IntoRequest<ReadDraftRequest>,
) -> Result<Response<Streaming<ReadDraftResponse>>, Status>
pub async fn read_draft( &mut self, request: impl IntoRequest<ReadDraftRequest>, ) -> Result<Response<Streaming<ReadDraftResponse>>, Status>
Reads the entire content of the project draft.
sourcepub async fn read_version(
&mut self,
request: impl IntoRequest<ReadVersionRequest>,
) -> Result<Response<Streaming<ReadVersionResponse>>, Status>
pub async fn read_version( &mut self, request: impl IntoRequest<ReadVersionRequest>, ) -> Result<Response<Streaming<ReadVersionResponse>>, Status>
Reads the entire content of a project version.
sourcepub async fn encrypt_secret(
&mut self,
request: impl IntoRequest<EncryptSecretRequest>,
) -> Result<Response<EncryptSecretResponse>, Status>
pub async fn encrypt_secret( &mut self, request: impl IntoRequest<EncryptSecretRequest>, ) -> Result<Response<EncryptSecretResponse>, Status>
Encrypts the OAuth client secret used in account linking flows. This can be used to encrypt the client secret for the first time (e.g. before the first push or after changing the client secret) or to re-encrypt a client secret using the latest primary key version (considering key rotation).
sourcepub async fn decrypt_secret(
&mut self,
request: impl IntoRequest<DecryptSecretRequest>,
) -> Result<Response<DecryptSecretResponse>, Status>
pub async fn decrypt_secret( &mut self, request: impl IntoRequest<DecryptSecretRequest>, ) -> Result<Response<DecryptSecretResponse>, Status>
Decrypts the OAuth client secret used in account linking flows. This can be used to view the client secret (e.g. after pulling a project).
sourcepub async fn list_sample_projects(
&mut self,
request: impl IntoRequest<ListSampleProjectsRequest>,
) -> Result<Response<ListSampleProjectsResponse>, Status>
pub async fn list_sample_projects( &mut self, request: impl IntoRequest<ListSampleProjectsRequest>, ) -> Result<Response<ListSampleProjectsResponse>, Status>
Lists all the sample projects supported by the gactions CLI.
sourcepub async fn list_release_channels(
&mut self,
request: impl IntoRequest<ListReleaseChannelsRequest>,
) -> Result<Response<ListReleaseChannelsResponse>, Status>
pub async fn list_release_channels( &mut self, request: impl IntoRequest<ListReleaseChannelsRequest>, ) -> Result<Response<ListReleaseChannelsResponse>, Status>
Lists all release channels and corresponding versions, if any.
sourcepub async fn list_versions(
&mut self,
request: impl IntoRequest<ListVersionsRequest>,
) -> Result<Response<ListVersionsResponse>, Status>
pub async fn list_versions( &mut self, request: impl IntoRequest<ListVersionsRequest>, ) -> Result<Response<ListVersionsResponse>, Status>
Lists all versions and their current states.
Trait Implementations§
source§impl<T: Clone> Clone for ActionsSdkClient<T>
impl<T: Clone> Clone for ActionsSdkClient<T>
source§fn clone(&self) -> ActionsSdkClient<T>
fn clone(&self) -> ActionsSdkClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for ActionsSdkClient<T>
impl<T> RefUnwindSafe for ActionsSdkClient<T>where
T: RefUnwindSafe,
impl<T> Send for ActionsSdkClient<T>where
T: Send,
impl<T> Sync for ActionsSdkClient<T>where
T: Sync,
impl<T> Unpin for ActionsSdkClient<T>where
T: Unpin,
impl<T> UnwindSafe for ActionsSdkClient<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request