# Cloud IoT V1 API - Class Google::Iam::V1::GetIamPolicyRequest (v0.9.2)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.9.2 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Iam-V1-GetIamPolicyRequest)
- [0.9.1](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.9.1/Google-Iam-V1-GetIamPolicyRequest)
- [0.8.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.8.0/Google-Iam-V1-GetIamPolicyRequest)
- [0.7.1](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.7.1/Google-Iam-V1-GetIamPolicyRequest)
- [0.6.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.6.0/Google-Iam-V1-GetIamPolicyRequest)
- [0.5.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.5.0/Google-Iam-V1-GetIamPolicyRequest)
- [0.4.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.4.0/Google-Iam-V1-GetIamPolicyRequest)
- [0.3.5](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.3.5/Google-Iam-V1-GetIamPolicyRequest)
Reference documentation and code samples for the Cloud IoT V1 API class Google::Iam::V1::GetIamPolicyRequest.

Request message for `GetIamPolicy` method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #options

    def options() -> ::Google::Iam::V1::GetPolicyOptions

**Returns**

- ([::Google::Iam::V1::GetPolicyOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Iam-V1-GetPolicyOptions)) --- OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.

### #options=

    def options=(value) -> ::Google::Iam::V1::GetPolicyOptions

**Parameter**

- **value** ([::Google::Iam::V1::GetPolicyOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Iam-V1-GetPolicyOptions)) --- OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
**Returns**

- ([::Google::Iam::V1::GetPolicyOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Iam-V1-GetPolicyOptions)) --- OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.

### #resource

    def resource() -> ::String

**Returns**

- (::String) --- REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

### #resource=

    def resource=(value) -> ::String

**Parameter**

- **value** (::String) --- REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
**Returns**

- (::String) --- REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.