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>
impl<'a, C> ProjectMethods<'a, C>
Sourcepub fn builds_approve(
&self,
request: ApproveBuildRequest,
name: &str,
) -> ProjectBuildApproveCall<'a, C>
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}”
Sourcepub fn builds_cancel(
&self,
request: CancelBuildRequest,
project_id: &str,
id: &str,
) -> ProjectBuildCancelCall<'a, C>
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.
Sourcepub fn builds_create(
&self,
request: Build,
project_id: &str,
) -> ProjectBuildCreateCall<'a, C>
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.
Sourcepub fn builds_get(
&self,
project_id: &str,
id: &str,
) -> ProjectBuildGetCall<'a, C>
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.
Sourcepub fn builds_list(&self, project_id: &str) -> ProjectBuildListCall<'a, C>
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.
Sourcepub fn builds_retry(
&self,
request: RetryBuildRequest,
project_id: &str,
id: &str,
) -> ProjectBuildRetryCall<'a, C>
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.
Sourcepub fn github_enterprise_configs_create(
&self,
request: GitHubEnterpriseConfig,
parent: &str,
) -> ProjectGithubEnterpriseConfigCreateCall<'a, C>
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}
Sourcepub fn github_enterprise_configs_delete(
&self,
name: &str,
) -> ProjectGithubEnterpriseConfigDeleteCall<'a, C>
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}”
Sourcepub fn github_enterprise_configs_get(
&self,
name: &str,
) -> ProjectGithubEnterpriseConfigGetCall<'a, C>
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}”
Sourcepub fn github_enterprise_configs_list(
&self,
parent: &str,
) -> ProjectGithubEnterpriseConfigListCall<'a, C>
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}
Sourcepub fn github_enterprise_configs_patch(
&self,
request: GitHubEnterpriseConfig,
name: &str,
) -> ProjectGithubEnterpriseConfigPatchCall<'a, C>
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}”
Sourcepub fn locations_bitbucket_server_configs_connected_repositories_batch_create(
&self,
request: BatchCreateBitbucketServerConnectedRepositoriesRequest,
parent: &str,
) -> ProjectLocationBitbucketServerConfigConnectedRepositoryBatchCreateCall<'a, C>
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 theBitbucketServerConfigthat added connected repository. Format:projects/{project}/locations/{location}/bitbucketServerConfigs/{config}
Sourcepub fn locations_bitbucket_server_configs_repos_list(
&self,
parent: &str,
) -> ProjectLocationBitbucketServerConfigRepoListCall<'a, C>
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.
Sourcepub fn locations_bitbucket_server_configs_create(
&self,
request: BitbucketServerConfig,
parent: &str,
) -> ProjectLocationBitbucketServerConfigCreateCall<'a, C>
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.
Sourcepub fn locations_bitbucket_server_configs_delete(
&self,
name: &str,
) -> ProjectLocationBitbucketServerConfigDeleteCall<'a, C>
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.
Sourcepub fn locations_bitbucket_server_configs_get(
&self,
name: &str,
) -> ProjectLocationBitbucketServerConfigGetCall<'a, C>
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.
Sourcepub fn locations_bitbucket_server_configs_list(
&self,
parent: &str,
) -> ProjectLocationBitbucketServerConfigListCall<'a, C>
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.
Sourcepub fn locations_bitbucket_server_configs_patch(
&self,
request: BitbucketServerConfig,
name: &str,
) -> ProjectLocationBitbucketServerConfigPatchCall<'a, C>
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.
Sourcepub fn locations_bitbucket_server_configs_remove_bitbucket_server_connected_repository(
&self,
request: RemoveBitbucketServerConnectedRepositoryRequest,
config: &str,
) -> ProjectLocationBitbucketServerConfigRemoveBitbucketServerConnectedRepositoryCall<'a, C>
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 theBitbucketServerConfigto remove a connected repository. Format:projects/{project}/locations/{location}/bitbucketServerConfigs/{config}
Sourcepub fn locations_builds_approve(
&self,
request: ApproveBuildRequest,
name: &str,
) -> ProjectLocationBuildApproveCall<'a, C>
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}”
Sourcepub fn locations_builds_cancel(
&self,
request: CancelBuildRequest,
name: &str,
) -> ProjectLocationBuildCancelCall<'a, C>
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 theBuildto cancel. Format:projects/{project}/locations/{location}/builds/{build}
Sourcepub fn locations_builds_create(
&self,
request: Build,
parent: &str,
) -> ProjectLocationBuildCreateCall<'a, C>
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}
Sourcepub fn locations_builds_get(
&self,
name: &str,
) -> ProjectLocationBuildGetCall<'a, C>
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 theBuildto retrieve. Format:projects/{project}/locations/{location}/builds/{build}
Sourcepub fn locations_builds_list(
&self,
parent: &str,
) -> ProjectLocationBuildListCall<'a, C>
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 ofBuilds. Format:projects/{project}/locations/{location}
Sourcepub fn locations_builds_retry(
&self,
request: RetryBuildRequest,
name: &str,
) -> ProjectLocationBuildRetryCall<'a, C>
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 theBuildto retry. Format:projects/{project}/locations/{location}/builds/{build}
Sourcepub fn locations_git_lab_configs_connected_repositories_batch_create(
&self,
request: BatchCreateGitLabConnectedRepositoriesRequest,
parent: &str,
) -> ProjectLocationGitLabConfigConnectedRepositoryBatchCreateCall<'a, C>
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 theGitLabConfigthat adds connected repositories. Format:projects/{project}/locations/{location}/gitLabConfigs/{config}
Sourcepub fn locations_git_lab_configs_repos_list(
&self,
parent: &str,
) -> ProjectLocationGitLabConfigRepoListCall<'a, C>
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.
Sourcepub fn locations_git_lab_configs_create(
&self,
request: GitLabConfig,
parent: &str,
) -> ProjectLocationGitLabConfigCreateCall<'a, C>
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.
Sourcepub fn locations_git_lab_configs_delete(
&self,
name: &str,
) -> ProjectLocationGitLabConfigDeleteCall<'a, C>
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.
Sourcepub fn locations_git_lab_configs_get(
&self,
name: &str,
) -> ProjectLocationGitLabConfigGetCall<'a, C>
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.
Sourcepub fn locations_git_lab_configs_list(
&self,
parent: &str,
) -> ProjectLocationGitLabConfigListCall<'a, C>
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
Sourcepub fn locations_git_lab_configs_patch(
&self,
request: GitLabConfig,
name: &str,
) -> ProjectLocationGitLabConfigPatchCall<'a, C>
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.
Sourcepub fn locations_git_lab_configs_remove_git_lab_connected_repository(
&self,
request: RemoveGitLabConnectedRepositoryRequest,
config: &str,
) -> ProjectLocationGitLabConfigRemoveGitLabConnectedRepositoryCall<'a, C>
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 theGitLabConfigto remove a connected repository. Format:projects/{project}/locations/{location}/gitLabConfigs/{config}
Sourcepub fn locations_github_enterprise_configs_create(
&self,
request: GitHubEnterpriseConfig,
parent: &str,
) -> ProjectLocationGithubEnterpriseConfigCreateCall<'a, C>
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}
Sourcepub fn locations_github_enterprise_configs_delete(
&self,
name: &str,
) -> ProjectLocationGithubEnterpriseConfigDeleteCall<'a, C>
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}”
Sourcepub fn locations_github_enterprise_configs_get(
&self,
name: &str,
) -> ProjectLocationGithubEnterpriseConfigGetCall<'a, C>
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}”
Sourcepub fn locations_github_enterprise_configs_list(
&self,
parent: &str,
) -> ProjectLocationGithubEnterpriseConfigListCall<'a, C>
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}
Sourcepub fn locations_github_enterprise_configs_patch(
&self,
request: GitHubEnterpriseConfig,
name: &str,
) -> ProjectLocationGithubEnterpriseConfigPatchCall<'a, C>
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}”
Sourcepub fn locations_operations_cancel(
&self,
request: CancelOperationRequest,
name: &str,
) -> ProjectLocationOperationCancelCall<'a, C>
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.
Sourcepub fn locations_operations_get(
&self,
name: &str,
) -> ProjectLocationOperationGetCall<'a, C>
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.
Sourcepub fn locations_triggers_create(
&self,
request: BuildTrigger,
parent: &str,
) -> ProjectLocationTriggerCreateCall<'a, C>
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}
Sourcepub fn locations_triggers_delete(
&self,
name: &str,
) -> ProjectLocationTriggerDeleteCall<'a, C>
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 theTriggerto delete. Format:projects/{project}/locations/{location}/triggers/{trigger}
Sourcepub fn locations_triggers_get(
&self,
name: &str,
) -> ProjectLocationTriggerGetCall<'a, C>
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 theTriggerto retrieve. Format:projects/{project}/locations/{location}/triggers/{trigger}
Sourcepub fn locations_triggers_list(
&self,
parent: &str,
) -> ProjectLocationTriggerListCall<'a, C>
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 ofTriggers. Format:projects/{project}/locations/{location}
Sourcepub fn locations_triggers_patch(
&self,
request: BuildTrigger,
resource_name: &str,
) -> ProjectLocationTriggerPatchCall<'a, C>
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- TheTriggername with format:projects/{project}/locations/{location}/triggers/{trigger}, where {trigger} is a unique identifier generated by the service.
Sourcepub fn locations_triggers_run(
&self,
request: RunBuildTriggerRequest,
name: &str,
) -> ProjectLocationTriggerRunCall<'a, C>
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 theTriggerto run. Format:projects/{project}/locations/{location}/triggers/{trigger}
Sourcepub fn locations_triggers_webhook(
&self,
request: HttpBody,
name: &str,
) -> ProjectLocationTriggerWebhookCall<'a, C>
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 theReceiveTriggerWebhookto retrieve. Format:projects/{project}/locations/{location}/triggers/{trigger}
Sourcepub fn locations_worker_pools_create(
&self,
request: WorkerPool,
parent: &str,
) -> ProjectLocationWorkerPoolCreateCall<'a, C>
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}.
Sourcepub fn locations_worker_pools_delete(
&self,
name: &str,
) -> ProjectLocationWorkerPoolDeleteCall<'a, C>
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 theWorkerPoolto delete. Format:projects/{project}/locations/{location}/workerPools/{workerPool}.
Sourcepub fn locations_worker_pools_get(
&self,
name: &str,
) -> ProjectLocationWorkerPoolGetCall<'a, C>
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 theWorkerPoolto retrieve. Format:projects/{project}/locations/{location}/workerPools/{workerPool}.
Sourcepub fn locations_worker_pools_list(
&self,
parent: &str,
) -> ProjectLocationWorkerPoolListCall<'a, C>
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 ofWorkerPools. Format:projects/{project}/locations/{location}.
Sourcepub fn locations_worker_pools_patch(
&self,
request: WorkerPool,
name: &str,
) -> ProjectLocationWorkerPoolPatchCall<'a, C>
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 theWorkerPool, with formatprojects/{project}/locations/{location}/workerPools/{worker_pool}. The value of{worker_pool}is provided byworker_pool_idinCreateWorkerPoolrequest and the value of{location}is determined by the endpoint accessed.
Sourcepub fn locations_get_default_service_account(
&self,
name: &str,
) -> ProjectLocationGetDefaultServiceAccountCall<'a, C>
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 theDefaultServiceAccountto retrieve. Format:projects/{project}/locations/{location}/defaultServiceAccount
Sourcepub fn triggers_create(
&self,
request: BuildTrigger,
project_id: &str,
) -> ProjectTriggerCreateCall<'a, C>
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.
Sourcepub fn triggers_delete(
&self,
project_id: &str,
trigger_id: &str,
) -> ProjectTriggerDeleteCall<'a, C>
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 theBuildTriggerto delete.
Sourcepub fn triggers_get(
&self,
project_id: &str,
trigger_id: &str,
) -> ProjectTriggerGetCall<'a, C>
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 (idorname) of theBuildTriggerto get.
Sourcepub fn triggers_list(&self, project_id: &str) -> ProjectTriggerListCall<'a, C>
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.
Sourcepub fn triggers_patch(
&self,
request: BuildTrigger,
project_id: &str,
trigger_id: &str,
) -> ProjectTriggerPatchCall<'a, C>
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 theBuildTriggerto update.
Sourcepub fn triggers_run(
&self,
request: RepoSource,
project_id: &str,
trigger_id: &str,
) -> ProjectTriggerRunCall<'a, C>
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.
Sourcepub fn triggers_webhook(
&self,
request: HttpBody,
project_id: &str,
trigger: &str,
) -> ProjectTriggerWebhookCall<'a, C>
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 livestrigger- Name of the trigger to run the payload against
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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