Class: Google::Apis::StorageV1::BulkRestoreObjectsRequest
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::BulkRestoreObjectsRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/storage_v1/classes.rb,
lib/google/apis/storage_v1/representations.rb,
lib/google/apis/storage_v1/representations.rb
Overview
A bulk restore objects request.
Instance Attribute Summary collapse
-
#allow_overwrite ⇒ Boolean
(also: #allow_overwrite?)
If false (default), the restore will not overwrite live objects with the same name at the destination.
-
#copy_source_acl ⇒ Boolean
(also: #copy_source_acl?)
If true, copies the source object's ACL; otherwise, uses the bucket's default object ACL.
-
#match_globs ⇒ Array<String>
Restores only the objects matching any of the specified glob(s).
-
#soft_deleted_after_time ⇒ DateTime
Restores only the objects that were soft-deleted after this time.
-
#soft_deleted_before_time ⇒ DateTime
Restores only the objects that were soft-deleted before this time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BulkRestoreObjectsRequest
constructor
A new instance of BulkRestoreObjectsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BulkRestoreObjectsRequest
Returns a new instance of BulkRestoreObjectsRequest.
1243 1244 1245 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1243 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_overwrite ⇒ Boolean Also known as: allow_overwrite?
If false (default), the restore will not overwrite live objects with the same
name at the destination. This means some deleted objects may be skipped. If
true, live objects will be overwritten resulting in a noncurrent object (if
versioning is enabled). If versioning is not enabled, overwriting the object
will result in a soft-deleted object. In either case, if a noncurrent object
already exists with the same name, a live version can be written without issue.
Corresponds to the JSON property allowOverwrite
1216 1217 1218 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1216 def allow_overwrite @allow_overwrite end |
#copy_source_acl ⇒ Boolean Also known as: copy_source_acl?
If true, copies the source object's ACL; otherwise, uses the bucket's default
object ACL. The default is false.
Corresponds to the JSON property copySourceAcl
1223 1224 1225 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1223 def copy_source_acl @copy_source_acl end |
#match_globs ⇒ Array<String>
Restores only the objects matching any of the specified glob(s). If this
parameter is not specified, all objects will be restored within the specified
time range.
Corresponds to the JSON property matchGlobs
1231 1232 1233 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1231 def match_globs @match_globs end |
#soft_deleted_after_time ⇒ DateTime
Restores only the objects that were soft-deleted after this time.
Corresponds to the JSON property softDeletedAfterTime
1236 1237 1238 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1236 def soft_deleted_after_time @soft_deleted_after_time end |
#soft_deleted_before_time ⇒ DateTime
Restores only the objects that were soft-deleted before this time.
Corresponds to the JSON property softDeletedBeforeTime
1241 1242 1243 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1241 def soft_deleted_before_time @soft_deleted_before_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1248 1249 1250 1251 1252 1253 1254 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1248 def update!(**args) @allow_overwrite = args[:allow_overwrite] if args.key?(:allow_overwrite) @copy_source_acl = args[:copy_source_acl] if args.key?(:copy_source_acl) @match_globs = args[:match_globs] if args.key?(:match_globs) @soft_deleted_after_time = args[:soft_deleted_after_time] if args.key?(:soft_deleted_after_time) @soft_deleted_before_time = args[:soft_deleted_before_time] if args.key?(:soft_deleted_before_time) end |