Struct ProjectMethods

Source
pub struct ProjectMethods<'a, C>
where C: 'a,
{ /* private fields */ }
Expand description

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 google_cloudbuild1 as cloudbuild1;

use cloudbuild1::{CloudBuild, FieldMask, hyper_rustls, hyper_util, yup_oauth2};

let secret: yup_oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
    secret,
    yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();

let client = hyper_util::client::legacy::Client::builder(
    hyper_util::rt::TokioExecutor::new()
)
.build(
    hyper_rustls::HttpsConnectorBuilder::new()
        .with_native_roots()
        .unwrap()
        .https_or_http()
        .enable_http1()
        .build()
);
let mut hub = CloudBuild::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `builds_approve(...)`, `builds_cancel(...)`, `builds_create(...)`, `builds_get(...)`, `builds_list(...)`, `builds_retry(...)`, `github_enterprise_configs_create(...)`, `github_enterprise_configs_delete(...)`, `github_enterprise_configs_get(...)`, `github_enterprise_configs_list(...)`, `github_enterprise_configs_patch(...)`, `locations_bitbucket_server_configs_connected_repositories_batch_create(...)`, `locations_bitbucket_server_configs_create(...)`, `locations_bitbucket_server_configs_delete(...)`, `locations_bitbucket_server_configs_get(...)`, `locations_bitbucket_server_configs_list(...)`, `locations_bitbucket_server_configs_patch(...)`, `locations_bitbucket_server_configs_remove_bitbucket_server_connected_repository(...)`, `locations_bitbucket_server_configs_repos_list(...)`, `locations_builds_approve(...)`, `locations_builds_cancel(...)`, `locations_builds_create(...)`, `locations_builds_get(...)`, `locations_builds_list(...)`, `locations_builds_retry(...)`, `locations_get_default_service_account(...)`, `locations_git_lab_configs_connected_repositories_batch_create(...)`, `locations_git_lab_configs_create(...)`, `locations_git_lab_configs_delete(...)`, `locations_git_lab_configs_get(...)`, `locations_git_lab_configs_list(...)`, `locations_git_lab_configs_patch(...)`, `locations_git_lab_configs_remove_git_lab_connected_repository(...)`, `locations_git_lab_configs_repos_list(...)`, `locations_github_enterprise_configs_create(...)`, `locations_github_enterprise_configs_delete(...)`, `locations_github_enterprise_configs_get(...)`, `locations_github_enterprise_configs_list(...)`, `locations_github_enterprise_configs_patch(...)`, `locations_operations_cancel(...)`, `locations_operations_get(...)`, `locations_triggers_create(...)`, `locations_triggers_delete(...)`, `locations_triggers_get(...)`, `locations_triggers_list(...)`, `locations_triggers_patch(...)`, `locations_triggers_run(...)`, `locations_triggers_webhook(...)`, `locations_worker_pools_create(...)`, `locations_worker_pools_delete(...)`, `locations_worker_pools_get(...)`, `locations_worker_pools_list(...)`, `locations_worker_pools_patch(...)`, `triggers_create(...)`, `triggers_delete(...)`, `triggers_get(...)`, `triggers_list(...)`, `triggers_patch(...)`, `triggers_run(...)` and `triggers_webhook(...)`
// to build up your call.
let rb = hub.projects();

Implementations§

Source§

impl<'a, C> ProjectMethods<'a, C>

Source

pub fn builds_approve( &self, request: ApproveBuildRequest, name: &str, ) -> ProjectBuildApproveCall<'a, C>

Create a builder to help you perform the following task:

Approves or rejects a pending build. If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done.

§Arguments
  • request - No description provided.
  • name - Required. Name of the target build. For example: “projects/{$project_id}/builds/{$build_id}”
Source

pub fn builds_cancel( &self, request: CancelBuildRequest, project_id: &str, id: &str, ) -> ProjectBuildCancelCall<'a, C>

Create a builder to help you perform the following task:

Cancels a build in progress.

§Arguments
  • request - No description provided.
  • projectId - Required. ID of the project.
  • id - Required. ID of the build.
Source

pub fn builds_create( &self, request: Build, project_id: &str, ) -> ProjectBuildCreateCall<'a, C>

Create a builder to help you perform the following task:

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).

§Arguments
  • request - No description provided.
  • projectId - Required. ID of the project.
Source

pub fn builds_get( &self, project_id: &str, id: &str, ) -> ProjectBuildGetCall<'a, C>

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 (such as SUCCESS, FAILURE, or WORKING), and timing information.

§Arguments
  • projectId - Required. ID of the project.
  • id - Required. ID of the build.
Source

pub fn builds_list(&self, project_id: &str) -> ProjectBuildListCall<'a, C>

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 - Required. ID of the project.
Source

pub fn builds_retry( &self, request: RetryBuildRequest, project_id: &str, id: &str, ) -> ProjectBuildRetryCall<'a, C>

Create a builder to help you perform the following task:

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 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 - Required. ID of the project.
  • id - Required. Build ID of the original build.
Source

pub fn github_enterprise_configs_create( &self, request: GitHubEnterpriseConfig, parent: &str, ) -> ProjectGithubEnterpriseConfigCreateCall<'a, C>

Create a builder to help you perform the following task:

Create an association between a GCP project and a GitHub Enterprise server.

§Arguments
  • request - No description provided.
  • parent - Required. Name of the parent project. For example: projects/{$project_number} or projects/{$project_id}
Source

pub fn github_enterprise_configs_delete( &self, name: &str, ) -> ProjectGithubEnterpriseConfigDeleteCall<'a, C>

Create a builder to help you perform the following task:

Delete an association between a GCP project and a GitHub Enterprise server.

§Arguments
  • name - This field should contain the name of the enterprise config resource. For example: “projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}”
Source

pub fn github_enterprise_configs_get( &self, name: &str, ) -> ProjectGithubEnterpriseConfigGetCall<'a, C>

Create a builder to help you perform the following task:

Retrieve a GitHubEnterpriseConfig.

§Arguments
  • name - This field should contain the name of the enterprise config resource. For example: “projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}”
Source

pub fn github_enterprise_configs_list( &self, parent: &str, ) -> ProjectGithubEnterpriseConfigListCall<'a, C>

Create a builder to help you perform the following task:

List all GitHubEnterpriseConfigs for a given project.

§Arguments
  • parent - Name of the parent project. For example: projects/{$project_number} or projects/{$project_id}
Source

pub fn github_enterprise_configs_patch( &self, request: GitHubEnterpriseConfig, name: &str, ) -> ProjectGithubEnterpriseConfigPatchCall<'a, C>

Create a builder to help you perform the following task:

Update an association between a GCP project and a GitHub Enterprise server.

§Arguments
  • request - No description provided.
  • name - The full resource name for the GitHubEnterpriseConfig For example: “projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}”
Source

pub fn locations_bitbucket_server_configs_connected_repositories_batch_create( &self, request: BatchCreateBitbucketServerConnectedRepositoriesRequest, parent: &str, ) -> ProjectLocationBitbucketServerConfigConnectedRepositoryBatchCreateCall<'a, C>

Create a builder to help you perform the following task:

Batch connecting Bitbucket Server repositories to Cloud Build.

§Arguments
  • request - No description provided.
  • parent - The name of the BitbucketServerConfig that added connected repository. Format: projects/{project}/locations/{location}/bitbucketServerConfigs/{config}
Source

pub fn locations_bitbucket_server_configs_repos_list( &self, parent: &str, ) -> ProjectLocationBitbucketServerConfigRepoListCall<'a, C>

Create a builder to help you perform the following task:

List all repositories for a given BitbucketServerConfig. This API is experimental.

§Arguments
  • parent - Required. Name of the parent resource.
Source

pub fn locations_bitbucket_server_configs_create( &self, request: BitbucketServerConfig, parent: &str, ) -> ProjectLocationBitbucketServerConfigCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new BitbucketServerConfig. This API is experimental.

§Arguments
  • request - No description provided.
  • parent - Required. Name of the parent resource.
Source

pub fn locations_bitbucket_server_configs_delete( &self, name: &str, ) -> ProjectLocationBitbucketServerConfigDeleteCall<'a, C>

Create a builder to help you perform the following task:

Delete a BitbucketServerConfig. This API is experimental.

§Arguments
  • name - Required. The config resource name.
Source

pub fn locations_bitbucket_server_configs_get( &self, name: &str, ) -> ProjectLocationBitbucketServerConfigGetCall<'a, C>

Create a builder to help you perform the following task:

Retrieve a BitbucketServerConfig. This API is experimental.

§Arguments
  • name - Required. The config resource name.
Source

pub fn locations_bitbucket_server_configs_list( &self, parent: &str, ) -> ProjectLocationBitbucketServerConfigListCall<'a, C>

Create a builder to help you perform the following task:

List all BitbucketServerConfigs for a given project. This API is experimental.

§Arguments
  • parent - Required. Name of the parent resource.
Source

pub fn locations_bitbucket_server_configs_patch( &self, request: BitbucketServerConfig, name: &str, ) -> ProjectLocationBitbucketServerConfigPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates an existing BitbucketServerConfig. This API is experimental.

§Arguments
  • request - No description provided.
  • name - The resource name for the config.
Source

pub fn locations_bitbucket_server_configs_remove_bitbucket_server_connected_repository( &self, request: RemoveBitbucketServerConnectedRepositoryRequest, config: &str, ) -> ProjectLocationBitbucketServerConfigRemoveBitbucketServerConnectedRepositoryCall<'a, C>

Create a builder to help you perform the following task:

Remove a Bitbucket Server repository from a given BitbucketServerConfig’s connected repositories. This API is experimental.

§Arguments
  • request - No description provided.
  • config - Required. The name of the BitbucketServerConfig to remove a connected repository. Format: projects/{project}/locations/{location}/bitbucketServerConfigs/{config}
Source

pub fn locations_builds_approve( &self, request: ApproveBuildRequest, name: &str, ) -> ProjectLocationBuildApproveCall<'a, C>

Create a builder to help you perform the following task:

Approves or rejects a pending build. If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done.

§Arguments
  • request - No description provided.
  • name - Required. Name of the target build. For example: “projects/{$project_id}/builds/{$build_id}”
Source

pub fn locations_builds_cancel( &self, request: CancelBuildRequest, name: &str, ) -> ProjectLocationBuildCancelCall<'a, C>

Create a builder to help you perform the following task:

Cancels a build in progress.

§Arguments
  • request - No description provided.
  • name - The name of the Build to cancel. Format: projects/{project}/locations/{location}/builds/{build}
Source

pub fn locations_builds_create( &self, request: Build, parent: &str, ) -> ProjectLocationBuildCreateCall<'a, C>

Create a builder to help you perform the following task:

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).

§Arguments
  • request - No description provided.
  • parent - The parent resource where this build will be created. Format: projects/{project}/locations/{location}
Source

pub fn locations_builds_get( &self, name: &str, ) -> ProjectLocationBuildGetCall<'a, C>

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 (such as SUCCESS, FAILURE, or WORKING), and timing information.

§Arguments
  • name - The name of the Build to retrieve. Format: projects/{project}/locations/{location}/builds/{build}
Source

pub fn locations_builds_list( &self, parent: &str, ) -> ProjectLocationBuildListCall<'a, C>

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
  • parent - The parent of the collection of Builds. Format: projects/{project}/locations/{location}
Source

pub fn locations_builds_retry( &self, request: RetryBuildRequest, name: &str, ) -> ProjectLocationBuildRetryCall<'a, C>

Create a builder to help you perform the following task:

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 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.
  • name - The name of the Build to retry. Format: projects/{project}/locations/{location}/builds/{build}
Source

pub fn locations_git_lab_configs_connected_repositories_batch_create( &self, request: BatchCreateGitLabConnectedRepositoriesRequest, parent: &str, ) -> ProjectLocationGitLabConfigConnectedRepositoryBatchCreateCall<'a, C>

Create a builder to help you perform the following task:

Batch connecting GitLab repositories to Cloud Build. This API is experimental.

§Arguments
  • request - No description provided.
  • parent - The name of the GitLabConfig that adds connected repositories. Format: projects/{project}/locations/{location}/gitLabConfigs/{config}
Source

pub fn locations_git_lab_configs_repos_list( &self, parent: &str, ) -> ProjectLocationGitLabConfigRepoListCall<'a, C>

Create a builder to help you perform the following task:

List all repositories for a given GitLabConfig. This API is experimental

§Arguments
  • parent - Required. Name of the parent resource.
Source

pub fn locations_git_lab_configs_create( &self, request: GitLabConfig, parent: &str, ) -> ProjectLocationGitLabConfigCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new GitLabConfig. This API is experimental

§Arguments
  • request - No description provided.
  • parent - Required. Name of the parent resource.
Source

pub fn locations_git_lab_configs_delete( &self, name: &str, ) -> ProjectLocationGitLabConfigDeleteCall<'a, C>

Create a builder to help you perform the following task:

Delete a GitLabConfig. This API is experimental

§Arguments
  • name - Required. The config resource name.
Source

pub fn locations_git_lab_configs_get( &self, name: &str, ) -> ProjectLocationGitLabConfigGetCall<'a, C>

Create a builder to help you perform the following task:

Retrieves a GitLabConfig. This API is experimental

§Arguments
  • name - Required. The config resource name.
Source

pub fn locations_git_lab_configs_list( &self, parent: &str, ) -> ProjectLocationGitLabConfigListCall<'a, C>

Create a builder to help you perform the following task:

List all GitLabConfigs for a given project. This API is experimental

§Arguments
  • parent - Required. Name of the parent resource
Source

pub fn locations_git_lab_configs_patch( &self, request: GitLabConfig, name: &str, ) -> ProjectLocationGitLabConfigPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates an existing GitLabConfig. This API is experimental

§Arguments
  • request - No description provided.
  • name - The resource name for the config.
Source

pub fn locations_git_lab_configs_remove_git_lab_connected_repository( &self, request: RemoveGitLabConnectedRepositoryRequest, config: &str, ) -> ProjectLocationGitLabConfigRemoveGitLabConnectedRepositoryCall<'a, C>

Create a builder to help you perform the following task:

Remove a GitLab repository from a given GitLabConfig’s connected repositories. This API is experimental.

§Arguments
  • request - No description provided.
  • config - Required. The name of the GitLabConfig to remove a connected repository. Format: projects/{project}/locations/{location}/gitLabConfigs/{config}
Source

pub fn locations_github_enterprise_configs_create( &self, request: GitHubEnterpriseConfig, parent: &str, ) -> ProjectLocationGithubEnterpriseConfigCreateCall<'a, C>

Create a builder to help you perform the following task:

Create an association between a GCP project and a GitHub Enterprise server.

§Arguments
  • request - No description provided.
  • parent - Required. Name of the parent project. For example: projects/{$project_number} or projects/{$project_id}
Source

pub fn locations_github_enterprise_configs_delete( &self, name: &str, ) -> ProjectLocationGithubEnterpriseConfigDeleteCall<'a, C>

Create a builder to help you perform the following task:

Delete an association between a GCP project and a GitHub Enterprise server.

§Arguments
  • name - This field should contain the name of the enterprise config resource. For example: “projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}”
Source

pub fn locations_github_enterprise_configs_get( &self, name: &str, ) -> ProjectLocationGithubEnterpriseConfigGetCall<'a, C>

Create a builder to help you perform the following task:

Retrieve a GitHubEnterpriseConfig.

§Arguments
  • name - This field should contain the name of the enterprise config resource. For example: “projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}”
Source

pub fn locations_github_enterprise_configs_list( &self, parent: &str, ) -> ProjectLocationGithubEnterpriseConfigListCall<'a, C>

Create a builder to help you perform the following task:

List all GitHubEnterpriseConfigs for a given project.

§Arguments
  • parent - Name of the parent project. For example: projects/{$project_number} or projects/{$project_id}
Source

pub fn locations_github_enterprise_configs_patch( &self, request: GitHubEnterpriseConfig, name: &str, ) -> ProjectLocationGithubEnterpriseConfigPatchCall<'a, C>

Create a builder to help you perform the following task:

Update an association between a GCP project and a GitHub Enterprise server.

§Arguments
  • request - No description provided.
  • name - The full resource name for the GitHubEnterpriseConfig For example: “projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}”
Source

pub fn locations_operations_cancel( &self, request: CancelOperationRequest, name: &str, ) -> ProjectLocationOperationCancelCall<'a, C>

Create a builder to help you perform the following task:

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn’t support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

§Arguments
  • request - No description provided.
  • name - The name of the operation resource to be cancelled.
Source

pub fn locations_operations_get( &self, name: &str, ) -> ProjectLocationOperationGetCall<'a, C>

Create a builder to help you perform the following task:

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

§Arguments
  • name - The name of the operation resource.
Source

pub fn locations_triggers_create( &self, request: BuildTrigger, parent: &str, ) -> ProjectLocationTriggerCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new BuildTrigger.

§Arguments
  • request - No description provided.
  • parent - The parent resource where this trigger will be created. Format: projects/{project}/locations/{location}
Source

pub fn locations_triggers_delete( &self, name: &str, ) -> ProjectLocationTriggerDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes a BuildTrigger by its project ID and trigger ID.

§Arguments
  • name - The name of the Trigger to delete. Format: projects/{project}/locations/{location}/triggers/{trigger}
Source

pub fn locations_triggers_get( &self, name: &str, ) -> ProjectLocationTriggerGetCall<'a, C>

Create a builder to help you perform the following task:

Returns information about a BuildTrigger.

§Arguments
  • name - The name of the Trigger to retrieve. Format: projects/{project}/locations/{location}/triggers/{trigger}
Source

pub fn locations_triggers_list( &self, parent: &str, ) -> ProjectLocationTriggerListCall<'a, C>

Create a builder to help you perform the following task:

Lists existing BuildTriggers.

§Arguments
  • parent - The parent of the collection of Triggers. Format: projects/{project}/locations/{location}
Source

pub fn locations_triggers_patch( &self, request: BuildTrigger, resource_name: &str, ) -> ProjectLocationTriggerPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates a BuildTrigger by its project ID and trigger ID.

§Arguments
  • request - No description provided.
  • resourceName - The Trigger name with format: projects/{project}/locations/{location}/triggers/{trigger}, where {trigger} is a unique identifier generated by the service.
Source

pub fn locations_triggers_run( &self, request: RunBuildTriggerRequest, name: &str, ) -> ProjectLocationTriggerRunCall<'a, C>

Create a builder to help you perform the following task:

Runs a BuildTrigger at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path (ex. v1/projects/{projectId}/locations/{region}/triggers/{triggerId}:run). The POST request that does not include the location endpoint in the path can only be used when running global triggers.

§Arguments
  • request - No description provided.
  • name - The name of the Trigger to run. Format: projects/{project}/locations/{location}/triggers/{trigger}
Source

pub fn locations_triggers_webhook( &self, request: HttpBody, name: &str, ) -> ProjectLocationTriggerWebhookCall<'a, C>

Create a builder to help you perform the following task:

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

§Arguments
  • request - No description provided.
  • name - The name of the ReceiveTriggerWebhook to retrieve. Format: projects/{project}/locations/{location}/triggers/{trigger}
Source

pub fn locations_worker_pools_create( &self, request: WorkerPool, parent: &str, ) -> ProjectLocationWorkerPoolCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a WorkerPool.

§Arguments
  • request - No description provided.
  • parent - Required. The parent resource where this worker pool will be created. Format: projects/{project}/locations/{location}.
Source

pub fn locations_worker_pools_delete( &self, name: &str, ) -> ProjectLocationWorkerPoolDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes a WorkerPool.

§Arguments
  • name - Required. The name of the WorkerPool to delete. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.
Source

pub fn locations_worker_pools_get( &self, name: &str, ) -> ProjectLocationWorkerPoolGetCall<'a, C>

Create a builder to help you perform the following task:

Returns details of a WorkerPool.

§Arguments
  • name - Required. The name of the WorkerPool to retrieve. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.
Source

pub fn locations_worker_pools_list( &self, parent: &str, ) -> ProjectLocationWorkerPoolListCall<'a, C>

Create a builder to help you perform the following task:

Lists WorkerPools.

§Arguments
  • parent - Required. The parent of the collection of WorkerPools. Format: projects/{project}/locations/{location}.
Source

pub fn locations_worker_pools_patch( &self, request: WorkerPool, name: &str, ) -> ProjectLocationWorkerPoolPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates a WorkerPool.

§Arguments
  • request - No description provided.
  • name - Output only. The resource name of the WorkerPool, with format projects/{project}/locations/{location}/workerPools/{worker_pool}. The value of {worker_pool} is provided by worker_pool_id in CreateWorkerPool request and the value of {location} is determined by the endpoint accessed.
Source

pub fn locations_get_default_service_account( &self, name: &str, ) -> ProjectLocationGetDefaultServiceAccountCall<'a, C>

Create a builder to help you perform the following task:

Returns the DefaultServiceAccount used by the project.

§Arguments
  • name - Required. The name of the DefaultServiceAccount to retrieve. Format: projects/{project}/locations/{location}/defaultServiceAccount
Source

pub fn triggers_create( &self, request: BuildTrigger, project_id: &str, ) -> ProjectTriggerCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new BuildTrigger.

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

pub fn triggers_delete( &self, project_id: &str, trigger_id: &str, ) -> ProjectTriggerDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes a BuildTrigger by its project ID and trigger ID.

§Arguments
  • projectId - Required. ID of the project that owns the trigger.
  • triggerId - Required. ID of the BuildTrigger to delete.
Source

pub fn triggers_get( &self, project_id: &str, trigger_id: &str, ) -> ProjectTriggerGetCall<'a, C>

Create a builder to help you perform the following task:

Returns information about a BuildTrigger.

§Arguments
  • projectId - Required. ID of the project that owns the trigger.
  • triggerId - Required. Identifier (id or name) of the BuildTrigger to get.
Source

pub fn triggers_list(&self, project_id: &str) -> ProjectTriggerListCall<'a, C>

Create a builder to help you perform the following task:

Lists existing BuildTriggers.

§Arguments
  • projectId - Required. ID of the project for which to list BuildTriggers.
Source

pub fn triggers_patch( &self, request: BuildTrigger, project_id: &str, trigger_id: &str, ) -> ProjectTriggerPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates a BuildTrigger by its project ID and trigger ID.

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

pub fn triggers_run( &self, request: RepoSource, project_id: &str, trigger_id: &str, ) -> ProjectTriggerRunCall<'a, C>

Create a builder to help you perform the following task:

Runs a BuildTrigger at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path (ex. v1/projects/{projectId}/locations/{region}/triggers/{triggerId}:run). The POST request that does not include the location endpoint in the path can only be used when running global triggers.

§Arguments
  • request - No description provided.
  • projectId - Required. ID of the project.
  • triggerId - Required. ID of the trigger.
Source

pub fn triggers_webhook( &self, request: HttpBody, project_id: &str, trigger: &str, ) -> ProjectTriggerWebhookCall<'a, C>

Create a builder to help you perform the following task:

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

§Arguments
  • request - No description provided.
  • projectId - Project in which the specified trigger lives
  • trigger - Name of the trigger to run the payload against

Trait Implementations§

Source§

impl<'a, C> MethodsBuilder for ProjectMethods<'a, C>

Auto Trait Implementations§

§

impl<'a, C> Freeze for ProjectMethods<'a, C>

§

impl<'a, C> !RefUnwindSafe for ProjectMethods<'a, C>

§

impl<'a, C> Send for ProjectMethods<'a, C>
where C: Sync,

§

impl<'a, C> Sync for ProjectMethods<'a, C>
where C: Sync,

§

impl<'a, C> Unpin for ProjectMethods<'a, C>

§

impl<'a, C> !UnwindSafe for ProjectMethods<'a, C>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,