class Google::Apis::CloudchannelV1::GoogleCloudChannelV1ParameterDefinition

Parameter's definition. Specifies what parameter is required to use the current Offer to purchase.

Attributes

allowed_values[RW]

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>]

max_value[RW]

Data type and value of a parameter. Corresponds to the JSON property `maxValue` @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Value]

min_value[RW]

Data type and value of a parameter. Corresponds to the JSON property `minValue` @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Value]

name[RW]

Name of the parameter. Corresponds to the JSON property `name` @return [String]

optional[RW]

If set to true, parameter is optional to purchase this Offer. Corresponds to the JSON property `optional` @return [Boolean]

optional?[RW]

If set to true, parameter is optional to purchase this Offer. Corresponds to the JSON property `optional` @return [Boolean]

parameter_type[RW]

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

new(**args) click to toggle source
# File lib/google/apis/cloudchannel_v1/classes.rb, line 1580
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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