1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.1 1.3.1 1.2.0 1.1.0 1.0.2 0.32.0 0.31.0 0.30.0 0.29.3 0.28.1 0.27.0 0.26.1 0.25.0 0.24.0 0.23.0 0.22.0 0.21.1 0.20.1 0.19.0 0.18.0 0.17.3 Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint.

The definition of a constraint.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #boolean_constraint

    def boolean_constraint() -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::BooleanConstraint

**Returns**

- ([::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::BooleanConstraint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-Constraint-BooleanConstraint)) --- Defines this constraint as being a BooleanConstraint.


  Note: The following fields are mutually exclusive: `boolean_constraint`, `list_constraint`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #boolean_constraint=

    def boolean_constraint=(value) -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::BooleanConstraint

**Parameter**

- **value** ([::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::BooleanConstraint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-Constraint-BooleanConstraint)) --- Defines this constraint as being a BooleanConstraint.


  Note: The following fields are mutually exclusive: `boolean_constraint`, `list_constraint`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::BooleanConstraint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-Constraint-BooleanConstraint)) --- Defines this constraint as being a BooleanConstraint.


  Note: The following fields are mutually exclusive: `boolean_constraint`, `list_constraint`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #constraint_default

    def constraint_default() -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ConstraintDefault

**Returns**

- ([::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ConstraintDefault](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-Constraint-ConstraintDefault)) --- The evaluation behavior of this constraint in the absence of 'Policy'.

### #constraint_default=

    def constraint_default=(value) -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ConstraintDefault

**Parameter**

- **value** ([::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ConstraintDefault](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-Constraint-ConstraintDefault)) --- The evaluation behavior of this constraint in the absence of 'Policy'.
**Returns**

- ([::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ConstraintDefault](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-Constraint-ConstraintDefault)) --- The evaluation behavior of this constraint in the absence of 'Policy'.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Detailed description of what this `Constraint` controls as well as how and where it is enforced.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Detailed description of what this `Constraint` controls as well as how and where it is enforced.
**Returns**

- (::String) --- Detailed description of what this `Constraint` controls as well as how and where it is enforced.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- The human readable name of the constraint.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The human readable name of the constraint.
**Returns**

- (::String) --- The human readable name of the constraint.

### #list_constraint

    def list_constraint() -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ListConstraint

**Returns**

- ([::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ListConstraint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-Constraint-ListConstraint)) --- Defines this constraint as being a ListConstraint.


  Note: The following fields are mutually exclusive: `list_constraint`, `boolean_constraint`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #list_constraint=

    def list_constraint=(value) -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ListConstraint

**Parameter**

- **value** ([::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ListConstraint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-Constraint-ListConstraint)) --- Defines this constraint as being a ListConstraint.


  Note: The following fields are mutually exclusive: `list_constraint`, `boolean_constraint`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ListConstraint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-Constraint-ListConstraint)) --- Defines this constraint as being a ListConstraint.


  Note: The following fields are mutually exclusive: `list_constraint`, `boolean_constraint`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The unique name of the constraint. Format of the name should be

  - `constraints/{constraint_name}`

  For example, `constraints/compute.disableSerialPortAccess`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The unique name of the constraint. Format of the name should be


  - `constraints/{constraint_name}`

  For example, `constraints/compute.disableSerialPortAccess`.
**Returns**

- (::String) --- The unique name of the constraint. Format of the name should be

  - `constraints/{constraint_name}`

  For example, `constraints/compute.disableSerialPortAccess`.