Class: Google::Apis::CloudbuildV2::TaskResult
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::TaskResult
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/representations.rb
Overview
TaskResult is used to describe the results of a task.
Instance Attribute Summary collapse
-
#description ⇒ String
Description of the result.
-
#name ⇒ String
Name of the result.
-
#properties ⇒ Hash<String,Google::Apis::CloudbuildV2::PropertySpec>
When type is OBJECT, this map holds the names of fields inside that object along with the type of data each field holds.
-
#type ⇒ String
The type of data that the result holds.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TaskResult
constructor
A new instance of TaskResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TaskResult
Returns a new instance of TaskResult.
2475 2476 2477 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2475 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Description of the result.
Corresponds to the JSON property description
2457 2458 2459 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2457 def description @description end |
#name ⇒ String
Name of the result.
Corresponds to the JSON property name
2462 2463 2464 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2462 def name @name end |
#properties ⇒ Hash<String,Google::Apis::CloudbuildV2::PropertySpec>
When type is OBJECT, this map holds the names of fields inside that object
along with the type of data each field holds.
Corresponds to the JSON property properties
2468 2469 2470 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2468 def properties @properties end |
#type ⇒ String
The type of data that the result holds.
Corresponds to the JSON property type
2473 2474 2475 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2473 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2480 2481 2482 2483 2484 2485 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2480 def update!(**args) @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) @properties = args[:properties] if args.key?(:properties) @type = args[:type] if args.key?(:type) end |