class Google::Apis::CloudchannelV1::GoogleCloudChannelV1ParameterDefinition
Parameter's definition. Specifies what parameter is required to use the current Offer to purchase.
Attributes
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` @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Value>]
Data type and value of a parameter. Corresponds to the JSON property `maxValue` @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Value]
Data type and value of a parameter. Corresponds to the JSON property `minValue` @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Value]
Name of the parameter. Corresponds to the JSON property `name` @return [String]
If set to true, parameter is optional to purchase this Offer. Corresponds to the JSON property `optional` @return [Boolean]
If set to true, parameter is optional to purchase this Offer. Corresponds to the JSON property `optional` @return [Boolean]
Data type of the parameter. Minimal value, Maximum value and allowed values will use specified data type here. Corresponds to the JSON property `parameterType` @return [String]
Public Class Methods
# File lib/google/apis/cloudchannel_v1/classes.rb, line 1580 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/cloudchannel_v1/classes.rb, line 1585 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