google-cloud-bare_metal_solution-v2 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/client.rb +2769 -405
  3. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/paths.rb +135 -0
  4. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/client.rb +2031 -285
  5. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/service_stub.rb +1662 -231
  6. data/lib/google/cloud/bare_metal_solution/v2/version.rb +1 -1
  7. data/lib/google/cloud/baremetalsolution/v2/baremetalsolution_pb.rb +7 -6
  8. data/lib/google/cloud/baremetalsolution/v2/baremetalsolution_services_pb.rb +62 -0
  9. data/lib/google/cloud/baremetalsolution/v2/common_pb.rb +48 -0
  10. data/lib/google/cloud/baremetalsolution/v2/instance_pb.rb +12 -6
  11. data/lib/google/cloud/baremetalsolution/v2/lun_pb.rb +4 -1
  12. data/lib/google/cloud/baremetalsolution/v2/network_pb.rb +3 -1
  13. data/lib/google/cloud/baremetalsolution/v2/nfs_share_pb.rb +5 -1
  14. data/lib/google/cloud/baremetalsolution/v2/osimage_pb.rb +47 -0
  15. data/lib/google/cloud/baremetalsolution/v2/provisioning_pb.rb +80 -0
  16. data/lib/google/cloud/baremetalsolution/v2/ssh_key_pb.rb +49 -0
  17. data/lib/google/cloud/baremetalsolution/v2/volume_pb.rb +8 -1
  18. data/lib/google/cloud/baremetalsolution/v2/volume_snapshot_pb.rb +54 -0
  19. data/proto_docs/google/cloud/baremetalsolution/v2/{baremetalsolution.rb → common.rb} +36 -14
  20. data/proto_docs/google/cloud/baremetalsolution/v2/instance.rb +95 -68
  21. data/proto_docs/google/cloud/baremetalsolution/v2/lun.rb +19 -0
  22. data/proto_docs/google/cloud/baremetalsolution/v2/network.rb +68 -2
  23. data/proto_docs/google/cloud/baremetalsolution/v2/nfs_share.rb +83 -9
  24. data/proto_docs/google/cloud/baremetalsolution/v2/osimage.rb +80 -0
  25. data/proto_docs/google/cloud/baremetalsolution/v2/provisioning.rb +639 -0
  26. data/proto_docs/google/cloud/baremetalsolution/v2/ssh_key.rb +97 -0
  27. data/proto_docs/google/cloud/baremetalsolution/v2/volume.rb +91 -4
  28. data/proto_docs/google/cloud/baremetalsolution/v2/volume_snapshot.rb +134 -0
  29. data/proto_docs/google/type/expr.rb +75 -0
  30. metadata +13 -3
@@ -43,6 +43,44 @@ module Google
43
43
  "projects/#{project}/locations/#{location}/instances/#{instance}"
44
44
  end
45
45
 
46
+ ##
47
+ # Create a fully-qualified InstanceConfig resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/instanceConfigs/{instance_config}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param instance_config [String]
56
+ #
57
+ # @return [::String]
58
+ def instance_config_path project:, location:, instance_config:
59
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
60
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
61
+
62
+ "projects/#{project}/locations/#{location}/instanceConfigs/#{instance_config}"
63
+ end
64
+
65
+ ##
66
+ # Create a fully-qualified InterconnectAttachment resource string.
67
+ #
68
+ # The resource will be in the following format:
69
+ #
70
+ # `projects/{project}/regions/{region}/interconnectAttachments/{interconnect_attachment}`
71
+ #
72
+ # @param project [String]
73
+ # @param region [String]
74
+ # @param interconnect_attachment [String]
75
+ #
76
+ # @return [::String]
77
+ def interconnect_attachment_path project:, region:, interconnect_attachment:
78
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
79
+ raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
80
+
81
+ "projects/#{project}/regions/#{region}/interconnectAttachments/#{interconnect_attachment}"
82
+ end
83
+
46
84
  ##
47
85
  # Create a fully-qualified Location resource string.
48
86
  #
@@ -119,6 +157,44 @@ module Google
119
157
  "projects/#{project}/locations/#{location}/networks/#{network}"
120
158
  end
121
159
 
160
+ ##
161
+ # Create a fully-qualified NetworkConfig resource string.
162
+ #
163
+ # The resource will be in the following format:
164
+ #
165
+ # `projects/{project}/locations/{location}/networkConfigs/{network_config}`
166
+ #
167
+ # @param project [String]
168
+ # @param location [String]
169
+ # @param network_config [String]
170
+ #
171
+ # @return [::String]
172
+ def network_config_path project:, location:, network_config:
173
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
174
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
175
+
176
+ "projects/#{project}/locations/#{location}/networkConfigs/#{network_config}"
177
+ end
178
+
179
+ ##
180
+ # Create a fully-qualified ProvisioningConfig resource string.
181
+ #
182
+ # The resource will be in the following format:
183
+ #
184
+ # `projects/{project}/locations/{location}/provisioningConfigs/{provisioning_config}`
185
+ #
186
+ # @param project [String]
187
+ # @param location [String]
188
+ # @param provisioning_config [String]
189
+ #
190
+ # @return [::String]
191
+ def provisioning_config_path project:, location:, provisioning_config:
192
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
193
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
194
+
195
+ "projects/#{project}/locations/#{location}/provisioningConfigs/#{provisioning_config}"
196
+ end
197
+
122
198
  ##
123
199
  # Create a fully-qualified ServerNetworkTemplate resource string.
124
200
  #
@@ -138,6 +214,25 @@ module Google
138
214
  "projects/#{project}/locations/#{location}/serverNetworkTemplate/#{server_network_template}"
139
215
  end
140
216
 
217
+ ##
218
+ # Create a fully-qualified SshKey resource string.
219
+ #
220
+ # The resource will be in the following format:
221
+ #
222
+ # `projects/{project}/locations/{location}/sshKeys/{ssh_key}`
223
+ #
224
+ # @param project [String]
225
+ # @param location [String]
226
+ # @param ssh_key [String]
227
+ #
228
+ # @return [::String]
229
+ def ssh_key_path project:, location:, ssh_key:
230
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
231
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
232
+
233
+ "projects/#{project}/locations/#{location}/sshKeys/#{ssh_key}"
234
+ end
235
+
141
236
  ##
142
237
  # Create a fully-qualified Volume resource string.
143
238
  #
@@ -157,6 +252,46 @@ module Google
157
252
  "projects/#{project}/locations/#{location}/volumes/#{volume}"
158
253
  end
159
254
 
255
+ ##
256
+ # Create a fully-qualified VolumeConfig resource string.
257
+ #
258
+ # The resource will be in the following format:
259
+ #
260
+ # `projects/{project}/locations/{location}/volumeConfigs/{volume_config}`
261
+ #
262
+ # @param project [String]
263
+ # @param location [String]
264
+ # @param volume_config [String]
265
+ #
266
+ # @return [::String]
267
+ def volume_config_path project:, location:, volume_config:
268
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
269
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
270
+
271
+ "projects/#{project}/locations/#{location}/volumeConfigs/#{volume_config}"
272
+ end
273
+
274
+ ##
275
+ # Create a fully-qualified VolumeSnapshot resource string.
276
+ #
277
+ # The resource will be in the following format:
278
+ #
279
+ # `projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}`
280
+ #
281
+ # @param project [String]
282
+ # @param location [String]
283
+ # @param volume [String]
284
+ # @param snapshot [String]
285
+ #
286
+ # @return [::String]
287
+ def volume_snapshot_path project:, location:, volume:, snapshot:
288
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
289
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
290
+ raise ::ArgumentError, "volume cannot contain /" if volume.to_s.include? "/"
291
+
292
+ "projects/#{project}/locations/#{location}/volumes/#{volume}/snapshots/#{snapshot}"
293
+ end
294
+
160
295
  extend self
161
296
  end
162
297
  end