Class: Google::Apis::CloudbuildV1::CancelBuildRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::CancelBuildRequest
- 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
Request to cancel an ongoing build.
Instance Attribute Summary collapse
-
#id ⇒ String
Required.
-
#name ⇒ String
The name of the
Buildto cancel. -
#project_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CancelBuildRequest
constructor
A new instance of CancelBuildRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CancelBuildRequest
Returns a new instance of CancelBuildRequest.
1591 1592 1593 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1591 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Required. ID of the build.
Corresponds to the JSON property id
1578 1579 1580 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1578 def id @id end |
#name ⇒ String
The name of the Build to cancel. Format: projects/project/locations/
location/builds/build`
Corresponds to the JSON propertyname`
1584 1585 1586 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1584 def name @name end |
#project_id ⇒ String
Required. ID of the project.
Corresponds to the JSON property projectId
1589 1590 1591 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1589 def project_id @project_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1596 1597 1598 1599 1600 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1596 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 |