Workload Identity v1 API - Class WorkloadIdentitySettings (1.0.0-beta01)

public sealed class WorkloadIdentitySettings : ServiceSettingsBase

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

Settings for WorkloadIdentityClient instances.

Inheritance

object > ServiceSettingsBase > WorkloadIdentitySettings

Namespace

Google.Cloud.WorkloadIdentity.V1

Assembly

Google.Cloud.WorkloadIdentity.V1.dll

Constructors

WorkloadIdentitySettings()

public WorkloadIdentitySettings()

Constructs a new WorkloadIdentitySettings object with default settings.

Properties

GenerateServiceAgentsOperationsSettings

public OperationsSettings GenerateServiceAgentsOperationsSettings { get; set; }

Long Running Operation settings for calls to WorkloadIdentityClient.GenerateServiceAgents and WorkloadIdentityClient.GenerateServiceAgentsAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

GenerateServiceAgentsSettings

public CallSettings GenerateServiceAgentsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to WorkloadIdentityClient.GenerateServiceAgents and WorkloadIdentityClient.GenerateServiceAgentsAsync .

Property Value
Type Description
CallSettings
Remarks
  • Initial retry delay: 1000 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 10000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: Unavailable.
  • Timeout: 60 seconds.

LocationsSettings

public LocationsSettings LocationsSettings { get; set; }

The settings to use for the LocationsClient associated with the client.

Property Value
Type Description
LocationsSettings

Methods

Clone()

public WorkloadIdentitySettings Clone()

Creates a deep clone of this object, with all the same property values.

Returns
Type Description
WorkloadIdentitySettings

A deep clone of this WorkloadIdentitySettings object.

GetDefault()

public static WorkloadIdentitySettings GetDefault()

Get a new instance of the default WorkloadIdentitySettings.

Returns
Type Description
WorkloadIdentitySettings

A new instance of the default WorkloadIdentitySettings.