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

1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.6 Reference documentation and code samples for the Organization Policy V2 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-org_policy-v2/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-org_policy-v2/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-org_policy-v2/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-org_policy-v2/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-org_policy-v2/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-org_policy-v2/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-org_policy-v2/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-org_policy-v2/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-org_policy-v2/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-org_policy-v2/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-org_policy-v2/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-org_policy-v2/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")