Struct gapi_grpc::google::devtools::cloudbuild::v1::cloud_build_client::CloudBuildClient[][src]

pub struct CloudBuildClient<T> { /* fields omitted */ }

Creates and manages builds on Google Cloud Platform.

The main concept used by this API is a Build, which describes the location of the source to build, how to build the source, and where to store the built artifacts, if any.

A user can list previously-requested builds or get builds by their ID to determine the status of the build.

Implementations

impl CloudBuildClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> CloudBuildClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn create_build(
    &mut self,
    request: impl IntoRequest<CreateBuildRequest>
) -> Result<Response<Operation>, Status>
[src]

Starts a build with the specified configuration.

This method returns a long-running Operation, which includes the build ID. Pass the build ID to GetBuild to determine the build status (such as SUCCESS or FAILURE).

pub async fn get_build(
    &mut self,
    request: impl IntoRequest<GetBuildRequest>
) -> Result<Response<Build>, Status>
[src]

Returns information about a previously requested build.

The Build that is returned includes its status (such as SUCCESS, FAILURE, or WORKING), and timing information.

pub async fn list_builds(
    &mut self,
    request: impl IntoRequest<ListBuildsRequest>
) -> Result<Response<ListBuildsResponse>, Status>
[src]

Lists previously requested builds.

Previously requested builds may still be in-progress, or may have finished successfully or unsuccessfully.

pub async fn cancel_build(
    &mut self,
    request: impl IntoRequest<CancelBuildRequest>
) -> Result<Response<Build>, Status>
[src]

Cancels a build in progress.

pub async fn retry_build(
    &mut self,
    request: impl IntoRequest<RetryBuildRequest>
) -> Result<Response<Operation>, Status>
[src]

Creates a new build based on the specified build.

This method creates a new build using the original build request, which may or may not result in an identical build.

For triggered builds:

  • Triggered builds resolve to a precise revision; therefore a retry of a triggered build will result in a build that uses the same revision.

For non-triggered builds that specify RepoSource:

  • If the original build built from the tip of a branch, the retried build will build from the tip of that branch, which may not be the same revision as the original build.
  • If the original build specified a commit sha or revision ID, the retried build will use the identical source.

For builds that specify StorageSource:

  • If the original build pulled source from Google Cloud Storage without specifying the generation of the object, the new build will use the current object, which may be different from the original build source.
  • If the original build pulled source from Cloud Storage and specified the generation of the object, the new build will attempt to use the same object, which may or may not be available depending on the bucket’s lifecycle management settings.

pub async fn create_build_trigger(
    &mut self,
    request: impl IntoRequest<CreateBuildTriggerRequest>
) -> Result<Response<BuildTrigger>, Status>
[src]

Creates a new BuildTrigger.

This API is experimental.

pub async fn get_build_trigger(
    &mut self,
    request: impl IntoRequest<GetBuildTriggerRequest>
) -> Result<Response<BuildTrigger>, Status>
[src]

Returns information about a BuildTrigger.

This API is experimental.

pub async fn list_build_triggers(
    &mut self,
    request: impl IntoRequest<ListBuildTriggersRequest>
) -> Result<Response<ListBuildTriggersResponse>, Status>
[src]

Lists existing BuildTriggers.

This API is experimental.

pub async fn delete_build_trigger(
    &mut self,
    request: impl IntoRequest<DeleteBuildTriggerRequest>
) -> Result<Response<()>, Status>
[src]

Deletes a BuildTrigger by its project ID and trigger ID.

This API is experimental.

pub async fn update_build_trigger(
    &mut self,
    request: impl IntoRequest<UpdateBuildTriggerRequest>
) -> Result<Response<BuildTrigger>, Status>
[src]

Updates a BuildTrigger by its project ID and trigger ID.

This API is experimental.

pub async fn run_build_trigger(
    &mut self,
    request: impl IntoRequest<RunBuildTriggerRequest>
) -> Result<Response<Operation>, Status>
[src]

Runs a BuildTrigger at a particular source revision.

pub async fn receive_trigger_webhook(
    &mut self,
    request: impl IntoRequest<ReceiveTriggerWebhookRequest>
) -> Result<Response<ReceiveTriggerWebhookResponse>, Status>
[src]

ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger.

pub async fn create_worker_pool(
    &mut self,
    request: impl IntoRequest<CreateWorkerPoolRequest>
) -> Result<Response<WorkerPool>, Status>
[src]

Creates a WorkerPool to run the builds, and returns the new worker pool.

This API is experimental.

pub async fn get_worker_pool(
    &mut self,
    request: impl IntoRequest<GetWorkerPoolRequest>
) -> Result<Response<WorkerPool>, Status>
[src]

Returns information about a WorkerPool.

This API is experimental.

pub async fn delete_worker_pool(
    &mut self,
    request: impl IntoRequest<DeleteWorkerPoolRequest>
) -> Result<Response<()>, Status>
[src]

Deletes a WorkerPool by its project ID and WorkerPool name.

This API is experimental.

pub async fn update_worker_pool(
    &mut self,
    request: impl IntoRequest<UpdateWorkerPoolRequest>
) -> Result<Response<WorkerPool>, Status>
[src]

Update a WorkerPool.

This API is experimental.

pub async fn list_worker_pools(
    &mut self,
    request: impl IntoRequest<ListWorkerPoolsRequest>
) -> Result<Response<ListWorkerPoolsResponse>, Status>
[src]

List project’s WorkerPools.

This API is experimental.

Trait Implementations

impl<T: Clone> Clone for CloudBuildClient<T>[src]

impl<T> Debug for CloudBuildClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for CloudBuildClient<T>

impl<T> Send for CloudBuildClient<T> where
    T: Send

impl<T> Sync for CloudBuildClient<T> where
    T: Sync

impl<T> Unpin for CloudBuildClient<T> where
    T: Unpin

impl<T> !UnwindSafe for CloudBuildClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]