Class: Google::Apis::CloudbuildV2::ParamValue
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::ParamValue
- 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
-
#array_val ⇒ Array<String>
Value of the parameter if type is array.
-
#object_val ⇒ Hash<String,String>
Optional.
-
#string_val ⇒ String
Value of the parameter if type is string.
-
#type ⇒ String
Type of parameter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ParamValue
constructor
A new instance of ParamValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ParamValue
Returns a new instance of ParamValue.
1553 1554 1555 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1553 def initialize(**args) update!(**args) end |
Instance Attribute Details
#array_val ⇒ Array<String>
Value of the parameter if type is array.
Corresponds to the JSON property arrayVal
1536 1537 1538 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1536 def array_val @array_val end |
#object_val ⇒ Hash<String,String>
Optional. Value of the parameter if type is object.
Corresponds to the JSON property objectVal
1541 1542 1543 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1541 def object_val @object_val end |
#string_val ⇒ String
Value of the parameter if type is string.
Corresponds to the JSON property stringVal
1546 1547 1548 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1546 def string_val @string_val end |
#type ⇒ String
Type of parameter.
Corresponds to the JSON property type
1551 1552 1553 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1551 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1558 1559 1560 1561 1562 1563 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1558 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 |