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]
impl<'a, C, A> ProjectMethods<'a, C, A>
pub fn triggers_get(
&self,
project_id: &str,
trigger_id: &str
) -> ProjectTriggerGetCall<'a, C, A>
[src]
pub fn triggers_get(
&self,
project_id: &str,
trigger_id: &str
) -> ProjectTriggerGetCall<'a, C, A>
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.
pub fn triggers_list(
&self,
project_id: &str
) -> ProjectTriggerListCall<'a, C, A>
[src]
pub fn triggers_list(
&self,
project_id: &str
) -> ProjectTriggerListCall<'a, C, A>
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.
pub fn triggers_delete(
&self,
project_id: &str,
trigger_id: &str
) -> ProjectTriggerDeleteCall<'a, C, A>
[src]
pub fn triggers_delete(
&self,
project_id: &str,
trigger_id: &str
) -> ProjectTriggerDeleteCall<'a, C, A>
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.
pub fn builds_cancel(
&self,
request: CancelBuildRequest,
project_id: &str,
id: &str
) -> ProjectBuildCancelCall<'a, C, A>
[src]
pub fn builds_cancel(
&self,
request: CancelBuildRequest,
project_id: &str,
id: &str
) -> ProjectBuildCancelCall<'a, C, A>
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.
pub fn builds_create(
&self,
request: Build,
project_id: &str
) -> ProjectBuildCreateCall<'a, C, A>
[src]
pub fn builds_create(
&self,
request: Build,
project_id: &str
) -> ProjectBuildCreateCall<'a, C, A>
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.
pub fn builds_get(
&self,
project_id: &str,
id: &str
) -> ProjectBuildGetCall<'a, C, A>
[src]
pub fn builds_get(
&self,
project_id: &str,
id: &str
) -> ProjectBuildGetCall<'a, C, A>
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.
pub fn builds_list(&self, project_id: &str) -> ProjectBuildListCall<'a, C, A>
[src]
pub fn builds_list(&self, project_id: &str) -> ProjectBuildListCall<'a, C, A>
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.
pub fn triggers_run(
&self,
request: RepoSource,
project_id: &str,
trigger_id: &str
) -> ProjectTriggerRunCall<'a, C, A>
[src]
pub fn triggers_run(
&self,
request: RepoSource,
project_id: &str,
trigger_id: &str
) -> ProjectTriggerRunCall<'a, C, A>
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.
pub fn builds_retry(
&self,
request: RetryBuildRequest,
project_id: &str,
id: &str
) -> ProjectBuildRetryCall<'a, C, A>
[src]
pub fn builds_retry(
&self,
request: RetryBuildRequest,
project_id: &str,
id: &str
) -> ProjectBuildRetryCall<'a, C, A>
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.
pub fn triggers_create(
&self,
request: BuildTrigger,
project_id: &str
) -> ProjectTriggerCreateCall<'a, C, A>
[src]
pub fn triggers_create(
&self,
request: BuildTrigger,
project_id: &str
) -> ProjectTriggerCreateCall<'a, C, A>
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.
pub fn triggers_patch(
&self,
request: BuildTrigger,
project_id: &str,
trigger_id: &str
) -> ProjectTriggerPatchCall<'a, C, A>
[src]
pub fn triggers_patch(
&self,
request: BuildTrigger,
project_id: &str,
trigger_id: &str
) -> ProjectTriggerPatchCall<'a, C, A>
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]
impl<'a, C, A> MethodsBuilder for ProjectMethods<'a, C, A>
Auto Trait Implementations
impl<'a, C, A> !Send for ProjectMethods<'a, C, A>
impl<'a, C, A> !Send for ProjectMethods<'a, C, A>
impl<'a, C, A> !Sync for ProjectMethods<'a, C, A>
impl<'a, C, A> !Sync for ProjectMethods<'a, C, A>