Class: Google::Apis::CloudbuildV2::ParamValue

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

Parameter value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ParamValue

Returns a new instance of ParamValue.



1566
1567
1568
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1566

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#array_valArray<String>

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

Returns:

  • (Array<String>)


1549
1550
1551
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1549

def array_val
  @array_val
end

#object_valHash<String,String>

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

Returns:

  • (Hash<String,String>)


1554
1555
1556
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1554

def object_val
  @object_val
end

#string_valString

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

Returns:

  • (String)


1559
1560
1561
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1559

def string_val
  @string_val
end

#typeString

Type of parameter. Corresponds to the JSON property type

Returns:

  • (String)


1564
1565
1566
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1564

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1571
1572
1573
1574
1575
1576
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1571

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