# Policy Simulator V1 API - Class Google::Cloud::OrgPolicy::V2::CreateCustomConstraintRequest (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::CreateCustomConstraintRequest.

The request sent to the \[CreateCustomConstraintRequest\]
\[google.cloud.orgpolicy.v2.OrgPolicy.CreateCustomConstraint\] method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #custom_constraint

    def custom_constraint() -> ::Google::Cloud::OrgPolicy::V2::CustomConstraint

**Returns**

- ([::Google::Cloud::OrgPolicy::V2::CustomConstraint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-CustomConstraint)) --- Required. Custom constraint to create.

### #custom_constraint=

    def custom_constraint=(value) -> ::Google::Cloud::OrgPolicy::V2::CustomConstraint

**Parameter**

- **value** ([::Google::Cloud::OrgPolicy::V2::CustomConstraint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-CustomConstraint)) --- Required. Custom constraint to create.
**Returns**

- ([::Google::Cloud::OrgPolicy::V2::CustomConstraint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-CustomConstraint)) --- Required. Custom constraint to create.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. Must be in the following form:

  - `organizations/{organization_id}`

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) ---

  Required. Must be in the following form:
  - `organizations/{organization_id}`
**Returns**

- (::String) --- Required. Must be in the following form:

  - `organizations/{organization_id}`