Service Usage v1 API - Class ServiceUsageSettings (2.4.0)

public sealed class ServiceUsageSettings : ServiceSettingsBase

Reference documentation and code samples for the Service Usage v1 API class ServiceUsageSettings.

Settings for ServiceUsageClient instances.

Inheritance

object > ServiceSettingsBase > ServiceUsageSettings

Namespace

Google.Cloud.ServiceUsage.V1

Assembly

Google.Cloud.ServiceUsage.V1.dll

Constructors

ServiceUsageSettings()

public ServiceUsageSettings()

Constructs a new ServiceUsageSettings object with default settings.

Properties

BatchEnableServicesOperationsSettings

public OperationsSettings BatchEnableServicesOperationsSettings { get; set; }

Long Running Operation settings for calls to ServiceUsageClient.BatchEnableServices and ServiceUsageClient.BatchEnableServicesAsync.

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.

BatchEnableServicesSettings

public CallSettings BatchEnableServicesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ServiceUsageClient.BatchEnableServices and ServiceUsageClient.BatchEnableServicesAsync.

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

BatchGetServicesSettings

public CallSettings BatchGetServicesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ServiceUsageClient.BatchGetServices and ServiceUsageClient.BatchGetServicesAsync.

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

DisableServiceOperationsSettings

public OperationsSettings DisableServiceOperationsSettings { get; set; }

Long Running Operation settings for calls to ServiceUsageClient.DisableService and ServiceUsageClient.DisableServiceAsync.

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.

DisableServiceSettings

public CallSettings DisableServiceSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ServiceUsageClient.DisableService and ServiceUsageClient.DisableServiceAsync.

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

EnableServiceOperationsSettings

public OperationsSettings EnableServiceOperationsSettings { get; set; }

Long Running Operation settings for calls to ServiceUsageClient.EnableService and ServiceUsageClient.EnableServiceAsync.

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.

EnableServiceSettings

public CallSettings EnableServiceSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ServiceUsageClient.EnableService and ServiceUsageClient.EnableServiceAsync.

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

GetServiceSettings

public CallSettings GetServiceSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ServiceUsageClient.GetService and ServiceUsageClient.GetServiceAsync.

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

ListServicesSettings

public CallSettings ListServicesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ServiceUsageClient.ListServices and ServiceUsageClient.ListServicesAsync.

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

Methods

Clone()

public ServiceUsageSettings Clone()

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

Returns
Type Description
ServiceUsageSettings

A deep clone of this ServiceUsageSettings object.

GetDefault()

public static ServiceUsageSettings GetDefault()

Get a new instance of the default ServiceUsageSettings.

Returns
Type Description
ServiceUsageSettings

A new instance of the default ServiceUsageSettings.