Class: Google::Apis::SaasservicemgmtV1::UnitVariable
- Inherits:
-
Object
- Object
- Google::Apis::SaasservicemgmtV1::UnitVariable
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/saasservicemgmt_v1/classes.rb,
lib/google/apis/saasservicemgmt_v1/representations.rb,
lib/google/apis/saasservicemgmt_v1/representations.rb
Overview
UnitVariable describes a parameter for a Unit.
Instance Attribute Summary collapse
-
#type ⇒ String
Optional.
-
#value ⇒ String
Optional.
-
#variable ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UnitVariable
constructor
A new instance of UnitVariable.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UnitVariable
Returns a new instance of UnitVariable.
2511 2512 2513 |
# File 'lib/google/apis/saasservicemgmt_v1/classes.rb', line 2511 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ String
Optional. Immutable. Name of a supported variable type. Supported types are
string, int, bool.
Corresponds to the JSON property type
2499 2500 2501 |
# File 'lib/google/apis/saasservicemgmt_v1/classes.rb', line 2499 def type @type end |
#value ⇒ String
Optional. String encoded value for the variable.
Corresponds to the JSON property value
2504 2505 2506 |
# File 'lib/google/apis/saasservicemgmt_v1/classes.rb', line 2504 def value @value end |
#variable ⇒ String
Required. Immutable. Name of the variable from actuation configs.
Corresponds to the JSON property variable
2509 2510 2511 |
# File 'lib/google/apis/saasservicemgmt_v1/classes.rb', line 2509 def variable @variable end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2516 2517 2518 2519 2520 |
# File 'lib/google/apis/saasservicemgmt_v1/classes.rb', line 2516 def update!(**args) @type = args[:type] if args.key?(:type) @value = args[:value] if args.key?(:value) @variable = args[:variable] if args.key?(:variable) end |