Workload Identity v1 API - Class WorkloadIdentity.WorkloadIdentityClient (1.0.0-beta01)

public class WorkloadIdentity.WorkloadIdentityClient : ClientBase<WorkloadIdentity.WorkloadIdentityClient>

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

Client for WorkloadIdentity

Inheritance

object > ClientBase > ClientBaseWorkloadIdentityWorkloadIdentityClient > WorkloadIdentity.WorkloadIdentityClient

Namespace

Google.Cloud.WorkloadIdentity.V1

Assembly

Google.Cloud.WorkloadIdentity.V1.dll

Constructors

WorkloadIdentityClient()

protected WorkloadIdentityClient()

Protected parameterless constructor to allow creation of test doubles.

WorkloadIdentityClient(CallInvoker)

public WorkloadIdentityClient(CallInvoker callInvoker)

Creates a new client for WorkloadIdentity that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

WorkloadIdentityClient(ChannelBase)

public WorkloadIdentityClient(ChannelBase channel)

Creates a new client for WorkloadIdentity

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

WorkloadIdentityClient(ClientBaseConfiguration)

protected WorkloadIdentityClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
Type Description
OperationsOperationsClient

A new Operations client for the same target as this client.

GenerateServiceAgents(GenerateServiceAgentsRequest, CallOptions)

public virtual Operation GenerateServiceAgents(GenerateServiceAgentsRequest request, CallOptions options)

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

Parameters
Name Description
request GenerateServiceAgentsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

GenerateServiceAgents(GenerateServiceAgentsRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation GenerateServiceAgents(GenerateServiceAgentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request GenerateServiceAgentsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

GenerateServiceAgentsAsync(GenerateServiceAgentsRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> GenerateServiceAgentsAsync(GenerateServiceAgentsRequest request, CallOptions options)

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

Parameters
Name Description
request GenerateServiceAgentsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

GenerateServiceAgentsAsync(GenerateServiceAgentsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> GenerateServiceAgentsAsync(GenerateServiceAgentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request GenerateServiceAgentsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

NewInstance(ClientBaseConfiguration)

protected override WorkloadIdentity.WorkloadIdentityClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
WorkloadIdentityWorkloadIdentityClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.WorkloadIdentity.V1.WorkloadIdentity.WorkloadIdentityClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)