Class: Google::Apis::CloudbuildV2::ResultValue
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::ResultValue
- 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
ResultValue holds different types of data for a single result.
Instance Attribute Summary collapse
-
#array_val ⇒ Array<String>
Value of the result if type is array.
-
#object_val ⇒ Hash<String,String>
Value of the result if type is object.
-
#string_val ⇒ String
Value of the result if type is string.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResultValue
constructor
A new instance of ResultValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResultValue
Returns a new instance of ResultValue.
2281 2282 2283 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2281 def initialize(**args) update!(**args) end |
Instance Attribute Details
#array_val ⇒ Array<String>
Value of the result if type is array.
Corresponds to the JSON property arrayVal
2264 2265 2266 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2264 def array_val @array_val end |
#object_val ⇒ Hash<String,String>
Value of the result if type is object.
Corresponds to the JSON property objectVal
2269 2270 2271 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2269 def object_val @object_val end |
#string_val ⇒ String
Value of the result if type is string.
Corresponds to the JSON property stringVal
2274 2275 2276 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2274 def string_val @string_val end |
#type ⇒ String
Output only. The type of data that the result holds.
Corresponds to the JSON property type
2279 2280 2281 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2279 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2286 2287 2288 2289 2290 2291 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2286 def update!(**args) @array_val = args[:array_val] if args.key?(:array_val) @object_val = args[:object_val] if args.key?(:object_val) @string_val = args[:string_val] if args.key?(:string_val) @type = args[:type] if args.key?(:type) end |