# Privileged Access Manager v1 API - Class ListGrantsResponse (1.2.0)

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

- [1.2.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.ListGrantsResponse)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/1.1.0/Google.Cloud.PrivilegedAccessManager.V1.ListGrantsResponse)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/1.0.0/Google.Cloud.PrivilegedAccessManager.V1.ListGrantsResponse)

    public sealed class ListGrantsResponse : IMessage<ListGrantsResponse>, IEquatable<ListGrantsResponse>, IDeepCloneable<ListGrantsResponse>, IBufferMessage, IMessage, IPageResponse<Grant>, IEnumerable<Grant>, IEnumerable

Reference documentation and code samples for the Privileged Access Manager v1 API class ListGrantsResponse.

Message for response to listing grants.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ListGrantsResponse

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListGrantsResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.ListGrantsResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListGrantsResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.ListGrantsResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListGrantsResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.ListGrantsResponse), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html), [IPageResponse](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageResponse-1.html)[Grant](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.Grant), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)[Grant](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.Grant), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.PrivilegedAccessManager.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1)

## Assembly

Google.Cloud.PrivilegedAccessManager.V1.dll

## Constructors

### ListGrantsResponse()

    public ListGrantsResponse()

### ListGrantsResponse(ListGrantsResponse)

    public ListGrantsResponse(ListGrantsResponse other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.ListGrantsResponse` |

## Properties

### Grants

    public RepeatedField<Grant> Grants { get; }

The list of grants.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.Grant` |   |

### NextPageToken

    public string NextPageToken { get; set; }

A token identifying a page of results the server should return.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Unreachable

    public RepeatedField<string> Unreachable { get; }

Locations that could not be reached.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

## Methods

### GetEnumerator()

    public IEnumerator<Grant> GetEnumerator()

Returns an enumerator that iterates through the resources in this response.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PrivilegedAccessManager.V1/latest/Google.Cloud.PrivilegedAccessManager.V1.Grant` |   |