public sealed class SimulatorSettings : ServiceSettingsBase
Reference documentation and code samples for the Policy Simulator v1 API class SimulatorSettings.
Settings for SimulatorClient instances.
Namespace
Google.Cloud.PolicySimulator.V1Assembly
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 | |
---|---|
Type | Description |
OperationsSettings |
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 | |
---|---|
Type | Description |
CallSettings |
- 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 | |
---|---|
Type | Description |
CallSettings |
- 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 | |
---|---|
Type | Description |
CallSettings |
- 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 | |
---|---|
Type | Description |
SimulatorSettings | A deep clone of this SimulatorSettings object. |
GetDefault()
public static SimulatorSettings GetDefault()
Get a new instance of the default SimulatorSettings.
Returns | |
---|---|
Type | Description |
SimulatorSettings | A new instance of the default SimulatorSettings. |