5.0.0 (latest) 4.16.0 4.15.0 4.14.0 4.13.0 4.11.0 4.10.0 4.9.0 4.8.0 4.7.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.7.0 3.6.0 3.5.0 3.4.0

    public sealed class StorageClientImpl : StorageClient, IDisposable

Reference documentation and code samples for the Google Cloud Storage v1 API class StorageClientImpl.

Wrapper around [StorageService](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.StorageService.html) to provide simpler operations.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [StorageClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient) \> StorageClientImpl

## Implements

[IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

## Inherited Members

[StorageClient.CreateAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CreateAsync) [StorageClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_Create) [StorageClient.CreateAsync(GoogleCredential, EncryptionKey)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CreateAsync_Google_Apis_Auth_OAuth2_GoogleCredential_Google_Cloud_Storage_V1_EncryptionKey_) [StorageClient.Create(GoogleCredential, EncryptionKey)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_Create_Google_Apis_Auth_OAuth2_GoogleCredential_Google_Cloud_Storage_V1_EncryptionKey_) [StorageClient.CreateUnauthenticated()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CreateUnauthenticated) [StorageClient.CreateUrlSigner()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CreateUrlSigner) [StorageClient.SetBucketLabel(string, string, string, ModifyBucketLabelsOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_SetBucketLabel_System_String_System_String_System_String_Google_Cloud_Storage_V1_ModifyBucketLabelsOptions_) [StorageClient.RemoveBucketLabel(string, string, ModifyBucketLabelsOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_RemoveBucketLabel_System_String_System_String_Google_Cloud_Storage_V1_ModifyBucketLabelsOptions_) [StorageClient.SetBucketLabelAsync(string, string, string, ModifyBucketLabelsOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_SetBucketLabelAsync_System_String_System_String_System_String_Google_Cloud_Storage_V1_ModifyBucketLabelsOptions_System_Threading_CancellationToken_) [StorageClient.RemoveBucketLabelAsync(string, string, ModifyBucketLabelsOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_RemoveBucketLabelAsync_System_String_System_String_Google_Cloud_Storage_V1_ModifyBucketLabelsOptions_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Storage.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1)

## Assembly

Google.Cloud.Storage.V1.dll

## Remarks

This is the "default" implementation of [StorageClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient). Most client code
should refer to [StorageClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient), creating instances with
[Create(GoogleCredential, EncryptionKey)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_Create_Google_Apis_Auth_OAuth2_GoogleCredential_Google_Cloud_Storage_V1_EncryptionKey_) and
[CreateAsync(GoogleCredential, EncryptionKey)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CreateAsync_Google_Apis_Auth_OAuth2_GoogleCredential_Google_Cloud_Storage_V1_EncryptionKey_). The constructor
of this class is public for the sake of constructor-based dependency injection.

## Constructors

### StorageClientImpl(StorageService, EncryptionKey)

    public StorageClientImpl(StorageService service, EncryptionKey encryptionKey = null)

Constructs a new client wrapping the given [StorageService](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.StorageService.html).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `service` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.StorageService.html` The service to wrap. Must not be null. |
| `encryptionKey` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.EncryptionKey` Optional [EncryptionKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClientImpl#Google_Cloud_Storage_V1_StorageClientImpl_EncryptionKey) to use for object-based operations by default. May be null, in which case [None](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.EncryptionKey#Google_Cloud_Storage_V1_EncryptionKey_None) will be used. |

## Properties

### ApplicationName

    public static string ApplicationName { get; set; }

The default application name used when creating a [StorageService](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.StorageService.html).
Defaults to "google-cloud-dotnet"; must not be null.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

**Remarks** Most applications will never want to set this, which is why it's in this class rather than
[StorageClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient).

### EncryptionKey

    public override EncryptionKey EncryptionKey { get; }

The customer-supplied encryption key used by default for all relevant object-based operations. This can be overridden in call-specific options.
This will never return null in the built-in implementation; if no encryption key is specified,
[None](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.EncryptionKey#Google_Cloud_Storage_V1_EncryptionKey_None) is returned.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.EncryptionKey` |   |

**Overrides** [StorageClient.EncryptionKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_EncryptionKey)

### Service

    public override StorageService Service { get; }

The underlying storage service object used by this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.StorageService.html` |   |

**Overrides** [StorageClient.Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_Service) **Remarks** The [StorageClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient) class only provides convenience operations built on top of
an existing service object. Any more complex operations which are not supported by this wrapper may wish
to use the same service object as the wrapper, in order to take advantage of its configuration (for authentication,
application naming etc).

## Methods

### ClearBucketLabels(string, ModifyBucketLabelsOptions)

    public override IDictionary<string, string> ClearBucketLabels(string bucket, ModifyBucketLabelsOptions options = null)

Clears all labels on a bucket.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.ModifyBucketLabelsOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2https://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` | A dictionary with the labels on the bucket before they were cleared. |

**Overrides** [StorageClient.ClearBucketLabels(string, ModifyBucketLabelsOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_ClearBucketLabels_System_String_Google_Cloud_Storage_V1_ModifyBucketLabelsOptions_)

### ClearBucketLabelsAsync(string, ModifyBucketLabelsOptions, CancellationToken)

    public override Task<IDictionary<string, string>> ClearBucketLabelsAsync(string bucket, ModifyBucketLabelsOptions options = null, CancellationToken cancellationToken = default)

Clears all labels on a bucket asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.ModifyBucketLabelsOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2https://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` | A dictionary with the labels on the bucket before they were cleared. |

**Overrides** [StorageClient.ClearBucketLabelsAsync(string, ModifyBucketLabelsOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_ClearBucketLabelsAsync_System_String_Google_Cloud_Storage_V1_ModifyBucketLabelsOptions_System_Threading_CancellationToken_)

### CopyObject(string, string, string, string, CopyObjectOptions)

    public override Object CopyObject(string sourceBucket, string sourceObjectName, string destinationBucket, string destinationObjectName, CopyObjectOptions options = null)

Creates a copy of an object synchronously, potentially to a different bucket. This method uses the
`rewriteObject` underlying API operation for more flexibility and reliability.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `sourceBucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket containing the object to copy. Must not be null. |
| `sourceObjectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the object to copy within the bucket. Must not be null. |
| `destinationBucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket to copy the object to. Must not be null. |
| `destinationObjectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the object within the destination bucket. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.CopyObjectOptions` Additional options for the copy operation. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | The [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the new storage object resulting from the copy. |

**Overrides** [StorageClient.CopyObject(string, string, string, string, CopyObjectOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CopyObject_System_String_System_String_System_String_System_String_Google_Cloud_Storage_V1_CopyObjectOptions_)

### CopyObjectAsync(string, string, string, string, CopyObjectOptions, CancellationToken)

    public override Task<Object> CopyObjectAsync(string sourceBucket, string sourceObjectName, string destinationBucket, string destinationObjectName, CopyObjectOptions options = null, CancellationToken cancellationToken = default)

Creates a copy of an object asynchronously, potentially to a different bucket. This method uses the
`rewriteObject` underlying API operation for more flexibility and reliability.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `sourceBucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket containing the object to copy. Must not be null. |
| `sourceObjectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the object to copy within the bucket. Must not be null. |
| `destinationBucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket to copy the object to. Must not be null. |
| `destinationObjectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the object within the destination bucket. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.CopyObjectOptions` Additional options for the copy operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | A task representing the asynchronous operation, with a result returning the [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the new storage object resulting from the copy. |

**Overrides** [StorageClient.CopyObjectAsync(string, string, string, string, CopyObjectOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CopyObjectAsync_System_String_System_String_System_String_System_String_Google_Cloud_Storage_V1_CopyObjectOptions_System_Threading_CancellationToken_) **Remarks** The fact that `destinationBucket` and `destinationObjectName` are
optional is a mistake. The default value of null for these parameters is invalid for this method,
meaning that any call which doesn't specify the parameters explicitly will fail. Making these parameters
required would be a compile-time breaking change; this will be implemented in the next major version of this library.

### CreateBucket(string, Bucket, CreateBucketOptions)

    public override Bucket CreateBucket(string projectId, Bucket bucket, CreateBucketOptions options = null)

Creates a storage bucket synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The ID of the project to create the buckets in. Must not be null. |
| `bucket` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` The resource representation of the bucket to create. Must not be null, and must have a name. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.CreateBucketOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` | The resource representation of the newly-created bucket. |

**Overrides** [StorageClient.CreateBucket(string, Bucket, CreateBucketOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CreateBucket_System_String_Google_Apis_Storage_v1_Data_Bucket_Google_Cloud_Storage_V1_CreateBucketOptions_)

### CreateBucket(string, string, CreateBucketOptions)

    public override Bucket CreateBucket(string projectId, string bucket, CreateBucketOptions options = null)

Creates a storage bucket synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The ID of the project to create the buckets in. Must not be null. |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket to create. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.CreateBucketOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` | The resource representation of the newly-created bucket. |

**Overrides** [StorageClient.CreateBucket(string, string, CreateBucketOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CreateBucket_System_String_System_String_Google_Cloud_Storage_V1_CreateBucketOptions_)

### CreateBucketAsync(string, Bucket, CreateBucketOptions, CancellationToken)

    public override Task<Bucket> CreateBucketAsync(string projectId, Bucket bucket, CreateBucketOptions options = null, CancellationToken cancellationToken = default)

Creates a storage bucket asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The ID of the project to create the buckets in. Must not be null. |
| `bucket` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` The resource representation of the bucket to create. Must not be null, and must have a name. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.CreateBucketOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` | A task representing the asynchronous operation, with a result returning the resource representation of the newly-created bucket. |

**Overrides** [StorageClient.CreateBucketAsync(string, Bucket, CreateBucketOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CreateBucketAsync_System_String_Google_Apis_Storage_v1_Data_Bucket_Google_Cloud_Storage_V1_CreateBucketOptions_System_Threading_CancellationToken_)

### CreateBucketAsync(string, string, CreateBucketOptions, CancellationToken)

    public override Task<Bucket> CreateBucketAsync(string projectId, string bucket, CreateBucketOptions options = null, CancellationToken cancellationToken = default)

Creates a storage bucket asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The ID of the project to create the buckets in. Must not be null. |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket to create. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.CreateBucketOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` | A task representing the asynchronous operation, with a result returning the resource representation of the newly-created bucket. |

**Overrides** [StorageClient.CreateBucketAsync(string, string, CreateBucketOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CreateBucketAsync_System_String_System_String_Google_Cloud_Storage_V1_CreateBucketOptions_System_Threading_CancellationToken_)

### CreateHmacKey(string, string, CreateHmacKeyOptions)

    public override HmacKey CreateHmacKey(string projectId, string serviceAccountEmail, CreateHmacKeyOptions options = null)

Synchronously creates a new HMAC key associated with a service account.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The project ID in which to create the HMAC key. Must not be null. |
| `serviceAccountEmail` | `https://learn.microsoft.com/dotnet/api/system.string` The service account to associate with the HMAC key. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.CreateHmacKeyOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKey.html` | The new HMAC key, including the secret information in [Secret](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKey.html#Google_Apis_Storage_v1_Data_HmacKey_Secret). This secret is only ever returned when creating a key. |

**Overrides** [StorageClient.CreateHmacKey(string, string, CreateHmacKeyOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CreateHmacKey_System_String_System_String_Google_Cloud_Storage_V1_CreateHmacKeyOptions_)

### CreateHmacKeyAsync(string, string, CreateHmacKeyOptions, CancellationToken)

    public override Task<HmacKey> CreateHmacKeyAsync(string projectId, string serviceAccountEmail, CreateHmacKeyOptions options = null, CancellationToken cancellationToken = default)

Asynchronously creates a new HMAC key associated with a service account.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The project ID in which to create the HMAC key. Must not be null. |
| `serviceAccountEmail` | `https://learn.microsoft.com/dotnet/api/system.string` The service account to associate with the HMAC key. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.CreateHmacKeyOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKey.html` | A task representing the asynchronous operation, with a result returning the the new HMAC key, including the secret information in [Secret](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKey.html#Google_Apis_Storage_v1_Data_HmacKey_Secret). This secret is only ever returned when creating a key. |

**Overrides** [StorageClient.CreateHmacKeyAsync(string, string, CreateHmacKeyOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CreateHmacKeyAsync_System_String_System_String_Google_Cloud_Storage_V1_CreateHmacKeyOptions_System_Threading_CancellationToken_)

### CreateNotification(string, Notification, CreateNotificationOptions)

    public override Notification CreateNotification(string bucket, Notification notification, CreateNotificationOptions options = null)

Creates a notification configuration.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The bucket for which to create the notification configuration. Must not be null. |
| `notification` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Notification.html` The notification configuration to create. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.CreateNotificationOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Notification.html` | The [Notification](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Notification.html) representation of the newly-created notification configuration. |

**Overrides** [StorageClient.CreateNotification(string, Notification, CreateNotificationOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CreateNotification_System_String_Google_Apis_Storage_v1_Data_Notification_Google_Cloud_Storage_V1_CreateNotificationOptions_)

### CreateNotificationAsync(string, Notification, CreateNotificationOptions, CancellationToken)

    public override Task<Notification> CreateNotificationAsync(string bucket, Notification notification, CreateNotificationOptions options = null, CancellationToken cancellationToken = default)

Asynchronously creates a notification configuration.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The bucket for which to create the notification configuration. Must not be null. |
| `notification` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Notification.html` The notification configuration to create. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.CreateNotificationOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Notification.html` | A task representing the asynchronous operation, with a result returning the [Notification](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Notification.html) representation of the newly-created notification configuration. |

**Overrides** [StorageClient.CreateNotificationAsync(string, Notification, CreateNotificationOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CreateNotificationAsync_System_String_Google_Apis_Storage_v1_Data_Notification_Google_Cloud_Storage_V1_CreateNotificationOptions_System_Threading_CancellationToken_)

### CreateObjectUploader(Object, Stream, UploadObjectOptions)

    public override ObjectsResource.InsertMediaUpload CreateObjectUploader(Object destination, Stream source, UploadObjectOptions options = null)

Creates an instance which is capable of starting a resumable upload for an object.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `destination` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` Object to create or update. Must not be null, and must have the name and bucket populated. |
| `source` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream to read the data from. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UploadObjectOptions` Additional options for the upload. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.ObjectsResource.htmlhttps://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.ObjectsResource.InsertMediaUpload.html` | The [ObjectsResource.InsertMediaUpload](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.ObjectsResource.InsertMediaUpload.html) which can be used to upload the object. |

**Overrides** [StorageClient.CreateObjectUploader(Object, Stream, UploadObjectOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CreateObjectUploader_Google_Apis_Storage_v1_Data_Object_System_IO_Stream_Google_Cloud_Storage_V1_UploadObjectOptions_) **See Also** [UploadObject](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_UploadObject_Google_Apis_Storage_v1_Data_Object_System_IO_Stream_Google_Cloud_Storage_V1_UploadObjectOptions_System_IProgress_Google_Apis_Upload_IUploadProgress__)[Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html)[Stream](https://learn.microsoft.com/dotnet/api/system.io.stream)[UploadObjectOptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UploadObjectOptions)[IProgress](https://learn.microsoft.com/dotnet/api/system.iprogress-1)[IUploadProgress](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload.IUploadProgress.html)

### CreateObjectUploader(string, string, string, Stream, UploadObjectOptions)

    public override ObjectsResource.InsertMediaUpload CreateObjectUploader(string bucket, string objectName, string contentType, Stream source, UploadObjectOptions options = null)

Creates an instance which is capable of starting a resumable upload for an object.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket containing the object. Must not be null. |
| `objectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the object within the bucket. Must not be null. |
| `contentType` | `https://learn.microsoft.com/dotnet/api/system.string` The content type of the object. This should be a MIME type such as "text/html" or "application/octet-stream". May be null. |
| `source` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream to read the data from. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UploadObjectOptions` Additional options for the upload. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.ObjectsResource.htmlhttps://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.ObjectsResource.InsertMediaUpload.html` | The [ObjectsResource.InsertMediaUpload](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.ObjectsResource.InsertMediaUpload.html) which can be used to upload the object. |

**Overrides** [StorageClient.CreateObjectUploader(string, string, string, Stream, UploadObjectOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_CreateObjectUploader_System_String_System_String_System_String_System_IO_Stream_Google_Cloud_Storage_V1_UploadObjectOptions_) **See Also** [UploadObject](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_UploadObject_Google_Apis_Storage_v1_Data_Object_System_IO_Stream_Google_Cloud_Storage_V1_UploadObjectOptions_System_IProgress_Google_Apis_Upload_IUploadProgress__)[Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html)[Stream](https://learn.microsoft.com/dotnet/api/system.io.stream)[UploadObjectOptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UploadObjectOptions)[IProgress](https://learn.microsoft.com/dotnet/api/system.iprogress-1)[IUploadProgress](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload.IUploadProgress.html)

### DeleteBucket(Bucket, DeleteBucketOptions)

    public override void DeleteBucket(Bucket bucket, DeleteBucketOptions options = null)

Deletes a bucket synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` Bucket to delete. Must not be null, and must have the name populated. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DeleteBucketOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |

**Overrides** [StorageClient.DeleteBucket(Bucket, DeleteBucketOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DeleteBucket_Google_Apis_Storage_v1_Data_Bucket_Google_Cloud_Storage_V1_DeleteBucketOptions_)

### DeleteBucket(string, DeleteBucketOptions)

    public override void DeleteBucket(string bucket, DeleteBucketOptions options = null)

Deletes a bucket synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket to delete. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DeleteBucketOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |

**Overrides** [StorageClient.DeleteBucket(string, DeleteBucketOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DeleteBucket_System_String_Google_Cloud_Storage_V1_DeleteBucketOptions_)

### DeleteBucketAsync(Bucket, DeleteBucketOptions, CancellationToken)

    public override Task DeleteBucketAsync(Bucket bucket, DeleteBucketOptions options = null, CancellationToken cancellationToken = default)

Deletes bucket asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` Bucket to delete. Must not be null, and must have the name populated. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DeleteBucketOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous operation. |

**Overrides** [StorageClient.DeleteBucketAsync(Bucket, DeleteBucketOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DeleteBucketAsync_Google_Apis_Storage_v1_Data_Bucket_Google_Cloud_Storage_V1_DeleteBucketOptions_System_Threading_CancellationToken_)

### DeleteBucketAsync(string, DeleteBucketOptions, CancellationToken)

    public override Task DeleteBucketAsync(string bucket, DeleteBucketOptions options = null, CancellationToken cancellationToken = default)

Deletes a bucket asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket to delete. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DeleteBucketOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous operation. |

**Overrides** [StorageClient.DeleteBucketAsync(string, DeleteBucketOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DeleteBucketAsync_System_String_Google_Cloud_Storage_V1_DeleteBucketOptions_System_Threading_CancellationToken_)

### DeleteHmacKey(string, string, DeleteHmacKeyOptions)

    public override void DeleteHmacKey(string projectId, string accessId, DeleteHmacKeyOptions options = null)

Synchronously deletes an HMAC key, which must already have been deactivated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The ID of the project containing the HMAC key to delete. |
| `accessId` | `https://learn.microsoft.com/dotnet/api/system.string` The ID of the HMAC key to delete. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DeleteHmacKeyOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |

**Overrides** [StorageClient.DeleteHmacKey(string, string, DeleteHmacKeyOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DeleteHmacKey_System_String_System_String_Google_Cloud_Storage_V1_DeleteHmacKeyOptions_)

### DeleteHmacKeyAsync(string, string, DeleteHmacKeyOptions, CancellationToken)

    public override Task DeleteHmacKeyAsync(string projectId, string accessId, DeleteHmacKeyOptions options = null, CancellationToken cancellationToken = default)

Asynchronously deletes an HMAC key, which must already have been deactivated.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The ID of the project containing the HMAC key to delete. |
| `accessId` | `https://learn.microsoft.com/dotnet/api/system.string` The ID of the HMAC key to delete. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DeleteHmacKeyOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous operation. |

**Overrides** [StorageClient.DeleteHmacKeyAsync(string, string, DeleteHmacKeyOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DeleteHmacKeyAsync_System_String_System_String_Google_Cloud_Storage_V1_DeleteHmacKeyOptions_System_Threading_CancellationToken_)

### DeleteNotification(string, string, DeleteNotificationOptions)

    public override void DeleteNotification(string bucket, string notificationId, DeleteNotificationOptions options = null)

Deletes a notification configuration.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The bucket associated with the notification configuration. Must not be null. |
| `notificationId` | `https://learn.microsoft.com/dotnet/api/system.string` ID of the notification configuration to delete. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DeleteNotificationOptions` The options for the operation. May be null, in which case defaults will be supplied. |

**Overrides** [StorageClient.DeleteNotification(string, string, DeleteNotificationOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DeleteNotification_System_String_System_String_Google_Cloud_Storage_V1_DeleteNotificationOptions_)

### DeleteNotificationAsync(string, string, DeleteNotificationOptions, CancellationToken)

    public override Task DeleteNotificationAsync(string bucket, string notificationId, DeleteNotificationOptions options = null, CancellationToken cancellationToken = default)

Asynchronously deletes a notification configuration.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The bucket associated with the notification configuration. Must not be null. |
| `notificationId` | `https://learn.microsoft.com/dotnet/api/system.string` ID of the notification configuration to delete. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DeleteNotificationOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous operation. |

**Overrides** [StorageClient.DeleteNotificationAsync(string, string, DeleteNotificationOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DeleteNotificationAsync_System_String_System_String_Google_Cloud_Storage_V1_DeleteNotificationOptions_System_Threading_CancellationToken_)

### DeleteObject(Object, DeleteObjectOptions)

    public override void DeleteObject(Object obj, DeleteObjectOptions options = null)

Deletes a version of the specified object synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `obj` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` Object to delete. Must not be null, and must have the name and bucket populated. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DeleteObjectOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |

**Overrides** [StorageClient.DeleteObject(Object, DeleteObjectOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DeleteObject_Google_Apis_Storage_v1_Data_Object_Google_Cloud_Storage_V1_DeleteObjectOptions_) **Remarks**
By default this will delete the latest version of the object, but this can be
controlled using [Generation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DeleteObjectOptions#Google_Cloud_Storage_V1_DeleteObjectOptions_Generation). Note that any generation information
contained within `obj` is ignored; the generation to delete is only controlled
via `options`. For buckets that support
multiple versions, implicitly deleting the latest version only archives
it so the object is still available and can be listed by specifying [Versions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.ListObjectsOptions#Google_Cloud_Storage_V1_ListObjectsOptions_Versions).
If the version is explicitly specified, the object is permanently deleted.


If the bucket containing the object supports versioning, after this operation
completes successfully there may still be another version of the same object. In buckets which
do not support versioning, this operation will permanently delete the object.


If the request attempts to delete an object that does not exist or a specific version that does
not exist, this counts as a failure with an HTTP status code of 404.

### DeleteObject(string, string, DeleteObjectOptions)

    public override void DeleteObject(string bucket, string objectName, DeleteObjectOptions options = null)

Deletes a version of the specified object synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket containing the object. Must not be null. |
| `objectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the object within the bucket. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DeleteObjectOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |

**Overrides** [StorageClient.DeleteObject(string, string, DeleteObjectOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DeleteObject_System_String_System_String_Google_Cloud_Storage_V1_DeleteObjectOptions_) **Remarks**
By default this will delete the latest version of the object, but this can be
controlled using [Generation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DeleteObjectOptions#Google_Cloud_Storage_V1_DeleteObjectOptions_Generation). For buckets that support
multiple versions, implicitly deleting the latest version only archives
it so the object is still available and can be listed by specifying [Versions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.ListObjectsOptions#Google_Cloud_Storage_V1_ListObjectsOptions_Versions).
If the version is explicitly specified, the object is permanently deleted.


If the bucket containing the object supports versioning, after this operation
completes successfully there may still be another version of the same object. In buckets which
do not support versioning, this operation will permanently delete the object.


If the request attempts to delete an object that does not exist or a specific version that does
not exist, this counts as a failure with an HTTP status code of 404.

### DeleteObjectAsync(Object, DeleteObjectOptions, CancellationToken)

    public override Task DeleteObjectAsync(Object obj, DeleteObjectOptions options = null, CancellationToken cancellationToken = default)

Deletes a version of the specified object asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `obj` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` Object to delete. Must not be null, and must have the name and bucket populated. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DeleteObjectOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous operation. |

**Overrides** [StorageClient.DeleteObjectAsync(Object, DeleteObjectOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DeleteObjectAsync_Google_Apis_Storage_v1_Data_Object_Google_Cloud_Storage_V1_DeleteObjectOptions_System_Threading_CancellationToken_) **Remarks**
By default this will delete the latest version of the object, but this can be
controlled using [Generation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DeleteObjectOptions#Google_Cloud_Storage_V1_DeleteObjectOptions_Generation). Note that any generation information
contained within `obj` is ignored; the generation to delete is only controlled
via `options`. For buckets that support
multiple versions, implicitly deleting the latest version only archives
it so the object is still available and can be listed by specifying [Versions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.ListObjectsOptions#Google_Cloud_Storage_V1_ListObjectsOptions_Versions).
If the version is explicitly specified, the object is permanently deleted.


If the bucket containing the object supports versioning, after this operation
completes successfully there may still be another version of the same object. In buckets which
do not support versioning, this operation will permanently delete the object.


If the request attempts to delete an object that does not exist or a specific version that does
not exist, this counts as a failure with an HTTP status code of 404.

### DeleteObjectAsync(string, string, DeleteObjectOptions, CancellationToken)

    public override Task DeleteObjectAsync(string bucket, string objectName, DeleteObjectOptions options = null, CancellationToken cancellationToken = default)

Deletes a version of the specified object asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket containing the object. Must not be null. |
| `objectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the object within the bucket. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DeleteObjectOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous operation. |

**Overrides** [StorageClient.DeleteObjectAsync(string, string, DeleteObjectOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DeleteObjectAsync_System_String_System_String_Google_Cloud_Storage_V1_DeleteObjectOptions_System_Threading_CancellationToken_) **Remarks**
By default this will delete the latest version of the object, but this can be
controlled using [Generation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DeleteObjectOptions#Google_Cloud_Storage_V1_DeleteObjectOptions_Generation). For buckets that support
multiple versions, implicitly deleting the latest version only archives
it so the object is still available and can be listed by specifying [Versions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.ListObjectsOptions#Google_Cloud_Storage_V1_ListObjectsOptions_Versions).
If the version is explicitly specified, the object is permanently deleted.


If the bucket containing the object supports versioning, after this operation
completes successfully there may still be another version of the same object. In buckets which
do not support versioning, this operation will permanently delete the object.


If the request attempts to delete an object that does not exist or a specific version that does
not exist, this counts as a failure with an HTTP status code of 404.

### Dispose()

    public override void Dispose()

Dispose of this instance. See the [StorageClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient) remarks on when this should be called.
**Overrides** [StorageClient.Dispose()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_Dispose)

### DownloadObject(Object, Stream, DownloadObjectOptions, IProgress\<IDownloadProgress\>)

    public override Object DownloadObject(Object source, Stream destination, DownloadObjectOptions options = null, IProgress<IDownloadProgress> progress = null)

Downloads the data for an object from storage synchronously, into a specified stream.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `source` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` Source object to download the data from. Must not be null. |
| `destination` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream to write the data into. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DownloadObjectOptions` Additional options for the download. May be null, in which case appropriate defaults will be used. |
| `progress` | `https://learn.microsoft.com/dotnet/api/system.iprogress-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Download.IDownloadProgress.html` Progress reporter for the download. May be null. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | An [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the metadata for the object that has been downloaded into the stream. This metadata is not the complete metadata for the object; it's just the information provided in headers while downloading. Additionally, the CRC32C hash is only the hash of the data downloaded; if the options specify a range which does not encompass the whole object, this will not be the same as the CRC32C hash of the complete object. |

**Overrides** [StorageClient.DownloadObject(Object, Stream, DownloadObjectOptions, IProgress\<IDownloadProgress\>)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DownloadObject_Google_Apis_Storage_v1_Data_Object_System_IO_Stream_Google_Cloud_Storage_V1_DownloadObjectOptions_System_IProgress_Google_Apis_Download_IDownloadProgress__) **Remarks** The generation number within `source` is ignored by this method.
To download a specific generation, use [Generation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DownloadObjectOptions#Google_Cloud_Storage_V1_DownloadObjectOptions_Generation).

### DownloadObject(string, string, Stream, DownloadObjectOptions, IProgress\<IDownloadProgress\>)

    public override Object DownloadObject(string bucket, string objectName, Stream destination, DownloadObjectOptions options = null, IProgress<IDownloadProgress> progress = null)

Downloads the data for an object from storage synchronously, into a specified stream.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket containing the object. Must not be null. |
| `objectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the object within the bucket. Must not be null. |
| `destination` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream to write the data into. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DownloadObjectOptions` Additional options for the download. May be null, in which case appropriate defaults will be used. |
| `progress` | `https://learn.microsoft.com/dotnet/api/system.iprogress-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Download.IDownloadProgress.html` Progress reporter for the download. May be null. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | An [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the metadata for the object that has been downloaded into the stream. This metadata is not the complete metadata for the object; it's just the information provided in headers while downloading. Additionally, the CRC32C hash is only the hash of the data downloaded; if the options specify a range which does not encompass the whole object, this will not be the same as the CRC32C hash of the complete object. |

**Overrides** [StorageClient.DownloadObject(string, string, Stream, DownloadObjectOptions, IProgress\<IDownloadProgress\>)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DownloadObject_System_String_System_String_System_IO_Stream_Google_Cloud_Storage_V1_DownloadObjectOptions_System_IProgress_Google_Apis_Download_IDownloadProgress__)

### DownloadObjectAsync(Object, Stream, DownloadObjectOptions, CancellationToken, IProgress\<IDownloadProgress\>)

    public override Task<Object> DownloadObjectAsync(Object source, Stream destination, DownloadObjectOptions options = null, CancellationToken cancellationToken = default, IProgress<IDownloadProgress> progress = null)

Downloads the data for an object from storage asynchronously, into a specified stream.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `source` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` Source object to download the data from. Must not be null. |
| `destination` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream to write the data into. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DownloadObjectOptions` Additional options for the download. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |
| `progress` | `https://learn.microsoft.com/dotnet/api/system.iprogress-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Download.IDownloadProgress.html` Progress reporter for the download. May be null. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | A task representing the asynchronous operation. The result of the task is an [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the metadata for the object that has been downloaded into the stream. This metadata is not the complete metadata for the object; it's just the information provided in headers while downloading. Additionally, the CRC32C hash is only the hash of the data downloaded; if the options specify a range which does not encompass the whole object, this will not be the same as the CRC32C hash of the complete object. |

**Overrides** [StorageClient.DownloadObjectAsync(Object, Stream, DownloadObjectOptions, CancellationToken, IProgress\<IDownloadProgress\>)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DownloadObjectAsync_Google_Apis_Storage_v1_Data_Object_System_IO_Stream_Google_Cloud_Storage_V1_DownloadObjectOptions_System_Threading_CancellationToken_System_IProgress_Google_Apis_Download_IDownloadProgress__) **Remarks** The generation number within `source` is ignored by this method.
To download a specific generation, use [Generation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DownloadObjectOptions#Google_Cloud_Storage_V1_DownloadObjectOptions_Generation).

### DownloadObjectAsync(string, string, Stream, DownloadObjectOptions, CancellationToken, IProgress\<IDownloadProgress\>)

    public override Task<Object> DownloadObjectAsync(string bucket, string objectName, Stream destination, DownloadObjectOptions options = null, CancellationToken cancellationToken = default, IProgress<IDownloadProgress> progress = null)

Downloads the data for an object from storage asynchronously, into a specified stream.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket containing the object. Must not be null. |
| `objectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the object within the bucket. Must not be null. |
| `destination` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream to write the data into. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.DownloadObjectOptions` Additional options for the download. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |
| `progress` | `https://learn.microsoft.com/dotnet/api/system.iprogress-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Download.IDownloadProgress.html` Progress reporter for the download. May be null. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | A task representing the asynchronous operation. The result of the task is an [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the metadata for the object that has been downloaded into the stream. This metadata is not the complete metadata for the object; it's just the information provided in headers while downloading. Additionally, the CRC32C hash is only the hash of the data downloaded; if the options specify a range which does not encompass the whole object, this will not be the same as the CRC32C hash of the complete object. |

**Overrides** [StorageClient.DownloadObjectAsync(string, string, Stream, DownloadObjectOptions, CancellationToken, IProgress\<IDownloadProgress\>)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DownloadObjectAsync_System_String_System_String_System_IO_Stream_Google_Cloud_Storage_V1_DownloadObjectOptions_System_Threading_CancellationToken_System_IProgress_Google_Apis_Download_IDownloadProgress__)

### GetBucket(string, GetBucketOptions)

    public override Bucket GetBucket(string bucket, GetBucketOptions options = null)

Fetches the information about a bucket synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.GetBucketOptions` Additional options for the fetch operation. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` | The [Bucket](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html) representation of the storage bucket. |

**Overrides** [StorageClient.GetBucket(string, GetBucketOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_GetBucket_System_String_Google_Cloud_Storage_V1_GetBucketOptions_)

### GetBucketAsync(string, GetBucketOptions, CancellationToken)

    public override Task<Bucket> GetBucketAsync(string bucket, GetBucketOptions options = null, CancellationToken cancellationToken = default)

Fetches the information about a bucket asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.GetBucketOptions` Additional options for the fetch operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` | A task representing the asynchronous operation, with a result returning the [Bucket](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html) representation of the storage bucket. |

**Overrides** [StorageClient.GetBucketAsync(string, GetBucketOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_GetBucketAsync_System_String_Google_Cloud_Storage_V1_GetBucketOptions_System_Threading_CancellationToken_)

### GetBucketIamPolicy(string, GetBucketIamPolicyOptions)

    public override Policy GetBucketIamPolicy(string bucket, GetBucketIamPolicyOptions options = null)

Fetches the IAM policy information about a bucket synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions` Additional options for the fetch operation. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Policy.html` | The [Policy](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Policy.html) representation of the storage bucket IAM policy. |

**Overrides** [StorageClient.GetBucketIamPolicy(string, GetBucketIamPolicyOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_GetBucketIamPolicy_System_String_Google_Cloud_Storage_V1_GetBucketIamPolicyOptions_)

### GetBucketIamPolicyAsync(string, GetBucketIamPolicyOptions, CancellationToken)

    public override Task<Policy> GetBucketIamPolicyAsync(string bucket, GetBucketIamPolicyOptions options = null, CancellationToken cancellationToken = default)

Fetches the IAM policy information about a bucket asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions` Additional options for the fetch operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Policy.html` | A task representing the asynchronous operation, with a result returning the [Policy](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Policy.html) representation of the storage bucket IAM policy. |

**Overrides** [StorageClient.GetBucketIamPolicyAsync(string, GetBucketIamPolicyOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_GetBucketIamPolicyAsync_System_String_Google_Cloud_Storage_V1_GetBucketIamPolicyOptions_System_Threading_CancellationToken_)

### GetHmacKey(string, string, GetHmacKeyOptions)

    public override HmacKeyMetadata GetHmacKey(string projectId, string accessId, GetHmacKeyOptions options = null)

Synchronously fetches metadata for the specified HMAC key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The project containing the HMAC key. Must not be null. |
| `accessId` | `https://learn.microsoft.com/dotnet/api/system.string` The ID of the HMAC key. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.GetHmacKeyOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKeyMetadata.html` | The HMAC key metadata |

**Overrides** [StorageClient.GetHmacKey(string, string, GetHmacKeyOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_GetHmacKey_System_String_System_String_Google_Cloud_Storage_V1_GetHmacKeyOptions_)

### GetHmacKeyAsync(string, string, GetHmacKeyOptions, CancellationToken)

    public override Task<HmacKeyMetadata> GetHmacKeyAsync(string projectId, string accessId, GetHmacKeyOptions options = null, CancellationToken cancellationToken = default)

Asynchronously fetches metadata for the specified HMAC key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The project containing the HMAC key. Must not be null. |
| `accessId` | `https://learn.microsoft.com/dotnet/api/system.string` The ID of the HMAC key. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.GetHmacKeyOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKeyMetadata.html` | A task representing the asynchronous operation, with a result returning the HMAC key metadata. |

**Overrides** [StorageClient.GetHmacKeyAsync(string, string, GetHmacKeyOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_GetHmacKeyAsync_System_String_System_String_Google_Cloud_Storage_V1_GetHmacKeyOptions_System_Threading_CancellationToken_)

### GetNotification(string, string, GetNotificationOptions)

    public override Notification GetNotification(string bucket, string notificationId, GetNotificationOptions options = null)

Fetches a notification configuration.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The bucket associated with the notification configuration. Must not be null. |
| `notificationId` | `https://learn.microsoft.com/dotnet/api/system.string` ID of the notification configuration to fetch. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.GetNotificationOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Notification.html` | The [Notification](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Notification.html) representation of the notification configuration. |

**Overrides** [StorageClient.GetNotification(string, string, GetNotificationOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_GetNotification_System_String_System_String_Google_Cloud_Storage_V1_GetNotificationOptions_)

### GetNotificationAsync(string, string, GetNotificationOptions, CancellationToken)

    public override Task<Notification> GetNotificationAsync(string bucket, string notificationId, GetNotificationOptions options = null, CancellationToken cancellationToken = default)

Asynchronously fetches a notification configuration.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The bucket associated with the notification configuration. Must not be null. |
| `notificationId` | `https://learn.microsoft.com/dotnet/api/system.string` ID of the notification configuration to fetch. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.GetNotificationOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Notification.html` | A task representing the asynchronous operation, with a result returning the [Notification](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Notification.html) representation of the notification configuration. |

**Overrides** [StorageClient.GetNotificationAsync(string, string, GetNotificationOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_GetNotificationAsync_System_String_System_String_Google_Cloud_Storage_V1_GetNotificationOptions_System_Threading_CancellationToken_)

### GetObject(string, string, GetObjectOptions)

    public override Object GetObject(string bucket, string objectName, GetObjectOptions options = null)

Fetches the information about an object synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket containing the object. Must not be null. |
| `objectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the object within the bucket. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.GetObjectOptions` Additional options for the fetch operation. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | The [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the storage object. |

**Overrides** [StorageClient.GetObject(string, string, GetObjectOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_GetObject_System_String_System_String_Google_Cloud_Storage_V1_GetObjectOptions_) **Remarks** This does not retrieve the content of the object itself. Use [DownloadObject(string, string, Stream, DownloadObjectOptions, IProgress\<IDownloadProgress\>)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DownloadObject_System_String_System_String_System_IO_Stream_Google_Cloud_Storage_V1_DownloadObjectOptions_System_IProgress_Google_Apis_Download_IDownloadProgress__)
to download the content.

### GetObjectAsync(string, string, GetObjectOptions, CancellationToken)

    public override Task<Object> GetObjectAsync(string bucket, string objectName, GetObjectOptions options = null, CancellationToken cancellationToken = default)

Fetches the information about an object asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket containing the object. Must not be null. |
| `objectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the object within the bucket. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.GetObjectOptions` Additional options for the fetch operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | A task representing the asynchronous operation, with a result returning the [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the storage object. |

**Overrides** [StorageClient.GetObjectAsync(string, string, GetObjectOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_GetObjectAsync_System_String_System_String_Google_Cloud_Storage_V1_GetObjectOptions_System_Threading_CancellationToken_) **Remarks** This does not retrieve the content of the object itself. Use [DownloadObjectAsync(string, string, Stream, DownloadObjectOptions, CancellationToken, IProgress\<IDownloadProgress\>)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_DownloadObjectAsync_System_String_System_String_System_IO_Stream_Google_Cloud_Storage_V1_DownloadObjectOptions_System_Threading_CancellationToken_System_IProgress_Google_Apis_Download_IDownloadProgress__)
to download the content.

### GetStorageServiceAccountEmail(string, GetStorageServiceAccountEmailOptions)

    public override string GetStorageServiceAccountEmail(string projectId, GetStorageServiceAccountEmailOptions options = null)

Retrieves the service account email address that Google Cloud Storage uses for operations on
other services such as Google Cloud Pub/Sub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` ID of the project to retrieve the service account for. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.GetStorageServiceAccountEmailOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` | The email address of the service account. |

**Overrides** [StorageClient.GetStorageServiceAccountEmail(string, GetStorageServiceAccountEmailOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_GetStorageServiceAccountEmail_System_String_Google_Cloud_Storage_V1_GetStorageServiceAccountEmailOptions_)

### GetStorageServiceAccountEmailAsync(string, GetStorageServiceAccountEmailOptions, CancellationToken)

    public override Task<string> GetStorageServiceAccountEmailAsync(string projectId, GetStorageServiceAccountEmailOptions options = null, CancellationToken cancellationToken = default)

Asynchronously retrieves the service account email address that Google Cloud Storage uses for operations on
other services such as Google Cloud Pub/Sub.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` ID of the project to retrieve the service account for. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.GetStorageServiceAccountEmailOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://learn.microsoft.com/dotnet/api/system.string` | A task representing the asynchronous operation, with a result returning the email address of the service account. |

**Overrides** [StorageClient.GetStorageServiceAccountEmailAsync(string, GetStorageServiceAccountEmailOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_GetStorageServiceAccountEmailAsync_System_String_Google_Cloud_Storage_V1_GetStorageServiceAccountEmailOptions_System_Threading_CancellationToken_)

### InitiateUploadSessionAsync(Object, long?, UploadObjectOptions, CancellationToken)

    public override Task<Uri> InitiateUploadSessionAsync(Object destination, long? contentLength, UploadObjectOptions options = null, CancellationToken cancellationToken = default)

Initiates an upload session, optionally specifying the length of the content to be uploaded.
The resulting URI can be used with [CreateFromUploadUri(Uri, Stream, ResumableUploadOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload.ResumableUpload.html#Google_Apis_Upload_ResumableUpload_CreateFromUploadUri_System_Uri_System_IO_Stream_Google_Apis_Upload_ResumableUploadOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `destination` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` Object to create or update. Must not be null, and must have the name and bucket populated. |
| `contentLength` | `https://learn.microsoft.com/dotnet/api/system.int64` The length of the content to upload later. This may be null, in which case any length of content may be uploaded. If the value is non-null, it must be strictly positive (not zero), and the content uploaded later must be exactly this length. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UploadObjectOptions` Additional options for the upload. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://learn.microsoft.com/dotnet/api/system.uri` | A task representing the asynchronous operation, with a result returning the [Uri](https://learn.microsoft.com/dotnet/api/system.uri) to use in order to upload the content. |

**Overrides** [StorageClient.InitiateUploadSessionAsync(Object, long?, UploadObjectOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_InitiateUploadSessionAsync_Google_Apis_Storage_v1_Data_Object_System_Nullable_System_Int64__Google_Cloud_Storage_V1_UploadObjectOptions_System_Threading_CancellationToken_)

### InitiateUploadSessionAsync(string, string, string, long?, UploadObjectOptions, CancellationToken)

    public override Task<Uri> InitiateUploadSessionAsync(string bucket, string objectName, string contentType, long? contentLength, UploadObjectOptions options = null, CancellationToken cancellationToken = default)

Initiates an upload session, optionally specifying the length of the content to be uploaded.
The resulting URI can be used with [CreateFromUploadUri(Uri, Stream, ResumableUploadOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload.ResumableUpload.html#Google_Apis_Upload_ResumableUpload_CreateFromUploadUri_System_Uri_System_IO_Stream_Google_Apis_Upload_ResumableUploadOptions_).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket containing the object. Must not be null. |
| `objectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the object within the bucket. Must not be null. |
| `contentType` | `https://learn.microsoft.com/dotnet/api/system.string` The content type of the object. This should be a MIME type such as "text/html" or "application/octet-stream". May be null. |
| `contentLength` | `https://learn.microsoft.com/dotnet/api/system.int64` The length of the content to upload later. This may be null, in which case any length of content may be uploaded. If the value is non-null, it must be strictly positive (not zero), and the content uploaded later must be exactly this length. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UploadObjectOptions` Additional options for the upload. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://learn.microsoft.com/dotnet/api/system.uri` | A task representing the asynchronous operation, with a result returning the [Uri](https://learn.microsoft.com/dotnet/api/system.uri) to use in order to upload the content. |

**Overrides** [StorageClient.InitiateUploadSessionAsync(string, string, string, long?, UploadObjectOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_InitiateUploadSessionAsync_System_String_System_String_System_String_System_Nullable_System_Int64__Google_Cloud_Storage_V1_UploadObjectOptions_System_Threading_CancellationToken_)

### ListBuckets(string, ListBucketsOptions)

    public override PagedEnumerable<Buckets, Bucket> ListBuckets(string projectId, ListBucketsOptions options = null)

Lists the buckets for a given project, synchronously but lazily.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The ID of the project to list the buckets from. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.ListBucketsOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlGoogle.Apis.Storage.v1.Data.Bucketshttps://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` | A sequence of buckets within the project. |

**Overrides** [StorageClient.ListBuckets(string, ListBucketsOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_ListBuckets_System_String_Google_Cloud_Storage_V1_ListBucketsOptions_) **Remarks** This method fetches the buckets lazily, making requests to the underlying service
for a page of results at a time, as required. No network requests are made until the returned sequence is enumerated.
This means that any exception due to an invalid request will be deferred until that time. Callers should be prepared
for exceptions to be thrown while enumerating the results. In addition to failures due to invalid requests, network
or service failures can cause exceptions even after the first results have been returned.

### ListBucketsAsync(string, ListBucketsOptions)

    public override PagedAsyncEnumerable<Buckets, Bucket> ListBucketsAsync(string projectId, ListBucketsOptions options = null)

Asynchronously lists the buckets in a given project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The ID of the project to list the buckets from. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.ListBucketsOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlGoogle.Apis.Storage.v1.Data.Bucketshttps://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` | An asynchronous sequence of buckets. |

**Overrides** [StorageClient.ListBucketsAsync(string, ListBucketsOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_ListBucketsAsync_System_String_Google_Cloud_Storage_V1_ListBucketsOptions_) **Remarks** This method fetches the buckets lazily, making requests to the underlying service
for a page of results at a time, as required. No network requests are made until the returned sequence is enumerated.
This means that any exception due to an invalid request will be deferred until that time. Callers should be prepared
for exceptions to be thrown while enumerating the results. In addition to failures due to invalid requests, network
or service failures can cause exceptions even after the first results have been returned.

### ListHmacKeys(string, string, ListHmacKeysOptions)

    public override PagedEnumerable<HmacKeysMetadata, HmacKeyMetadata> ListHmacKeys(string projectId, string serviceAccountEmail = null, ListHmacKeysOptions options = null)

Lists the HMAC keys in a given project, synchronously but lazily, optionally filtering by service account email address.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The project containing the HMAC keys. Must not be null. |
| `serviceAccountEmail` | `https://learn.microsoft.com/dotnet/api/system.string` The service account email address to list keys for. May be null, in which case all HMAC keys associated with the project are returned. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.ListHmacKeysOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKeysMetadata.htmlhttps://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKeyMetadata.html` | A sequence of HMAC keys within the project. |

**Overrides** [StorageClient.ListHmacKeys(string, string, ListHmacKeysOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_ListHmacKeys_System_String_System_String_Google_Cloud_Storage_V1_ListHmacKeysOptions_) **Remarks** This method fetches the buckets lazily, making requests to the underlying service
for a page of results at a time, as required. No network requests are made until the returned sequence is enumerated.
This means that any exception due to an invalid request will be deferred until that time. Callers should be prepared
for exceptions to be thrown while enumerating the results. In addition to failures due to invalid requests, network
or service failures can cause exceptions even after the first results have been returned.

### ListHmacKeysAsync(string, string, ListHmacKeysOptions)

    public override PagedAsyncEnumerable<HmacKeysMetadata, HmacKeyMetadata> ListHmacKeysAsync(string projectId, string serviceAccountEmail = null, ListHmacKeysOptions options = null)

Lists the HMAC keys in a given project, asynchronously and lazily, optionally filtering by service account email address.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` The project containing the HMAC keys. Must not be null. |
| `serviceAccountEmail` | `https://learn.microsoft.com/dotnet/api/system.string` The service account email address to list keys for. May be null, in which case all HMAC keys associated with the project are returned. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.ListHmacKeysOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKeysMetadata.htmlhttps://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKeyMetadata.html` | An asynchronous sequence of HMAC keys within the project. |

**Overrides** [StorageClient.ListHmacKeysAsync(string, string, ListHmacKeysOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_ListHmacKeysAsync_System_String_System_String_Google_Cloud_Storage_V1_ListHmacKeysOptions_) **Remarks** This method fetches the buckets lazily, making requests to the underlying service
for a page of results at a time, as required. No network requests are made until the returned sequence is enumerated.
This means that any exception due to an invalid request will be deferred until that time. Callers should be prepared
for exceptions to be thrown while enumerating the results. In addition to failures due to invalid requests, network
or service failures can cause exceptions even after the first results have been returned.

### ListNotifications(string, ListNotificationsOptions)

    public override IReadOnlyList<Notification> ListNotifications(string bucket, ListNotificationsOptions options = null)

Lists notification configurations associated with a bucket.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The bucket for which to list associated notification configurations. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.ListNotificationsOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Notification.html` | A list of notification configurations associated with the specified bucket. This method never returns null. |

**Overrides** [StorageClient.ListNotifications(string, ListNotificationsOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_ListNotifications_System_String_Google_Cloud_Storage_V1_ListNotificationsOptions_)

### ListNotificationsAsync(string, ListNotificationsOptions, CancellationToken)

    public override Task<IReadOnlyList<Notification>> ListNotificationsAsync(string bucket, ListNotificationsOptions options = null, CancellationToken cancellationToken = default)

Asynchronously lists notification configurations associated with a bucket.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The bucket for which to list associated notification configurations. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.ListNotificationsOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Notification.html` | A task representing the asynchronous operation, with a result returning the list of notification configurations associated with the specified bucket. The result is never null. |

**Overrides** [StorageClient.ListNotificationsAsync(string, ListNotificationsOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_ListNotificationsAsync_System_String_Google_Cloud_Storage_V1_ListNotificationsOptions_System_Threading_CancellationToken_)

### ListObjects(string, string, ListObjectsOptions)

    public override PagedEnumerable<Objects, Object> ListObjects(string bucket, string prefix = null, ListObjectsOptions options = null)

Lists the objects in a given bucket, synchronously but lazily.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The bucket to list the objects from. Must not be null. |
| `prefix` | `https://learn.microsoft.com/dotnet/api/system.string` The prefix to match. Only objects with names that start with this string will be returned. This parameter may be null or empty, in which case no filtering is performed. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.ListObjectsOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Objects.htmlhttps://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | A sequence of objects in the specified bucket. |

**Overrides** [StorageClient.ListObjects(string, string, ListObjectsOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_ListObjects_System_String_System_String_Google_Cloud_Storage_V1_ListObjectsOptions_) **Remarks** This method fetches the objects lazily, making requests to the underlying service
for a page of results at a time, as required. No network requests are made until the returned sequence is enumerated.
This means that any exception due to an invalid request will be deferred until that time. Callers should be prepared
for exceptions to be thrown while enumerating the results. In addition to failures due to invalid requests, network
or service failures can cause exceptions even after the first results have been returned.

### ListObjectsAsync(string, string, ListObjectsOptions)

    public override PagedAsyncEnumerable<Objects, Object> ListObjectsAsync(string bucket, string prefix = null, ListObjectsOptions options = null)

Asynchronously lists the objects in a given bucket.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The bucket to list the objects from. Must not be null. |
| `prefix` | `https://learn.microsoft.com/dotnet/api/system.string` The prefix to match. Only objects with names that start with this string will be returned. This parameter may be null or empty, in which case no filtering is performed. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.ListObjectsOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Objects.htmlhttps://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | An asynchronous sequence of objects in the specified bucket. |

**Overrides** [StorageClient.ListObjectsAsync(string, string, ListObjectsOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_ListObjectsAsync_System_String_System_String_Google_Cloud_Storage_V1_ListObjectsOptions_) **Remarks** This method fetches the objects lazily, making requests to the underlying service
for a page of results at a time, as required. No network requests are made until the returned sequence is enumerated.
This means that any exception due to an invalid request will be deferred until that time. Callers should be prepared
for exceptions to be thrown while enumerating the results. In addition to failures due to invalid requests, network
or service failures can cause exceptions even after the first results have been returned.

### LockBucketRetentionPolicy(string, long, LockBucketRetentionPolicyOptions)

    public override void LockBucketRetentionPolicy(string bucket, long metageneration, LockBucketRetentionPolicyOptions options = null)

Locks the retention policy of a bucket. This is a one-way process:
once a retention policy is locked, it cannot be shortened, removed or unlocked,
although it can be increased in duration. The lock persists until the bucket is deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket whose retention policy should be locked. Must not be null. |
| `metageneration` | `https://learn.microsoft.com/dotnet/api/system.int64` The current metageneration of the bucket, used to validate that the bucket version to be locked is the intended one. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.LockBucketRetentionPolicyOptions` The options for the operation. May be null, in which case defaults will be supplied. |

**Overrides** [StorageClient.LockBucketRetentionPolicy(string, long, LockBucketRetentionPolicyOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_LockBucketRetentionPolicy_System_String_System_Int64_Google_Cloud_Storage_V1_LockBucketRetentionPolicyOptions_)

### LockBucketRetentionPolicyAsync(string, long, LockBucketRetentionPolicyOptions, CancellationToken)

    public override Task LockBucketRetentionPolicyAsync(string bucket, long metageneration, LockBucketRetentionPolicyOptions options = null, CancellationToken cancellationToken = default)

Asynchronously locks the retention policy of a bucket. This is a one-way process:
once a retention policy is locked, it cannot be shortened, removed or unlocked,
although it can be increased in duration. The lock persists until the bucket is deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket whose retention policy should be locked. Must not be null. |
| `metageneration` | `https://learn.microsoft.com/dotnet/api/system.int64` The current metageneration of the bucket, used to validate that the bucket version to be locked is the intended one. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.LockBucketRetentionPolicyOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous operation. |

**Overrides** [StorageClient.LockBucketRetentionPolicyAsync(string, long, LockBucketRetentionPolicyOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_LockBucketRetentionPolicyAsync_System_String_System_Int64_Google_Cloud_Storage_V1_LockBucketRetentionPolicyOptions_System_Threading_CancellationToken_)

### ModifyBucketLabels(string, IDictionary\<string, string\>, ModifyBucketLabelsOptions)

    public override IDictionary<string, string> ModifyBucketLabels(string bucket, IDictionary<string, string> labels, ModifyBucketLabelsOptions options = null)

Sets or removes one or more labels on a bucket.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket. Must not be null. |
| `labels` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2https://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` The labels to set. Must contain at least one entry; keys must not be null, but values may be (indicating label removal). |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.ModifyBucketLabelsOptions` The options for the operation. May be null, in which case defaults will be supplied. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2https://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` | A dictionary with the same keys as `labels`, and values indicating the corresponding label value before this operation completed. Labels which weren't present on the bucket before the modification have corresponding null values in the returned dictionary. |

**Overrides** [StorageClient.ModifyBucketLabels(string, IDictionary\<string, string\>, ModifyBucketLabelsOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_ModifyBucketLabels_System_String_System_Collections_Generic_IDictionary_System_String_System_String__Google_Cloud_Storage_V1_ModifyBucketLabelsOptions_) **Remarks** Each entry in `labels` is treated as a label to set or remove. If the value is null,
it will be removed from the bucket; otherwise, it will be set/added. Labels which do not have an entry
in the dictionary will be ignored.

### ModifyBucketLabelsAsync(string, IDictionary\<string, string\>, ModifyBucketLabelsOptions, CancellationToken)

    public override Task<IDictionary<string, string>> ModifyBucketLabelsAsync(string bucket, IDictionary<string, string> labels, ModifyBucketLabelsOptions options = null, CancellationToken cancellationToken = default)

Sets or removes one or more labels on a bucket asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket. Must not be null. |
| `labels` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2https://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` The labels to set. Must contain at least one entry; keys must not be null, but values may be (indicating label removal). |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.ModifyBucketLabelsOptions` The options for the operation. May be null, in which case defaults will be supplied. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2https://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` | A dictionary with the same keys as `labels`, and values indicating the corresponding label value before this operation completed. Labels which weren't present on the bucket before the modification have corresponding null values in the returned dictionary. |

**Overrides** [StorageClient.ModifyBucketLabelsAsync(string, IDictionary\<string, string\>, ModifyBucketLabelsOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_ModifyBucketLabelsAsync_System_String_System_Collections_Generic_IDictionary_System_String_System_String__Google_Cloud_Storage_V1_ModifyBucketLabelsOptions_System_Threading_CancellationToken_) **Remarks** Each entry in `labels` is treated as a label to set or remove. If the value is null,
it will be removed from the bucket; otherwise, it will be set/added. Labels which do not have an entry
in the dictionary will be ignored.

### MoveObject(string, string, string, MoveObjectOptions)

    public override Object MoveObject(string sourceBucket, string sourceObjectName, string destinationObjectName, MoveObjectOptions options = null)

Moves an object within a bucket. This method uses the
`moveObject` underlying API operation for more flexibility and reliability.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `sourceBucket` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the bucket containing the object to move. Must not be null. |
| `sourceObjectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the source object to move within the bucket. Must not be null. |
| `destinationObjectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the new object to move to within the bucket. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.MoveObjectOptions` Additional options for the move operation. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | The [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the new storage object resulting from the move. |

**Overrides** [StorageClient.MoveObject(string, string, string, MoveObjectOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_MoveObject_System_String_System_String_System_String_Google_Cloud_Storage_V1_MoveObjectOptions_)

### MoveObjectAsync(string, string, string, MoveObjectOptions, CancellationToken)

    public override Task<Object> MoveObjectAsync(string sourceBucket, string sourceObjectName, string destinationObjectName, MoveObjectOptions options = null, CancellationToken cancellationToken = default)

Moves an object within a bucket. This method uses the
`moveObject` underlying API operation for more flexibility and reliability.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `sourceBucket` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the bucket containing the object to move. Must not be null. |
| `sourceObjectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the source object to move within the bucket. Must not be null. |
| `destinationObjectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the new object to move to within the bucket. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.MoveObjectOptions` Additional options for the move operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | A task representing the asynchronous operation, with a result returning the [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the new storage object resulting from the move. |

**Overrides** [StorageClient.MoveObjectAsync(string, string, string, MoveObjectOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_MoveObjectAsync_System_String_System_String_System_String_Google_Cloud_Storage_V1_MoveObjectOptions_System_Threading_CancellationToken_)

### PatchBucket(Bucket, PatchBucketOptions)

    public override Bucket PatchBucket(Bucket bucket, PatchBucketOptions options = null)

Patches the metadata for a storage bucket synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` Bucket to update. Must not be null, and must have a populated `Name` property. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.PatchBucketOptions` Additional options for the update. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` | The [Bucket](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html) representation of the updated storage bucket. |

**Overrides** [StorageClient.PatchBucket(Bucket, PatchBucketOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_PatchBucket_Google_Apis_Storage_v1_Data_Bucket_Google_Cloud_Storage_V1_PatchBucketOptions_)

### PatchBucketAsync(Bucket, PatchBucketOptions, CancellationToken)

    public override Task<Bucket> PatchBucketAsync(Bucket bucket, PatchBucketOptions options = null, CancellationToken cancellationToken = default)

Patches the metadata for a storage bucket asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` Bucket to update. Must not be null, and must have a populated `Name` property. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.PatchBucketOptions` Additional options for the update. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` | A task representing the asynchronous operation, with a result returning the [Bucket](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html) representation of the bucket storage bucket. |

**Overrides** [StorageClient.PatchBucketAsync(Bucket, PatchBucketOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_PatchBucketAsync_Google_Apis_Storage_v1_Data_Bucket_Google_Cloud_Storage_V1_PatchBucketOptions_System_Threading_CancellationToken_)

### PatchObject(Object, PatchObjectOptions)

    public override Object PatchObject(Object obj, PatchObjectOptions options = null)

Patches the metadata for an object in storage synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `obj` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` Object to update. Must not be null, and must have populated `Name` and `Bucket` properties. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.PatchObjectOptions` Additional options for the update. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | The [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the updated storage object. |

**Overrides** [StorageClient.PatchObject(Object, PatchObjectOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_PatchObject_Google_Apis_Storage_v1_Data_Object_Google_Cloud_Storage_V1_PatchObjectOptions_)

### PatchObjectAsync(Object, PatchObjectOptions, CancellationToken)

    public override Task<Object> PatchObjectAsync(Object obj, PatchObjectOptions options = null, CancellationToken cancellationToken = default)

Patches the metadata for an object in storage asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `obj` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` Object to update. Must not be null, and must have populated `Name` and `Bucket` properties. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.PatchObjectOptions` Additional options for the update. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | A task representing the asynchronous operation, with a result returning the [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the updated storage object. |

**Overrides** [StorageClient.PatchObjectAsync(Object, PatchObjectOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_PatchObjectAsync_Google_Apis_Storage_v1_Data_Object_Google_Cloud_Storage_V1_PatchObjectOptions_System_Threading_CancellationToken_)

### RestoreBucket(string, long, RestoreBucketOptions)

    public override Bucket RestoreBucket(string bucket, long generation, RestoreBucketOptions options = null)

Restores a soft-deleted bucket.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket. Must not be null. |
| `generation` | `https://learn.microsoft.com/dotnet/api/system.int64` The specific revision of the bucket to restore. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.RestoreBucketOptions` Additional options for the restore operation. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` | The [Bucket](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html) representation of the restored Storage bucket. |

**Overrides** [StorageClient.RestoreBucket(string, long, RestoreBucketOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_RestoreBucket_System_String_System_Int64_Google_Cloud_Storage_V1_RestoreBucketOptions_)

### RestoreBucketAsync(string, long, RestoreBucketOptions, CancellationToken)

    public override Task<Bucket> RestoreBucketAsync(string bucket, long generation, RestoreBucketOptions options = null, CancellationToken cancellationToken = default)

Restores a soft-deleted bucket.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket. Must not be null. |
| `generation` | `https://learn.microsoft.com/dotnet/api/system.int64` The specific revision of the bucket to restore. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.RestoreBucketOptions` Additional options for the restore operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` | A task representing the asynchronous operation, with a result returning the [Bucket](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html) representation of the restored Storage bucket. |

**Overrides** [StorageClient.RestoreBucketAsync(string, long, RestoreBucketOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_RestoreBucketAsync_System_String_System_Int64_Google_Cloud_Storage_V1_RestoreBucketOptions_System_Threading_CancellationToken_)

### RestoreObject(string, string, long, RestoreObjectOptions)

    public override Object RestoreObject(string bucket, string objectName, long generation, RestoreObjectOptions options = null)

Restores a soft-deleted object.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket containing the object. Must not be null. |
| `objectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the object to restore. Must not be null. |
| `generation` | `https://learn.microsoft.com/dotnet/api/system.int64` The specific revision of the object to restore. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.RestoreObjectOptions` Additional options for the restore operation. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | The [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the restored Storage object. |

**Overrides** [StorageClient.RestoreObject(string, string, long, RestoreObjectOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_RestoreObject_System_String_System_String_System_Int64_Google_Cloud_Storage_V1_RestoreObjectOptions_)

### RestoreObjectAsync(string, string, long, RestoreObjectOptions, CancellationToken)

    public override Task<Object> RestoreObjectAsync(string bucket, string objectName, long generation, RestoreObjectOptions options = null, CancellationToken cancellationToken = default)

Restores a soft-deleted object.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket containing the object. Must not be null. |
| `objectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the object within the bucket. Must not be null. |
| `generation` | `https://learn.microsoft.com/dotnet/api/system.int64` The specific revision of the object to restore. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.RestoreObjectOptions` Additional options for the restore operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | A task representing the asynchronous operation, with a result returning the [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the restored Storage object. |

**Overrides** [StorageClient.RestoreObjectAsync(string, string, long, RestoreObjectOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_RestoreObjectAsync_System_String_System_String_System_Int64_Google_Cloud_Storage_V1_RestoreObjectOptions_System_Threading_CancellationToken_)

### SetBucketIamPolicy(string, Policy, SetBucketIamPolicyOptions)

    public override Policy SetBucketIamPolicy(string bucket, Policy policy, SetBucketIamPolicyOptions options = null)

Updates the IAM policy information about a bucket synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket. Must not be null. |
| `policy` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Policy.html` The new IAM policy for the bucket. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.SetBucketIamPolicyOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Policy.html` | The [Policy](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Policy.html) representation of the resulting storage bucket IAM policy. |

**Overrides** [StorageClient.SetBucketIamPolicy(string, Policy, SetBucketIamPolicyOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_SetBucketIamPolicy_System_String_Google_Apis_Storage_v1_Data_Policy_Google_Cloud_Storage_V1_SetBucketIamPolicyOptions_)

### SetBucketIamPolicyAsync(string, Policy, SetBucketIamPolicyOptions, CancellationToken)

    public override Task<Policy> SetBucketIamPolicyAsync(string bucket, Policy policy, SetBucketIamPolicyOptions options = null, CancellationToken cancellationToken = default)

Updates the IAM policy information about a bucket asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket. Must not be null. |
| `policy` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Policy.html` The new IAM policy for the bucket. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.SetBucketIamPolicyOptions` Additional options for the fetch operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Policy.html` | A task representing the asynchronous operation, with a result returning the [Policy](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Policy.html) representation of the resulting storage bucket IAM policy. |

**Overrides** [StorageClient.SetBucketIamPolicyAsync(string, Policy, SetBucketIamPolicyOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_SetBucketIamPolicyAsync_System_String_Google_Apis_Storage_v1_Data_Policy_Google_Cloud_Storage_V1_SetBucketIamPolicyOptions_System_Threading_CancellationToken_)

### TestBucketIamPermissions(string, IEnumerable\<string\>, TestBucketIamPermissionsOptions)

    public override IList<string> TestBucketIamPermissions(string bucket, IEnumerable<string> permissions, TestBucketIamPermissionsOptions options = null)

Tests the IAM permissions for a bucket synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket. Must not be null. |
| `permissions` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The permissions to test. Must not be null or empty. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.TestBucketIamPermissionsOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1https://learn.microsoft.com/dotnet/api/system.string` | The permissions held by the caller. |

**Overrides** [StorageClient.TestBucketIamPermissions(string, IEnumerable\<string\>, TestBucketIamPermissionsOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_TestBucketIamPermissions_System_String_System_Collections_Generic_IEnumerable_System_String__Google_Cloud_Storage_V1_TestBucketIamPermissionsOptions_)

### TestBucketIamPermissionsAsync(string, IEnumerable\<string\>, TestBucketIamPermissionsOptions, CancellationToken)

    public override Task<IList<string>> TestBucketIamPermissionsAsync(string bucket, IEnumerable<string> permissions, TestBucketIamPermissionsOptions options = null, CancellationToken cancellationToken = default)

Tests the IAM policy information about a bucket asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket. Must not be null. |
| `permissions` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The permissions to test. Must not be null or empty. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.TestBucketIamPermissionsOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1https://learn.microsoft.com/dotnet/api/system.string` | A task representing the asynchronous operation, with a result returning the permissions held by the caller. |

**Overrides** [StorageClient.TestBucketIamPermissionsAsync(string, IEnumerable\<string\>, TestBucketIamPermissionsOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_TestBucketIamPermissionsAsync_System_String_System_Collections_Generic_IEnumerable_System_String__Google_Cloud_Storage_V1_TestBucketIamPermissionsOptions_System_Threading_CancellationToken_)

### UpdateBucket(Bucket, UpdateBucketOptions)

    public override Bucket UpdateBucket(Bucket bucket, UpdateBucketOptions options = null)

Updates the metadata for a storage bucket synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` Bucket to update. Must not be null, and must have a populated `Name`. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UpdateBucketOptions` Additional options for the update. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` | The [Bucket](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html) representation of the updated storage bucket. |

**Overrides** [StorageClient.UpdateBucket(Bucket, UpdateBucketOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_UpdateBucket_Google_Apis_Storage_v1_Data_Bucket_Google_Cloud_Storage_V1_UpdateBucketOptions_) **Remarks**
If no preconditions are explicitly set in `options`, the metageneration of `bucket`
is used as a precondition for the update, unless [ForceNoPreconditions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UpdateBucketOptions#Google_Cloud_Storage_V1_UpdateBucketOptions_ForceNoPreconditions) is
set to `true`.

### UpdateBucketAsync(Bucket, UpdateBucketOptions, CancellationToken)

    public override Task<Bucket> UpdateBucketAsync(Bucket bucket, UpdateBucketOptions options = null, CancellationToken cancellationToken = default)

Updates the metadata for storage bucket asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` Bucket to update. Must not be null, and must have a populated `Name`. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UpdateBucketOptions` Additional options for the update. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html` | A task representing the asynchronous operation, with a result returning the [Bucket](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Bucket.html) representation of the storage bucket. |

**Overrides** [StorageClient.UpdateBucketAsync(Bucket, UpdateBucketOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_UpdateBucketAsync_Google_Apis_Storage_v1_Data_Bucket_Google_Cloud_Storage_V1_UpdateBucketOptions_System_Threading_CancellationToken_) **Remarks**
If no preconditions are explicitly set in `options`, the metageneration of `bucket`
is used as a precondition for the update, unless [ForceNoPreconditions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UpdateBucketOptions#Google_Cloud_Storage_V1_UpdateBucketOptions_ForceNoPreconditions) is
set to `true`.

### UpdateHmacKey(HmacKeyMetadata, UpdateHmacKeyOptions)

    public override HmacKeyMetadata UpdateHmacKey(HmacKeyMetadata key, UpdateHmacKeyOptions options = null)

Synchronously updates an HMAC key's metadata.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKeyMetadata.html` The key to update. Must not be null, and the [ProjectId](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKeyMetadata.html#Google_Apis_Storage_v1_Data_HmacKeyMetadata_ProjectId) and [AccessId](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKeyMetadata.html#Google_Apis_Storage_v1_Data_HmacKeyMetadata_AccessId) properties must be set. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UpdateHmacKeyOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKeyMetadata.html` | The updated key metadata. |

**Overrides** [StorageClient.UpdateHmacKey(HmacKeyMetadata, UpdateHmacKeyOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_UpdateHmacKey_Google_Apis_Storage_v1_Data_HmacKeyMetadata_Google_Cloud_Storage_V1_UpdateHmacKeyOptions_)

### UpdateHmacKeyAsync(HmacKeyMetadata, UpdateHmacKeyOptions, CancellationToken)

    public override Task<HmacKeyMetadata> UpdateHmacKeyAsync(HmacKeyMetadata key, UpdateHmacKeyOptions options = null, CancellationToken cancellationToken = default)

Asynchronously updates an HMAC key's metadata.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKeyMetadata.html` The key to update. Must not be null, and the [ProjectId](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKeyMetadata.html#Google_Apis_Storage_v1_Data_HmacKeyMetadata_ProjectId) and [AccessId](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKeyMetadata.html#Google_Apis_Storage_v1_Data_HmacKeyMetadata_AccessId) properties must be set. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UpdateHmacKeyOptions` Additional options for the operation. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.HmacKeyMetadata.html` | A task representing the asynchronous operation, with a result returning the updated key metadata. |

**Overrides** [StorageClient.UpdateHmacKeyAsync(HmacKeyMetadata, UpdateHmacKeyOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_UpdateHmacKeyAsync_Google_Apis_Storage_v1_Data_HmacKeyMetadata_Google_Cloud_Storage_V1_UpdateHmacKeyOptions_System_Threading_CancellationToken_)

### UpdateObject(Object, UpdateObjectOptions)

    public override Object UpdateObject(Object obj, UpdateObjectOptions options = null)

Updates the metadata for an object in storage synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `obj` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` Object to update. Must not be null, and must have populated `Name` and `Bucket` properties. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UpdateObjectOptions` Additional options for the update. May be null, in which case appropriate defaults will be used. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | The [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the updated storage object. |

**Overrides** [StorageClient.UpdateObject(Object, UpdateObjectOptions)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_UpdateObject_Google_Apis_Storage_v1_Data_Object_Google_Cloud_Storage_V1_UpdateObjectOptions_) **Remarks**
If no preconditions are explicitly set in `options`, the generation and
metageneration of `obj` are used as a precondition for the update,
unless [ForceNoPreconditions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UpdateObjectOptions#Google_Cloud_Storage_V1_UpdateObjectOptions_ForceNoPreconditions) is
set to `true`.

### UpdateObjectAsync(Object, UpdateObjectOptions, CancellationToken)

    public override Task<Object> UpdateObjectAsync(Object obj, UpdateObjectOptions options = null, CancellationToken cancellationToken = default)

Updates the metadata for an object in storage asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `obj` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` Object to update. Must not be null, and must have populated `Name` and `Bucket` properties. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UpdateObjectOptions` Additional options for the update. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | A task representing the asynchronous operation, with a result returning the [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the storage object. |

**Overrides** [StorageClient.UpdateObjectAsync(Object, UpdateObjectOptions, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_UpdateObjectAsync_Google_Apis_Storage_v1_Data_Object_Google_Cloud_Storage_V1_UpdateObjectOptions_System_Threading_CancellationToken_) **Remarks**
If no preconditions are explicitly set in `options`, the generation and
metageneration of `obj` are used as a precondition for the update,
unless [ForceNoPreconditions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UpdateObjectOptions#Google_Cloud_Storage_V1_UpdateObjectOptions_ForceNoPreconditions) is
set to `true`.

### UploadObject(Object, Stream, UploadObjectOptions, IProgress\<IUploadProgress\>)

    public override Object UploadObject(Object destination, Stream source, UploadObjectOptions options = null, IProgress<IUploadProgress> progress = null)

Uploads the data for an object in storage synchronously, from a specified stream.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `destination` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` Object to create or update. Must not be null, and must have the name and bucket populated. |
| `source` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream to read the data from. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UploadObjectOptions` Additional options for the upload. May be null, in which case appropriate defaults will be used. |
| `progress` | `https://learn.microsoft.com/dotnet/api/system.iprogress-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload.IUploadProgress.html` Progress reporter for the upload. May be null. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | The [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the uploaded object. |

**Overrides** [StorageClient.UploadObject(Object, Stream, UploadObjectOptions, IProgress\<IUploadProgress\>)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_UploadObject_Google_Apis_Storage_v1_Data_Object_System_IO_Stream_Google_Cloud_Storage_V1_UploadObjectOptions_System_IProgress_Google_Apis_Upload_IUploadProgress__)

### UploadObject(string, string, string, Stream, UploadObjectOptions, IProgress\<IUploadProgress\>)

    public override Object UploadObject(string bucket, string objectName, string contentType, Stream source, UploadObjectOptions options = null, IProgress<IUploadProgress> progress = null)

Uploads the data for an object in storage synchronously, from a specified stream.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket containing the object. Must not be null. |
| `objectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the object within the bucket. Must not be null. |
| `contentType` | `https://learn.microsoft.com/dotnet/api/system.string` The content type of the object. This should be a MIME type such as "text/html" or "application/octet-stream". May be null. |
| `source` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream to read the data from. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UploadObjectOptions` Additional options for the upload. May be null, in which case appropriate defaults will be used. |
| `progress` | `https://learn.microsoft.com/dotnet/api/system.iprogress-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload.IUploadProgress.html` Progress reporter for the upload. May be null. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | The [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the uploaded object. |

**Overrides** [StorageClient.UploadObject(string, string, string, Stream, UploadObjectOptions, IProgress\<IUploadProgress\>)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_UploadObject_System_String_System_String_System_String_System_IO_Stream_Google_Cloud_Storage_V1_UploadObjectOptions_System_IProgress_Google_Apis_Upload_IUploadProgress__)

### UploadObjectAsync(Object, Stream, UploadObjectOptions, CancellationToken, IProgress\<IUploadProgress\>)

    public override Task<Object> UploadObjectAsync(Object destination, Stream source, UploadObjectOptions options = null, CancellationToken cancellationToken = default, IProgress<IUploadProgress> progress = null)

Uploads the data for an object in storage asynchronously, from a specified stream.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `destination` | `https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` Object to create or update. Must not be null, and must have the name and bucket populated. |
| `source` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream to read the data from. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UploadObjectOptions` Additional options for the upload. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |
| `progress` | `https://learn.microsoft.com/dotnet/api/system.iprogress-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload.IUploadProgress.html` Progress reporter for the upload. May be null. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | A task representing the asynchronous operation, with a result returning the [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the uploaded object. |

**Overrides** [StorageClient.UploadObjectAsync(Object, Stream, UploadObjectOptions, CancellationToken, IProgress\<IUploadProgress\>)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_UploadObjectAsync_Google_Apis_Storage_v1_Data_Object_System_IO_Stream_Google_Cloud_Storage_V1_UploadObjectOptions_System_Threading_CancellationToken_System_IProgress_Google_Apis_Upload_IUploadProgress__)

### UploadObjectAsync(string, string, string, Stream, UploadObjectOptions, CancellationToken, IProgress\<IUploadProgress\>)

    public override Task<Object> UploadObjectAsync(string bucket, string objectName, string contentType, Stream source, UploadObjectOptions options = null, CancellationToken cancellationToken = default, IProgress<IUploadProgress> progress = null)

Uploads the data for an object in storage asynchronously, from a specified stream.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the bucket containing the object. Must not be null. |
| `objectName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of the object within the bucket. Must not be null. |
| `contentType` | `https://learn.microsoft.com/dotnet/api/system.string` The content type of the object. This should be a MIME type such as "text/html" or "application/octet-stream". May be null. |
| `source` | `https://learn.microsoft.com/dotnet/api/system.io.stream` The stream to read the data from. Must not be null. |
| `options` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.UploadObjectOptions` Additional options for the upload. May be null, in which case appropriate defaults will be used. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The token to monitor for cancellation requests. |
| `progress` | `https://learn.microsoft.com/dotnet/api/system.iprogress-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload.IUploadProgress.html` Progress reporter for the upload. May be null. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html` | A task representing the asynchronous operation, with a result returning the [Object](https://googleapis.dev/dotnet/Google.Apis.Storage.v1/1.76.0.4250/api/Google.Apis.Storage.v1.Data.Object.html) representation of the uploaded object. |

**Overrides** [StorageClient.UploadObjectAsync(string, string, string, Stream, UploadObjectOptions, CancellationToken, IProgress\<IUploadProgress\>)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.StorageClient#Google_Cloud_Storage_V1_StorageClient_UploadObjectAsync_System_String_System_String_System_String_System_IO_Stream_Google_Cloud_Storage_V1_UploadObjectOptions_System_Threading_CancellationToken_System_IProgress_Google_Apis_Upload_IUploadProgress__)