    public sealed class WorkloadIdentityClientImpl : WorkloadIdentityClient

Reference documentation and code samples for the Workload Identity v1 API class WorkloadIdentityClientImpl.

WorkloadIdentity client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [WorkloadIdentityClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient) \> WorkloadIdentityClientImpl

## Inherited Members

[WorkloadIdentityClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_DefaultEndpoint) [WorkloadIdentityClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_DefaultScopes) [WorkloadIdentityClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_ServiceMetadata) [WorkloadIdentityClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_CreateAsync_System_Threading_CancellationToken_) [WorkloadIdentityClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_Create) [WorkloadIdentityClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_ShutdownDefaultChannelsAsync) [WorkloadIdentityClient.GenerateServiceAgentsAsync(GenerateServiceAgentsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_GenerateServiceAgentsAsync_Google_Cloud_WorkloadIdentity_V1_GenerateServiceAgentsRequest_System_Threading_CancellationToken_) [WorkloadIdentityClient.PollOnceGenerateServiceAgents(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_PollOnceGenerateServiceAgents_System_String_Google_Api_Gax_Grpc_CallSettings_) [WorkloadIdentityClient.PollOnceGenerateServiceAgentsAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_PollOnceGenerateServiceAgentsAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [WorkloadIdentityClient.GenerateServiceAgents(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_GenerateServiceAgents_System_String_Google_Api_Gax_Grpc_CallSettings_) [WorkloadIdentityClient.GenerateServiceAgentsAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_GenerateServiceAgentsAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [WorkloadIdentityClient.GenerateServiceAgentsAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_GenerateServiceAgentsAsync_System_String_System_Threading_CancellationToken_) [WorkloadIdentityClient.GenerateServiceAgents(ServiceProducerName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_GenerateServiceAgents_Google_Cloud_WorkloadIdentity_V1_ServiceProducerName_Google_Api_Gax_Grpc_CallSettings_) [WorkloadIdentityClient.GenerateServiceAgentsAsync(ServiceProducerName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_GenerateServiceAgentsAsync_Google_Cloud_WorkloadIdentity_V1_ServiceProducerName_Google_Api_Gax_Grpc_CallSettings_) [WorkloadIdentityClient.GenerateServiceAgentsAsync(ServiceProducerName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_GenerateServiceAgentsAsync_Google_Cloud_WorkloadIdentity_V1_ServiceProducerName_System_Threading_CancellationToken_) [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.WorkloadIdentity.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1)

## Assembly

Google.Cloud.WorkloadIdentity.V1.dll

## Remarks

Service describing handlers for resources

## Constructors

### WorkloadIdentityClientImpl(WorkloadIdentityClient, WorkloadIdentitySettings, ILogger)

    public WorkloadIdentityClientImpl(WorkloadIdentity.WorkloadIdentityClient grpcClient, WorkloadIdentitySettings settings, ILogger logger)

Constructs a client wrapper for the WorkloadIdentity service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentity.WorkloadIdentityClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentitySettings` The base [WorkloadIdentitySettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentitySettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GenerateServiceAgentsOperationsClient

    public override OperationsClient GenerateServiceAgentsOperationsClient { get; }

The long-running operations client for `GenerateServiceAgents`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [WorkloadIdentityClient.GenerateServiceAgentsOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_GenerateServiceAgentsOperationsClient)

### GrpcClient

    public override WorkloadIdentity.WorkloadIdentityClient GrpcClient { get; }

The underlying gRPC WorkloadIdentity client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentity.WorkloadIdentityClient` |   |

**Overrides** [WorkloadIdentityClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_GrpcClient)

### LocationsClient

    public override LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

**Overrides** [WorkloadIdentityClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_LocationsClient)

## Methods

### GenerateServiceAgents(GenerateServiceAgentsRequest, CallSettings)

    public override Operation<GenerateServiceAgentsResponse, OperationMetadata> GenerateServiceAgents(GenerateServiceAgentsRequest request, CallSettings callSettings = null)

Creates all service agents for a given resource, location and service
producer.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.GenerateServiceAgentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.GenerateServiceAgentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.OperationMetadata` | The RPC response. |

**Overrides** [WorkloadIdentityClient.GenerateServiceAgents(GenerateServiceAgentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_GenerateServiceAgents_Google_Cloud_WorkloadIdentity_V1_GenerateServiceAgentsRequest_Google_Api_Gax_Grpc_CallSettings_)

### GenerateServiceAgentsAsync(GenerateServiceAgentsRequest, CallSettings)

    public override Task<Operation<GenerateServiceAgentsResponse, OperationMetadata>> GenerateServiceAgentsAsync(GenerateServiceAgentsRequest request, CallSettings callSettings = null)

Creates all service agents for a given resource, location and service
producer.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.GenerateServiceAgentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.GenerateServiceAgentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.OperationMetadata` | A Task containing the RPC response. |

**Overrides** [WorkloadIdentityClient.GenerateServiceAgentsAsync(GenerateServiceAgentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WorkloadIdentity.V1/latest/Google.Cloud.WorkloadIdentity.V1.WorkloadIdentityClient#Google_Cloud_WorkloadIdentity_V1_WorkloadIdentityClient_GenerateServiceAgentsAsync_Google_Cloud_WorkloadIdentity_V1_GenerateServiceAgentsRequest_Google_Api_Gax_Grpc_CallSettings_)