google-cloud-backupdr-v1beta 0.a → 0.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/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +154 -8
- data/lib/google/cloud/backupdr/v1beta/appliedautoprotectionpolicy_pb.rb +30 -0
- data/lib/google/cloud/backupdr/v1beta/autoprotectionpolicy_pb.rb +39 -0
- data/lib/google/cloud/backupdr/v1beta/autoprotectionpolicybinding_pb.rb +32 -0
- data/lib/google/cloud/backupdr/v1beta/backup_dr_protection_summary/client.rb +532 -0
- data/lib/google/cloud/backupdr/v1beta/backup_dr_protection_summary/credentials.rb +48 -0
- data/lib/google/cloud/backupdr/v1beta/backup_dr_protection_summary/paths.rb +50 -0
- data/lib/google/cloud/backupdr/v1beta/backup_dr_protection_summary/rest/client.rb +491 -0
- data/lib/google/cloud/backupdr/v1beta/backup_dr_protection_summary/rest/service_stub.rb +142 -0
- data/lib/google/cloud/backupdr/v1beta/backup_dr_protection_summary/rest.rb +53 -0
- data/lib/google/cloud/backupdr/v1beta/backup_dr_protection_summary.rb +55 -0
- data/lib/google/cloud/backupdr/v1beta/backupdr/client.rb +6101 -0
- data/lib/google/cloud/backupdr/v1beta/backupdr/credentials.rb +48 -0
- data/lib/google/cloud/backupdr/v1beta/backupdr/operations.rb +843 -0
- data/lib/google/cloud/backupdr/v1beta/backupdr/paths.rb +372 -0
- data/lib/google/cloud/backupdr/v1beta/backupdr/rest/client.rb +5724 -0
- data/lib/google/cloud/backupdr/v1beta/backupdr/rest/operations.rb +927 -0
- data/lib/google/cloud/backupdr/v1beta/backupdr/rest/service_stub.rb +3086 -0
- data/lib/google/cloud/backupdr/v1beta/backupdr/rest.rb +54 -0
- data/lib/google/cloud/backupdr/v1beta/backupdr.rb +56 -0
- data/lib/google/cloud/backupdr/v1beta/backupdr_pb.rb +55 -0
- data/lib/google/cloud/backupdr/v1beta/backupdr_services_pb.rb +145 -0
- data/lib/google/cloud/backupdr/v1beta/backupplan_pb.rb +49 -0
- data/lib/google/cloud/backupdr/v1beta/backupplanassociation_pb.rb +42 -0
- data/lib/google/cloud/backupdr/v1beta/backupvault_alloydb_pb.rb +30 -0
- data/lib/google/cloud/backupdr/v1beta/backupvault_ba_pb.rb +24 -0
- data/lib/google/cloud/backupdr/v1beta/backupvault_cloudsql_pb.rb +30 -0
- data/lib/google/cloud/backupdr/v1beta/backupvault_disk_pb.rb +33 -0
- data/lib/google/cloud/backupdr/v1beta/backupvault_gce_pb.rb +66 -0
- data/lib/google/cloud/backupdr/v1beta/backupvault_pb.rb +80 -0
- data/lib/google/cloud/backupdr/v1beta/bindingmatchingresource_pb.rb +31 -0
- data/lib/google/cloud/backupdr/v1beta/bindings_override.rb +108 -0
- data/lib/google/cloud/backupdr/v1beta/datasourcereference_pb.rb +35 -0
- data/lib/google/cloud/backupdr/v1beta/protection_summary_pb.rb +40 -0
- data/lib/google/cloud/backupdr/v1beta/protection_summary_services_pb.rb +45 -0
- data/lib/google/cloud/backupdr/v1beta/rest.rb +39 -0
- data/lib/google/cloud/backupdr/v1beta/version.rb +8 -3
- data/lib/google/cloud/backupdr/v1beta.rb +46 -0
- data/lib/google-cloud-backupdr-v1beta.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +593 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/backupdr/v1beta/appliedautoprotectionpolicy.rb +121 -0
- data/proto_docs/google/cloud/backupdr/v1beta/autoprotectionpolicy.rb +277 -0
- data/proto_docs/google/cloud/backupdr/v1beta/autoprotectionpolicybinding.rb +180 -0
- data/proto_docs/google/cloud/backupdr/v1beta/backupdr.rb +428 -0
- data/proto_docs/google/cloud/backupdr/v1beta/backupplan.rb +637 -0
- data/proto_docs/google/cloud/backupdr/v1beta/backupplanassociation.rb +423 -0
- data/proto_docs/google/cloud/backupdr/v1beta/backupvault.rb +1391 -0
- data/proto_docs/google/cloud/backupdr/v1beta/backupvault_alloydb.rb +105 -0
- data/proto_docs/google/cloud/backupdr/v1beta/backupvault_ba.rb +47 -0
- data/proto_docs/google/cloud/backupdr/v1beta/backupvault_cloudsql.rb +131 -0
- data/proto_docs/google/cloud/backupdr/v1beta/backupvault_disk.rb +301 -0
- data/proto_docs/google/cloud/backupdr/v1beta/backupvault_gce.rb +1010 -0
- data/proto_docs/google/cloud/backupdr/v1beta/bindingmatchingresource.rb +160 -0
- data/proto_docs/google/cloud/backupdr/v1beta/datasourcereference.rb +236 -0
- data/proto_docs/google/cloud/backupdr/v1beta/protection_summary.rb +309 -0
- data/proto_docs/google/longrunning/operations.rb +191 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +128 -0
- data/proto_docs/google/protobuf/wrappers.rb +148 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/month.rb +64 -0
- metadata +134 -9
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module BackupDR
|
|
23
|
+
module V1beta
|
|
24
|
+
module BackupDR
|
|
25
|
+
# Path helper methods for the BackupDR API.
|
|
26
|
+
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified AutoProtectionPolicy resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
# @param auto_protection_policy [String]
|
|
37
|
+
#
|
|
38
|
+
# @return [::String]
|
|
39
|
+
def auto_protection_policy_path project:, location:, auto_protection_policy:
|
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
42
|
+
|
|
43
|
+
"projects/#{project}/locations/#{location}/autoProtectionPolicies/#{auto_protection_policy}"
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
##
|
|
47
|
+
# Create a fully-qualified AutoProtectionPolicyBinding resource string.
|
|
48
|
+
#
|
|
49
|
+
# The resource will be in the following format:
|
|
50
|
+
#
|
|
51
|
+
# `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
|
|
52
|
+
#
|
|
53
|
+
# @param project [String]
|
|
54
|
+
# @param location [String]
|
|
55
|
+
# @param auto_protection_policy [String]
|
|
56
|
+
# @param binding [String]
|
|
57
|
+
#
|
|
58
|
+
# @return [::String]
|
|
59
|
+
def auto_protection_policy_binding_path project:, location:, auto_protection_policy:, binding:
|
|
60
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
61
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
62
|
+
raise ::ArgumentError, "auto_protection_policy cannot contain /" if auto_protection_policy.to_s.include? "/"
|
|
63
|
+
|
|
64
|
+
"projects/#{project}/locations/#{location}/autoProtectionPolicies/#{auto_protection_policy}/bindings/#{binding}"
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
##
|
|
68
|
+
# Create a fully-qualified Backup resource string.
|
|
69
|
+
#
|
|
70
|
+
# The resource will be in the following format:
|
|
71
|
+
#
|
|
72
|
+
# `projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}/backups/{backup}`
|
|
73
|
+
#
|
|
74
|
+
# @param project [String]
|
|
75
|
+
# @param location [String]
|
|
76
|
+
# @param backupvault [String]
|
|
77
|
+
# @param datasource [String]
|
|
78
|
+
# @param backup [String]
|
|
79
|
+
#
|
|
80
|
+
# @return [::String]
|
|
81
|
+
def backup_path project:, location:, backupvault:, datasource:, backup:
|
|
82
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
83
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
84
|
+
raise ::ArgumentError, "backupvault cannot contain /" if backupvault.to_s.include? "/"
|
|
85
|
+
raise ::ArgumentError, "datasource cannot contain /" if datasource.to_s.include? "/"
|
|
86
|
+
|
|
87
|
+
"projects/#{project}/locations/#{location}/backupVaults/#{backupvault}/dataSources/#{datasource}/backups/#{backup}"
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
##
|
|
91
|
+
# Create a fully-qualified BackupPlan resource string.
|
|
92
|
+
#
|
|
93
|
+
# The resource will be in the following format:
|
|
94
|
+
#
|
|
95
|
+
# `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
|
|
96
|
+
#
|
|
97
|
+
# @param project [String]
|
|
98
|
+
# @param location [String]
|
|
99
|
+
# @param backup_plan [String]
|
|
100
|
+
#
|
|
101
|
+
# @return [::String]
|
|
102
|
+
def backup_plan_path project:, location:, backup_plan:
|
|
103
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
104
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
105
|
+
|
|
106
|
+
"projects/#{project}/locations/#{location}/backupPlans/#{backup_plan}"
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
##
|
|
110
|
+
# Create a fully-qualified BackupPlanAssociation resource string.
|
|
111
|
+
#
|
|
112
|
+
# The resource will be in the following format:
|
|
113
|
+
#
|
|
114
|
+
# `projects/{project}/locations/{location}/backupPlanAssociations/{backup_plan_association}`
|
|
115
|
+
#
|
|
116
|
+
# @param project [String]
|
|
117
|
+
# @param location [String]
|
|
118
|
+
# @param backup_plan_association [String]
|
|
119
|
+
#
|
|
120
|
+
# @return [::String]
|
|
121
|
+
def backup_plan_association_path project:, location:, backup_plan_association:
|
|
122
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
123
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
124
|
+
|
|
125
|
+
"projects/#{project}/locations/#{location}/backupPlanAssociations/#{backup_plan_association}"
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
##
|
|
129
|
+
# Create a fully-qualified BackupPlanRevision resource string.
|
|
130
|
+
#
|
|
131
|
+
# The resource will be in the following format:
|
|
132
|
+
#
|
|
133
|
+
# `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}`
|
|
134
|
+
#
|
|
135
|
+
# @param project [String]
|
|
136
|
+
# @param location [String]
|
|
137
|
+
# @param backup_plan [String]
|
|
138
|
+
# @param revision [String]
|
|
139
|
+
#
|
|
140
|
+
# @return [::String]
|
|
141
|
+
def backup_plan_revision_path project:, location:, backup_plan:, revision:
|
|
142
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
143
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
144
|
+
raise ::ArgumentError, "backup_plan cannot contain /" if backup_plan.to_s.include? "/"
|
|
145
|
+
|
|
146
|
+
"projects/#{project}/locations/#{location}/backupPlans/#{backup_plan}/revisions/#{revision}"
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
##
|
|
150
|
+
# Create a fully-qualified BackupVault resource string.
|
|
151
|
+
#
|
|
152
|
+
# The resource will be in the following format:
|
|
153
|
+
#
|
|
154
|
+
# `projects/{project}/locations/{location}/backupVaults/{backupvault}`
|
|
155
|
+
#
|
|
156
|
+
# @param project [String]
|
|
157
|
+
# @param location [String]
|
|
158
|
+
# @param backupvault [String]
|
|
159
|
+
#
|
|
160
|
+
# @return [::String]
|
|
161
|
+
def backup_vault_path project:, location:, backupvault:
|
|
162
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
163
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
164
|
+
|
|
165
|
+
"projects/#{project}/locations/#{location}/backupVaults/#{backupvault}"
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
##
|
|
169
|
+
# Create a fully-qualified BindingMatchingResource resource string.
|
|
170
|
+
#
|
|
171
|
+
# The resource will be in the following format:
|
|
172
|
+
#
|
|
173
|
+
# `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
|
|
174
|
+
#
|
|
175
|
+
# @param project [String]
|
|
176
|
+
# @param location [String]
|
|
177
|
+
# @param auto_protection_policy [String]
|
|
178
|
+
# @param binding [String]
|
|
179
|
+
# @param matching_resource [String]
|
|
180
|
+
#
|
|
181
|
+
# @return [::String]
|
|
182
|
+
def binding_matching_resource_path project:, location:, auto_protection_policy:, binding:, matching_resource:
|
|
183
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
184
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
185
|
+
raise ::ArgumentError, "auto_protection_policy cannot contain /" if auto_protection_policy.to_s.include? "/"
|
|
186
|
+
raise ::ArgumentError, "binding cannot contain /" if binding.to_s.include? "/"
|
|
187
|
+
|
|
188
|
+
"projects/#{project}/locations/#{location}/autoProtectionPolicies/#{auto_protection_policy}/bindings/#{binding}/matchingResources/#{matching_resource}"
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
##
|
|
192
|
+
# Create a fully-qualified Cluster resource string.
|
|
193
|
+
#
|
|
194
|
+
# The resource will be in the following format:
|
|
195
|
+
#
|
|
196
|
+
# `projects/{project}/locations/{location}/clusters/{cluster}`
|
|
197
|
+
#
|
|
198
|
+
# @param project [String]
|
|
199
|
+
# @param location [String]
|
|
200
|
+
# @param cluster [String]
|
|
201
|
+
#
|
|
202
|
+
# @return [::String]
|
|
203
|
+
def cluster_path project:, location:, cluster:
|
|
204
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
205
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
206
|
+
|
|
207
|
+
"projects/#{project}/locations/#{location}/clusters/#{cluster}"
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
##
|
|
211
|
+
# Create a fully-qualified CryptoKey resource string.
|
|
212
|
+
#
|
|
213
|
+
# The resource will be in the following format:
|
|
214
|
+
#
|
|
215
|
+
# `projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}`
|
|
216
|
+
#
|
|
217
|
+
# @param project [String]
|
|
218
|
+
# @param location [String]
|
|
219
|
+
# @param ring [String]
|
|
220
|
+
# @param key [String]
|
|
221
|
+
#
|
|
222
|
+
# @return [::String]
|
|
223
|
+
def crypto_key_path project:, location:, ring:, key:
|
|
224
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
225
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
226
|
+
raise ::ArgumentError, "ring cannot contain /" if ring.to_s.include? "/"
|
|
227
|
+
|
|
228
|
+
"projects/#{project}/locations/#{location}/keyRings/#{ring}/cryptoKeys/#{key}"
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
##
|
|
232
|
+
# Create a fully-qualified CryptoKeyVersion resource string.
|
|
233
|
+
#
|
|
234
|
+
# The resource will be in the following format:
|
|
235
|
+
#
|
|
236
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
|
|
237
|
+
#
|
|
238
|
+
# @param project [String]
|
|
239
|
+
# @param location [String]
|
|
240
|
+
# @param key_ring [String]
|
|
241
|
+
# @param crypto_key [String]
|
|
242
|
+
# @param crypto_key_version [String]
|
|
243
|
+
#
|
|
244
|
+
# @return [::String]
|
|
245
|
+
def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
|
|
246
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
247
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
248
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
249
|
+
raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
|
|
250
|
+
|
|
251
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
##
|
|
255
|
+
# Create a fully-qualified DataSource resource string.
|
|
256
|
+
#
|
|
257
|
+
# The resource will be in the following format:
|
|
258
|
+
#
|
|
259
|
+
# `projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}`
|
|
260
|
+
#
|
|
261
|
+
# @param project [String]
|
|
262
|
+
# @param location [String]
|
|
263
|
+
# @param backupvault [String]
|
|
264
|
+
# @param datasource [String]
|
|
265
|
+
#
|
|
266
|
+
# @return [::String]
|
|
267
|
+
def data_source_path project:, location:, backupvault:, datasource:
|
|
268
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
269
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
270
|
+
raise ::ArgumentError, "backupvault cannot contain /" if backupvault.to_s.include? "/"
|
|
271
|
+
|
|
272
|
+
"projects/#{project}/locations/#{location}/backupVaults/#{backupvault}/dataSources/#{datasource}"
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
##
|
|
276
|
+
# Create a fully-qualified DataSourceReference resource string.
|
|
277
|
+
#
|
|
278
|
+
# The resource will be in the following format:
|
|
279
|
+
#
|
|
280
|
+
# `projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}`
|
|
281
|
+
#
|
|
282
|
+
# @param project [String]
|
|
283
|
+
# @param location [String]
|
|
284
|
+
# @param data_source_reference [String]
|
|
285
|
+
#
|
|
286
|
+
# @return [::String]
|
|
287
|
+
def data_source_reference_path project:, location:, data_source_reference:
|
|
288
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
289
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
290
|
+
|
|
291
|
+
"projects/#{project}/locations/#{location}/dataSourceReferences/#{data_source_reference}"
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
##
|
|
295
|
+
# Create a fully-qualified Instance resource string.
|
|
296
|
+
#
|
|
297
|
+
# The resource will be in the following format:
|
|
298
|
+
#
|
|
299
|
+
# `projects/{project}/instances/{instance}`
|
|
300
|
+
#
|
|
301
|
+
# @param project [String]
|
|
302
|
+
# @param instance [String]
|
|
303
|
+
#
|
|
304
|
+
# @return [::String]
|
|
305
|
+
def instance_path project:, instance:
|
|
306
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
307
|
+
|
|
308
|
+
"projects/#{project}/instances/#{instance}"
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
##
|
|
312
|
+
# Create a fully-qualified Location resource string.
|
|
313
|
+
#
|
|
314
|
+
# The resource will be in the following format:
|
|
315
|
+
#
|
|
316
|
+
# `projects/{project}/locations/{location}`
|
|
317
|
+
#
|
|
318
|
+
# @param project [String]
|
|
319
|
+
# @param location [String]
|
|
320
|
+
#
|
|
321
|
+
# @return [::String]
|
|
322
|
+
def location_path project:, location:
|
|
323
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
324
|
+
|
|
325
|
+
"projects/#{project}/locations/#{location}"
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
##
|
|
329
|
+
# Create a fully-qualified ManagementServer resource string.
|
|
330
|
+
#
|
|
331
|
+
# The resource will be in the following format:
|
|
332
|
+
#
|
|
333
|
+
# `projects/{project}/locations/{location}/managementServers/{managementserver}`
|
|
334
|
+
#
|
|
335
|
+
# @param project [String]
|
|
336
|
+
# @param location [String]
|
|
337
|
+
# @param managementserver [String]
|
|
338
|
+
#
|
|
339
|
+
# @return [::String]
|
|
340
|
+
def management_server_path project:, location:, managementserver:
|
|
341
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
342
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
343
|
+
|
|
344
|
+
"projects/#{project}/locations/#{location}/managementServers/#{managementserver}"
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
##
|
|
348
|
+
# Create a fully-qualified StoragePool resource string.
|
|
349
|
+
#
|
|
350
|
+
# The resource will be in the following format:
|
|
351
|
+
#
|
|
352
|
+
# `projects/{project}/zones/{zone}/storagePools/{storage_pool}`
|
|
353
|
+
#
|
|
354
|
+
# @param project [String]
|
|
355
|
+
# @param zone [String]
|
|
356
|
+
# @param storage_pool [String]
|
|
357
|
+
#
|
|
358
|
+
# @return [::String]
|
|
359
|
+
def storage_pool_path project:, zone:, storage_pool:
|
|
360
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
361
|
+
raise ::ArgumentError, "zone cannot contain /" if zone.to_s.include? "/"
|
|
362
|
+
|
|
363
|
+
"projects/#{project}/zones/#{zone}/storagePools/#{storage_pool}"
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
extend self
|
|
367
|
+
end
|
|
368
|
+
end
|
|
369
|
+
end
|
|
370
|
+
end
|
|
371
|
+
end
|
|
372
|
+
end
|