Class: Google::Apis::CloudbuildV2::ResultValue

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_valArray<String>

Value of the result if type is array. Corresponds to the JSON property arrayVal

Returns:

  • (Array<String>)


2270
2271
2272
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2270

def array_val
  @array_val
end

#object_valHash<String,String>

Value of the result if type is object. Corresponds to the JSON property objectVal

Returns:

  • (Hash<String,String>)


2275
2276
2277
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2275

def object_val
  @object_val
end

#string_valString

Value of the result if type is string. Corresponds to the JSON property stringVal

Returns:

  • (String)


2280
2281
2282
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2280

def string_val
  @string_val
end

#typeString

Output only. The type of data that the result holds. Corresponds to the JSON property type

Returns:

  • (String)


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