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.
2287 2288 2289 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2287 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
2270 2271 2272 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2270 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
2275 2276 2277 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2275 def object_val @object_val end |
#string_val ⇒ String
Value of the result if type is string.
Corresponds to the JSON property stringVal
2280 2281 2282 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2280 def string_val @string_val end |
#type ⇒ String
Output only. The type of data that the result holds.
Corresponds to the JSON property type
2285 2286 2287 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2285 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2292 2293 2294 2295 2296 2297 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2292 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 |