Class DeleteBucketOptions (3.6.0)

public sealed class DeleteBucketOptions

Options for DeleteBucket operations.

Inheritance

Object > DeleteBucketOptions

Namespace

Google.Cloud.Storage.V1

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
Nullable<Boolean>
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
Nullable<Int64>

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
Nullable<Int64>

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