# Integration Connectors v1 API - Class RoleGrant (1.4.0)

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

- [1.4.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Connectors.V1/latest/Google.Cloud.Connectors.V1.RoleGrant)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Connectors.V1/1.3.0/Google.Cloud.Connectors.V1.RoleGrant)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Connectors.V1/1.2.0/Google.Cloud.Connectors.V1.RoleGrant)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Connectors.V1/1.1.0/Google.Cloud.Connectors.V1.RoleGrant)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Connectors.V1/1.0.0/Google.Cloud.Connectors.V1.RoleGrant)

    public sealed class RoleGrant : IMessage<RoleGrant>, IEquatable<RoleGrant>, IDeepCloneable<RoleGrant>, IBufferMessage, IMessage

Reference documentation and code samples for the Integration Connectors v1 API class RoleGrant.

This configuration defines all the Cloud IAM roles that needs to be granted
to a particular GCP resource for the selected prinicpal like service
account. These configurations will let UI display to customers what
IAM roles need to be granted by them. Or these configurations can be used
by the UI to render a 'grant' button to do the same on behalf of the user.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RoleGrant](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Connectors.V1/latest/Google.Cloud.Connectors.V1.RoleGrant), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RoleGrant](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Connectors.V1/latest/Google.Cloud.Connectors.V1.RoleGrant), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RoleGrant](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Connectors.V1/latest/Google.Cloud.Connectors.V1.RoleGrant), [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)

## 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.Connectors.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Connectors.V1/latest/Google.Cloud.Connectors.V1)

## Assembly

Google.Cloud.Connectors.V1.dll

## Constructors

### RoleGrant()

    public RoleGrant()

### RoleGrant(RoleGrant)

    public RoleGrant(RoleGrant other)

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

## Properties

### HelperTextTemplate

    public string HelperTextTemplate { get; set; }

Template that UI can use to provide helper text to customers.

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

### Principal

    public RoleGrant.Types.Principal Principal { get; set; }

Prinicipal/Identity for whom the role need to assigned.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Connectors.V1/latest/Google.Cloud.Connectors.V1.RoleGranthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Connectors.V1/latest/Google.Cloud.Connectors.V1.RoleGrant.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Connectors.V1/latest/Google.Cloud.Connectors.V1.RoleGrant.Types.Principal` |   |

### Resource

    public RoleGrant.Types.Resource Resource { get; set; }

Resource on which the roles needs to be granted for the principal.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Connectors.V1/latest/Google.Cloud.Connectors.V1.RoleGranthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Connectors.V1/latest/Google.Cloud.Connectors.V1.RoleGrant.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Connectors.V1/latest/Google.Cloud.Connectors.V1.RoleGrant.Types.Resource` |   |

### Roles

    public RepeatedField<string> Roles { get; }

List of roles that need to be granted.

| **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` |   |