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.
-
#value ⇒ Google::Apis::CloudbuildV2::ParamValue
Parameter value.
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.
2894 2895 2896 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2894 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Description of the result.
Corresponds to the JSON property description
2871 2872 2873 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2871 def description @description end |
#name ⇒ String
Name of the result.
Corresponds to the JSON property name
2876 2877 2878 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2876 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
2882 2883 2884 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2882 def properties @properties end |
#type ⇒ String
The type of data that the result holds.
Corresponds to the JSON property type
2887 2888 2889 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2887 def type @type end |
#value ⇒ Google::Apis::CloudbuildV2::ParamValue
Parameter value.
Corresponds to the JSON property value
2892 2893 2894 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2892 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2899 2900 2901 2902 2903 2904 2905 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2899 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) @value = args[:value] if args.key?(:value) end |