# Namespace google::cloud::storagebatchoperations_v1 (3.7.0-rc)

3.7.0-rc 3.6.0 (latest) 3.5.0 3.4.0 3.3.0 3.2.0 2.48.0-rc 2.47.1 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.0 2.40.0 2.39.0 2.38.0 2.37.0

## Classes

### [StorageBatchOperationsClient](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/classgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsClient)

Storage Batch Operations offers a managed experience to perform batch operations on millions of Cloud Storage objects in a serverless fashion.

### [StorageBatchOperationsConnection](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/classgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsConnection)

The [`StorageBatchOperationsConnection`](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/classgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsConnection) object for [`StorageBatchOperationsClient`](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/classgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsClient).

### [StorageBatchOperationsConnectionIdempotencyPolicy](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/classgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsConnectionIdempotencyPolicy)

### [StorageBatchOperationsLimitedErrorCountRetryPolicy](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/classgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsLimitedErrorCountRetryPolicy)

A retry policy for [`StorageBatchOperationsConnection`](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/classgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsConnection) based on counting errors.

### [StorageBatchOperationsLimitedTimeRetryPolicy](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/classgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsLimitedTimeRetryPolicy)

A retry policy for [`StorageBatchOperationsConnection`](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/classgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsConnection) based on elapsed time.

### [StorageBatchOperationsRetryPolicy](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/classgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsRetryPolicy)

The retry policy for [`StorageBatchOperationsConnection`](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/classgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsConnection).

## Structs

### [StorageBatchOperationsBackoffPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/structgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsBackoffPolicyOption)

Use with [`google::cloud::Options`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the backoff policy.

### [StorageBatchOperationsConnectionIdempotencyPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/structgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsConnectionIdempotencyPolicyOption)

Use with [`google::cloud::Options`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure which operations are retried.

### [StorageBatchOperationsPollingPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/structgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsPollingPolicyOption)

Use with [`google::cloud::Options`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the long-running operations polling policy.

### [StorageBatchOperationsRetryPolicyOption](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/structgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsRetryPolicyOption)

Use with [`google::cloud::Options`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the retry policy.

## Functions

### MakeStorageBatchOperationsConnection(Options)

A factory function to construct an object of type [`StorageBatchOperationsConnection`](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/classgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsConnection).
The returned connection object should not be used directly; instead it should be passed as an argument to the constructor of [StorageBatchOperationsClient](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/classgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsClient).

The optional `options` argument may be used to configure aspects of the returned [`StorageBatchOperationsConnection`](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/classgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsConnection). Expected options are any of the types in the following option lists:

- [`google::cloud::CommonOptionList`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)
- [`google::cloud::GrpcOptionList`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)
- [`google::cloud::UnifiedCredentialsOptionList`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)
- [`google::cloud::storagebatchoperations_v1::StorageBatchOperationsPolicyOptionList`](about:invalid#zCSafez)

> [!NOTE]
> **Note:** Unexpected options will be ignored. To log unexpected options instead, set `GOOGLE_CLOUD_CPP_ENABLE_CLOG=yes` in the environment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `options` | `Options` (optional) Configure the [`StorageBatchOperationsConnection`](https://docs.cloud.google.com/cpp/docs/reference/storagebatchoperations/latest/classgoogle_1_1cloud_1_1storagebatchoperations__v1_1_1StorageBatchOperationsConnection) created by this function. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::shared_ptr< StorageBatchOperationsConnection >` |   |

### MakeDefaultStorageBatchOperationsConnectionIdempotencyPolicy()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::unique_ptr< StorageBatchOperationsConnectionIdempotencyPolicy >` |   |