# Policy Simulator V1 API - Class Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter (v1.9.0)

1.9.0 (latest) 1.8.1 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.4.0 0.3.2 0.2.0 0.1.1 Reference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter.

Defines a parameter structure.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #default_value

    def default_value() -> ::Google::Protobuf::Value

**Returns**

- ([::Google::Protobuf::Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Protobuf-Value)) --- Sets the value of the parameter in an assignment if no value is given.

### #default_value=

    def default_value=(value) -> ::Google::Protobuf::Value

**Parameter**

- **value** ([::Google::Protobuf::Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Protobuf-Value)) --- Sets the value of the parameter in an assignment if no value is given.
**Returns**

- ([::Google::Protobuf::Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Protobuf-Value)) --- Sets the value of the parameter in an assignment if no value is given.

### #item

    def item() -> ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter::Type

**Returns**

- ([::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-Parameter-Type)) --- Determines the parameter's value structure. For example, `LIST<STRING>` can be specified by defining `type: LIST`, and `item: STRING`.

### #item=

    def item=(value) -> ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter::Type

**Parameter**

- **value** ([::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-Parameter-Type)) --- Determines the parameter's value structure. For example, `LIST<STRING>` can be specified by defining `type: LIST`, and `item: STRING`.
**Returns**

- ([::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-Parameter-Type)) --- Determines the parameter's value structure. For example, `LIST<STRING>` can be specified by defining `type: LIST`, and `item: STRING`.

### #metadata

    def metadata() -> ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter::Metadata

**Returns**

- ([::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter::Metadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-Parameter-Metadata)) --- Defines subproperties primarily used by the UI to display user-friendly information.

### #metadata=

    def metadata=(value) -> ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter::Metadata

**Parameter**

- **value** ([::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter::Metadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-Parameter-Metadata)) --- Defines subproperties primarily used by the UI to display user-friendly information.
**Returns**

- ([::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter::Metadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-Parameter-Metadata)) --- Defines subproperties primarily used by the UI to display user-friendly information.

### #type

    def type() -> ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter::Type

**Returns**

- ([::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-Parameter-Type)) --- Type of the parameter.

### #type=

    def type=(value) -> ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter::Type

**Parameter**

- **value** ([::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-Parameter-Type)) --- Type of the parameter.
**Returns**

- ([::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-Parameter-Type)) --- Type of the parameter.

### #valid_values_expr

    def valid_values_expr() -> ::String

**Returns**

- (::String) --- Provides a CEL expression to specify the acceptable parameter values during assignment. For example, parameterName in ("parameterValue1", "parameterValue2")

### #valid_values_expr=

    def valid_values_expr=(value) -> ::String

**Parameter**

- **value** (::String) --- Provides a CEL expression to specify the acceptable parameter values during assignment. For example, parameterName in ("parameterValue1", "parameterValue2")
**Returns**

- (::String) --- Provides a CEL expression to specify the acceptable parameter values during assignment. For example, parameterName in ("parameterValue1", "parameterValue2")