Google Cloud Storage v1 API - Class DeleteBucketOptions (4.4.0)

public sealed class DeleteBucketOptions

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

Options for DeleteBucket operations.

Inheritance

object > DeleteBucketOptions

Namespace

GoogleGoogle.CloudGoogle.Cloud.StorageV1

Assembly

Google.Cloud.Storage.V1.dll

Properties

DeleteObjects

public bool? DeleteObjects { get; set; }

If set to true, all objects within the bucket will be deleted before attempting to delete the bucket itself.

Property Value
TypeDescription
bool
Remarks

This is a best-effort attempt, with no guarantees of atomicity: it's entirely possible for the operation to fail having deleted some objects but not all of them. If a precondition is specified, it is checked before deleting any objects, and applied again when deleting the bucket, but is not checked while deleting the objects. The behavior is unspecified if objects are modified, added or deleted while this operation is taking place.

The objects are deleted sequentially. If you need to delete buckets with many objects, you may wish to implement a parallel solution in application code instead of using this option.

If UserProject is set, that project will be billed for all operations.

IfMetagenerationMatch

public long? IfMetagenerationMatch { get; set; }

Precondition for deletion: the bucket is only deleted if its meta-generation matches the given value.

Property Value
TypeDescription
long

IfMetagenerationNotMatch

public long? IfMetagenerationNotMatch { get; set; }

Precondition for deletion: the bucket is only deleted if its meta-generation does not match the given value.

Property Value
TypeDescription
long

UserProject

public string UserProject { get; set; }

If set, this is the ID of the project which will be billed for the request. The caller must have suitable permissions for the project being billed.

Property Value
TypeDescription
string