Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

GoogleWorkspaceOperationPolicy

OfficeIMO.GoogleWorkspace

Namespace
OfficeIMO.GoogleWorkspace
Assembly
OfficeIMO.GoogleWorkspace
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

Explicit account, scope, revision, retry, rate, and loss contract for one cloud mutation.

Inheritance

  • object
  • GoogleWorkspaceOperationPolicy

Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Constructors

public GoogleWorkspaceOperationPolicy(string account, IEnumerable<string> scopes, string target, string expectedRevision, int maxRetryCount, TimeSpan maxRetryElapsedTime, GoogleWorkspaceRateLimitPolicy rateLimitPolicy, GoogleWorkspaceDataLossDecision dataLossDecision, string? acceptedLoss = null) #

Creates the caller-approved identity, scope, revision, retry, and data-loss contract for one mutation.

Parameters

account string required
Provider-verified account expected to perform the mutation.
scopes System.Collections.Generic.IEnumerable<string> required
OAuth scopes that must be bound to the credential.
target string required
Logical resource identifier the mutation is allowed to affect.
expectedRevision string required
Required revision, create marker, or value returned by GoogleWorkspaceOperationPolicy.ExplicitlyUnversionedRevision.
maxRetryCount int required
Maximum number of retries after the initial request.
maxRetryElapsedTime System.TimeSpan required
Overall elapsed-time budget for the initial attempt, retries, delays, and response processing.
rateLimitPolicy OfficeIMO.GoogleWorkspace.GoogleWorkspaceRateLimitPolicy required
Behavior for retryable quota responses.
dataLossDecision OfficeIMO.GoogleWorkspace.GoogleWorkspaceDataLossDecision required
Decision for potential data loss.
acceptedLoss string? = null optional
Specific loss accepted by the caller when acceptance is selected.

Methods

public static string ExplicitlyUnversionedRevision(string reason) #

Records that the caller deliberately accepted a mutation for which the Google API exposes no usable conditional revision precondition. The named reason is retained in the operation receipt.

Parameters

reason string required

Returns

string

Properties

public string Account { get; } #

Gets the provider-verified account approved for the mutation.

public IReadOnlyList<string> Scopes { get; } #

Gets the OAuth scopes required by the mutation.

public string Target { get; } #

Gets the logical resource identifier the mutation may affect.

public string ExpectedRevision { get; } #

Gets the required revision decision.

public int MaxRetryCount { get; } #

Gets the maximum number of retries after the initial request.

public TimeSpan MaxRetryElapsedTime { get; } #

Gets the overall elapsed-time budget for the initial attempt, retries, delays, and response processing.

public GoogleWorkspaceRateLimitPolicy RateLimitPolicy { get; } #

Gets the behavior for retryable quota responses.

public GoogleWorkspaceDataLossDecision DataLossDecision { get; } #

Gets the caller's decision for potential data loss.

public string? AcceptedLoss { get; } #

Gets the specific loss accepted by the caller, when acceptance was selected.

Fields

public const string ResourceAbsentForCreateRevision #

Revision decision used for create operations whose target resource must not already exist.

Value: resource-absent-for-create