# Identity and Access Management (IAM) V3BETA API - Class Google::Iam::V3beta::CreateAccessPolicyRequest (v0.7.0)

0.7.0 (latest) 0.6.0 0.4.1 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Identity and Access Management (IAM) V3BETA API class Google::Iam::V3beta::CreateAccessPolicyRequest.

Request message for CreateAccessPolicy method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #access_policy

    def access_policy() -> ::Google::Iam::V3beta::AccessPolicy

**Returns**

- ([::Google::Iam::V3beta::AccessPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3beta/latest/Google-Iam-V3beta-AccessPolicy)) --- Required. The access policy to create.

### #access_policy=

    def access_policy=(value) -> ::Google::Iam::V3beta::AccessPolicy

**Parameter**

- **value** ([::Google::Iam::V3beta::AccessPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3beta/latest/Google-Iam-V3beta-AccessPolicy)) --- Required. The access policy to create.
**Returns**

- ([::Google::Iam::V3beta::AccessPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3beta/latest/Google-Iam-V3beta-AccessPolicy)) --- Required. The access policy to create.

### #access_policy_id

    def access_policy_id() -> ::String

**Returns**

- (::String) --- Required. The ID to use for the access policy, which will become the final component of the access policy's resource name.

  This value must start with a lowercase letter followed by up to 62
  lowercase letters, numbers, hyphens, or dots. Pattern,
  /\[a-z\]\[a-z0-9-.\]{2,62}/.

  This value must be unique among all access policies with the same parent.

### #access_policy_id=

    def access_policy_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The ID to use for the access policy, which will become the final component of the access policy's resource name.


  This value must start with a lowercase letter followed by up to 62
  lowercase letters, numbers, hyphens, or dots. Pattern,
  /\[a-z\]\[a-z0-9-.\]{2,62}/.

  This value must be unique among all access policies with the same parent.
**Returns**

- (::String) --- Required. The ID to use for the access policy, which will become the final component of the access policy's resource name.

  This value must start with a lowercase letter followed by up to 62
  lowercase letters, numbers, hyphens, or dots. Pattern,
  /\[a-z\]\[a-z0-9-.\]{2,62}/.

  This value must be unique among all access policies with the same parent.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The parent resource where this access policy will be created.

  Format:
  `projects/{project_id}/locations/{location}`
  `projects/{project_number}/locations/{location}`
  `folders/{folder_id}/locations/{location}`
  `organizations/{organization_id}/locations/{location}`

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The parent resource where this access policy will be created.


  Format:
  `projects/{project_id}/locations/{location}`
  `projects/{project_number}/locations/{location}`
  `folders/{folder_id}/locations/{location}`
  `organizations/{organization_id}/locations/{location}`
**Returns**

- (::String) --- Required. The parent resource where this access policy will be created.

  Format:
  `projects/{project_id}/locations/{location}`
  `projects/{project_number}/locations/{location}`
  `folders/{folder_id}/locations/{location}`
  `organizations/{organization_id}/locations/{location}`

### #validate_only

    def validate_only() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If set, validate the request and preview the creation, but do not actually post it.

### #validate_only=

    def validate_only=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If set, validate the request and preview the creation, but do not actually post it.
**Returns**

- (::Boolean) --- Optional. If set, validate the request and preview the creation, but do not actually post it.