Skip to content

Commit 14baee5

Browse files
updates
1 parent 6d4c957 commit 14baee5

File tree

1 file changed

+138
-147
lines changed

1 file changed

+138
-147
lines changed

mmv1/products/storage/LifeCycle.yaml

Lines changed: 138 additions & 147 deletions
Original file line numberDiff line numberDiff line change
@@ -58,154 +58,145 @@ properties:
5858
The timestamp at which this folder was most recently updated.
5959
output: true
6060
- name: 'lifecycleRule'
61-
type: NestedObject
62-
properties:
63-
- name: 'rule'
64-
type: Array
65-
max_size: 100
66-
min_size: 1
67-
required: true
68-
description: |
69-
A lifecycle management rule, which is made of an action to take
70-
and the condition(s) under which the action will be taken.
71-
item_type:
61+
type: Array
62+
item_type:
63+
type: NestedObject
64+
properties:
65+
- name: 'action'
7266
type: NestedObject
67+
is_set: true
68+
min_size: 1
69+
max_size: 1
70+
required: true
71+
description: 'The action to take.'
7372
properties:
74-
- name: 'action'
75-
type: NestedObject
76-
is_set: true
77-
min_size: 1
78-
max_size: 1
79-
required: true
80-
description: 'The action to take.'
81-
properties:
82-
- name: 'storageClass'
83-
type: String
84-
description: |
85-
Target storage class. Required if the type of the
86-
action is SetStorageClass.
87-
- name: 'type'
88-
type: Enum
89-
required: true
90-
description: |
91-
Type of the action. Currently, only Delete and
92-
SetStorageClass are supported.
93-
enum_values:
94-
- 'Delete'
95-
- 'SetStorageClass'
96-
- name: 'condition'
97-
type: NestedObject
98-
is_set: true
99-
min_size: 1
100-
max_size: 1
73+
- name: 'storageClass'
74+
type: String
75+
description: |
76+
Target storage class. Required if the type of the
77+
action is SetStorageClass.
78+
- name: 'type'
79+
type: Enum
10180
required: true
10281
description: |
103-
The condition(s) under which the action will be taken.
104-
properties:
105-
- name: 'age'
106-
type: Integer
107-
description: |
108-
Age of an object (in days). This condition is satisfied
109-
when an object reaches the specified age.
110-
api_name: age
111-
- name: 'createdBefore'
112-
type: Time
113-
description: |
114-
A date in RFC 3339 format with only the date part (for
115-
instance, "2013-01-15"). This condition is satisfied
116-
when an object is created before midnight of the
117-
specified date in UTC.
118-
- name: 'customTimeBefore'
119-
type: Time
120-
description: |
121-
A date in the RFC 3339 format YYYY-MM-DD. This condition
122-
is satisfied when the customTime metadata for the object
123-
is set to an earlier date than the date used in
124-
this lifecycle condition.
125-
- name: 'daysSinceCustomTime'
126-
type: Integer
127-
description: |
128-
Days since the date set in the customTime metadata for the
129-
object. This condition is satisfied when the current date
130-
and time is at least the specified number of days after
131-
the customTime.
132-
- name: 'daysSinceNoncurrentTime'
133-
type: Integer
134-
description: |
135-
Relevant only for versioned objects. This condition is
136-
satisfied when an object has been noncurrent for more than
137-
the specified number of days.
138-
- name: 'withState'
139-
type: Boolean
140-
description: |
141-
Match to live and/or archived objects.
142-
Unversioned buckets have only live objects.
143-
Supported values include: "LIVE", "ARCHIVED", "ANY".
144-
- name: 'matchesStorageClass'
145-
type: Array
146-
description: |
147-
Objects having any of the storage classes specified by
148-
this condition will be matched. Values include
149-
MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE,
150-
STANDARD, and DURABLE_REDUCED_AVAILABILITY.
151-
item_type:
152-
type: String
153-
- name: 'matchesSuffix'
154-
type: Array
155-
description: |
156-
The suffix of an object. This condition is
157-
satisfied when the end of an object's
158-
name is an exact case-sensitive match with the suffix.
159-
item_type:
160-
type: String
161-
- name: 'matchesPrefix'
162-
type: Array
163-
description: |
164-
The prefix of an object. This condition
165-
is satisfied when the beginning of an object's name
166-
is an exact case-sensitive match with the prefix.
167-
item_type:
168-
type: String
169-
- name: 'noncurrentTimeBefore'
170-
type: Time
171-
description: |
172-
Relevant only for versioned objects. A date in the
173-
RFC 3339 format YYYY-MM-DD. This condition is satisfied
174-
for objects that became noncurrent on a date prior to the
175-
one specified in this condition.
176-
- name: 'numNewerVersions'
177-
type: Integer
178-
description: |
179-
Relevant only for versioned objects. If the value is N,
180-
this condition is satisfied when there are at least N
181-
versions (including the live version) newer than this
182-
version of the object.
183-
- name: 'sendAgeIfZero'
184-
type: Boolean
185-
description: |
186-
While set true, age value will be sent in the request
187-
even for zero value of the field. This field is only
188-
useful for setting 0 value to the age field.
189-
It can be used alone or together with age.
190-
- name: 'sendDaysSinceNoncurrentTimeIfZero'
191-
type: Boolean
192-
description: |
193-
While set true, days_since_noncurrent_time value will be sent
194-
in the request even for zero value of the field. This field is
195-
only useful for setting 0 value to the days_since_noncurrent_time field.
196-
It can be used alone or together with days_since_noncurrent_time.
197-
- name: 'sendDaysSinceCustomTimeIfZero'
198-
type: Boolean
199-
description: |
200-
While set true, days_since_custom_time value will be sent
201-
in the request even for zero value of the field. This field
202-
is only useful for setting 0 value to the days_since_custom_time field.
203-
It can be used alone or together with days_since_custom_time.
204-
- name: 'sendNumNewerVersionsIfZero'
205-
type: Boolean
206-
description: |
207-
While set true, num_newer_versions value will be sent
208-
in the request even for zero value of the field.
209-
This field is only useful for setting 0 value to the
210-
num_newer_versions field. It can be used alone or
211-
together with num_newer_versions.
82+
Type of the action. Currently, only Delete and
83+
SetStorageClass are supported.
84+
enum_values:
85+
- 'Delete'
86+
- 'SetStorageClass'
87+
- name: 'condition'
88+
type: NestedObject
89+
is_set: true
90+
min_size: 1
91+
max_size: 1
92+
required: true
93+
description: |
94+
The condition(s) under which the action will be taken.
95+
properties:
96+
- name: 'age'
97+
type: Integer
98+
description: |
99+
Age of an object (in days). This condition is satisfied
100+
when an object reaches the specified age.
101+
api_name: age
102+
- name: 'createdBefore'
103+
type: Time
104+
description: |
105+
A date in RFC 3339 format with only the date part (for
106+
instance, "2013-01-15"). This condition is satisfied
107+
when an object is created before midnight of the
108+
specified date in UTC.
109+
- name: 'customTimeBefore'
110+
type: Time
111+
description: |
112+
A date in the RFC 3339 format YYYY-MM-DD. This condition
113+
is satisfied when the customTime metadata for the object
114+
is set to an earlier date than the date used in
115+
this lifecycle condition.
116+
- name: 'daysSinceCustomTime'
117+
type: Integer
118+
description: |
119+
Days since the date set in the customTime metadata for the
120+
object. This condition is satisfied when the current date
121+
and time is at least the specified number of days after
122+
the customTime.
123+
- name: 'daysSinceNoncurrentTime'
124+
type: Integer
125+
description: |
126+
Relevant only for versioned objects. This condition is
127+
satisfied when an object has been noncurrent for more than
128+
the specified number of days.
129+
- name: 'withState'
130+
type: Boolean
131+
description: |
132+
Match to live and/or archived objects.
133+
Unversioned buckets have only live objects.
134+
Supported values include: "LIVE", "ARCHIVED", "ANY".
135+
- name: 'matchesStorageClass'
136+
type: Array
137+
description: |
138+
Objects having any of the storage classes specified by
139+
this condition will be matched. Values include
140+
MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE,
141+
STANDARD, and DURABLE_REDUCED_AVAILABILITY.
142+
item_type:
143+
type: String
144+
- name: 'matchesSuffix'
145+
type: Array
146+
description: |
147+
The suffix of an object. This condition is
148+
satisfied when the end of an object's
149+
name is an exact case-sensitive match with the suffix.
150+
item_type:
151+
type: String
152+
- name: 'matchesPrefix'
153+
type: Array
154+
description: |
155+
The prefix of an object. This condition
156+
is satisfied when the beginning of an object's name
157+
is an exact case-sensitive match with the prefix.
158+
item_type:
159+
type: String
160+
- name: 'noncurrentTimeBefore'
161+
type: Time
162+
description: |
163+
Relevant only for versioned objects. A date in the
164+
RFC 3339 format YYYY-MM-DD. This condition is satisfied
165+
for objects that became noncurrent on a date prior to the
166+
one specified in this condition.
167+
- name: 'numNewerVersions'
168+
type: Integer
169+
description: |
170+
Relevant only for versioned objects. If the value is N,
171+
this condition is satisfied when there are at least N
172+
versions (including the live version) newer than this
173+
version of the object.
174+
- name: 'sendAgeIfZero'
175+
type: Boolean
176+
description: |
177+
While set true, age value will be sent in the request
178+
even for zero value of the field. This field is only
179+
useful for setting 0 value to the age field.
180+
It can be used alone or together with age.
181+
- name: 'sendDaysSinceNoncurrentTimeIfZero'
182+
type: Boolean
183+
description: |
184+
While set true, days_since_noncurrent_time value will be sent
185+
in the request even for zero value of the field. This field is
186+
only useful for setting 0 value to the days_since_noncurrent_time field.
187+
It can be used alone or together with days_since_noncurrent_time.
188+
- name: 'sendDaysSinceCustomTimeIfZero'
189+
type: Boolean
190+
description: |
191+
While set true, days_since_custom_time value will be sent
192+
in the request even for zero value of the field. This field
193+
is only useful for setting 0 value to the days_since_custom_time field.
194+
It can be used alone or together with days_since_custom_time.
195+
- name: 'sendNumNewerVersionsIfZero'
196+
type: Boolean
197+
description: |
198+
While set true, num_newer_versions value will be sent
199+
in the request even for zero value of the field.
200+
This field is only useful for setting 0 value to the
201+
num_newer_versions field. It can be used alone or
202+
together with num_newer_versions.

0 commit comments

Comments
 (0)