google-apis-baremetalsolution_v1alpha1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,968 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module BaremetalsolutionV1alpha1
23
+ # Bare Metal Solution API
24
+ #
25
+ # Provides ways to manage Bare Metal Solution hardware installed in a regional
26
+ # extension located near a Google Cloud data center.
27
+ #
28
+ # @example
29
+ # require 'google/apis/baremetalsolution_v1alpha1'
30
+ #
31
+ # Baremetalsolution = Google::Apis::BaremetalsolutionV1alpha1 # Alias the module
32
+ # service = Baremetalsolution::BaremetalsolutionService.new
33
+ #
34
+ # @see https://cloud.google.com/bare-metal
35
+ class BaremetalsolutionService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://baremetalsolution.googleapis.com/', '',
48
+ client_name: 'google-apis-baremetalsolution_v1alpha1',
49
+ client_version: Google::Apis::BaremetalsolutionV1alpha1::GEM_VERSION)
50
+ @batch_path = 'batch'
51
+ end
52
+
53
+ # Submit a provisiong configuration for a given project.
54
+ # @param [String] project
55
+ # Required. The target project of the provisioning request.
56
+ # @param [String] location
57
+ # Required. The target location of the provisioning request.
58
+ # @param [Google::Apis::BaremetalsolutionV1alpha1::SubmitProvisioningConfigRequest] submit_provisioning_config_request_object
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [String] quota_user
62
+ # Available to use for quota purposes for server-side applications. Can be any
63
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
64
+ # @param [Google::Apis::RequestOptions] options
65
+ # Request-specific options
66
+ #
67
+ # @yield [result, err] Result & error if block supplied
68
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::ProvisioningConfig] parsed result object
69
+ # @yieldparam err [StandardError] error object if request failed
70
+ #
71
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::ProvisioningConfig]
72
+ #
73
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
76
+ def submit_location_provisioning_config(project, location, submit_provisioning_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
77
+ command = make_simple_command(:post, 'v1alpha1/{+project}/{+location}:submitProvisioningConfig', options)
78
+ command.request_representation = Google::Apis::BaremetalsolutionV1alpha1::SubmitProvisioningConfigRequest::Representation
79
+ command.request_object = submit_provisioning_config_request_object
80
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::ProvisioningConfig::Representation
81
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::ProvisioningConfig
82
+ command.params['project'] = project unless project.nil?
83
+ command.params['location'] = location unless location.nil?
84
+ command.query['fields'] = fields unless fields.nil?
85
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
86
+ execute_or_queue_command(command, &block)
87
+ end
88
+
89
+ # Disable the interactive serial console feature on a specific machine.
90
+ # @param [String] instance
91
+ # Required. Name of the instance to disable the interactive serial console
92
+ # feature on.
93
+ # @param [Google::Apis::BaremetalsolutionV1alpha1::DisableInteractiveSerialConsoleRequest] disable_interactive_serial_console_request_object
94
+ # @param [String] fields
95
+ # Selector specifying which fields to include in a partial response.
96
+ # @param [String] quota_user
97
+ # Available to use for quota purposes for server-side applications. Can be any
98
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
99
+ # @param [Google::Apis::RequestOptions] options
100
+ # Request-specific options
101
+ #
102
+ # @yield [result, err] Result & error if block supplied
103
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::DisableInteractiveSerialConsoleResponse] parsed result object
104
+ # @yieldparam err [StandardError] error object if request failed
105
+ #
106
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::DisableInteractiveSerialConsoleResponse]
107
+ #
108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
111
+ def disable_instance_interactive_serial_console(instance, disable_interactive_serial_console_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
112
+ command = make_simple_command(:post, 'v1alpha1/{+instance}:disableInteractiveSerialConsole', options)
113
+ command.request_representation = Google::Apis::BaremetalsolutionV1alpha1::DisableInteractiveSerialConsoleRequest::Representation
114
+ command.request_object = disable_interactive_serial_console_request_object
115
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::DisableInteractiveSerialConsoleResponse::Representation
116
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::DisableInteractiveSerialConsoleResponse
117
+ command.params['instance'] = instance unless instance.nil?
118
+ command.query['fields'] = fields unless fields.nil?
119
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
120
+ execute_or_queue_command(command, &block)
121
+ end
122
+
123
+ # Enable the interactive serial console feature on a specific machine.
124
+ # @param [String] instance
125
+ # Required. Name of the instance to enable the interactive serial console
126
+ # feature on.
127
+ # @param [Google::Apis::BaremetalsolutionV1alpha1::EnableInteractiveSerialConsoleRequest] enable_interactive_serial_console_request_object
128
+ # @param [String] fields
129
+ # Selector specifying which fields to include in a partial response.
130
+ # @param [String] quota_user
131
+ # Available to use for quota purposes for server-side applications. Can be any
132
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
133
+ # @param [Google::Apis::RequestOptions] options
134
+ # Request-specific options
135
+ #
136
+ # @yield [result, err] Result & error if block supplied
137
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::EnableInteractiveSerialConsoleResponse] parsed result object
138
+ # @yieldparam err [StandardError] error object if request failed
139
+ #
140
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::EnableInteractiveSerialConsoleResponse]
141
+ #
142
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
143
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
144
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
145
+ def enable_instance_interactive_serial_console(instance, enable_interactive_serial_console_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
146
+ command = make_simple_command(:post, 'v1alpha1/{+instance}:enableInteractiveSerialConsole', options)
147
+ command.request_representation = Google::Apis::BaremetalsolutionV1alpha1::EnableInteractiveSerialConsoleRequest::Representation
148
+ command.request_object = enable_interactive_serial_console_request_object
149
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::EnableInteractiveSerialConsoleResponse::Representation
150
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::EnableInteractiveSerialConsoleResponse
151
+ command.params['instance'] = instance unless instance.nil?
152
+ command.query['fields'] = fields unless fields.nil?
153
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
154
+ execute_or_queue_command(command, &block)
155
+ end
156
+
157
+ # Get details for a specific named Instance.
158
+ # @param [String] name
159
+ # Required. The name of the Instance to retrieve.
160
+ # @param [String] fields
161
+ # Selector specifying which fields to include in a partial response.
162
+ # @param [String] quota_user
163
+ # Available to use for quota purposes for server-side applications. Can be any
164
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
165
+ # @param [Google::Apis::RequestOptions] options
166
+ # Request-specific options
167
+ #
168
+ # @yield [result, err] Result & error if block supplied
169
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::Instance] parsed result object
170
+ # @yieldparam err [StandardError] error object if request failed
171
+ #
172
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::Instance]
173
+ #
174
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
175
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
176
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
177
+ def get_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
178
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
179
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::Instance::Representation
180
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::Instance
181
+ command.params['name'] = name unless name.nil?
182
+ command.query['fields'] = fields unless fields.nil?
183
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
184
+ execute_or_queue_command(command, &block)
185
+ end
186
+
187
+ # List Instances (physical servers).
188
+ # @param [String] parent
189
+ # Required. The location to list Instances in.
190
+ # @param [Fixnum] page_size
191
+ # The maximum number of items to return.
192
+ # @param [String] page_token
193
+ # The next_page_token value returned from a previous List request, if any.
194
+ # @param [String] fields
195
+ # Selector specifying which fields to include in a partial response.
196
+ # @param [String] quota_user
197
+ # Available to use for quota purposes for server-side applications. Can be any
198
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
199
+ # @param [Google::Apis::RequestOptions] options
200
+ # Request-specific options
201
+ #
202
+ # @yield [result, err] Result & error if block supplied
203
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::ListInstancesResponse] parsed result object
204
+ # @yieldparam err [StandardError] error object if request failed
205
+ #
206
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::ListInstancesResponse]
207
+ #
208
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
209
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
210
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
211
+ def list_project_location_instances(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
212
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/instances', options)
213
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::ListInstancesResponse::Representation
214
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::ListInstancesResponse
215
+ command.params['parent'] = parent unless parent.nil?
216
+ command.query['pageSize'] = page_size unless page_size.nil?
217
+ command.query['pageToken'] = page_token unless page_token.nil?
218
+ command.query['fields'] = fields unless fields.nil?
219
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
220
+ execute_or_queue_command(command, &block)
221
+ end
222
+
223
+ # Read the most recent serial port output from a machine.
224
+ # @param [String] instance
225
+ # Required. Name of the instance to get serial port output of.
226
+ # @param [Fixnum] start_byte
227
+ # Optional. The start byte of the serial port output to return.
228
+ # @param [String] fields
229
+ # Selector specifying which fields to include in a partial response.
230
+ # @param [String] quota_user
231
+ # Available to use for quota purposes for server-side applications. Can be any
232
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
233
+ # @param [Google::Apis::RequestOptions] options
234
+ # Request-specific options
235
+ #
236
+ # @yield [result, err] Result & error if block supplied
237
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::SerialPortOutput] parsed result object
238
+ # @yieldparam err [StandardError] error object if request failed
239
+ #
240
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::SerialPortOutput]
241
+ #
242
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
243
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
244
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
245
+ def read_project_location_instance_serial_port_output(instance, start_byte: nil, fields: nil, quota_user: nil, options: nil, &block)
246
+ command = make_simple_command(:get, 'v1alpha1/{+instance}:readSerialPortOutput', options)
247
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::SerialPortOutput::Representation
248
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::SerialPortOutput
249
+ command.params['instance'] = instance unless instance.nil?
250
+ command.query['startByte'] = start_byte unless start_byte.nil?
251
+ command.query['fields'] = fields unless fields.nil?
252
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
253
+ execute_or_queue_command(command, &block)
254
+ end
255
+
256
+ # Perform an ungraceful, hard reset on a machine (equivalent to physically
257
+ # turning power off and then back on).
258
+ # @param [String] instance
259
+ # Required. Name of the instance to reset.
260
+ # @param [Google::Apis::BaremetalsolutionV1alpha1::ResetInstanceRequest] reset_instance_request_object
261
+ # @param [String] fields
262
+ # Selector specifying which fields to include in a partial response.
263
+ # @param [String] quota_user
264
+ # Available to use for quota purposes for server-side applications. Can be any
265
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
266
+ # @param [Google::Apis::RequestOptions] options
267
+ # Request-specific options
268
+ #
269
+ # @yield [result, err] Result & error if block supplied
270
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::ResetInstanceResponse] parsed result object
271
+ # @yieldparam err [StandardError] error object if request failed
272
+ #
273
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::ResetInstanceResponse]
274
+ #
275
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
276
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
277
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
278
+ def reset_instance(instance, reset_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
279
+ command = make_simple_command(:post, 'v1alpha1/{+instance}:resetInstance', options)
280
+ command.request_representation = Google::Apis::BaremetalsolutionV1alpha1::ResetInstanceRequest::Representation
281
+ command.request_object = reset_instance_request_object
282
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::ResetInstanceResponse::Representation
283
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::ResetInstanceResponse
284
+ command.params['instance'] = instance unless instance.nil?
285
+ command.query['fields'] = fields unless fields.nil?
286
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
287
+ execute_or_queue_command(command, &block)
288
+ end
289
+
290
+ # Get details for a specific named Lun.
291
+ # @param [String] name
292
+ # Required. The name of the Lun to retrieve.
293
+ # @param [String] fields
294
+ # Selector specifying which fields to include in a partial response.
295
+ # @param [String] quota_user
296
+ # Available to use for quota purposes for server-side applications. Can be any
297
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
298
+ # @param [Google::Apis::RequestOptions] options
299
+ # Request-specific options
300
+ #
301
+ # @yield [result, err] Result & error if block supplied
302
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::Lun] parsed result object
303
+ # @yieldparam err [StandardError] error object if request failed
304
+ #
305
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::Lun]
306
+ #
307
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
308
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
309
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
310
+ def get_project_location_lun(name, fields: nil, quota_user: nil, options: nil, &block)
311
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
312
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::Lun::Representation
313
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::Lun
314
+ command.params['name'] = name unless name.nil?
315
+ command.query['fields'] = fields unless fields.nil?
316
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
317
+ execute_or_queue_command(command, &block)
318
+ end
319
+
320
+ # List Luns.
321
+ # @param [String] parent
322
+ # Required. The location to list Luns in.
323
+ # @param [Fixnum] page_size
324
+ # The maximum number of items to return.
325
+ # @param [String] page_token
326
+ # The next_page_token value returned from a previous List request, if any.
327
+ # @param [String] fields
328
+ # Selector specifying which fields to include in a partial response.
329
+ # @param [String] quota_user
330
+ # Available to use for quota purposes for server-side applications. Can be any
331
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
332
+ # @param [Google::Apis::RequestOptions] options
333
+ # Request-specific options
334
+ #
335
+ # @yield [result, err] Result & error if block supplied
336
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::ListLunsResponse] parsed result object
337
+ # @yieldparam err [StandardError] error object if request failed
338
+ #
339
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::ListLunsResponse]
340
+ #
341
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
342
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
343
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
344
+ def list_project_location_luns(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
345
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/luns', options)
346
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::ListLunsResponse::Representation
347
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::ListLunsResponse
348
+ command.params['parent'] = parent unless parent.nil?
349
+ command.query['pageSize'] = page_size unless page_size.nil?
350
+ command.query['pageToken'] = page_token unless page_token.nil?
351
+ command.query['fields'] = fields unless fields.nil?
352
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
353
+ execute_or_queue_command(command, &block)
354
+ end
355
+
356
+ # Get details for a specific named Volume.
357
+ # @param [String] name
358
+ # Required. The name of the Volume to retrieve.
359
+ # @param [String] fields
360
+ # Selector specifying which fields to include in a partial response.
361
+ # @param [String] quota_user
362
+ # Available to use for quota purposes for server-side applications. Can be any
363
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
364
+ # @param [Google::Apis::RequestOptions] options
365
+ # Request-specific options
366
+ #
367
+ # @yield [result, err] Result & error if block supplied
368
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::Volume] parsed result object
369
+ # @yieldparam err [StandardError] error object if request failed
370
+ #
371
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::Volume]
372
+ #
373
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
374
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
375
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
376
+ def get_project_location_volume(name, fields: nil, quota_user: nil, options: nil, &block)
377
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
378
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::Volume::Representation
379
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::Volume
380
+ command.params['name'] = name unless name.nil?
381
+ command.query['fields'] = fields unless fields.nil?
382
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
383
+ execute_or_queue_command(command, &block)
384
+ end
385
+
386
+ # List the volumes for the specified project
387
+ # @param [String] parent
388
+ # Required. The location to list Volumes in.
389
+ # @param [Fixnum] page_size
390
+ # The maximum number of items to return.
391
+ # @param [String] page_token
392
+ # The next_page_token value returned from a previous List request, if any.
393
+ # @param [String] fields
394
+ # Selector specifying which fields to include in a partial response.
395
+ # @param [String] quota_user
396
+ # Available to use for quota purposes for server-side applications. Can be any
397
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
398
+ # @param [Google::Apis::RequestOptions] options
399
+ # Request-specific options
400
+ #
401
+ # @yield [result, err] Result & error if block supplied
402
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::ListVolumesResponse] parsed result object
403
+ # @yieldparam err [StandardError] error object if request failed
404
+ #
405
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::ListVolumesResponse]
406
+ #
407
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
408
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
409
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
410
+ def list_project_location_volumes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
411
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/volumes', options)
412
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::ListVolumesResponse::Representation
413
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::ListVolumesResponse
414
+ command.params['parent'] = parent unless parent.nil?
415
+ command.query['pageSize'] = page_size unless page_size.nil?
416
+ command.query['pageToken'] = page_token unless page_token.nil?
417
+ command.query['fields'] = fields unless fields.nil?
418
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
419
+ execute_or_queue_command(command, &block)
420
+ end
421
+
422
+ # Update certain parameters on a Volume.
423
+ # @param [String] name
424
+ # Output only. The name of this Volume.
425
+ # @param [Google::Apis::BaremetalsolutionV1alpha1::Volume] volume_object
426
+ # @param [String] update_mask
427
+ # The list of fields to update. The only currently supported field is `
428
+ # snapshot_reserved_space_percent`.
429
+ # @param [String] fields
430
+ # Selector specifying which fields to include in a partial response.
431
+ # @param [String] quota_user
432
+ # Available to use for quota purposes for server-side applications. Can be any
433
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
434
+ # @param [Google::Apis::RequestOptions] options
435
+ # Request-specific options
436
+ #
437
+ # @yield [result, err] Result & error if block supplied
438
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::Volume] parsed result object
439
+ # @yieldparam err [StandardError] error object if request failed
440
+ #
441
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::Volume]
442
+ #
443
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
444
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
445
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
446
+ def patch_project_location_volume(name, volume_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
447
+ command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
448
+ command.request_representation = Google::Apis::BaremetalsolutionV1alpha1::Volume::Representation
449
+ command.request_object = volume_object
450
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::Volume::Representation
451
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::Volume
452
+ command.params['name'] = name unless name.nil?
453
+ command.query['updateMask'] = update_mask unless update_mask.nil?
454
+ command.query['fields'] = fields unless fields.nil?
455
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
456
+ execute_or_queue_command(command, &block)
457
+ end
458
+
459
+ # Sets the specified snapshot schedule policy on the specified volume.
460
+ # @param [String] volume
461
+ # Required. Name of the volume to set snapshot schedule policy on.
462
+ # @param [Google::Apis::BaremetalsolutionV1alpha1::SetVolumeSnapshotSchedulePolicyRequest] set_volume_snapshot_schedule_policy_request_object
463
+ # @param [String] fields
464
+ # Selector specifying which fields to include in a partial response.
465
+ # @param [String] quota_user
466
+ # Available to use for quota purposes for server-side applications. Can be any
467
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
468
+ # @param [Google::Apis::RequestOptions] options
469
+ # Request-specific options
470
+ #
471
+ # @yield [result, err] Result & error if block supplied
472
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::SetVolumeSnapshotSchedulePolicyResponse] parsed result object
473
+ # @yieldparam err [StandardError] error object if request failed
474
+ #
475
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::SetVolumeSnapshotSchedulePolicyResponse]
476
+ #
477
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
478
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
479
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
480
+ def set_volume_snapshot_schedule_policy(volume, set_volume_snapshot_schedule_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
481
+ command = make_simple_command(:post, 'v1alpha1/{+volume}:setVolumeSnapshotSchedulePolicy', options)
482
+ command.request_representation = Google::Apis::BaremetalsolutionV1alpha1::SetVolumeSnapshotSchedulePolicyRequest::Representation
483
+ command.request_object = set_volume_snapshot_schedule_policy_request_object
484
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::SetVolumeSnapshotSchedulePolicyResponse::Representation
485
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::SetVolumeSnapshotSchedulePolicyResponse
486
+ command.params['volume'] = volume unless volume.nil?
487
+ command.query['fields'] = fields unless fields.nil?
488
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
489
+ execute_or_queue_command(command, &block)
490
+ end
491
+
492
+ # Create snapshot of the specified Volume
493
+ # @param [String] parent
494
+ # Required. The Volume containing the VolumeSnapshots.
495
+ # @param [Google::Apis::BaremetalsolutionV1alpha1::VolumeSnapshot] volume_snapshot_object
496
+ # @param [String] fields
497
+ # Selector specifying which fields to include in a partial response.
498
+ # @param [String] quota_user
499
+ # Available to use for quota purposes for server-side applications. Can be any
500
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
501
+ # @param [Google::Apis::RequestOptions] options
502
+ # Request-specific options
503
+ #
504
+ # @yield [result, err] Result & error if block supplied
505
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::VolumeSnapshot] parsed result object
506
+ # @yieldparam err [StandardError] error object if request failed
507
+ #
508
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::VolumeSnapshot]
509
+ #
510
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
511
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
512
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
513
+ def create_project_location_volume_snapshot(parent, volume_snapshot_object = nil, fields: nil, quota_user: nil, options: nil, &block)
514
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/snapshots', options)
515
+ command.request_representation = Google::Apis::BaremetalsolutionV1alpha1::VolumeSnapshot::Representation
516
+ command.request_object = volume_snapshot_object
517
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::VolumeSnapshot::Representation
518
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::VolumeSnapshot
519
+ command.params['parent'] = parent unless parent.nil?
520
+ command.query['fields'] = fields unless fields.nil?
521
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
522
+ execute_or_queue_command(command, &block)
523
+ end
524
+
525
+ # Delete specific named snapshot.
526
+ # @param [String] name
527
+ # Required. The name of the snapshot to delete.
528
+ # @param [String] fields
529
+ # Selector specifying which fields to include in a partial response.
530
+ # @param [String] quota_user
531
+ # Available to use for quota purposes for server-side applications. Can be any
532
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
533
+ # @param [Google::Apis::RequestOptions] options
534
+ # Request-specific options
535
+ #
536
+ # @yield [result, err] Result & error if block supplied
537
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::Empty] parsed result object
538
+ # @yieldparam err [StandardError] error object if request failed
539
+ #
540
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::Empty]
541
+ #
542
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
543
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
544
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
545
+ def delete_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
546
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
547
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::Empty::Representation
548
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::Empty
549
+ command.params['name'] = name unless name.nil?
550
+ command.query['fields'] = fields unless fields.nil?
551
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
552
+ execute_or_queue_command(command, &block)
553
+ end
554
+
555
+ # Get details for a specific named snapshot.
556
+ # @param [String] name
557
+ # Required. The name of the snapshot to retrieve.
558
+ # @param [String] fields
559
+ # Selector specifying which fields to include in a partial response.
560
+ # @param [String] quota_user
561
+ # Available to use for quota purposes for server-side applications. Can be any
562
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
563
+ # @param [Google::Apis::RequestOptions] options
564
+ # Request-specific options
565
+ #
566
+ # @yield [result, err] Result & error if block supplied
567
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::VolumeSnapshot] parsed result object
568
+ # @yieldparam err [StandardError] error object if request failed
569
+ #
570
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::VolumeSnapshot]
571
+ #
572
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
573
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
574
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
575
+ def get_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
576
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
577
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::VolumeSnapshot::Representation
578
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::VolumeSnapshot
579
+ command.params['name'] = name unless name.nil?
580
+ command.query['fields'] = fields unless fields.nil?
581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
582
+ execute_or_queue_command(command, &block)
583
+ end
584
+
585
+ # List the Snapshots for the specified Volume
586
+ # @param [String] parent
587
+ # Required. The Volume containing the VolumeSnapshots.
588
+ # @param [Fixnum] page_size
589
+ # The maximum number of items to return.
590
+ # @param [String] page_token
591
+ # The next_page_token value returned from a previous List request, if any.
592
+ # @param [String] fields
593
+ # Selector specifying which fields to include in a partial response.
594
+ # @param [String] quota_user
595
+ # Available to use for quota purposes for server-side applications. Can be any
596
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
597
+ # @param [Google::Apis::RequestOptions] options
598
+ # Request-specific options
599
+ #
600
+ # @yield [result, err] Result & error if block supplied
601
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::ListVolumeSnapshotsResponse] parsed result object
602
+ # @yieldparam err [StandardError] error object if request failed
603
+ #
604
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::ListVolumeSnapshotsResponse]
605
+ #
606
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
607
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
608
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
609
+ def list_project_location_volume_snapshots(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
610
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/snapshots', options)
611
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::ListVolumeSnapshotsResponse::Representation
612
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::ListVolumeSnapshotsResponse
613
+ command.params['parent'] = parent unless parent.nil?
614
+ command.query['pageSize'] = page_size unless page_size.nil?
615
+ command.query['pageToken'] = page_token unless page_token.nil?
616
+ command.query['fields'] = fields unless fields.nil?
617
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
618
+ execute_or_queue_command(command, &block)
619
+ end
620
+
621
+ # Restore a VolumeSnapshot.
622
+ # @param [String] name
623
+ # Required. Name of the VolumeSnapshot to restore.
624
+ # @param [Google::Apis::BaremetalsolutionV1alpha1::RestoreVolumeSnapshotRequest] restore_volume_snapshot_request_object
625
+ # @param [String] fields
626
+ # Selector specifying which fields to include in a partial response.
627
+ # @param [String] quota_user
628
+ # Available to use for quota purposes for server-side applications. Can be any
629
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
630
+ # @param [Google::Apis::RequestOptions] options
631
+ # Request-specific options
632
+ #
633
+ # @yield [result, err] Result & error if block supplied
634
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::Empty] parsed result object
635
+ # @yieldparam err [StandardError] error object if request failed
636
+ #
637
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::Empty]
638
+ #
639
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
640
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
641
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
642
+ def restore_volume_snapshot(name, restore_volume_snapshot_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
643
+ command = make_simple_command(:post, 'v1alpha1/{+name}:restore', options)
644
+ command.request_representation = Google::Apis::BaremetalsolutionV1alpha1::RestoreVolumeSnapshotRequest::Representation
645
+ command.request_object = restore_volume_snapshot_request_object
646
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::Empty::Representation
647
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::Empty
648
+ command.params['name'] = name unless name.nil?
649
+ command.query['fields'] = fields unless fields.nil?
650
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
651
+ execute_or_queue_command(command, &block)
652
+ end
653
+
654
+ # List the budget details to provision resources on a given project.
655
+ # @param [String] parent
656
+ # Required. The parent project containing the provisioning quotas.
657
+ # @param [Fixnum] page_size
658
+ # The maximum number of items to return.
659
+ # @param [String] page_token
660
+ # The next_page_token value returned from a previous List request, if any.
661
+ # @param [String] fields
662
+ # Selector specifying which fields to include in a partial response.
663
+ # @param [String] quota_user
664
+ # Available to use for quota purposes for server-side applications. Can be any
665
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
666
+ # @param [Google::Apis::RequestOptions] options
667
+ # Request-specific options
668
+ #
669
+ # @yield [result, err] Result & error if block supplied
670
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::ListProvisioningQuotasResponse] parsed result object
671
+ # @yieldparam err [StandardError] error object if request failed
672
+ #
673
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::ListProvisioningQuotasResponse]
674
+ #
675
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
676
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
677
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
678
+ def list_project_provisioning_quotas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
679
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/provisioningQuotas', options)
680
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::ListProvisioningQuotasResponse::Representation
681
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::ListProvisioningQuotasResponse
682
+ command.params['parent'] = parent unless parent.nil?
683
+ command.query['pageSize'] = page_size unless page_size.nil?
684
+ command.query['pageToken'] = page_token unless page_token.nil?
685
+ command.query['fields'] = fields unless fields.nil?
686
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
687
+ execute_or_queue_command(command, &block)
688
+ end
689
+
690
+ # Create a SnapshotSchedulePolicy.
691
+ # @param [String] parent
692
+ # Required. The parent project containing the SnapshotSchedulePolicy.
693
+ # @param [Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy] snapshot_schedule_policy_object
694
+ # @param [String] fields
695
+ # Selector specifying which fields to include in a partial response.
696
+ # @param [String] quota_user
697
+ # Available to use for quota purposes for server-side applications. Can be any
698
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
699
+ # @param [Google::Apis::RequestOptions] options
700
+ # Request-specific options
701
+ #
702
+ # @yield [result, err] Result & error if block supplied
703
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy] parsed result object
704
+ # @yieldparam err [StandardError] error object if request failed
705
+ #
706
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy]
707
+ #
708
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
709
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
710
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
711
+ def create_project_snapshot_schedule_policy(parent, snapshot_schedule_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
712
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/snapshotSchedulePolicies', options)
713
+ command.request_representation = Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy::Representation
714
+ command.request_object = snapshot_schedule_policy_object
715
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy::Representation
716
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy
717
+ command.params['parent'] = parent unless parent.nil?
718
+ command.query['fields'] = fields unless fields.nil?
719
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
720
+ execute_or_queue_command(command, &block)
721
+ end
722
+
723
+ # Delete removes named snapshot schedule policy
724
+ # @param [String] name
725
+ # Required. The name of the snapshot to delete.
726
+ # @param [String] fields
727
+ # Selector specifying which fields to include in a partial response.
728
+ # @param [String] quota_user
729
+ # Available to use for quota purposes for server-side applications. Can be any
730
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
731
+ # @param [Google::Apis::RequestOptions] options
732
+ # Request-specific options
733
+ #
734
+ # @yield [result, err] Result & error if block supplied
735
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::Empty] parsed result object
736
+ # @yieldparam err [StandardError] error object if request failed
737
+ #
738
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::Empty]
739
+ #
740
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
741
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
742
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
743
+ def delete_project_snapshot_schedule_policy(name, fields: nil, quota_user: nil, options: nil, &block)
744
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
745
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::Empty::Representation
746
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::Empty
747
+ command.params['name'] = name unless name.nil?
748
+ command.query['fields'] = fields unless fields.nil?
749
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
750
+ execute_or_queue_command(command, &block)
751
+ end
752
+
753
+ # Get details for a specific snapshot schedule policy
754
+ # @param [String] name
755
+ # Required. The name of the policy to retrieve.
756
+ # @param [String] fields
757
+ # Selector specifying which fields to include in a partial response.
758
+ # @param [String] quota_user
759
+ # Available to use for quota purposes for server-side applications. Can be any
760
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
761
+ # @param [Google::Apis::RequestOptions] options
762
+ # Request-specific options
763
+ #
764
+ # @yield [result, err] Result & error if block supplied
765
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy] parsed result object
766
+ # @yieldparam err [StandardError] error object if request failed
767
+ #
768
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy]
769
+ #
770
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
771
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
772
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
773
+ def get_project_snapshot_schedule_policy(name, fields: nil, quota_user: nil, options: nil, &block)
774
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
775
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy::Representation
776
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy
777
+ command.params['name'] = name unless name.nil?
778
+ command.query['fields'] = fields unless fields.nil?
779
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
780
+ execute_or_queue_command(command, &block)
781
+ end
782
+
783
+ # List the snapshot schedule policies for the specified project
784
+ # @param [String] parent
785
+ # Required. The parent project containing the Snapshot Schedule Policies.
786
+ # @param [Fixnum] page_size
787
+ # The maximum number of items to return.
788
+ # @param [String] page_token
789
+ # The next_page_token value returned from a previous List request, if any.
790
+ # @param [String] fields
791
+ # Selector specifying which fields to include in a partial response.
792
+ # @param [String] quota_user
793
+ # Available to use for quota purposes for server-side applications. Can be any
794
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
795
+ # @param [Google::Apis::RequestOptions] options
796
+ # Request-specific options
797
+ #
798
+ # @yield [result, err] Result & error if block supplied
799
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::ListSnapshotSchedulePoliciesResponse] parsed result object
800
+ # @yieldparam err [StandardError] error object if request failed
801
+ #
802
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::ListSnapshotSchedulePoliciesResponse]
803
+ #
804
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
805
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
806
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
807
+ def list_project_snapshot_schedule_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
808
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/snapshotSchedulePolicies', options)
809
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::ListSnapshotSchedulePoliciesResponse::Representation
810
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::ListSnapshotSchedulePoliciesResponse
811
+ command.params['parent'] = parent unless parent.nil?
812
+ command.query['pageSize'] = page_size unless page_size.nil?
813
+ command.query['pageToken'] = page_token unless page_token.nil?
814
+ command.query['fields'] = fields unless fields.nil?
815
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
816
+ execute_or_queue_command(command, &block)
817
+ end
818
+
819
+ # Update a SnapshotSchedulePolicy.
820
+ # @param [String] name
821
+ # Output only. The name of this SnapshotSchedulePolicy.
822
+ # @param [Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy] snapshot_schedule_policy_object
823
+ # @param [String] update_mask
824
+ # The list of fields to update.
825
+ # @param [String] fields
826
+ # Selector specifying which fields to include in a partial response.
827
+ # @param [String] quota_user
828
+ # Available to use for quota purposes for server-side applications. Can be any
829
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
830
+ # @param [Google::Apis::RequestOptions] options
831
+ # Request-specific options
832
+ #
833
+ # @yield [result, err] Result & error if block supplied
834
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy] parsed result object
835
+ # @yieldparam err [StandardError] error object if request failed
836
+ #
837
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy]
838
+ #
839
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
840
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
841
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
842
+ def patch_project_snapshot_schedule_policy(name, snapshot_schedule_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
843
+ command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
844
+ command.request_representation = Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy::Representation
845
+ command.request_object = snapshot_schedule_policy_object
846
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy::Representation
847
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy
848
+ command.params['name'] = name unless name.nil?
849
+ command.query['updateMask'] = update_mask unless update_mask.nil?
850
+ command.query['fields'] = fields unless fields.nil?
851
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
852
+ execute_or_queue_command(command, &block)
853
+ end
854
+
855
+ # Create a new SSH key registration in the specified project.
856
+ # @param [String] parent
857
+ # Required. The parent project containing the SSH keys.
858
+ # @param [Google::Apis::BaremetalsolutionV1alpha1::SshKey] ssh_key_object
859
+ # @param [String] ssh_key_id
860
+ # Required. The ID to use for the key, which will become the final component of
861
+ # the key's resource name. This value should be match the regex: [a-zA-Z0-9@.\-_]
862
+ # `1,64`
863
+ # @param [String] fields
864
+ # Selector specifying which fields to include in a partial response.
865
+ # @param [String] quota_user
866
+ # Available to use for quota purposes for server-side applications. Can be any
867
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
868
+ # @param [Google::Apis::RequestOptions] options
869
+ # Request-specific options
870
+ #
871
+ # @yield [result, err] Result & error if block supplied
872
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::SshKey] parsed result object
873
+ # @yieldparam err [StandardError] error object if request failed
874
+ #
875
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::SshKey]
876
+ #
877
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
878
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
879
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
880
+ def create_project_ssh_key(parent, ssh_key_object = nil, ssh_key_id: nil, fields: nil, quota_user: nil, options: nil, &block)
881
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/sshKeys', options)
882
+ command.request_representation = Google::Apis::BaremetalsolutionV1alpha1::SshKey::Representation
883
+ command.request_object = ssh_key_object
884
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::SshKey::Representation
885
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::SshKey
886
+ command.params['parent'] = parent unless parent.nil?
887
+ command.query['sshKeyId'] = ssh_key_id unless ssh_key_id.nil?
888
+ command.query['fields'] = fields unless fields.nil?
889
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
890
+ execute_or_queue_command(command, &block)
891
+ end
892
+
893
+ # Delete an SSH key registration in the specified project.
894
+ # @param [String] name
895
+ # Required. The name of the SSH key to delete.
896
+ # @param [String] fields
897
+ # Selector specifying which fields to include in a partial response.
898
+ # @param [String] quota_user
899
+ # Available to use for quota purposes for server-side applications. Can be any
900
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
901
+ # @param [Google::Apis::RequestOptions] options
902
+ # Request-specific options
903
+ #
904
+ # @yield [result, err] Result & error if block supplied
905
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::Empty] parsed result object
906
+ # @yieldparam err [StandardError] error object if request failed
907
+ #
908
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::Empty]
909
+ #
910
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
911
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
912
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
913
+ def delete_project_ssh_key(name, fields: nil, quota_user: nil, options: nil, &block)
914
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
915
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::Empty::Representation
916
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::Empty
917
+ command.params['name'] = name unless name.nil?
918
+ command.query['fields'] = fields unless fields.nil?
919
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
920
+ execute_or_queue_command(command, &block)
921
+ end
922
+
923
+ # List the public SSH keys registered for the specified project.
924
+ # @param [String] parent
925
+ # Required. The parent project containing the SSH keys.
926
+ # @param [Fixnum] page_size
927
+ # The maximum number of items to return.
928
+ # @param [String] page_token
929
+ # The next_page_token value returned from a previous List request, if any.
930
+ # @param [String] fields
931
+ # Selector specifying which fields to include in a partial response.
932
+ # @param [String] quota_user
933
+ # Available to use for quota purposes for server-side applications. Can be any
934
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
935
+ # @param [Google::Apis::RequestOptions] options
936
+ # Request-specific options
937
+ #
938
+ # @yield [result, err] Result & error if block supplied
939
+ # @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::ListSshKeysResponse] parsed result object
940
+ # @yieldparam err [StandardError] error object if request failed
941
+ #
942
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::ListSshKeysResponse]
943
+ #
944
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
945
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
946
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
947
+ def list_project_ssh_keys(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
948
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/sshKeys', options)
949
+ command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::ListSshKeysResponse::Representation
950
+ command.response_class = Google::Apis::BaremetalsolutionV1alpha1::ListSshKeysResponse
951
+ command.params['parent'] = parent unless parent.nil?
952
+ command.query['pageSize'] = page_size unless page_size.nil?
953
+ command.query['pageToken'] = page_token unless page_token.nil?
954
+ command.query['fields'] = fields unless fields.nil?
955
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
956
+ execute_or_queue_command(command, &block)
957
+ end
958
+
959
+ protected
960
+
961
+ def apply_command_defaults(command)
962
+ command.query['key'] = key unless key.nil?
963
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
964
+ end
965
+ end
966
+ end
967
+ end
968
+ end