Show / Hide Table of Contents

Class DeleteBucketOptions

Options for DeleteBucket operations.

Inheritance
System.Object
DeleteBucketOptions
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.Storage.V1
Assembly: Google.Cloud.Storage.V1.dll
Syntax
public sealed class DeleteBucketOptions

Properties

DeleteObjects

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

Declaration
public bool? DeleteObjects { get; set; }
Property Value
Type Description
System.Nullable<System.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

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

Declaration
public long? IfMetagenerationMatch { get; set; }
Property Value
Type Description
System.Nullable<System.Int64>

IfMetagenerationNotMatch

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

Declaration
public long? IfMetagenerationNotMatch { get; set; }
Property Value
Type Description
System.Nullable<System.Int64>

UserProject

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.

Declaration
public string UserProject { get; set; }
Property Value
Type Description
System.String
Back to top