Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ParameterDefinition
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1ParameterDefinition
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudchannel_v1/classes.rb,
lib/google/apis/cloudchannel_v1/representations.rb,
lib/google/apis/cloudchannel_v1/representations.rb
Overview
Parameter's definition. Specifies what parameter is required to use the current Offer to purchase.
Instance Attribute Summary collapse
-
#allowed_values ⇒ Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Value>
If not empty, parameter values must be drawn from this list.
-
#max_value ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Value
Data type and value of a parameter.
-
#min_value ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Value
Data type and value of a parameter.
-
#name ⇒ String
Name of the parameter.
-
#optional ⇒ Boolean
(also: #optional?)
If set to true, parameter is optional to purchase this Offer.
-
#parameter_type ⇒ String
Data type of the parameter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1ParameterDefinition
constructor
A new instance of GoogleCloudChannelV1ParameterDefinition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1ParameterDefinition
Returns a new instance of GoogleCloudChannelV1ParameterDefinition.
2263 2264 2265 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2263 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_values ⇒ Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Value>
If not empty, parameter values must be drawn from this list. For example, [us-
west1, us-west2, ...] Applicable to STRING parameter type.
Corresponds to the JSON property allowedValues
2234 2235 2236 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2234 def allowed_values @allowed_values end |
#max_value ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Value
Data type and value of a parameter.
Corresponds to the JSON property maxValue
2239 2240 2241 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2239 def max_value @max_value end |
#min_value ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Value
Data type and value of a parameter.
Corresponds to the JSON property minValue
2244 2245 2246 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2244 def min_value @min_value end |
#name ⇒ String
Name of the parameter.
Corresponds to the JSON property name
2249 2250 2251 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2249 def name @name end |
#optional ⇒ Boolean Also known as: optional?
If set to true, parameter is optional to purchase this Offer.
Corresponds to the JSON property optional
2254 2255 2256 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2254 def optional @optional end |
#parameter_type ⇒ String
Data type of the parameter. Minimal value, Maximum value and allowed values
will use specified data type here.
Corresponds to the JSON property parameterType
2261 2262 2263 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2261 def parameter_type @parameter_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2268 2269 2270 2271 2272 2273 2274 2275 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2268 def update!(**args) @allowed_values = args[:allowed_values] if args.key?(:allowed_values) @max_value = args[:max_value] if args.key?(:max_value) @min_value = args[:min_value] if args.key?(:min_value) @name = args[:name] if args.key?(:name) @optional = args[:optional] if args.key?(:optional) @parameter_type = args[:parameter_type] if args.key?(:parameter_type) end |