Class: Google::Apis::CloudbuildV1::RetryBuildRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::RetryBuildRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/google/apis/cloudbuild_v1/representations.rb
Overview
Specifies a build to retry.
Instance Attribute Summary collapse
-
#id ⇒ String
Required.
-
#name ⇒ String
The name of the
Buildto retry. -
#project_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RetryBuildRequest
constructor
A new instance of RetryBuildRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RetryBuildRequest
Returns a new instance of RetryBuildRequest.
3579 3580 3581 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3579 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Required. Build ID of the original build.
Corresponds to the JSON property id
3566 3567 3568 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3566 def id @id end |
#name ⇒ String
The name of the Build to retry. Format: projects/project/locations/
location/builds/build`
Corresponds to the JSON propertyname`
3572 3573 3574 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3572 def name @name end |
#project_id ⇒ String
Required. ID of the project.
Corresponds to the JSON property projectId
3577 3578 3579 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3577 def project_id @project_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3584 3585 3586 3587 3588 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3584 def update!(**args) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @project_id = args[:project_id] if args.key?(:project_id) end |