pub struct CloudDeploy { /* private fields */ }
Expand description
Implements a client for the Cloud Deploy API.
§Example
let client = CloudDeploy::builder().build().await?;
// use `client` to make requests to the Cloud Deploy API.
§Service Description
CloudDeploy service creates and manages Continuous Delivery operations on Google Cloud Platform via Skaffold (https://skaffold.dev).
§Configuration
To configure CloudDeploy
use the with_*
methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://clouddeploy.googleapis.com
). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
CloudDeploy
holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap CloudDeploy
in
an Rc or Arc to reuse it, because it
already uses an Arc
internally.
Implementations§
Source§impl CloudDeploy
impl CloudDeploy
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for CloudDeploy.
let client = CloudDeploy::builder().build().await?;
Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: CloudDeploy + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: CloudDeploy + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn list_delivery_pipelines(&self) -> ListDeliveryPipelines
pub fn list_delivery_pipelines(&self) -> ListDeliveryPipelines
Lists DeliveryPipelines in a given project and location.
Sourcepub fn get_delivery_pipeline(&self) -> GetDeliveryPipeline
pub fn get_delivery_pipeline(&self) -> GetDeliveryPipeline
Gets details of a single DeliveryPipeline.
Sourcepub fn create_delivery_pipeline(&self) -> CreateDeliveryPipeline
pub fn create_delivery_pipeline(&self) -> CreateDeliveryPipeline
Creates a new DeliveryPipeline in a given project and location.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn update_delivery_pipeline(&self) -> UpdateDeliveryPipeline
pub fn update_delivery_pipeline(&self) -> UpdateDeliveryPipeline
Updates the parameters of a single DeliveryPipeline.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_delivery_pipeline(&self) -> DeleteDeliveryPipeline
pub fn delete_delivery_pipeline(&self) -> DeleteDeliveryPipeline
Deletes a single DeliveryPipeline.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_targets(&self) -> ListTargets
pub fn list_targets(&self) -> ListTargets
Lists Targets in a given project and location.
Sourcepub fn rollback_target(&self) -> RollbackTarget
pub fn rollback_target(&self) -> RollbackTarget
Creates a Rollout
to roll back the specified target.
Sourcepub fn get_target(&self) -> GetTarget
pub fn get_target(&self) -> GetTarget
Gets details of a single Target.
Sourcepub fn create_target(&self) -> CreateTarget
pub fn create_target(&self) -> CreateTarget
Creates a new Target in a given project and location.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn update_target(&self) -> UpdateTarget
pub fn update_target(&self) -> UpdateTarget
Updates the parameters of a single Target.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_target(&self) -> DeleteTarget
pub fn delete_target(&self) -> DeleteTarget
Deletes a single Target.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_custom_target_types(&self) -> ListCustomTargetTypes
pub fn list_custom_target_types(&self) -> ListCustomTargetTypes
Lists CustomTargetTypes in a given project and location.
Sourcepub fn get_custom_target_type(&self) -> GetCustomTargetType
pub fn get_custom_target_type(&self) -> GetCustomTargetType
Gets details of a single CustomTargetType.
Sourcepub fn create_custom_target_type(&self) -> CreateCustomTargetType
pub fn create_custom_target_type(&self) -> CreateCustomTargetType
Creates a new CustomTargetType in a given project and location.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn update_custom_target_type(&self) -> UpdateCustomTargetType
pub fn update_custom_target_type(&self) -> UpdateCustomTargetType
Updates a single CustomTargetType.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_custom_target_type(&self) -> DeleteCustomTargetType
pub fn delete_custom_target_type(&self) -> DeleteCustomTargetType
Deletes a single CustomTargetType.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_releases(&self) -> ListReleases
pub fn list_releases(&self) -> ListReleases
Lists Releases in a given project and location.
Sourcepub fn get_release(&self) -> GetRelease
pub fn get_release(&self) -> GetRelease
Gets details of a single Release.
Sourcepub fn create_release(&self) -> CreateRelease
pub fn create_release(&self) -> CreateRelease
Creates a new Release in a given project and location.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn abandon_release(&self) -> AbandonRelease
pub fn abandon_release(&self) -> AbandonRelease
Abandons a Release in the Delivery Pipeline.
Sourcepub fn create_deploy_policy(&self) -> CreateDeployPolicy
pub fn create_deploy_policy(&self) -> CreateDeployPolicy
Creates a new DeployPolicy in a given project and location.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn update_deploy_policy(&self) -> UpdateDeployPolicy
pub fn update_deploy_policy(&self) -> UpdateDeployPolicy
Updates the parameters of a single DeployPolicy.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_deploy_policy(&self) -> DeleteDeployPolicy
pub fn delete_deploy_policy(&self) -> DeleteDeployPolicy
Deletes a single DeployPolicy.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_deploy_policies(&self) -> ListDeployPolicies
pub fn list_deploy_policies(&self) -> ListDeployPolicies
Lists DeployPolicies in a given project and location.
Sourcepub fn get_deploy_policy(&self) -> GetDeployPolicy
pub fn get_deploy_policy(&self) -> GetDeployPolicy
Gets details of a single DeployPolicy.
Sourcepub fn approve_rollout(&self) -> ApproveRollout
pub fn approve_rollout(&self) -> ApproveRollout
Approves a Rollout.
Sourcepub fn advance_rollout(&self) -> AdvanceRollout
pub fn advance_rollout(&self) -> AdvanceRollout
Advances a Rollout in a given project and location.
Sourcepub fn cancel_rollout(&self) -> CancelRollout
pub fn cancel_rollout(&self) -> CancelRollout
Cancels a Rollout in a given project and location.
Sourcepub fn list_rollouts(&self) -> ListRollouts
pub fn list_rollouts(&self) -> ListRollouts
Lists Rollouts in a given project and location.
Sourcepub fn get_rollout(&self) -> GetRollout
pub fn get_rollout(&self) -> GetRollout
Gets details of a single Rollout.
Sourcepub fn create_rollout(&self) -> CreateRollout
pub fn create_rollout(&self) -> CreateRollout
Creates a new Rollout in a given project and location.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn ignore_job(&self) -> IgnoreJob
pub fn ignore_job(&self) -> IgnoreJob
Ignores the specified Job in a Rollout.
Sourcepub fn list_job_runs(&self) -> ListJobRuns
pub fn list_job_runs(&self) -> ListJobRuns
Lists JobRuns in a given project and location.
Sourcepub fn get_job_run(&self) -> GetJobRun
pub fn get_job_run(&self) -> GetJobRun
Gets details of a single JobRun.
Sourcepub fn terminate_job_run(&self) -> TerminateJobRun
pub fn terminate_job_run(&self) -> TerminateJobRun
Terminates a Job Run in a given project and location.
Sourcepub fn get_config(&self) -> GetConfig
pub fn get_config(&self) -> GetConfig
Gets the configuration for a location.
Sourcepub fn create_automation(&self) -> CreateAutomation
pub fn create_automation(&self) -> CreateAutomation
Creates a new Automation in a given project and location.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn update_automation(&self) -> UpdateAutomation
pub fn update_automation(&self) -> UpdateAutomation
Updates the parameters of a single Automation resource.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_automation(&self) -> DeleteAutomation
pub fn delete_automation(&self) -> DeleteAutomation
Deletes a single Automation resource.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn get_automation(&self) -> GetAutomation
pub fn get_automation(&self) -> GetAutomation
Gets details of a single Automation.
Sourcepub fn list_automations(&self) -> ListAutomations
pub fn list_automations(&self) -> ListAutomations
Lists Automations in a given project and location.
Sourcepub fn get_automation_run(&self) -> GetAutomationRun
pub fn get_automation_run(&self) -> GetAutomationRun
Gets details of a single AutomationRun.
Sourcepub fn list_automation_runs(&self) -> ListAutomationRuns
pub fn list_automation_runs(&self) -> ListAutomationRuns
Lists AutomationRuns in a given project and location.
Sourcepub fn cancel_automation_run(&self) -> CancelAutomationRun
pub fn cancel_automation_run(&self) -> CancelAutomationRun
Cancels an AutomationRun. The state
of the AutomationRun
after
cancelling is CANCELLED
. CancelAutomationRun
can be called on
AutomationRun in the state IN_PROGRESS
and PENDING
; AutomationRun
in a different state returns an FAILED_PRECONDITION
error.
Sourcepub fn list_locations(&self) -> ListLocations
pub fn list_locations(&self) -> ListLocations
Lists information about the supported locations for this service.
Sourcepub fn get_location(&self) -> GetLocation
pub fn get_location(&self) -> GetLocation
Gets information about a location.
Sourcepub fn set_iam_policy(&self) -> SetIamPolicy
pub fn set_iam_policy(&self) -> SetIamPolicy
Sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
Sourcepub fn get_iam_policy(&self) -> GetIamPolicy
pub fn get_iam_policy(&self) -> GetIamPolicy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Sourcepub fn test_iam_permissions(&self) -> TestIamPermissions
pub fn test_iam_permissions(&self) -> TestIamPermissions
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of
permissions, not a NOT_FOUND
error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
Sourcepub fn list_operations(&self) -> ListOperations
pub fn list_operations(&self) -> ListOperations
Provides the Operations service functionality in this service.
Sourcepub fn get_operation(&self) -> GetOperation
pub fn get_operation(&self) -> GetOperation
Provides the Operations service functionality in this service.
Sourcepub fn delete_operation(&self) -> DeleteOperation
pub fn delete_operation(&self) -> DeleteOperation
Provides the Operations service functionality in this service.
Sourcepub fn cancel_operation(&self) -> CancelOperation
pub fn cancel_operation(&self) -> CancelOperation
Provides the Operations service functionality in this service.
Trait Implementations§
Source§impl Clone for CloudDeploy
impl Clone for CloudDeploy
Source§fn clone(&self) -> CloudDeploy
fn clone(&self) -> CloudDeploy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more