Cloud Functions v2 API - Class FunctionServiceSettings (1.3.0)

public sealed class FunctionServiceSettings : ServiceSettingsBase

Reference documentation and code samples for the Cloud Functions v2 API class FunctionServiceSettings.

Settings for FunctionServiceClient instances.

Inheritance

object > ServiceSettingsBase > FunctionServiceSettings

Namespace

Google.Cloud.Functions.V2

Assembly

Google.Cloud.Functions.V2.dll

Constructors

FunctionServiceSettings()

public FunctionServiceSettings()

Constructs a new FunctionServiceSettings object with default settings.

Properties

CreateFunctionOperationsSettings

public OperationsSettings CreateFunctionOperationsSettings { get; set; }

Long Running Operation settings for calls to FunctionServiceClient.CreateFunction and FunctionServiceClient.CreateFunctionAsync.

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.

CreateFunctionSettings

public CallSettings CreateFunctionSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FunctionServiceClient.CreateFunction and FunctionServiceClient.CreateFunctionAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

DeleteFunctionOperationsSettings

public OperationsSettings DeleteFunctionOperationsSettings { get; set; }

Long Running Operation settings for calls to FunctionServiceClient.DeleteFunction and FunctionServiceClient.DeleteFunctionAsync.

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.

DeleteFunctionSettings

public CallSettings DeleteFunctionSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FunctionServiceClient.DeleteFunction and FunctionServiceClient.DeleteFunctionAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

GenerateDownloadUrlSettings

public CallSettings GenerateDownloadUrlSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FunctionServiceClient.GenerateDownloadUrl and FunctionServiceClient.GenerateDownloadUrlAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

GenerateUploadUrlSettings

public CallSettings GenerateUploadUrlSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FunctionServiceClient.GenerateUploadUrl and FunctionServiceClient.GenerateUploadUrlAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

GetFunctionSettings

public CallSettings GetFunctionSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FunctionServiceClient.GetFunction and FunctionServiceClient.GetFunctionAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

IAMPolicySettings

public IAMPolicySettings IAMPolicySettings { get; set; }

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

Property Value
TypeDescription
IAMPolicySettings

ListFunctionsSettings

public CallSettings ListFunctionsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FunctionServiceClient.ListFunctions and FunctionServiceClient.ListFunctionsAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

ListRuntimesSettings

public CallSettings ListRuntimesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FunctionServiceClient.ListRuntimes and FunctionServiceClient.ListRuntimesAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

LocationsSettings

public LocationsSettings LocationsSettings { get; set; }

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

Property Value
TypeDescription
LocationsSettings

UpdateFunctionOperationsSettings

public OperationsSettings UpdateFunctionOperationsSettings { get; set; }

Long Running Operation settings for calls to FunctionServiceClient.UpdateFunction and FunctionServiceClient.UpdateFunctionAsync.

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.

UpdateFunctionSettings

public CallSettings UpdateFunctionSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FunctionServiceClient.UpdateFunction and FunctionServiceClient.UpdateFunctionAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

Methods

Clone()

public FunctionServiceSettings Clone()

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

Returns
TypeDescription
FunctionServiceSettings

A deep clone of this FunctionServiceSettings object.

GetDefault()

public static FunctionServiceSettings GetDefault()

Get a new instance of the default FunctionServiceSettings.

Returns
TypeDescription
FunctionServiceSettings

A new instance of the default FunctionServiceSettings.