mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-06 10:50:28 -07:00
Signed-off-by: Denis Dabischa <denis.dabischa@kloeckner.com> Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
1806a70274
commit
ea38c3ed14
1 changed files with 68 additions and 0 deletions
|
@ -238,6 +238,27 @@ options:
|
||||||
before midnight of the specified date in UTC.
|
before midnight of the specified date in UTC.
|
||||||
required: false
|
required: false
|
||||||
type: str
|
type: str
|
||||||
|
custom_time_before:
|
||||||
|
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.
|
||||||
|
required: false
|
||||||
|
type: str
|
||||||
|
days_since_custom_time:
|
||||||
|
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.
|
||||||
|
required: false
|
||||||
|
type: int
|
||||||
|
days_since_noncurrent_time:
|
||||||
|
description:
|
||||||
|
- Relevant only for versioned objects. This condition is satisfied
|
||||||
|
when an object has been noncurrent for more than the specified number
|
||||||
|
of days.
|
||||||
|
required: false
|
||||||
|
type: int
|
||||||
is_live:
|
is_live:
|
||||||
description:
|
description:
|
||||||
- Relevant only for versioned objects. If the value is true, this
|
- Relevant only for versioned objects. If the value is true, this
|
||||||
|
@ -253,6 +274,13 @@ options:
|
||||||
elements: str
|
elements: str
|
||||||
required: false
|
required: false
|
||||||
type: list
|
type: list
|
||||||
|
noncurrent_time_before:
|
||||||
|
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.
|
||||||
|
required: false
|
||||||
|
type: str
|
||||||
num_newer_versions:
|
num_newer_versions:
|
||||||
description:
|
description:
|
||||||
- Relevant only for versioned objects. If the value is N, this condition
|
- Relevant only for versioned objects. If the value is N, this condition
|
||||||
|
@ -649,6 +677,27 @@ lifecycle:
|
||||||
of the specified date in UTC.
|
of the specified date in UTC.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: str
|
||||||
|
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.
|
||||||
|
returned: success
|
||||||
|
type: str
|
||||||
|
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.
|
||||||
|
returned: success
|
||||||
|
type: int
|
||||||
|
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.
|
||||||
|
returned: success
|
||||||
|
type: int
|
||||||
isLive:
|
isLive:
|
||||||
description:
|
description:
|
||||||
- Relevant only for versioned objects. If the value is true, this condition
|
- Relevant only for versioned objects. If the value is true, this condition
|
||||||
|
@ -662,6 +711,13 @@ lifecycle:
|
||||||
COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
|
COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
|
||||||
returned: success
|
returned: success
|
||||||
type: list
|
type: list
|
||||||
|
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.
|
||||||
|
returned: success
|
||||||
|
type: str
|
||||||
numNewerVersions:
|
numNewerVersions:
|
||||||
description:
|
description:
|
||||||
- Relevant only for versioned objects. If the value is N, this condition
|
- Relevant only for versioned objects. If the value is N, this condition
|
||||||
|
@ -874,8 +930,12 @@ def main():
|
||||||
options=dict(
|
options=dict(
|
||||||
age_days=dict(type='int'),
|
age_days=dict(type='int'),
|
||||||
created_before=dict(type='str'),
|
created_before=dict(type='str'),
|
||||||
|
custom_time_before=dict(type='str'),
|
||||||
|
days_since_custom_time=dict(type='int'),
|
||||||
|
days_since_noncurrent_time=dict(type='int'),
|
||||||
is_live=dict(type='bool'),
|
is_live=dict(type='bool'),
|
||||||
matches_storage_class=dict(type='list', elements='str'),
|
matches_storage_class=dict(type='list', elements='str'),
|
||||||
|
noncurrent_time_before=dict(type='str'),
|
||||||
num_newer_versions=dict(type='int'),
|
num_newer_versions=dict(type='int'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -1278,8 +1338,12 @@ class BucketCondition(object):
|
||||||
{
|
{
|
||||||
u'age': self.request.get('age_days'),
|
u'age': self.request.get('age_days'),
|
||||||
u'createdBefore': self.request.get('created_before'),
|
u'createdBefore': self.request.get('created_before'),
|
||||||
|
u'customTimeBefore': self.request.get('custom_time_before'),
|
||||||
|
u'daysSinceCustomTime': self.request.get('days_since_custom_time'),
|
||||||
|
u'daysSinceNoncurrentTime': self.request.get('days_since_noncurrent_time'),
|
||||||
u'isLive': self.request.get('is_live'),
|
u'isLive': self.request.get('is_live'),
|
||||||
u'matchesStorageClass': self.request.get('matches_storage_class'),
|
u'matchesStorageClass': self.request.get('matches_storage_class'),
|
||||||
|
u'noncurrentTimeBefore': self.request.get('noncurrent_time_before'),
|
||||||
u'numNewerVersions': self.request.get('num_newer_versions'),
|
u'numNewerVersions': self.request.get('num_newer_versions'),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -1289,8 +1353,12 @@ class BucketCondition(object):
|
||||||
{
|
{
|
||||||
u'age': self.request.get(u'age'),
|
u'age': self.request.get(u'age'),
|
||||||
u'createdBefore': self.request.get(u'createdBefore'),
|
u'createdBefore': self.request.get(u'createdBefore'),
|
||||||
|
u'customTimeBefore': self.request.get(u'customTimeBefore'),
|
||||||
|
u'daysSinceCustomTime': self.request.get(u'daysSinceCustomTime'),
|
||||||
|
u'daysSinceNoncurrentTime': self.request.get(u'daysSinceNoncurrentTime'),
|
||||||
u'isLive': self.request.get(u'isLive'),
|
u'isLive': self.request.get(u'isLive'),
|
||||||
u'matchesStorageClass': self.request.get(u'matchesStorageClass'),
|
u'matchesStorageClass': self.request.get(u'matchesStorageClass'),
|
||||||
|
u'noncurrentTimeBefore': self.request.get(u'noncurrentTimeBefore'),
|
||||||
u'numNewerVersions': self.request.get(u'numNewerVersions'),
|
u'numNewerVersions': self.request.get(u'numNewerVersions'),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue