google-cloud-gke_backup-v1 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb +1910 -339
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/paths.rb +80 -0
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb +1756 -283
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/service_stub.rb +878 -20
- data/lib/google/cloud/gke_backup/v1/version.rb +1 -1
- data/lib/google/cloud/gkebackup/v1/backup_channel_pb.rb +48 -0
- data/lib/google/cloud/gkebackup/v1/backup_pb.rb +1 -1
- data/lib/google/cloud/gkebackup/v1/backup_plan_binding_pb.rb +50 -0
- data/lib/google/cloud/gkebackup/v1/backup_plan_pb.rb +1 -1
- data/lib/google/cloud/gkebackup/v1/gkebackup_pb.rb +27 -1
- data/lib/google/cloud/gkebackup/v1/gkebackup_services_pb.rb +28 -0
- data/lib/google/cloud/gkebackup/v1/restore_channel_pb.rb +48 -0
- data/lib/google/cloud/gkebackup/v1/restore_pb.rb +1 -1
- data/lib/google/cloud/gkebackup/v1/restore_plan_binding_pb.rb +48 -0
- data/lib/google/cloud/gkebackup/v1/volume_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +6 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/cloud/gkebackup/v1/backup.rb +8 -1
- data/proto_docs/google/cloud/gkebackup/v1/backup_channel.rb +88 -0
- data/proto_docs/google/cloud/gkebackup/v1/backup_plan.rb +8 -1
- data/proto_docs/google/cloud/gkebackup/v1/backup_plan_binding.rb +130 -0
- data/proto_docs/google/cloud/gkebackup/v1/common.rb +2 -2
- data/proto_docs/google/cloud/gkebackup/v1/gkebackup.rb +389 -3
- data/proto_docs/google/cloud/gkebackup/v1/restore.rb +14 -6
- data/proto_docs/google/cloud/gkebackup/v1/restore_channel.rb +87 -0
- data/proto_docs/google/cloud/gkebackup/v1/restore_plan.rb +3 -1
- data/proto_docs/google/cloud/gkebackup/v1/restore_plan_binding.rb +68 -0
- data/proto_docs/google/cloud/gkebackup/v1/volume.rb +13 -1
- metadata +12 -3
@@ -45,6 +45,25 @@ module Google
|
|
45
45
|
"projects/#{project}/locations/#{location}/backupPlans/#{backup_plan}/backups/#{backup}"
|
46
46
|
end
|
47
47
|
|
48
|
+
##
|
49
|
+
# Create a fully-qualified BackupChannel resource string.
|
50
|
+
#
|
51
|
+
# The resource will be in the following format:
|
52
|
+
#
|
53
|
+
# `projects/{project}/locations/{location}/backupChannels/{backup_channel}`
|
54
|
+
#
|
55
|
+
# @param project [String]
|
56
|
+
# @param location [String]
|
57
|
+
# @param backup_channel [String]
|
58
|
+
#
|
59
|
+
# @return [::String]
|
60
|
+
def backup_channel_path project:, location:, backup_channel:
|
61
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
63
|
+
|
64
|
+
"projects/#{project}/locations/#{location}/backupChannels/#{backup_channel}"
|
65
|
+
end
|
66
|
+
|
48
67
|
##
|
49
68
|
# Create a fully-qualified BackupPlan resource string.
|
50
69
|
#
|
@@ -64,6 +83,27 @@ module Google
|
|
64
83
|
"projects/#{project}/locations/#{location}/backupPlans/#{backup_plan}"
|
65
84
|
end
|
66
85
|
|
86
|
+
##
|
87
|
+
# Create a fully-qualified BackupPlanBinding resource string.
|
88
|
+
#
|
89
|
+
# The resource will be in the following format:
|
90
|
+
#
|
91
|
+
# `projects/{project}/locations/{location}/backupChannels/{backup_channel}/backupPlanBindings/{backup_plan_binding}`
|
92
|
+
#
|
93
|
+
# @param project [String]
|
94
|
+
# @param location [String]
|
95
|
+
# @param backup_channel [String]
|
96
|
+
# @param backup_plan_binding [String]
|
97
|
+
#
|
98
|
+
# @return [::String]
|
99
|
+
def backup_plan_binding_path project:, location:, backup_channel:, backup_plan_binding:
|
100
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
101
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
102
|
+
raise ::ArgumentError, "backup_channel cannot contain /" if backup_channel.to_s.include? "/"
|
103
|
+
|
104
|
+
"projects/#{project}/locations/#{location}/backupChannels/#{backup_channel}/backupPlanBindings/#{backup_plan_binding}"
|
105
|
+
end
|
106
|
+
|
67
107
|
##
|
68
108
|
# Create a fully-qualified Cluster resource string.
|
69
109
|
#
|
@@ -142,6 +182,25 @@ module Google
|
|
142
182
|
"projects/#{project}/locations/#{location}/restorePlans/#{restore_plan}/restores/#{restore}"
|
143
183
|
end
|
144
184
|
|
185
|
+
##
|
186
|
+
# Create a fully-qualified RestoreChannel resource string.
|
187
|
+
#
|
188
|
+
# The resource will be in the following format:
|
189
|
+
#
|
190
|
+
# `projects/{project}/locations/{location}/restoreChannels/{restore_channel}`
|
191
|
+
#
|
192
|
+
# @param project [String]
|
193
|
+
# @param location [String]
|
194
|
+
# @param restore_channel [String]
|
195
|
+
#
|
196
|
+
# @return [::String]
|
197
|
+
def restore_channel_path project:, location:, restore_channel:
|
198
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
199
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
200
|
+
|
201
|
+
"projects/#{project}/locations/#{location}/restoreChannels/#{restore_channel}"
|
202
|
+
end
|
203
|
+
|
145
204
|
##
|
146
205
|
# Create a fully-qualified RestorePlan resource string.
|
147
206
|
#
|
@@ -161,6 +220,27 @@ module Google
|
|
161
220
|
"projects/#{project}/locations/#{location}/restorePlans/#{restore_plan}"
|
162
221
|
end
|
163
222
|
|
223
|
+
##
|
224
|
+
# Create a fully-qualified RestorePlanBinding resource string.
|
225
|
+
#
|
226
|
+
# The resource will be in the following format:
|
227
|
+
#
|
228
|
+
# `projects/{project}/locations/{location}/restoreChannels/{restore_channel}/restorePlanBindings/{restore_plan_binding}`
|
229
|
+
#
|
230
|
+
# @param project [String]
|
231
|
+
# @param location [String]
|
232
|
+
# @param restore_channel [String]
|
233
|
+
# @param restore_plan_binding [String]
|
234
|
+
#
|
235
|
+
# @return [::String]
|
236
|
+
def restore_plan_binding_path project:, location:, restore_channel:, restore_plan_binding:
|
237
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
238
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
239
|
+
raise ::ArgumentError, "restore_channel cannot contain /" if restore_channel.to_s.include? "/"
|
240
|
+
|
241
|
+
"projects/#{project}/locations/#{location}/restoreChannels/#{restore_channel}/restorePlanBindings/#{restore_plan_binding}"
|
242
|
+
end
|
243
|
+
|
164
244
|
##
|
165
245
|
# Create a fully-qualified VolumeBackup resource string.
|
166
246
|
#
|