# Identity and Access Management (IAM) V3 API - Class Google::Iam::V3::PrincipalAccessBoundaryPolicyRule (v0.5.0)

0.5.0 (latest) 0.4.1 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Identity and Access Management (IAM) V3 API class Google::Iam::V3::PrincipalAccessBoundaryPolicyRule.

Principal access boundary policy rule that defines the resource boundary.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. The description of the principal access boundary policy rule. Must be less than or equal to 256 characters.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The description of the principal access boundary policy rule. Must be less than or equal to 256 characters.
**Returns**

- (::String) --- Optional. The description of the principal access boundary policy rule. Must be less than or equal to 256 characters.

### #effect

    def effect() -> ::Google::Iam::V3::PrincipalAccessBoundaryPolicyRule::Effect

**Returns**

- ([::Google::Iam::V3::PrincipalAccessBoundaryPolicyRule::Effect](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Iam-V3-PrincipalAccessBoundaryPolicyRule-Effect)) --- Required. The access relationship of principals to the resources in this rule.

### #effect=

    def effect=(value) -> ::Google::Iam::V3::PrincipalAccessBoundaryPolicyRule::Effect

**Parameter**

- **value** ([::Google::Iam::V3::PrincipalAccessBoundaryPolicyRule::Effect](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Iam-V3-PrincipalAccessBoundaryPolicyRule-Effect)) --- Required. The access relationship of principals to the resources in this rule.
**Returns**

- ([::Google::Iam::V3::PrincipalAccessBoundaryPolicyRule::Effect](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Iam-V3-PrincipalAccessBoundaryPolicyRule-Effect)) --- Required. The access relationship of principals to the resources in this rule.

### #resources

    def resources() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Required. A list of Resource Manager resources. If a resource is listed in
  the rule, then the rule applies for that resource and its descendants. The
  number of resources in a policy is limited to 500 across all rules in the
  policy.

  The following resource types are supported:
  - Organizations, such as `//cloudresourcemanager.googleapis.com/organizations/123`.
  - Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`.
  - Projects, such as `//cloudresourcemanager.googleapis.com/projects/123` or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.

### #resources=

    def resources=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) ---

  Required. A list of Resource Manager resources. If a resource is listed in
  the rule, then the rule applies for that resource and its descendants. The
  number of resources in a policy is limited to 500 across all rules in the
  policy.

  The following resource types are supported:
  - Organizations, such as `//cloudresourcemanager.googleapis.com/organizations/123`.
  - Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`.
  - Projects, such as `//cloudresourcemanager.googleapis.com/projects/123` or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.
**Returns**

- (::Array\<::String\>) --- Required. A list of Resource Manager resources. If a resource is listed in
  the rule, then the rule applies for that resource and its descendants. The
  number of resources in a policy is limited to 500 across all rules in the
  policy.

  The following resource types are supported:
  - Organizations, such as `//cloudresourcemanager.googleapis.com/organizations/123`.
  - Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`.
  - Projects, such as `//cloudresourcemanager.googleapis.com/projects/123` or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.