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.
-
#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.
1445 1446 1447 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1445 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
1433 1434 1435 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1433 def array_val @array_val end |
#string_val ⇒ String
Value of the parameter if type is string.
Corresponds to the JSON property stringVal
1438 1439 1440 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1438 def string_val @string_val end |
#type ⇒ String
Type of parameter.
Corresponds to the JSON property type
1443 1444 1445 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1443 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1450 1451 1452 1453 1454 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1450 def update!(**args) @array_val = args[:array_val] if args.key?(:array_val) @string_val = args[:string_val] if args.key?(:string_val) @type = args[:type] if args.key?(:type) end |