Struct google_api_proto::google::cloud::apigeeregistry::v1::registry_client::RegistryClient
source · pub struct RegistryClient<T> { /* private fields */ }
Expand description
The Registry service allows teams to manage descriptions of APIs.
Implementations§
source§impl<T> RegistryClient<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> RegistryClient<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,
) -> RegistryClient<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 list_apis(
&mut self,
request: impl IntoRequest<ListApisRequest>,
) -> Result<Response<ListApisResponse>, Status>
pub async fn list_apis( &mut self, request: impl IntoRequest<ListApisRequest>, ) -> Result<Response<ListApisResponse>, Status>
Returns matching APIs.
sourcepub async fn get_api(
&mut self,
request: impl IntoRequest<GetApiRequest>,
) -> Result<Response<Api>, Status>
pub async fn get_api( &mut self, request: impl IntoRequest<GetApiRequest>, ) -> Result<Response<Api>, Status>
Returns a specified API.
sourcepub async fn create_api(
&mut self,
request: impl IntoRequest<CreateApiRequest>,
) -> Result<Response<Api>, Status>
pub async fn create_api( &mut self, request: impl IntoRequest<CreateApiRequest>, ) -> Result<Response<Api>, Status>
Creates a specified API.
sourcepub async fn update_api(
&mut self,
request: impl IntoRequest<UpdateApiRequest>,
) -> Result<Response<Api>, Status>
pub async fn update_api( &mut self, request: impl IntoRequest<UpdateApiRequest>, ) -> Result<Response<Api>, Status>
Used to modify a specified API.
sourcepub async fn delete_api(
&mut self,
request: impl IntoRequest<DeleteApiRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_api( &mut self, request: impl IntoRequest<DeleteApiRequest>, ) -> Result<Response<()>, Status>
Removes a specified API and all of the resources that it owns.
sourcepub async fn list_api_versions(
&mut self,
request: impl IntoRequest<ListApiVersionsRequest>,
) -> Result<Response<ListApiVersionsResponse>, Status>
pub async fn list_api_versions( &mut self, request: impl IntoRequest<ListApiVersionsRequest>, ) -> Result<Response<ListApiVersionsResponse>, Status>
Returns matching versions.
sourcepub async fn get_api_version(
&mut self,
request: impl IntoRequest<GetApiVersionRequest>,
) -> Result<Response<ApiVersion>, Status>
pub async fn get_api_version( &mut self, request: impl IntoRequest<GetApiVersionRequest>, ) -> Result<Response<ApiVersion>, Status>
Returns a specified version.
sourcepub async fn create_api_version(
&mut self,
request: impl IntoRequest<CreateApiVersionRequest>,
) -> Result<Response<ApiVersion>, Status>
pub async fn create_api_version( &mut self, request: impl IntoRequest<CreateApiVersionRequest>, ) -> Result<Response<ApiVersion>, Status>
Creates a specified version.
sourcepub async fn update_api_version(
&mut self,
request: impl IntoRequest<UpdateApiVersionRequest>,
) -> Result<Response<ApiVersion>, Status>
pub async fn update_api_version( &mut self, request: impl IntoRequest<UpdateApiVersionRequest>, ) -> Result<Response<ApiVersion>, Status>
Used to modify a specified version.
sourcepub async fn delete_api_version(
&mut self,
request: impl IntoRequest<DeleteApiVersionRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_api_version( &mut self, request: impl IntoRequest<DeleteApiVersionRequest>, ) -> Result<Response<()>, Status>
Removes a specified version and all of the resources that it owns.
sourcepub async fn list_api_specs(
&mut self,
request: impl IntoRequest<ListApiSpecsRequest>,
) -> Result<Response<ListApiSpecsResponse>, Status>
pub async fn list_api_specs( &mut self, request: impl IntoRequest<ListApiSpecsRequest>, ) -> Result<Response<ListApiSpecsResponse>, Status>
Returns matching specs.
sourcepub async fn get_api_spec(
&mut self,
request: impl IntoRequest<GetApiSpecRequest>,
) -> Result<Response<ApiSpec>, Status>
pub async fn get_api_spec( &mut self, request: impl IntoRequest<GetApiSpecRequest>, ) -> Result<Response<ApiSpec>, Status>
Returns a specified spec.
sourcepub async fn get_api_spec_contents(
&mut self,
request: impl IntoRequest<GetApiSpecContentsRequest>,
) -> Result<Response<HttpBody>, Status>
pub async fn get_api_spec_contents( &mut self, request: impl IntoRequest<GetApiSpecContentsRequest>, ) -> Result<Response<HttpBody>, Status>
Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).
sourcepub async fn create_api_spec(
&mut self,
request: impl IntoRequest<CreateApiSpecRequest>,
) -> Result<Response<ApiSpec>, Status>
pub async fn create_api_spec( &mut self, request: impl IntoRequest<CreateApiSpecRequest>, ) -> Result<Response<ApiSpec>, Status>
Creates a specified spec.
sourcepub async fn update_api_spec(
&mut self,
request: impl IntoRequest<UpdateApiSpecRequest>,
) -> Result<Response<ApiSpec>, Status>
pub async fn update_api_spec( &mut self, request: impl IntoRequest<UpdateApiSpecRequest>, ) -> Result<Response<ApiSpec>, Status>
Used to modify a specified spec.
sourcepub async fn delete_api_spec(
&mut self,
request: impl IntoRequest<DeleteApiSpecRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_api_spec( &mut self, request: impl IntoRequest<DeleteApiSpecRequest>, ) -> Result<Response<()>, Status>
Removes a specified spec, all revisions, and all child resources (e.g., artifacts).
sourcepub async fn tag_api_spec_revision(
&mut self,
request: impl IntoRequest<TagApiSpecRevisionRequest>,
) -> Result<Response<ApiSpec>, Status>
pub async fn tag_api_spec_revision( &mut self, request: impl IntoRequest<TagApiSpecRevisionRequest>, ) -> Result<Response<ApiSpec>, Status>
Adds a tag to a specified revision of a spec.
sourcepub async fn list_api_spec_revisions(
&mut self,
request: impl IntoRequest<ListApiSpecRevisionsRequest>,
) -> Result<Response<ListApiSpecRevisionsResponse>, Status>
pub async fn list_api_spec_revisions( &mut self, request: impl IntoRequest<ListApiSpecRevisionsRequest>, ) -> Result<Response<ListApiSpecRevisionsResponse>, Status>
Lists all revisions of a spec. Revisions are returned in descending order of revision creation time.
sourcepub async fn rollback_api_spec(
&mut self,
request: impl IntoRequest<RollbackApiSpecRequest>,
) -> Result<Response<ApiSpec>, Status>
pub async fn rollback_api_spec( &mut self, request: impl IntoRequest<RollbackApiSpecRequest>, ) -> Result<Response<ApiSpec>, Status>
Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.
sourcepub async fn delete_api_spec_revision(
&mut self,
request: impl IntoRequest<DeleteApiSpecRevisionRequest>,
) -> Result<Response<ApiSpec>, Status>
pub async fn delete_api_spec_revision( &mut self, request: impl IntoRequest<DeleteApiSpecRevisionRequest>, ) -> Result<Response<ApiSpec>, Status>
Deletes a revision of a spec.
sourcepub async fn list_api_deployments(
&mut self,
request: impl IntoRequest<ListApiDeploymentsRequest>,
) -> Result<Response<ListApiDeploymentsResponse>, Status>
pub async fn list_api_deployments( &mut self, request: impl IntoRequest<ListApiDeploymentsRequest>, ) -> Result<Response<ListApiDeploymentsResponse>, Status>
Returns matching deployments.
sourcepub async fn get_api_deployment(
&mut self,
request: impl IntoRequest<GetApiDeploymentRequest>,
) -> Result<Response<ApiDeployment>, Status>
pub async fn get_api_deployment( &mut self, request: impl IntoRequest<GetApiDeploymentRequest>, ) -> Result<Response<ApiDeployment>, Status>
Returns a specified deployment.
sourcepub async fn create_api_deployment(
&mut self,
request: impl IntoRequest<CreateApiDeploymentRequest>,
) -> Result<Response<ApiDeployment>, Status>
pub async fn create_api_deployment( &mut self, request: impl IntoRequest<CreateApiDeploymentRequest>, ) -> Result<Response<ApiDeployment>, Status>
Creates a specified deployment.
sourcepub async fn update_api_deployment(
&mut self,
request: impl IntoRequest<UpdateApiDeploymentRequest>,
) -> Result<Response<ApiDeployment>, Status>
pub async fn update_api_deployment( &mut self, request: impl IntoRequest<UpdateApiDeploymentRequest>, ) -> Result<Response<ApiDeployment>, Status>
Used to modify a specified deployment.
sourcepub async fn delete_api_deployment(
&mut self,
request: impl IntoRequest<DeleteApiDeploymentRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_api_deployment( &mut self, request: impl IntoRequest<DeleteApiDeploymentRequest>, ) -> Result<Response<()>, Status>
Removes a specified deployment, all revisions, and all child resources (e.g., artifacts).
sourcepub async fn tag_api_deployment_revision(
&mut self,
request: impl IntoRequest<TagApiDeploymentRevisionRequest>,
) -> Result<Response<ApiDeployment>, Status>
pub async fn tag_api_deployment_revision( &mut self, request: impl IntoRequest<TagApiDeploymentRevisionRequest>, ) -> Result<Response<ApiDeployment>, Status>
Adds a tag to a specified revision of a deployment.
sourcepub async fn list_api_deployment_revisions(
&mut self,
request: impl IntoRequest<ListApiDeploymentRevisionsRequest>,
) -> Result<Response<ListApiDeploymentRevisionsResponse>, Status>
pub async fn list_api_deployment_revisions( &mut self, request: impl IntoRequest<ListApiDeploymentRevisionsRequest>, ) -> Result<Response<ListApiDeploymentRevisionsResponse>, Status>
Lists all revisions of a deployment. Revisions are returned in descending order of revision creation time.
sourcepub async fn rollback_api_deployment(
&mut self,
request: impl IntoRequest<RollbackApiDeploymentRequest>,
) -> Result<Response<ApiDeployment>, Status>
pub async fn rollback_api_deployment( &mut self, request: impl IntoRequest<RollbackApiDeploymentRequest>, ) -> Result<Response<ApiDeployment>, Status>
Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.
sourcepub async fn delete_api_deployment_revision(
&mut self,
request: impl IntoRequest<DeleteApiDeploymentRevisionRequest>,
) -> Result<Response<ApiDeployment>, Status>
pub async fn delete_api_deployment_revision( &mut self, request: impl IntoRequest<DeleteApiDeploymentRevisionRequest>, ) -> Result<Response<ApiDeployment>, Status>
Deletes a revision of a deployment.
sourcepub async fn list_artifacts(
&mut self,
request: impl IntoRequest<ListArtifactsRequest>,
) -> Result<Response<ListArtifactsResponse>, Status>
pub async fn list_artifacts( &mut self, request: impl IntoRequest<ListArtifactsRequest>, ) -> Result<Response<ListArtifactsResponse>, Status>
Returns matching artifacts.
sourcepub async fn get_artifact(
&mut self,
request: impl IntoRequest<GetArtifactRequest>,
) -> Result<Response<Artifact>, Status>
pub async fn get_artifact( &mut self, request: impl IntoRequest<GetArtifactRequest>, ) -> Result<Response<Artifact>, Status>
Returns a specified artifact.
sourcepub async fn get_artifact_contents(
&mut self,
request: impl IntoRequest<GetArtifactContentsRequest>,
) -> Result<Response<HttpBody>, Status>
pub async fn get_artifact_contents( &mut self, request: impl IntoRequest<GetArtifactContentsRequest>, ) -> Result<Response<HttpBody>, Status>
Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).
sourcepub async fn create_artifact(
&mut self,
request: impl IntoRequest<CreateArtifactRequest>,
) -> Result<Response<Artifact>, Status>
pub async fn create_artifact( &mut self, request: impl IntoRequest<CreateArtifactRequest>, ) -> Result<Response<Artifact>, Status>
Creates a specified artifact.
sourcepub async fn replace_artifact(
&mut self,
request: impl IntoRequest<ReplaceArtifactRequest>,
) -> Result<Response<Artifact>, Status>
pub async fn replace_artifact( &mut self, request: impl IntoRequest<ReplaceArtifactRequest>, ) -> Result<Response<Artifact>, Status>
Used to replace a specified artifact.
sourcepub async fn delete_artifact(
&mut self,
request: impl IntoRequest<DeleteArtifactRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_artifact( &mut self, request: impl IntoRequest<DeleteArtifactRequest>, ) -> Result<Response<()>, Status>
Removes a specified artifact.
Trait Implementations§
source§impl<T: Clone> Clone for RegistryClient<T>
impl<T: Clone> Clone for RegistryClient<T>
source§fn clone(&self) -> RegistryClient<T>
fn clone(&self) -> RegistryClient<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 RegistryClient<T>
impl<T> RefUnwindSafe for RegistryClient<T>where
T: RefUnwindSafe,
impl<T> Send for RegistryClient<T>where
T: Send,
impl<T> Sync for RegistryClient<T>where
T: Sync,
impl<T> Unpin for RegistryClient<T>where
T: Unpin,
impl<T> UnwindSafe for RegistryClient<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