Class: Google::Cloud::StorageBatchOperations::V1::PutObjectHold

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/storagebatchoperations/v1/storage_batch_operations_types.rb

Overview

Describes options to update object hold.

Defined Under Namespace

Modules: HoldStatus

Instance Attribute Summary collapse

Instance Attribute Details

#event_based_hold::Google::Cloud::StorageBatchOperations::V1::PutObjectHold::HoldStatus

Returns 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:



182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'proto_docs/google/cloud/storagebatchoperations/v1/storage_batch_operations_types.rb', line 182

class PutObjectHold
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Describes the status of the hold.
  module HoldStatus
    # Default value, Object hold status will not be changed.
    HOLD_STATUS_UNSPECIFIED = 0

    # Places the hold.
    SET = 1

    # Releases the hold.
    UNSET = 2
  end
end

#temporary_hold::Google::Cloud::StorageBatchOperations::V1::PutObjectHold::HoldStatus

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

Returns:



182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'proto_docs/google/cloud/storagebatchoperations/v1/storage_batch_operations_types.rb', line 182

class PutObjectHold
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Describes the status of the hold.
  module HoldStatus
    # Default value, Object hold status will not be changed.
    HOLD_STATUS_UNSPECIFIED = 0

    # Places the hold.
    SET = 1

    # Releases the hold.
    UNSET = 2
  end
end