# Cloud Channel V1 API - Class Google::Cloud::Channel::V1::ParameterDefinition (v2.6.0)

2.6.0 (latest) 2.5.0 2.4.1 2.3.0 2.2.1 2.1.0 2.0.1 1.3.0 1.2.0 1.1.0 1.0.1 0.24.0 0.23.2 0.22.1 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.5 Reference documentation and code samples for the Cloud Channel V1 API class Google::Cloud::Channel::V1::ParameterDefinition.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #allowed_values

    def allowed_values() -> ::Array<::Google::Cloud::Channel::V1::Value>

**Returns**

- (::Array\<[::Google::Cloud::Channel::V1::Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Value)\>) --- If not empty, parameter values must be drawn from this list. For example, \[us-west1, us-west2, ...\] Applicable to STRING parameter type.

### #allowed_values=

    def allowed_values=(value) -> ::Array<::Google::Cloud::Channel::V1::Value>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Channel::V1::Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Value)\>) --- If not empty, parameter values must be drawn from this list. For example, \[us-west1, us-west2, ...\] Applicable to STRING parameter type.
**Returns**

- (::Array\<[::Google::Cloud::Channel::V1::Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Value)\>) --- If not empty, parameter values must be drawn from this list. For example, \[us-west1, us-west2, ...\] Applicable to STRING parameter type.

### #max_value

    def max_value() -> ::Google::Cloud::Channel::V1::Value

**Returns**

- ([::Google::Cloud::Channel::V1::Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Value)) --- Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types.

### #max_value=

    def max_value=(value) -> ::Google::Cloud::Channel::V1::Value

**Parameter**

- **value** ([::Google::Cloud::Channel::V1::Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Value)) --- Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types.
**Returns**

- ([::Google::Cloud::Channel::V1::Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Value)) --- Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types.

### #min_value

    def min_value() -> ::Google::Cloud::Channel::V1::Value

**Returns**

- ([::Google::Cloud::Channel::V1::Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Value)) --- Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types.

### #min_value=

    def min_value=(value) -> ::Google::Cloud::Channel::V1::Value

**Parameter**

- **value** ([::Google::Cloud::Channel::V1::Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Value)) --- Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types.
**Returns**

- ([::Google::Cloud::Channel::V1::Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Value)) --- Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Name of the parameter.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Name of the parameter.
**Returns**

- (::String) --- Name of the parameter.

### #optional

    def optional() -> ::Boolean

**Returns**

- (::Boolean) --- If set to true, parameter is optional to purchase this Offer.

### #optional=

    def optional=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- If set to true, parameter is optional to purchase this Offer.
**Returns**

- (::Boolean) --- If set to true, parameter is optional to purchase this Offer.

### #parameter_type

    def parameter_type() -> ::Google::Cloud::Channel::V1::ParameterDefinition::ParameterType

**Returns**

- ([::Google::Cloud::Channel::V1::ParameterDefinition::ParameterType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ParameterDefinition-ParameterType)) --- Data type of the parameter. Minimal value, Maximum value and allowed values will use specified data type here.

### #parameter_type=

    def parameter_type=(value) -> ::Google::Cloud::Channel::V1::ParameterDefinition::ParameterType

**Parameter**

- **value** ([::Google::Cloud::Channel::V1::ParameterDefinition::ParameterType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ParameterDefinition-ParameterType)) --- Data type of the parameter. Minimal value, Maximum value and allowed values will use specified data type here.
**Returns**

- ([::Google::Cloud::Channel::V1::ParameterDefinition::ParameterType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ParameterDefinition-ParameterType)) --- Data type of the parameter. Minimal value, Maximum value and allowed values will use specified data type here.