google-cloud-gke_backup-v1 0.8.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb +197 -70
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/operations.rb +13 -5
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb +190 -70
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/operations.rb +13 -6
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/service_stub.rb +59 -0
- data/lib/google/cloud/gke_backup/v1/version.rb +1 -1
- data/lib/google/cloud/gkebackup/v1/backup_pb.rb +1 -1
- data/lib/google/cloud/gkebackup/v1/backup_plan_pb.rb +11 -1
- data/lib/google/cloud/gkebackup/v1/common_pb.rb +4 -1
- data/lib/google/cloud/gkebackup/v1/gkebackup_pb.rb +3 -1
- data/lib/google/cloud/gkebackup/v1/gkebackup_services_pb.rb +2 -0
- data/lib/google/cloud/gkebackup/v1/restore_pb.rb +7 -1
- data/lib/google/cloud/gkebackup/v1/restore_plan_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/gkebackup/v1/backup.rb +27 -18
- data/proto_docs/google/cloud/gkebackup/v1/backup_plan.rb +139 -34
- data/proto_docs/google/cloud/gkebackup/v1/common.rb +20 -5
- data/proto_docs/google/cloud/gkebackup/v1/gkebackup.rb +65 -46
- data/proto_docs/google/cloud/gkebackup/v1/restore.rb +233 -61
- data/proto_docs/google/cloud/gkebackup/v1/restore_plan.rb +2 -3
- data/proto_docs/google/cloud/gkebackup/v1/volume.rb +0 -2
- data/proto_docs/google/type/date.rb +53 -0
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/timeofday.rb +45 -0
- metadata +5 -2
@@ -39,7 +39,7 @@ module Google
|
|
39
39
|
# updated.
|
40
40
|
# @!attribute [rw] description
|
41
41
|
# @return [::String]
|
42
|
-
# User specified descriptive string for this BackupPlan.
|
42
|
+
# Optional. User specified descriptive string for this BackupPlan.
|
43
43
|
# @!attribute [rw] cluster
|
44
44
|
# @return [::String]
|
45
45
|
# Required. Immutable. The source cluster from which Backups will be created
|
@@ -49,13 +49,15 @@ module Google
|
|
49
49
|
# - `projects/*/zones/*/clusters/*`
|
50
50
|
# @!attribute [rw] retention_policy
|
51
51
|
# @return [::Google::Cloud::GkeBackup::V1::BackupPlan::RetentionPolicy]
|
52
|
-
# RetentionPolicy governs lifecycle of Backups created under this
|
52
|
+
# Optional. RetentionPolicy governs lifecycle of Backups created under this
|
53
|
+
# plan.
|
53
54
|
# @!attribute [rw] labels
|
54
55
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
55
|
-
# A set of custom labels supplied by user.
|
56
|
+
# Optional. A set of custom labels supplied by user.
|
56
57
|
# @!attribute [rw] backup_schedule
|
57
58
|
# @return [::Google::Cloud::GkeBackup::V1::BackupPlan::Schedule]
|
58
|
-
# Defines a schedule for automatic Backup creation via this
|
59
|
+
# Optional. Defines a schedule for automatic Backup creation via this
|
60
|
+
# BackupPlan.
|
59
61
|
# @!attribute [r] etag
|
60
62
|
# @return [::String]
|
61
63
|
# Output only. `etag` is used for optimistic concurrency control as a way to
|
@@ -68,7 +70,7 @@ module Google
|
|
68
70
|
# will be applied to the same version of the resource.
|
69
71
|
# @!attribute [rw] deactivated
|
70
72
|
# @return [::Boolean]
|
71
|
-
# This flag indicates whether this BackupPlan has been deactivated.
|
73
|
+
# Optional. This flag indicates whether this BackupPlan has been deactivated.
|
72
74
|
# Setting this field to True locks the BackupPlan such that no further
|
73
75
|
# updates will be allowed (except deletes), including the deactivated field
|
74
76
|
# itself. It also prevents any new Backups from being created via this
|
@@ -77,7 +79,7 @@ module Google
|
|
77
79
|
# Default: False
|
78
80
|
# @!attribute [rw] backup_config
|
79
81
|
# @return [::Google::Cloud::GkeBackup::V1::BackupPlan::BackupConfig]
|
80
|
-
# Defines the configuration of Backups created via this BackupPlan.
|
82
|
+
# Optional. Defines the configuration of Backups created via this BackupPlan.
|
81
83
|
# @!attribute [r] protected_pod_count
|
82
84
|
# @return [::Integer]
|
83
85
|
# Output only. The number of Kubernetes Pods backed up in the
|
@@ -92,6 +94,15 @@ module Google
|
|
92
94
|
# @return [::String]
|
93
95
|
# Output only. Human-readable description of why BackupPlan is in the current
|
94
96
|
# `state`
|
97
|
+
# @!attribute [r] rpo_risk_level
|
98
|
+
# @return [::Integer]
|
99
|
+
# Output only. A number that represents the current risk level of this
|
100
|
+
# BackupPlan from RPO perspective with 1 being no risk and 5 being highest
|
101
|
+
# risk.
|
102
|
+
# @!attribute [r] rpo_risk_reason
|
103
|
+
# @return [::String]
|
104
|
+
# Output only. Human-readable description of why the BackupPlan is in the
|
105
|
+
# current rpo_risk_level and action items if any.
|
95
106
|
class BackupPlan
|
96
107
|
include ::Google::Protobuf::MessageExts
|
97
108
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -99,7 +110,7 @@ module Google
|
|
99
110
|
# RetentionPolicy defines a Backup retention policy for a BackupPlan.
|
100
111
|
# @!attribute [rw] backup_delete_lock_days
|
101
112
|
# @return [::Integer]
|
102
|
-
# Minimum age for Backups created via this BackupPlan (in days).
|
113
|
+
# Optional. Minimum age for Backups created via this BackupPlan (in days).
|
103
114
|
# This field MUST be an integer value between 0-90 (inclusive).
|
104
115
|
# A Backup created under this BackupPlan will NOT be deletable until it
|
105
116
|
# reaches Backup's (create_time + backup_delete_lock_days).
|
@@ -110,29 +121,30 @@ module Google
|
|
110
121
|
# Default: 0 (no delete blocking)
|
111
122
|
# @!attribute [rw] backup_retain_days
|
112
123
|
# @return [::Integer]
|
113
|
-
# The default maximum age of a Backup created via this
|
114
|
-
# This field MUST be an integer value >= 0 and <= 365.
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
118
|
-
#
|
119
|
-
#
|
120
|
-
#
|
121
|
-
# created AFTER a successful update will automatically pick up the new
|
122
|
-
# value.
|
123
|
-
# NOTE: backup_retain_days must be >=
|
124
|
+
# Optional. The default maximum age of a Backup created via this
|
125
|
+
# BackupPlan. This field MUST be an integer value >= 0 and <= 365. If
|
126
|
+
# specified, a Backup created under this BackupPlan will be automatically
|
127
|
+
# deleted after its age reaches (create_time + backup_retain_days). If not
|
128
|
+
# specified, Backups created under this BackupPlan will NOT be subject to
|
129
|
+
# automatic deletion. Updating this field does NOT affect existing Backups
|
130
|
+
# under it. Backups created AFTER a successful update will automatically
|
131
|
+
# pick up the new value. NOTE: backup_retain_days must be >=
|
124
132
|
# {::Google::Cloud::GkeBackup::V1::BackupPlan::RetentionPolicy#backup_delete_lock_days backup_delete_lock_days}.
|
125
133
|
# If
|
126
134
|
# {::Google::Cloud::GkeBackup::V1::BackupPlan::Schedule#cron_schedule cron_schedule}
|
127
135
|
# is defined, then this must be
|
128
|
-
# <= 360 * the creation interval.
|
136
|
+
# <= 360 * the creation interval. If
|
137
|
+
# {::Google::Cloud::GkeBackup::V1::BackupPlan::Schedule#rpo_config rpo_config} is
|
138
|
+
# defined, then this must be
|
139
|
+
# <= 360 * [target_rpo_minutes][Schedule.rpo_config.target_rpo_minutes] /
|
140
|
+
# (1440minutes/day).
|
129
141
|
#
|
130
142
|
# Default: 0 (no automatic deletion)
|
131
143
|
# @!attribute [rw] locked
|
132
144
|
# @return [::Boolean]
|
133
|
-
# This flag denotes whether the retention policy of this
|
134
|
-
# locked. If set to True, no further update is allowed on
|
135
|
-
# including the `locked` field itself.
|
145
|
+
# Optional. This flag denotes whether the retention policy of this
|
146
|
+
# BackupPlan is locked. If set to True, no further update is allowed on
|
147
|
+
# this policy, including the `locked` field itself.
|
136
148
|
#
|
137
149
|
# Default: False
|
138
150
|
class RetentionPolicy
|
@@ -144,19 +156,37 @@ module Google
|
|
144
156
|
# via this BackupPlan.
|
145
157
|
# @!attribute [rw] cron_schedule
|
146
158
|
# @return [::String]
|
147
|
-
# A standard [cron](https://wikipedia.com/wiki/cron) string that
|
148
|
-
# repeating schedule for creating Backups via this BackupPlan.
|
149
|
-
#
|
159
|
+
# Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that
|
160
|
+
# defines a repeating schedule for creating Backups via this BackupPlan.
|
161
|
+
# This is mutually exclusive with the
|
162
|
+
# {::Google::Cloud::GkeBackup::V1::BackupPlan::Schedule#rpo_config rpo_config}
|
163
|
+
# field since at most one schedule can be defined for a BackupPlan. If this
|
164
|
+
# is defined, then
|
150
165
|
# {::Google::Cloud::GkeBackup::V1::BackupPlan::RetentionPolicy#backup_retain_days backup_retain_days}
|
151
166
|
# must also be defined.
|
152
167
|
#
|
153
168
|
# Default (empty): no automatic backup creation will occur.
|
154
169
|
# @!attribute [rw] paused
|
155
170
|
# @return [::Boolean]
|
156
|
-
# This flag denotes whether automatic Backup creation is paused
|
157
|
-
# BackupPlan.
|
171
|
+
# Optional. This flag denotes whether automatic Backup creation is paused
|
172
|
+
# for this BackupPlan.
|
158
173
|
#
|
159
174
|
# Default: False
|
175
|
+
# @!attribute [rw] rpo_config
|
176
|
+
# @return [::Google::Cloud::GkeBackup::V1::RpoConfig]
|
177
|
+
# Optional. Defines the RPO schedule configuration for this BackupPlan.
|
178
|
+
# This is mutually exclusive with the
|
179
|
+
# {::Google::Cloud::GkeBackup::V1::BackupPlan::Schedule#cron_schedule cron_schedule}
|
180
|
+
# field since at most one schedule can be defined for a BackupPLan. If this
|
181
|
+
# is defined, then
|
182
|
+
# {::Google::Cloud::GkeBackup::V1::BackupPlan::RetentionPolicy#backup_retain_days backup_retain_days}
|
183
|
+
# must also be defined.
|
184
|
+
#
|
185
|
+
# Default (empty): no automatic backup creation will occur.
|
186
|
+
# @!attribute [r] next_scheduled_backup_time
|
187
|
+
# @return [::Google::Protobuf::Timestamp]
|
188
|
+
# Output only. Start time of next scheduled backup under this BackupPlan by
|
189
|
+
# either cron_schedule or rpo config.
|
160
190
|
class Schedule
|
161
191
|
include ::Google::Protobuf::MessageExts
|
162
192
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -176,23 +206,30 @@ module Google
|
|
176
206
|
# ProtectedApplications.
|
177
207
|
# @!attribute [rw] include_volume_data
|
178
208
|
# @return [::Boolean]
|
179
|
-
# This flag specifies whether volume data should be backed up
|
180
|
-
# PVCs are included in the scope of a Backup.
|
209
|
+
# Optional. This flag specifies whether volume data should be backed up
|
210
|
+
# when PVCs are included in the scope of a Backup.
|
181
211
|
#
|
182
212
|
# Default: False
|
183
213
|
# @!attribute [rw] include_secrets
|
184
214
|
# @return [::Boolean]
|
185
|
-
# This flag specifies whether Kubernetes Secret resources should
|
186
|
-
# included when they fall into the scope of Backups.
|
215
|
+
# Optional. This flag specifies whether Kubernetes Secret resources should
|
216
|
+
# be included when they fall into the scope of Backups.
|
187
217
|
#
|
188
218
|
# Default: False
|
189
219
|
# @!attribute [rw] encryption_key
|
190
220
|
# @return [::Google::Cloud::GkeBackup::V1::EncryptionKey]
|
191
|
-
# This defines a customer managed encryption key that will be
|
192
|
-
# encrypt the "config" portion (the Kubernetes resources) of
|
193
|
-
# created via this plan.
|
221
|
+
# Optional. This defines a customer managed encryption key that will be
|
222
|
+
# used to encrypt the "config" portion (the Kubernetes resources) of
|
223
|
+
# Backups created via this plan.
|
194
224
|
#
|
195
225
|
# Default (empty): Config backup artifacts will not be encrypted.
|
226
|
+
# @!attribute [rw] permissive_mode
|
227
|
+
# @return [::Boolean]
|
228
|
+
# Optional. If false, Backups will fail when Backup for GKE detects
|
229
|
+
# Kubernetes configuration that is non-standard or
|
230
|
+
# requires additional setup to restore.
|
231
|
+
#
|
232
|
+
# Default: False
|
196
233
|
class BackupConfig
|
197
234
|
include ::Google::Protobuf::MessageExts
|
198
235
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -231,6 +268,74 @@ module Google
|
|
231
268
|
DELETING = 6
|
232
269
|
end
|
233
270
|
end
|
271
|
+
|
272
|
+
# Defines RPO scheduling configuration for automatically creating
|
273
|
+
# Backups via this BackupPlan.
|
274
|
+
# @!attribute [rw] target_rpo_minutes
|
275
|
+
# @return [::Integer]
|
276
|
+
# Required. Defines the target RPO for the BackupPlan in minutes, which means
|
277
|
+
# the target maximum data loss in time that is acceptable for this
|
278
|
+
# BackupPlan. This must be at least 60, i.e., 1 hour, and at most 86400,
|
279
|
+
# i.e., 60 days.
|
280
|
+
# @!attribute [rw] exclusion_windows
|
281
|
+
# @return [::Array<::Google::Cloud::GkeBackup::V1::ExclusionWindow>]
|
282
|
+
# Optional. User specified time windows during which backup can NOT happen
|
283
|
+
# for this BackupPlan - backups should start and finish outside of any given
|
284
|
+
# exclusion window. Note: backup jobs will be scheduled to start and
|
285
|
+
# finish outside the duration of the window as much as possible, but
|
286
|
+
# running jobs will not get canceled when it runs into the window.
|
287
|
+
# All the time and date values in exclusion_windows entry in the API are in
|
288
|
+
# UTC.
|
289
|
+
# We only allow <=1 recurrence (daily or weekly) exclusion window for a
|
290
|
+
# BackupPlan while no restriction on number of single occurrence
|
291
|
+
# windows.
|
292
|
+
class RpoConfig
|
293
|
+
include ::Google::Protobuf::MessageExts
|
294
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
295
|
+
end
|
296
|
+
|
297
|
+
# Defines a time window during which no backup should
|
298
|
+
# happen. All time and date are in UTC.
|
299
|
+
# @!attribute [rw] start_time
|
300
|
+
# @return [::Google::Type::TimeOfDay]
|
301
|
+
# Required. Specifies the start time of the window using time of the day in
|
302
|
+
# UTC.
|
303
|
+
# @!attribute [rw] duration
|
304
|
+
# @return [::Google::Protobuf::Duration]
|
305
|
+
# Required. Specifies duration of the window.
|
306
|
+
# Duration must be >= 5 minutes and < (target RPO - 20 minutes).
|
307
|
+
# Additional restrictions based on the recurrence type to allow some time for
|
308
|
+
# backup to happen:
|
309
|
+
# - single_occurrence_date: no restriction, but UI may warn about this when
|
310
|
+
# duration >= target RPO
|
311
|
+
# - daily window: duration < 24 hours
|
312
|
+
# - weekly window:
|
313
|
+
# - days of week includes all seven days of a week: duration < 24 hours
|
314
|
+
# - all other weekly window: duration < 168 hours (i.e., 24 * 7 hours)
|
315
|
+
# @!attribute [rw] single_occurrence_date
|
316
|
+
# @return [::Google::Type::Date]
|
317
|
+
# No recurrence. The exclusion window occurs only once and on this
|
318
|
+
# date in UTC.
|
319
|
+
# @!attribute [rw] daily
|
320
|
+
# @return [::Boolean]
|
321
|
+
# The exclusion window occurs every day if set to "True".
|
322
|
+
# Specifying this field to "False" is an error.
|
323
|
+
# @!attribute [rw] days_of_week
|
324
|
+
# @return [::Google::Cloud::GkeBackup::V1::ExclusionWindow::DayOfWeekList]
|
325
|
+
# The exclusion window occurs on these days of each week in UTC.
|
326
|
+
class ExclusionWindow
|
327
|
+
include ::Google::Protobuf::MessageExts
|
328
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
329
|
+
|
330
|
+
# Holds repeated DaysOfWeek values as a container.
|
331
|
+
# @!attribute [rw] days_of_week
|
332
|
+
# @return [::Array<::Google::Type::DayOfWeek>]
|
333
|
+
# Optional. A list of days of week.
|
334
|
+
class DayOfWeekList
|
335
|
+
include ::Google::Protobuf::MessageExts
|
336
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
337
|
+
end
|
338
|
+
end
|
234
339
|
end
|
235
340
|
end
|
236
341
|
end
|
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
# A list of Kubernetes Namespaces
|
25
25
|
# @!attribute [rw] namespaces
|
26
26
|
# @return [::Array<::String>]
|
27
|
-
# A list of Kubernetes Namespaces
|
27
|
+
# Optional. A list of Kubernetes Namespaces
|
28
28
|
class Namespaces
|
29
29
|
include ::Google::Protobuf::MessageExts
|
30
30
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -33,10 +33,10 @@ module Google
|
|
33
33
|
# A reference to a namespaced resource in Kubernetes.
|
34
34
|
# @!attribute [rw] namespace
|
35
35
|
# @return [::String]
|
36
|
-
# The Namespace of the Kubernetes resource.
|
36
|
+
# Optional. The Namespace of the Kubernetes resource.
|
37
37
|
# @!attribute [rw] name
|
38
38
|
# @return [::String]
|
39
|
-
# The name of the Kubernetes resource.
|
39
|
+
# Optional. The name of the Kubernetes resource.
|
40
40
|
class NamespacedName
|
41
41
|
include ::Google::Protobuf::MessageExts
|
42
42
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -45,7 +45,7 @@ module Google
|
|
45
45
|
# A list of namespaced Kubernetes resources.
|
46
46
|
# @!attribute [rw] namespaced_names
|
47
47
|
# @return [::Array<::Google::Cloud::GkeBackup::V1::NamespacedName>]
|
48
|
-
# A list of namespaced Kubernetes resources.
|
48
|
+
# Optional. A list of namespaced Kubernetes resources.
|
49
49
|
class NamespacedNames
|
50
50
|
include ::Google::Protobuf::MessageExts
|
51
51
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -55,12 +55,27 @@ module Google
|
|
55
55
|
# artifacts.
|
56
56
|
# @!attribute [rw] gcp_kms_encryption_key
|
57
57
|
# @return [::String]
|
58
|
-
# Google Cloud KMS encryption key. Format:
|
58
|
+
# Optional. Google Cloud KMS encryption key. Format:
|
59
59
|
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`
|
60
60
|
class EncryptionKey
|
61
61
|
include ::Google::Protobuf::MessageExts
|
62
62
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
63
63
|
end
|
64
|
+
|
65
|
+
# Message to encapsulate VolumeType enum.
|
66
|
+
class VolumeTypeEnum
|
67
|
+
include ::Google::Protobuf::MessageExts
|
68
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
69
|
+
|
70
|
+
# Supported volume types.
|
71
|
+
module VolumeType
|
72
|
+
# Default
|
73
|
+
VOLUME_TYPE_UNSPECIFIED = 0
|
74
|
+
|
75
|
+
# Compute Engine Persistent Disk volume
|
76
|
+
GCE_PERSISTENT_DISK = 1
|
77
|
+
end
|
78
|
+
end
|
64
79
|
end
|
65
80
|
end
|
66
81
|
end
|
@@ -82,15 +82,15 @@ module Google
|
|
82
82
|
# Format: `projects/*/locations/*`
|
83
83
|
# @!attribute [rw] page_size
|
84
84
|
# @return [::Integer]
|
85
|
-
# The target number of results to return in a single response.
|
85
|
+
# Optional. The target number of results to return in a single response.
|
86
86
|
# If not specified, a default value will be chosen by the service.
|
87
|
-
# Note that the response may
|
87
|
+
# Note that the response may include a partial list and a caller should
|
88
88
|
# only rely on the response's
|
89
89
|
# {::Google::Cloud::GkeBackup::V1::ListBackupPlansResponse#next_page_token next_page_token}
|
90
90
|
# to determine if there are more instances left to be queried.
|
91
91
|
# @!attribute [rw] page_token
|
92
92
|
# @return [::String]
|
93
|
-
# The value of
|
93
|
+
# Optional. The value of
|
94
94
|
# {::Google::Cloud::GkeBackup::V1::ListBackupPlansResponse#next_page_token next_page_token}
|
95
95
|
# received from a previous `ListBackupPlans` call.
|
96
96
|
# Provide this to retrieve the subsequent page in a multi-page list of
|
@@ -98,10 +98,10 @@ module Google
|
|
98
98
|
# `ListBackupPlans` must match the call that provided the page token.
|
99
99
|
# @!attribute [rw] filter
|
100
100
|
# @return [::String]
|
101
|
-
# Field match expression used to filter the results.
|
101
|
+
# Optional. Field match expression used to filter the results.
|
102
102
|
# @!attribute [rw] order_by
|
103
103
|
# @return [::String]
|
104
|
-
# Field by which to sort the results.
|
104
|
+
# Optional. Field by which to sort the results.
|
105
105
|
class ListBackupPlansRequest
|
106
106
|
include ::Google::Protobuf::MessageExts
|
107
107
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -143,7 +143,7 @@ module Google
|
|
143
143
|
# fields. This may be sparsely populated if an `update_mask` is provided.
|
144
144
|
# @!attribute [rw] update_mask
|
145
145
|
# @return [::Google::Protobuf::FieldMask]
|
146
|
-
# This is used to specify the fields to be overwritten in the
|
146
|
+
# Optional. This is used to specify the fields to be overwritten in the
|
147
147
|
# BackupPlan targeted for update. The values for each of these
|
148
148
|
# updated fields will be taken from the `backup_plan` provided
|
149
149
|
# with this request. Field names are relative to the root of the resource
|
@@ -164,7 +164,7 @@ module Google
|
|
164
164
|
# Format: `projects/*/locations/*/backupPlans/*`
|
165
165
|
# @!attribute [rw] etag
|
166
166
|
# @return [::String]
|
167
|
-
# If provided, this value must match the current value of the
|
167
|
+
# Optional. If provided, this value must match the current value of the
|
168
168
|
# target BackupPlan's {::Google::Cloud::GkeBackup::V1::BackupPlan#etag etag} field
|
169
169
|
# or the request is rejected.
|
170
170
|
class DeleteBackupPlanRequest
|
@@ -179,10 +179,10 @@ module Google
|
|
179
179
|
# Format: `projects/*/locations/*/backupPlans/*`
|
180
180
|
# @!attribute [rw] backup
|
181
181
|
# @return [::Google::Cloud::GkeBackup::V1::Backup]
|
182
|
-
# The Backup resource to create.
|
182
|
+
# Optional. The Backup resource to create.
|
183
183
|
# @!attribute [rw] backup_id
|
184
184
|
# @return [::String]
|
185
|
-
# The client-provided short name for the Backup resource.
|
185
|
+
# Optional. The client-provided short name for the Backup resource.
|
186
186
|
# This name must:
|
187
187
|
#
|
188
188
|
# - be between 1 and 63 characters long (inclusive)
|
@@ -202,15 +202,15 @@ module Google
|
|
202
202
|
# Format: `projects/*/locations/*/backupPlans/*`
|
203
203
|
# @!attribute [rw] page_size
|
204
204
|
# @return [::Integer]
|
205
|
-
# The target number of results to return in a single response.
|
205
|
+
# Optional. The target number of results to return in a single response.
|
206
206
|
# If not specified, a default value will be chosen by the service.
|
207
|
-
# Note that the response may
|
207
|
+
# Note that the response may include a partial list and a caller should
|
208
208
|
# only rely on the response's
|
209
209
|
# {::Google::Cloud::GkeBackup::V1::ListBackupsResponse#next_page_token next_page_token}
|
210
210
|
# to determine if there are more instances left to be queried.
|
211
211
|
# @!attribute [rw] page_token
|
212
212
|
# @return [::String]
|
213
|
-
# The value of
|
213
|
+
# Optional. The value of
|
214
214
|
# {::Google::Cloud::GkeBackup::V1::ListBackupsResponse#next_page_token next_page_token}
|
215
215
|
# received from a previous `ListBackups` call.
|
216
216
|
# Provide this to retrieve the subsequent page in a multi-page list of
|
@@ -218,10 +218,10 @@ module Google
|
|
218
218
|
# `ListBackups` must match the call that provided the page token.
|
219
219
|
# @!attribute [rw] filter
|
220
220
|
# @return [::String]
|
221
|
-
# Field match expression used to filter the results.
|
221
|
+
# Optional. Field match expression used to filter the results.
|
222
222
|
# @!attribute [rw] order_by
|
223
223
|
# @return [::String]
|
224
|
-
# Field by which to sort the results.
|
224
|
+
# Optional. Field by which to sort the results.
|
225
225
|
class ListBackupsRequest
|
226
226
|
include ::Google::Protobuf::MessageExts
|
227
227
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -259,7 +259,7 @@ module Google
|
|
259
259
|
# fields. This may be sparsely populated if an `update_mask` is provided.
|
260
260
|
# @!attribute [rw] update_mask
|
261
261
|
# @return [::Google::Protobuf::FieldMask]
|
262
|
-
# This is used to specify the fields to be overwritten in the
|
262
|
+
# Optional. This is used to specify the fields to be overwritten in the
|
263
263
|
# Backup targeted for update. The values for each of these
|
264
264
|
# updated fields will be taken from the `backup_plan` provided
|
265
265
|
# with this request. Field names are relative to the root of the resource.
|
@@ -279,13 +279,13 @@ module Google
|
|
279
279
|
# Format: `projects/*/locations/*/backupPlans/*/backups/*`
|
280
280
|
# @!attribute [rw] etag
|
281
281
|
# @return [::String]
|
282
|
-
# If provided, this value must match the current value of the
|
282
|
+
# Optional. If provided, this value must match the current value of the
|
283
283
|
# target Backup's {::Google::Cloud::GkeBackup::V1::Backup#etag etag} field or the
|
284
284
|
# request is rejected.
|
285
285
|
# @!attribute [rw] force
|
286
286
|
# @return [::Boolean]
|
287
|
-
# If set to true, any VolumeBackups below this Backup will also be
|
288
|
-
# Otherwise, the request will only succeed if the Backup has no
|
287
|
+
# Optional. If set to true, any VolumeBackups below this Backup will also be
|
288
|
+
# deleted. Otherwise, the request will only succeed if the Backup has no
|
289
289
|
# VolumeBackups.
|
290
290
|
class DeleteBackupRequest
|
291
291
|
include ::Google::Protobuf::MessageExts
|
@@ -299,15 +299,15 @@ module Google
|
|
299
299
|
# Format: `projects/*/locations/*/backupPlans/*/backups/*`
|
300
300
|
# @!attribute [rw] page_size
|
301
301
|
# @return [::Integer]
|
302
|
-
# The target number of results to return in a single response.
|
302
|
+
# Optional. The target number of results to return in a single response.
|
303
303
|
# If not specified, a default value will be chosen by the service.
|
304
|
-
# Note that the response may
|
304
|
+
# Note that the response may include a partial list and a caller should
|
305
305
|
# only rely on the response's
|
306
306
|
# {::Google::Cloud::GkeBackup::V1::ListVolumeBackupsResponse#next_page_token next_page_token}
|
307
307
|
# to determine if there are more instances left to be queried.
|
308
308
|
# @!attribute [rw] page_token
|
309
309
|
# @return [::String]
|
310
|
-
# The value of
|
310
|
+
# Optional. The value of
|
311
311
|
# {::Google::Cloud::GkeBackup::V1::ListVolumeBackupsResponse#next_page_token next_page_token}
|
312
312
|
# received from a previous `ListVolumeBackups` call.
|
313
313
|
# Provide this to retrieve the subsequent page in a multi-page list of
|
@@ -315,10 +315,10 @@ module Google
|
|
315
315
|
# `ListVolumeBackups` must match the call that provided the page token.
|
316
316
|
# @!attribute [rw] filter
|
317
317
|
# @return [::String]
|
318
|
-
# Field match expression used to filter the results.
|
318
|
+
# Optional. Field match expression used to filter the results.
|
319
319
|
# @!attribute [rw] order_by
|
320
320
|
# @return [::String]
|
321
|
-
# Field by which to sort the results.
|
321
|
+
# Optional. Field by which to sort the results.
|
322
322
|
class ListVolumeBackupsRequest
|
323
323
|
include ::Google::Protobuf::MessageExts
|
324
324
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -380,15 +380,15 @@ module Google
|
|
380
380
|
# Format: `projects/*/locations/*`
|
381
381
|
# @!attribute [rw] page_size
|
382
382
|
# @return [::Integer]
|
383
|
-
# The target number of results to return in a single response.
|
383
|
+
# Optional. The target number of results to return in a single response.
|
384
384
|
# If not specified, a default value will be chosen by the service.
|
385
|
-
# Note that the response may
|
385
|
+
# Note that the response may include a partial list and a caller should
|
386
386
|
# only rely on the response's
|
387
387
|
# {::Google::Cloud::GkeBackup::V1::ListRestorePlansResponse#next_page_token next_page_token}
|
388
388
|
# to determine if there are more instances left to be queried.
|
389
389
|
# @!attribute [rw] page_token
|
390
390
|
# @return [::String]
|
391
|
-
# The value of
|
391
|
+
# Optional. The value of
|
392
392
|
# {::Google::Cloud::GkeBackup::V1::ListRestorePlansResponse#next_page_token next_page_token}
|
393
393
|
# received from a previous `ListRestorePlans` call.
|
394
394
|
# Provide this to retrieve the subsequent page in a multi-page list of
|
@@ -396,10 +396,10 @@ module Google
|
|
396
396
|
# `ListRestorePlans` must match the call that provided the page token.
|
397
397
|
# @!attribute [rw] filter
|
398
398
|
# @return [::String]
|
399
|
-
# Field match expression used to filter the results.
|
399
|
+
# Optional. Field match expression used to filter the results.
|
400
400
|
# @!attribute [rw] order_by
|
401
401
|
# @return [::String]
|
402
|
-
# Field by which to sort the results.
|
402
|
+
# Optional. Field by which to sort the results.
|
403
403
|
class ListRestorePlansRequest
|
404
404
|
include ::Google::Protobuf::MessageExts
|
405
405
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -441,7 +441,7 @@ module Google
|
|
441
441
|
# fields. This may be sparsely populated if an `update_mask` is provided.
|
442
442
|
# @!attribute [rw] update_mask
|
443
443
|
# @return [::Google::Protobuf::FieldMask]
|
444
|
-
# This is used to specify the fields to be overwritten in the
|
444
|
+
# Optional. This is used to specify the fields to be overwritten in the
|
445
445
|
# RestorePlan targeted for update. The values for each of these
|
446
446
|
# updated fields will be taken from the `restore_plan` provided
|
447
447
|
# with this request. Field names are relative to the root of the resource.
|
@@ -461,13 +461,13 @@ module Google
|
|
461
461
|
# Format: `projects/*/locations/*/restorePlans/*`
|
462
462
|
# @!attribute [rw] etag
|
463
463
|
# @return [::String]
|
464
|
-
# If provided, this value must match the current value of the
|
464
|
+
# Optional. If provided, this value must match the current value of the
|
465
465
|
# target RestorePlan's {::Google::Cloud::GkeBackup::V1::RestorePlan#etag etag}
|
466
466
|
# field or the request is rejected.
|
467
467
|
# @!attribute [rw] force
|
468
468
|
# @return [::Boolean]
|
469
|
-
# If set to true, any Restores below this RestorePlan will also be
|
470
|
-
# Otherwise, the request will only succeed if the RestorePlan has no
|
469
|
+
# Optional. If set to true, any Restores below this RestorePlan will also be
|
470
|
+
# deleted. Otherwise, the request will only succeed if the RestorePlan has no
|
471
471
|
# Restores.
|
472
472
|
class DeleteRestorePlanRequest
|
473
473
|
include ::Google::Protobuf::MessageExts
|
@@ -504,15 +504,15 @@ module Google
|
|
504
504
|
# Format: `projects/*/locations/*/restorePlans/*`
|
505
505
|
# @!attribute [rw] page_size
|
506
506
|
# @return [::Integer]
|
507
|
-
# The target number of results to return in a single response.
|
507
|
+
# Optional. The target number of results to return in a single response.
|
508
508
|
# If not specified, a default value will be chosen by the service.
|
509
|
-
# Note that the response may
|
509
|
+
# Note that the response may include a partial list and a caller should
|
510
510
|
# only rely on the response's
|
511
511
|
# {::Google::Cloud::GkeBackup::V1::ListRestoresResponse#next_page_token next_page_token}
|
512
512
|
# to determine if there are more instances left to be queried.
|
513
513
|
# @!attribute [rw] page_token
|
514
514
|
# @return [::String]
|
515
|
-
# The value of
|
515
|
+
# Optional. The value of
|
516
516
|
# {::Google::Cloud::GkeBackup::V1::ListRestoresResponse#next_page_token next_page_token}
|
517
517
|
# received from a previous `ListRestores` call.
|
518
518
|
# Provide this to retrieve the subsequent page in a multi-page list of
|
@@ -520,10 +520,10 @@ module Google
|
|
520
520
|
# must match the call that provided the page token.
|
521
521
|
# @!attribute [rw] filter
|
522
522
|
# @return [::String]
|
523
|
-
# Field match expression used to filter the results.
|
523
|
+
# Optional. Field match expression used to filter the results.
|
524
524
|
# @!attribute [rw] order_by
|
525
525
|
# @return [::String]
|
526
|
-
# Field by which to sort the results.
|
526
|
+
# Optional. Field by which to sort the results.
|
527
527
|
class ListRestoresRequest
|
528
528
|
include ::Google::Protobuf::MessageExts
|
529
529
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -564,7 +564,7 @@ module Google
|
|
564
564
|
# fields. This may be sparsely populated if an `update_mask` is provided.
|
565
565
|
# @!attribute [rw] update_mask
|
566
566
|
# @return [::Google::Protobuf::FieldMask]
|
567
|
-
# This is used to specify the fields to be overwritten in the
|
567
|
+
# Optional. This is used to specify the fields to be overwritten in the
|
568
568
|
# Restore targeted for update. The values for each of these
|
569
569
|
# updated fields will be taken from the `restore` provided
|
570
570
|
# with this request. Field names are relative to the root of the resource.
|
@@ -584,13 +584,13 @@ module Google
|
|
584
584
|
# Format: `projects/*/locations/*/restorePlans/*/restores/*`
|
585
585
|
# @!attribute [rw] etag
|
586
586
|
# @return [::String]
|
587
|
-
# If provided, this value must match the current value of the
|
587
|
+
# Optional. If provided, this value must match the current value of the
|
588
588
|
# target Restore's {::Google::Cloud::GkeBackup::V1::Restore#etag etag} field or
|
589
589
|
# the request is rejected.
|
590
590
|
# @!attribute [rw] force
|
591
591
|
# @return [::Boolean]
|
592
|
-
# If set to true, any VolumeRestores below this restore will also
|
593
|
-
# Otherwise, the request will only succeed if the restore has no
|
592
|
+
# Optional. If set to true, any VolumeRestores below this restore will also
|
593
|
+
# be deleted. Otherwise, the request will only succeed if the restore has no
|
594
594
|
# VolumeRestores.
|
595
595
|
class DeleteRestoreRequest
|
596
596
|
include ::Google::Protobuf::MessageExts
|
@@ -604,15 +604,15 @@ module Google
|
|
604
604
|
# Format: `projects/*/locations/*/restorePlans/*/restores/*`
|
605
605
|
# @!attribute [rw] page_size
|
606
606
|
# @return [::Integer]
|
607
|
-
# The target number of results to return in a single response.
|
607
|
+
# Optional. The target number of results to return in a single response.
|
608
608
|
# If not specified, a default value will be chosen by the service.
|
609
|
-
# Note that the response may
|
609
|
+
# Note that the response may include a partial list and a caller should
|
610
610
|
# only rely on the response's
|
611
611
|
# {::Google::Cloud::GkeBackup::V1::ListVolumeRestoresResponse#next_page_token next_page_token}
|
612
612
|
# to determine if there are more instances left to be queried.
|
613
613
|
# @!attribute [rw] page_token
|
614
614
|
# @return [::String]
|
615
|
-
# The value of
|
615
|
+
# Optional. The value of
|
616
616
|
# {::Google::Cloud::GkeBackup::V1::ListVolumeRestoresResponse#next_page_token next_page_token}
|
617
617
|
# received from a previous `ListVolumeRestores` call.
|
618
618
|
# Provide this to retrieve the subsequent page in a multi-page list of
|
@@ -620,10 +620,10 @@ module Google
|
|
620
620
|
# `ListVolumeRestores` must match the call that provided the page token.
|
621
621
|
# @!attribute [rw] filter
|
622
622
|
# @return [::String]
|
623
|
-
# Field match expression used to filter the results.
|
623
|
+
# Optional. Field match expression used to filter the results.
|
624
624
|
# @!attribute [rw] order_by
|
625
625
|
# @return [::String]
|
626
|
-
# Field by which to sort the results.
|
626
|
+
# Optional. Field by which to sort the results.
|
627
627
|
class ListVolumeRestoresRequest
|
628
628
|
include ::Google::Protobuf::MessageExts
|
629
629
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -654,6 +654,25 @@ module Google
|
|
654
654
|
include ::Google::Protobuf::MessageExts
|
655
655
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
656
656
|
end
|
657
|
+
|
658
|
+
# Request message for GetBackupIndexDownloadUrl.
|
659
|
+
# @!attribute [rw] backup
|
660
|
+
# @return [::String]
|
661
|
+
# Required. Full name of Backup resource.
|
662
|
+
# Format:
|
663
|
+
# projects/\\{project}/locations/\\{location}/backupPlans/\\{backup_plan}/backups/\\{backup}
|
664
|
+
class GetBackupIndexDownloadUrlRequest
|
665
|
+
include ::Google::Protobuf::MessageExts
|
666
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
667
|
+
end
|
668
|
+
|
669
|
+
# Response message for GetBackupIndexDownloadUrl.
|
670
|
+
# @!attribute [rw] signed_url
|
671
|
+
# @return [::String]
|
672
|
+
class GetBackupIndexDownloadUrlResponse
|
673
|
+
include ::Google::Protobuf::MessageExts
|
674
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
675
|
+
end
|
657
676
|
end
|
658
677
|
end
|
659
678
|
end
|