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.



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

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>)


2258
2259
2260
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2258

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>)


2263
2264
2265
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2263

def object_val
  @object_val
end

#string_valString

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

Returns:

  • (String)


2268
2269
2270
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2268

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)


2273
2274
2275
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2273

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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