Struct gapi_grpc::google::devtools::cloudbuild::v1::cloud_build_client::CloudBuildClient [−][src]
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]
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
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]
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 create_build(
&mut self,
request: impl IntoRequest<CreateBuildRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<CreateBuildRequest>
) -> Result<Response<Operation>, Status>
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]
&mut self,
request: impl IntoRequest<GetBuildRequest>
) -> Result<Response<Build>, Status>
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]
&mut self,
request: impl IntoRequest<ListBuildsRequest>
) -> Result<Response<ListBuildsResponse>, Status>
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]
&mut self,
request: impl IntoRequest<CancelBuildRequest>
) -> Result<Response<Build>, Status>
Cancels a build in progress.
pub async fn retry_build(
&mut self,
request: impl IntoRequest<RetryBuildRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<RetryBuildRequest>
) -> Result<Response<Operation>, Status>
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]
&mut self,
request: impl IntoRequest<CreateBuildTriggerRequest>
) -> Result<Response<BuildTrigger>, Status>
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]
&mut self,
request: impl IntoRequest<GetBuildTriggerRequest>
) -> Result<Response<BuildTrigger>, Status>
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]
&mut self,
request: impl IntoRequest<ListBuildTriggersRequest>
) -> Result<Response<ListBuildTriggersResponse>, Status>
Lists existing BuildTrigger
s.
This API is experimental.
pub async fn delete_build_trigger(
&mut self,
request: impl IntoRequest<DeleteBuildTriggerRequest>
) -> Result<Response<()>, Status>
[src]
&mut self,
request: impl IntoRequest<DeleteBuildTriggerRequest>
) -> Result<Response<()>, Status>
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]
&mut self,
request: impl IntoRequest<UpdateBuildTriggerRequest>
) -> Result<Response<BuildTrigger>, Status>
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]
&mut self,
request: impl IntoRequest<RunBuildTriggerRequest>
) -> Result<Response<Operation>, Status>
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]
&mut self,
request: impl IntoRequest<ReceiveTriggerWebhookRequest>
) -> Result<Response<ReceiveTriggerWebhookResponse>, Status>
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]
&mut self,
request: impl IntoRequest<CreateWorkerPoolRequest>
) -> Result<Response<WorkerPool>, Status>
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]
&mut self,
request: impl IntoRequest<GetWorkerPoolRequest>
) -> Result<Response<WorkerPool>, Status>
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]
&mut self,
request: impl IntoRequest<DeleteWorkerPoolRequest>
) -> Result<Response<()>, Status>
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]
&mut self,
request: impl IntoRequest<UpdateWorkerPoolRequest>
) -> Result<Response<WorkerPool>, Status>
Update a WorkerPool
.
This API is experimental.
pub async fn list_worker_pools(
&mut self,
request: impl IntoRequest<ListWorkerPoolsRequest>
) -> Result<Response<ListWorkerPoolsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListWorkerPoolsRequest>
) -> Result<Response<ListWorkerPoolsResponse>, Status>
List project’s WorkerPools
.
This API is experimental.
Trait Implementations
impl<T: Clone> Clone for CloudBuildClient<T>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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,
T: Send,
impl<T> Sync for CloudBuildClient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for CloudBuildClient<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for CloudBuildClient<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>,