# Privileged Access Manager V1 API - Class Google::Cloud::PrivilegedAccessManager::V1::SearchGrantsRequest (v1.7.0)

1.7.0 (latest) 1.6.1 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Privileged Access Manager V1 API class Google::Cloud::PrivilegedAccessManager::V1::SearchGrantsRequest.

Request message for `SearchGrants` method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #caller_relationship

    def caller_relationship() -> ::Google::Cloud::PrivilegedAccessManager::V1::SearchGrantsRequest::CallerRelationshipType

**Returns**

- ([::Google::Cloud::PrivilegedAccessManager::V1::SearchGrantsRequest::CallerRelationshipType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-privileged_access_manager-v1/latest/Google-Cloud-PrivilegedAccessManager-V1-SearchGrantsRequest-CallerRelationshipType)) --- Required. Only grants which the caller is related to by this relationship are returned in the response.

### #caller_relationship=

    def caller_relationship=(value) -> ::Google::Cloud::PrivilegedAccessManager::V1::SearchGrantsRequest::CallerRelationshipType

**Parameter**

- **value** ([::Google::Cloud::PrivilegedAccessManager::V1::SearchGrantsRequest::CallerRelationshipType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-privileged_access_manager-v1/latest/Google-Cloud-PrivilegedAccessManager-V1-SearchGrantsRequest-CallerRelationshipType)) --- Required. Only grants which the caller is related to by this relationship are returned in the response.
**Returns**

- ([::Google::Cloud::PrivilegedAccessManager::V1::SearchGrantsRequest::CallerRelationshipType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-privileged_access_manager-v1/latest/Google-Cloud-PrivilegedAccessManager-V1-SearchGrantsRequest-CallerRelationshipType)) --- Required. Only grants which the caller is related to by this relationship are returned in the response.

### #filter

    def filter() -> ::String

**Returns**

- (::String) --- Optional. Only grants matching this filter are returned in the response.

### #filter=

    def filter=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Only grants matching this filter are returned in the response.
**Returns**

- (::String) --- Optional. Only grants matching this filter are returned in the response.

### #page_size

    def page_size() -> ::Integer

**Returns**

- (::Integer) --- Optional. Requested page size. The server may return fewer items than requested. If unspecified, server picks an appropriate default.

### #page_size=

    def page_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Optional. Requested page size. The server may return fewer items than requested. If unspecified, server picks an appropriate default.
**Returns**

- (::Integer) --- Optional. Requested page size. The server may return fewer items than requested. If unspecified, server picks an appropriate default.

### #page_token

    def page_token() -> ::String

**Returns**

- (::String) --- Optional. A token identifying a page of results the server should return.

### #page_token=

    def page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A token identifying a page of results the server should return.
**Returns**

- (::String) --- Optional. A token identifying a page of results the server should return.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The parent which owns the grant resources.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The parent which owns the grant resources.
**Returns**

- (::String) --- Required. The parent which owns the grant resources.