Policy Simulator v1 API - Class SimulatorSettings (1.0.0)

public sealed class SimulatorSettings : ServiceSettingsBase

Reference documentation and code samples for the Policy Simulator v1 API class SimulatorSettings.

Settings for SimulatorClient instances.

Inheritance

object > ServiceSettingsBase > SimulatorSettings

Namespace

Google.Cloud.PolicySimulator.V1

Assembly

Google.Cloud.PolicySimulator.V1.dll

Constructors

SimulatorSettings()

public SimulatorSettings()

Constructs a new SimulatorSettings object with default settings.

Properties

CreateReplayOperationsSettings

public OperationsSettings CreateReplayOperationsSettings { get; set; }

Long Running Operation settings for calls to SimulatorClient.CreateReplay and SimulatorClient.CreateReplayAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

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

CreateReplaySettings

public CallSettings CreateReplaySettings { get; set; }

CallSettings for synchronous and asynchronous calls to SimulatorClient.CreateReplay and SimulatorClient.CreateReplayAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

GetReplaySettings

public CallSettings GetReplaySettings { get; set; }

CallSettings for synchronous and asynchronous calls to SimulatorClient.GetReplay and SimulatorClient.GetReplayAsync.

Property Value
TypeDescription
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.

ListReplayResultsSettings

public CallSettings ListReplayResultsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SimulatorClient.ListReplayResults and SimulatorClient.ListReplayResultsAsync.

Property Value
TypeDescription
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.

Methods

Clone()

public SimulatorSettings Clone()

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

Returns
TypeDescription
SimulatorSettings

A deep clone of this SimulatorSettings object.

GetDefault()

public static SimulatorSettings GetDefault()

Get a new instance of the default SimulatorSettings.

Returns
TypeDescription
SimulatorSettings

A new instance of the default SimulatorSettings.