Class: Google::Apis::SaasservicemgmtV1beta1::UnitVariable

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/saasservicemgmt_v1beta1/classes.rb,
lib/google/apis/saasservicemgmt_v1beta1/representations.rb,
lib/google/apis/saasservicemgmt_v1beta1/representations.rb

Overview

UnitVariable describes a parameter for a Unit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UnitVariable

Returns a new instance of UnitVariable.



3068
3069
3070
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3068

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

Instance Attribute Details

#typeString

Optional. Immutable. Name of a supported variable type. Supported types are string, int, bool. Corresponds to the JSON property type

Returns:

  • (String)


3056
3057
3058
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3056

def type
  @type
end

#valueString

Optional. String encoded value for the variable. Corresponds to the JSON property value

Returns:

  • (String)


3061
3062
3063
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3061

def value
  @value
end

#variableString

Required. Immutable. Name of the variable from actuation configs. Corresponds to the JSON property variable

Returns:

  • (String)


3066
3067
3068
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3066

def variable
  @variable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3073
3074
3075
3076
3077
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3073

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