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.



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

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


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

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


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

def object_val
  @object_val
end

#string_valString

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

Returns:

  • (String)


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

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)


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