Struct google_cloudbuild1::ProjectMethods[][src]

pub struct ProjectMethods<'a, C, A> where
    C: 'a,
    A: 'a, 
{ /* fields omitted */ }

A builder providing access to all methods supported on project resources. It is not used directly, but through the CloudBuild hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_cloudbuild1 as cloudbuild1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use cloudbuild1::CloudBuild;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())),
                              <MemoryStorage as Default>::default(), None);
let mut hub = CloudBuild::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `builds_cancel(...)`, `builds_create(...)`, `builds_get(...)`, `builds_list(...)`, `builds_retry(...)`, `triggers_create(...)`, `triggers_delete(...)`, `triggers_get(...)`, `triggers_list(...)`, `triggers_patch(...)` and `triggers_run(...)`
// to build up your call.
let rb = hub.projects();

Methods

impl<'a, C, A> ProjectMethods<'a, C, A>
[src]

Create a builder to help you perform the following task:

Gets information about a BuildTrigger.

This API is experimental.

Arguments

  • projectId - ID of the project that owns the trigger.
  • triggerId - ID of the BuildTrigger to get.

Create a builder to help you perform the following task:

Lists existing BuildTrigger.

This API is experimental.

Arguments

  • projectId - ID of the project for which to list BuildTriggers.

Create a builder to help you perform the following task:

Deletes an BuildTrigger by its project ID and trigger ID.

This API is experimental.

Arguments

  • projectId - ID of the project that owns the trigger.
  • triggerId - ID of the BuildTrigger to delete.

Create a builder to help you perform the following task:

Cancels a requested build in progress.

Arguments

  • request - No description provided.
  • projectId - ID of the project.
  • id - ID of the build.

Create a builder to help you perform the following task:

Starts a build with the specified configuration.

The long-running Operation returned by this method will include the ID of the build, which can be passed to GetBuild to determine its status (e.g., success or failure).

Arguments

  • request - No description provided.
  • projectId - ID of the project.

Create a builder to help you perform the following task:

Returns information about a previously requested build.

The Build that is returned includes its status (e.g., success or failure, or in-progress), and timing information.

Arguments

  • projectId - ID of the project.
  • id - ID of the build.

Create a builder to help you perform the following task:

Lists previously requested builds.

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

Arguments

  • projectId - ID of the project.

Create a builder to help you perform the following task:

Runs a BuildTrigger at a particular source revision.

Arguments

  • request - No description provided.
  • projectId - ID of the project.
  • triggerId - ID of the trigger.

Create a builder to help you perform the following task:

Creates a new build based on the given build.

This API 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, so 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 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.

Arguments

  • request - No description provided.
  • projectId - ID of the project.
  • id - Build ID of the original build.

Create a builder to help you perform the following task:

Creates a new BuildTrigger.

This API is experimental.

Arguments

  • request - No description provided.
  • projectId - ID of the project for which to configure automatic builds.

Create a builder to help you perform the following task:

Updates an BuildTrigger by its project ID and trigger ID.

This API is experimental.

Arguments

  • request - No description provided.
  • projectId - ID of the project that owns the trigger.
  • triggerId - ID of the BuildTrigger to update.

Trait Implementations

impl<'a, C, A> MethodsBuilder for ProjectMethods<'a, C, A>
[src]

Auto Trait Implementations

impl<'a, C, A> !Send for ProjectMethods<'a, C, A>

impl<'a, C, A> !Sync for ProjectMethods<'a, C, A>