# Security Command Center V2 API - Class Google::Cloud::SecurityCenter::V2::IamBinding (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::IamBinding.

Represents a particular IAM binding, which captures a member's role addition,
removal, or state.

## Inherits

- [Object](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-Kubernetes-Object)

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #action

    def action() -> ::Google::Cloud::SecurityCenter::V2::IamBinding::Action

**Returns**

- ([::Google::Cloud::SecurityCenter::V2::IamBinding::Action](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-IamBinding-Action)) --- The action that was performed on a Binding.

### #action=

    def action=(value) -> ::Google::Cloud::SecurityCenter::V2::IamBinding::Action

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V2::IamBinding::Action](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-IamBinding-Action)) --- The action that was performed on a Binding.
**Returns**

- ([::Google::Cloud::SecurityCenter::V2::IamBinding::Action](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-IamBinding-Action)) --- The action that was performed on a Binding.

### #member

    def member() -> ::String

**Returns**

- (::String) --- A single identity requesting access for a Cloud Platform resource, for example, "foo@google.com".

### #member=

    def member=(value) -> ::String

**Parameter**

- **value** (::String) --- A single identity requesting access for a Cloud Platform resource, for example, "foo@google.com".
**Returns**

- (::String) --- A single identity requesting access for a Cloud Platform resource, for example, "foo@google.com".

### #role

    def role() -> ::String

**Returns**

- (::String) --- Role that is assigned to "members". For example, "roles/viewer", "roles/editor", or "roles/owner".

### #role=

    def role=(value) -> ::String

**Parameter**

- **value** (::String) --- Role that is assigned to "members". For example, "roles/viewer", "roles/editor", or "roles/owner".
**Returns**

- (::String) --- Role that is assigned to "members". For example, "roles/viewer", "roles/editor", or "roles/owner".