API hub v1 API - Class ApiHubPluginSettings (1.0.0-beta02)

public sealed class ApiHubPluginSettings : ServiceSettingsBase

Reference documentation and code samples for the API hub v1 API class ApiHubPluginSettings.

Settings for ApiHubPluginClient instances.

Inheritance

object > ServiceSettingsBase > ApiHubPluginSettings

Namespace

Google.Cloud.ApiHub.V1

Assembly

Google.Cloud.ApiHub.V1.dll

Constructors

ApiHubPluginSettings()

public ApiHubPluginSettings()

Constructs a new ApiHubPluginSettings object with default settings.

Properties

DisablePluginSettings

public CallSettings DisablePluginSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ApiHubPluginClient.DisablePlugin and ApiHubPluginClient.DisablePluginAsync.

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

EnablePluginSettings

public CallSettings EnablePluginSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ApiHubPluginClient.EnablePlugin and ApiHubPluginClient.EnablePluginAsync.

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

GetPluginSettings

public CallSettings GetPluginSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ApiHubPluginClient.GetPlugin and ApiHubPluginClient.GetPluginAsync.

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 ApiHubPluginSettings Clone()

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

Returns
Type Description
ApiHubPluginSettings

A deep clone of this ApiHubPluginSettings object.

GetDefault()

public static ApiHubPluginSettings GetDefault()

Get a new instance of the default ApiHubPluginSettings.

Returns
Type Description
ApiHubPluginSettings

A new instance of the default ApiHubPluginSettings.