1.2.0 (latest) 1.1.0 1.0.0

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

Reference documentation and code samples for the API hub v1 API class GoogleServiceAccountConfig.

Config for Google service account authentication.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[GoogleServiceAccountConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.GoogleServiceAccountConfig.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GoogleServiceAccountConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.GoogleServiceAccountConfig.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[GoogleServiceAccountConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.GoogleServiceAccountConfig.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

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

## Assembly

Google.Cloud.ApiHub.V1.dll

## Constructors

### GoogleServiceAccountConfig()

    public GoogleServiceAccountConfig()

### GoogleServiceAccountConfig(GoogleServiceAccountConfig)

    public GoogleServiceAccountConfig(GoogleServiceAccountConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `GoogleServiceAccountConfig` |

## Properties

### ServiceAccount

    public string ServiceAccount { get; set; }

Required. The service account to be used for authenticating request.

The `iam.serviceAccounts.getAccessToken` permission should be granted on
this service account to the impersonator service account.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ServiceAccountAsServiceAccountName

    public ServiceAccountName ServiceAccountAsServiceAccountName { get; set; }

[ServiceAccountName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ServiceAccountName.md.txt)-typed view over the [ServiceAccount](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.GoogleServiceAccountConfig.md.txt#Google_Cloud_ApiHub_V1_GoogleServiceAccountConfig_ServiceAccount) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ServiceAccountName` |   |