Google Cloud Storage Batch Operations V1 Client - Class PutObjectHold (0.1.2)

Reference documentation and code samples for the Google Cloud Storage Batch Operations V1 Client class PutObjectHold.

Describes options to update object hold.

Generated from protobuf message google.cloud.storagebatchoperations.v1.PutObjectHold

Namespace

Google \ Cloud \ StorageBatchOperations \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ temporary_hold
int

Required. Updates object temporary holds state. When object temporary hold is set, object cannot be deleted or replaced.

↳ event_based_hold
int

Required. Updates object event based holds state. When object event based hold is set, object cannot be deleted or replaced. Resets object's time in the bucket for the purposes of the retention period.

getTemporaryHold

Required. Updates object temporary holds state. When object temporary hold is set, object cannot be deleted or replaced.

Returns
Type
Description
int

setTemporaryHold

Required. Updates object temporary holds state. When object temporary hold is set, object cannot be deleted or replaced.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getEventBasedHold

Required. Updates object event based holds state. When object event based hold is set, object cannot be deleted or replaced. Resets object's time in the bucket for the purposes of the retention period.

Returns
Type
Description
int

setEventBasedHold

Required. Updates object event based holds state. When object event based hold is set, object cannot be deleted or replaced. Resets object's time in the bucket for the purposes of the retention period.

Parameter
Name
Description
var
int
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: