30
30
@ SuppressWarnings ("javadoc" )
31
31
public final class Backup extends com .google .api .client .json .GenericJson {
32
32
33
+ /**
34
+ * Indicates the backup type of the backup.
35
+ * The value may be {@code null}.
36
+ */
37
+ @ com .google .api .client .util .Key
38
+ private java .lang .String backupType ;
39
+
33
40
/**
34
41
* Output only. The encryption information for the backup.
35
42
* The value may be {@code null}.
@@ -47,13 +54,24 @@ public final class Backup extends com.google.api.client.json.GenericJson {
47
54
48
55
/**
49
56
* Required. The expiration time of the backup. When creating a backup or updating its
50
- * `expire_time`, the new value must: - Be at most 90 days in the future - Be at least 6 hours in
51
- * the future Once the `expire_time` has passed, Cloud Bigtable will delete the backup.
57
+ * `expire_time`, the value must be greater than the backup creation time by: - At least 6 hours -
58
+ * At most 90 days Once the `expire_time` has passed, Cloud Bigtable will delete the backup.
52
59
* The value may be {@code null}.
53
60
*/
54
61
@ com .google .api .client .util .Key
55
62
private String expireTime ;
56
63
64
+ /**
65
+ * The time at which the hot backup will be converted to a standard backup. Once the
66
+ * `hot_to_standard_time` has passed, Cloud Bigtable will convert the hot backup to a standard
67
+ * backup. This value must be greater than the backup creation time by: - At least 24 hours This
68
+ * field only applies for hot backups. When creating or updating a standard backup, attempting to
69
+ * set this field will fail the request.
70
+ * The value may be {@code null}.
71
+ */
72
+ @ com .google .api .client .util .Key
73
+ private String hotToStandardTime ;
74
+
57
75
/**
58
76
* A globally unique identifier for the backup which cannot be changed. Values are of the form
59
77
* `projects/{project}/instances/{instance}/clusters/{cluster}/ backups/_a-zA-Z0-9*` The final
@@ -106,6 +124,23 @@ public final class Backup extends com.google.api.client.json.GenericJson {
106
124
@ com .google .api .client .util .Key
107
125
private java .lang .String state ;
108
126
127
+ /**
128
+ * Indicates the backup type of the backup.
129
+ * @return value or {@code null} for none
130
+ */
131
+ public java .lang .String getBackupType () {
132
+ return backupType ;
133
+ }
134
+
135
+ /**
136
+ * Indicates the backup type of the backup.
137
+ * @param backupType backupType or {@code null} for none
138
+ */
139
+ public Backup setBackupType (java .lang .String backupType ) {
140
+ this .backupType = backupType ;
141
+ return this ;
142
+ }
143
+
109
144
/**
110
145
* Output only. The encryption information for the backup.
111
146
* @return value or {@code null} for none
@@ -144,8 +179,8 @@ public Backup setEndTime(String endTime) {
144
179
145
180
/**
146
181
* Required. The expiration time of the backup. When creating a backup or updating its
147
- * `expire_time`, the new value must: - Be at most 90 days in the future - Be at least 6 hours in
148
- * the future Once the `expire_time` has passed, Cloud Bigtable will delete the backup.
182
+ * `expire_time`, the value must be greater than the backup creation time by: - At least 6 hours -
183
+ * At most 90 days Once the `expire_time` has passed, Cloud Bigtable will delete the backup.
149
184
* @return value or {@code null} for none
150
185
*/
151
186
public String getExpireTime () {
@@ -154,15 +189,40 @@ public String getExpireTime() {
154
189
155
190
/**
156
191
* Required. The expiration time of the backup. When creating a backup or updating its
157
- * `expire_time`, the new value must: - Be at most 90 days in the future - Be at least 6 hours in
158
- * the future Once the `expire_time` has passed, Cloud Bigtable will delete the backup.
192
+ * `expire_time`, the value must be greater than the backup creation time by: - At least 6 hours -
193
+ * At most 90 days Once the `expire_time` has passed, Cloud Bigtable will delete the backup.
159
194
* @param expireTime expireTime or {@code null} for none
160
195
*/
161
196
public Backup setExpireTime (String expireTime ) {
162
197
this .expireTime = expireTime ;
163
198
return this ;
164
199
}
165
200
201
+ /**
202
+ * The time at which the hot backup will be converted to a standard backup. Once the
203
+ * `hot_to_standard_time` has passed, Cloud Bigtable will convert the hot backup to a standard
204
+ * backup. This value must be greater than the backup creation time by: - At least 24 hours This
205
+ * field only applies for hot backups. When creating or updating a standard backup, attempting to
206
+ * set this field will fail the request.
207
+ * @return value or {@code null} for none
208
+ */
209
+ public String getHotToStandardTime () {
210
+ return hotToStandardTime ;
211
+ }
212
+
213
+ /**
214
+ * The time at which the hot backup will be converted to a standard backup. Once the
215
+ * `hot_to_standard_time` has passed, Cloud Bigtable will convert the hot backup to a standard
216
+ * backup. This value must be greater than the backup creation time by: - At least 24 hours This
217
+ * field only applies for hot backups. When creating or updating a standard backup, attempting to
218
+ * set this field will fail the request.
219
+ * @param hotToStandardTime hotToStandardTime or {@code null} for none
220
+ */
221
+ public Backup setHotToStandardTime (String hotToStandardTime ) {
222
+ this .hotToStandardTime = hotToStandardTime ;
223
+ return this ;
224
+ }
225
+
166
226
/**
167
227
* A globally unique identifier for the backup which cannot be changed. Values are of the form
168
228
* `projects/{project}/instances/{instance}/clusters/{cluster}/ backups/_a-zA-Z0-9*` The final
0 commit comments