Class: Google::Apis::ClouddeployV1::RetryJobRequest
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::RetryJobRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/clouddeploy_v1/classes.rb,
lib/google/apis/clouddeploy_v1/representations.rb,
lib/google/apis/clouddeploy_v1/representations.rb
Overview
RetryJobRequest is the request object used by RetryJob
.
Instance Attribute Summary collapse
-
#job_id ⇒ String
Required.
-
#override_deploy_policy ⇒ Array<String>
Optional.
-
#phase_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RetryJobRequest
constructor
A new instance of RetryJobRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RetryJobRequest
Returns a new instance of RetryJobRequest.
4629 4630 4631 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4629 def initialize(**args) update!(**args) end |
Instance Attribute Details
#job_id ⇒ String
Required. The job ID for the Job to retry.
Corresponds to the JSON property jobId
4616 4617 4618 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4616 def job_id @job_id end |
#override_deploy_policy ⇒ Array<String>
Optional. Deploy policies to override. Format is projects/
project/locations/
location/deployPolicies/
deployPolicy`.
Corresponds to the JSON property
overrideDeployPolicy`
4622 4623 4624 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4622 def override_deploy_policy @override_deploy_policy end |
#phase_id ⇒ String
Required. The phase ID the Job to retry belongs to.
Corresponds to the JSON property phaseId
4627 4628 4629 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4627 def phase_id @phase_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4634 4635 4636 4637 4638 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4634 def update!(**args) @job_id = args[:job_id] if args.key?(:job_id) @override_deploy_policy = args[:override_deploy_policy] if args.key?(:override_deploy_policy) @phase_id = args[:phase_id] if args.key?(:phase_id) end |