Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added more gcs bucket lifecycle conditions #4706

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions mmv1/products/storage/ansible_version_added.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,18 @@
:version_added: '2.6'
:createdBefore:
:version_added: '2.6'
:customTimeBefore:
:version_added: '2.10'
:daysSinceCustomTime:
:version_added: '2.10'
:daysSinceNoncurrentTime:
:version_added: '2.10'
:isLive:
:version_added: '2.6'
:matchesStorageClass:
:version_added: '2.6'
:noncurrentTimeBefore:
:version_added: '2.10'
:numNewerVersions:
:version_added: '2.6'
:location:
Expand Down Expand Up @@ -97,6 +105,8 @@
:version_added: '2.6'
:notFoundPage:
:version_added: '2.6'
:labels:
:version_added: '2.10'
:project:
:version_added: '2.6'
:predefinedDefaultObjectAcl:
Expand Down
27 changes: 27 additions & 0 deletions mmv1/products/storage/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,26 @@ objects:
instance, "2013-01-15"). This condition is satisfied
when an object is created before midnight of the
specified date in UTC.
- !ruby/object:Api::Type::Time
name: 'customTimeBefore'
description: |
A date in the RFC 3339 format YYYY-MM-DD. This condition
is satisfied when the customTime metadata for the object
is set to an earlier date than the date used in
this lifecycle condition.
- !ruby/object:Api::Type::Integer
name: 'daysSinceCustomTime'
description: |
Days since the date set in the customTime metadata for the
object. This condition is satisfied when the current date
and time is at least the specified number of days after
the customTime.
- !ruby/object:Api::Type::Integer
name: 'daysSinceNoncurrentTime'
description: |
Relevant only for versioned objects. This condition is
satisfied when an object has been noncurrent for more than
the specified number of days.
- !ruby/object:Api::Type::Boolean
name: 'isLive'
description: |
Expand All @@ -303,6 +323,13 @@ objects:
MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE,
STANDARD, and DURABLE_REDUCED_AVAILABILITY.
item_type: Api::Type::String
- !ruby/object:Api::Type::Time
name: 'noncurrentTimeBefore'
description: |
Relevant only for versioned objects. A date in the
RFC 3339 format YYYY-MM-DD. This condition is satisfied
for objects that became noncurrent on a date prior to the
one specified in this condition.
- !ruby/object:Api::Type::Integer
name: 'numNewerVersions'
description: |
Expand Down