google-apis-baremetalsolution_v2 0.2.0 → 0.3.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.
@@ -123,7 +123,7 @@ module Google
123
123
  execute_or_queue_command(command, &block)
124
124
  end
125
125
 
126
- # Gets details of a single Instance.
126
+ # Get details about a single server.
127
127
  # @param [String] name
128
128
  # Required. Name of the resource.
129
129
  # @param [String] fields
@@ -153,48 +153,7 @@ module Google
153
153
  execute_or_queue_command(command, &block)
154
154
  end
155
155
 
156
- # Gets the access control policy for a resource. Returns an empty policy if the
157
- # resource exists and does not have a policy set.
158
- # @param [String] resource
159
- # REQUIRED: The resource for which the policy is being requested. See the
160
- # operation documentation for the appropriate value for this field.
161
- # @param [Fixnum] options_requested_policy_version
162
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
163
- # 3. Requests specifying an invalid value will be rejected. Requests for
164
- # policies with any conditional bindings must specify version 3. Policies
165
- # without any conditional bindings may specify any valid value or leave the
166
- # field unset. To learn which resources support conditions in their IAM policies,
167
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
168
- # resource-policies).
169
- # @param [String] fields
170
- # Selector specifying which fields to include in a partial response.
171
- # @param [String] quota_user
172
- # Available to use for quota purposes for server-side applications. Can be any
173
- # arbitrary string assigned to a user, but should not exceed 40 characters.
174
- # @param [Google::Apis::RequestOptions] options
175
- # Request-specific options
176
- #
177
- # @yield [result, err] Result & error if block supplied
178
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::Policy] parsed result object
179
- # @yieldparam err [StandardError] error object if request failed
180
- #
181
- # @return [Google::Apis::BaremetalsolutionV2::Policy]
182
- #
183
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
184
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
185
- # @raise [Google::Apis::AuthorizationError] Authorization is required
186
- def get_project_location_instance_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
187
- command = make_simple_command(:get, 'v2/{+resource}:getIamPolicy', options)
188
- command.response_representation = Google::Apis::BaremetalsolutionV2::Policy::Representation
189
- command.response_class = Google::Apis::BaremetalsolutionV2::Policy
190
- command.params['resource'] = resource unless resource.nil?
191
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
192
- command.query['fields'] = fields unless fields.nil?
193
- command.query['quotaUser'] = quota_user unless quota_user.nil?
194
- execute_or_queue_command(command, &block)
195
- end
196
-
197
- # Lists Instances in a given project and location.
156
+ # List servers in a given project and location.
198
157
  # @param [String] parent
199
158
  # Required. Parent value for ListInstancesRequest.
200
159
  # @param [String] filter
@@ -203,9 +162,9 @@ module Google
203
162
  # Hint for how to order the results.
204
163
  # @param [Fixnum] page_size
205
164
  # Requested page size. Server may return fewer items than requested. If
206
- # unspecified, server will pick an appropriate default.
165
+ # unspecified, the server will pick an appropriate default.
207
166
  # @param [String] page_token
208
- # A token identifying a page of results the server should return.
167
+ # A token identifying a page of results from the server.
209
168
  # @param [String] fields
210
169
  # Selector specifying which fields to include in a partial response.
211
170
  # @param [String] quota_user
@@ -237,231 +196,7 @@ module Google
237
196
  execute_or_queue_command(command, &block)
238
197
  end
239
198
 
240
- # Sets the access control policy on the specified resource. Replaces any
241
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
242
- # PERMISSION_DENIED` errors.
243
- # @param [String] resource
244
- # REQUIRED: The resource for which the policy is being specified. See the
245
- # operation documentation for the appropriate value for this field.
246
- # @param [Google::Apis::BaremetalsolutionV2::SetIamPolicyRequest] set_iam_policy_request_object
247
- # @param [String] fields
248
- # Selector specifying which fields to include in a partial response.
249
- # @param [String] quota_user
250
- # Available to use for quota purposes for server-side applications. Can be any
251
- # arbitrary string assigned to a user, but should not exceed 40 characters.
252
- # @param [Google::Apis::RequestOptions] options
253
- # Request-specific options
254
- #
255
- # @yield [result, err] Result & error if block supplied
256
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::Policy] parsed result object
257
- # @yieldparam err [StandardError] error object if request failed
258
- #
259
- # @return [Google::Apis::BaremetalsolutionV2::Policy]
260
- #
261
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
262
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
263
- # @raise [Google::Apis::AuthorizationError] Authorization is required
264
- def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
265
- command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
266
- command.request_representation = Google::Apis::BaremetalsolutionV2::SetIamPolicyRequest::Representation
267
- command.request_object = set_iam_policy_request_object
268
- command.response_representation = Google::Apis::BaremetalsolutionV2::Policy::Representation
269
- command.response_class = Google::Apis::BaremetalsolutionV2::Policy
270
- command.params['resource'] = resource unless resource.nil?
271
- command.query['fields'] = fields unless fields.nil?
272
- command.query['quotaUser'] = quota_user unless quota_user.nil?
273
- execute_or_queue_command(command, &block)
274
- end
275
-
276
- # Returns permissions that a caller has on the specified resource. If the
277
- # resource does not exist, this will return an empty set of permissions, not a `
278
- # NOT_FOUND` error. Note: This operation is designed to be used for building
279
- # permission-aware UIs and command-line tools, not for authorization checking.
280
- # This operation may "fail open" without warning.
281
- # @param [String] resource
282
- # REQUIRED: The resource for which the policy detail is being requested. See the
283
- # operation documentation for the appropriate value for this field.
284
- # @param [Google::Apis::BaremetalsolutionV2::TestIamPermissionsRequest] test_iam_permissions_request_object
285
- # @param [String] fields
286
- # Selector specifying which fields to include in a partial response.
287
- # @param [String] quota_user
288
- # Available to use for quota purposes for server-side applications. Can be any
289
- # arbitrary string assigned to a user, but should not exceed 40 characters.
290
- # @param [Google::Apis::RequestOptions] options
291
- # Request-specific options
292
- #
293
- # @yield [result, err] Result & error if block supplied
294
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::TestIamPermissionsResponse] parsed result object
295
- # @yieldparam err [StandardError] error object if request failed
296
- #
297
- # @return [Google::Apis::BaremetalsolutionV2::TestIamPermissionsResponse]
298
- #
299
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
300
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
301
- # @raise [Google::Apis::AuthorizationError] Authorization is required
302
- def test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
303
- command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
304
- command.request_representation = Google::Apis::BaremetalsolutionV2::TestIamPermissionsRequest::Representation
305
- command.request_object = test_iam_permissions_request_object
306
- command.response_representation = Google::Apis::BaremetalsolutionV2::TestIamPermissionsResponse::Representation
307
- command.response_class = Google::Apis::BaremetalsolutionV2::TestIamPermissionsResponse
308
- command.params['resource'] = resource unless resource.nil?
309
- command.query['fields'] = fields unless fields.nil?
310
- command.query['quotaUser'] = quota_user unless quota_user.nil?
311
- execute_or_queue_command(command, &block)
312
- end
313
-
314
- # Starts asynchronous cancellation on a long-running operation. The server makes
315
- # a best effort to cancel the operation, but success is not guaranteed. If the
316
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
317
- # Clients can use Operations.GetOperation or other methods to check whether the
318
- # cancellation succeeded or whether the operation completed despite cancellation.
319
- # On successful cancellation, the operation is not deleted; instead, it becomes
320
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
321
- # corresponding to `Code.CANCELLED`.
322
- # @param [String] name
323
- # The name of the operation resource to be cancelled.
324
- # @param [Google::Apis::BaremetalsolutionV2::CancelOperationRequest] cancel_operation_request_object
325
- # @param [String] fields
326
- # Selector specifying which fields to include in a partial response.
327
- # @param [String] quota_user
328
- # Available to use for quota purposes for server-side applications. Can be any
329
- # arbitrary string assigned to a user, but should not exceed 40 characters.
330
- # @param [Google::Apis::RequestOptions] options
331
- # Request-specific options
332
- #
333
- # @yield [result, err] Result & error if block supplied
334
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::Empty] parsed result object
335
- # @yieldparam err [StandardError] error object if request failed
336
- #
337
- # @return [Google::Apis::BaremetalsolutionV2::Empty]
338
- #
339
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
340
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
341
- # @raise [Google::Apis::AuthorizationError] Authorization is required
342
- def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
343
- command = make_simple_command(:post, 'v2/{+name}:cancel', options)
344
- command.request_representation = Google::Apis::BaremetalsolutionV2::CancelOperationRequest::Representation
345
- command.request_object = cancel_operation_request_object
346
- command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation
347
- command.response_class = Google::Apis::BaremetalsolutionV2::Empty
348
- command.params['name'] = name unless name.nil?
349
- command.query['fields'] = fields unless fields.nil?
350
- command.query['quotaUser'] = quota_user unless quota_user.nil?
351
- execute_or_queue_command(command, &block)
352
- end
353
-
354
- # Deletes a long-running operation. This method indicates that the client is no
355
- # longer interested in the operation result. It does not cancel the operation.
356
- # If the server doesn't support this method, it returns `google.rpc.Code.
357
- # UNIMPLEMENTED`.
358
- # @param [String] name
359
- # The name of the operation resource to be deleted.
360
- # @param [String] fields
361
- # Selector specifying which fields to include in a partial response.
362
- # @param [String] quota_user
363
- # Available to use for quota purposes for server-side applications. Can be any
364
- # arbitrary string assigned to a user, but should not exceed 40 characters.
365
- # @param [Google::Apis::RequestOptions] options
366
- # Request-specific options
367
- #
368
- # @yield [result, err] Result & error if block supplied
369
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::Empty] parsed result object
370
- # @yieldparam err [StandardError] error object if request failed
371
- #
372
- # @return [Google::Apis::BaremetalsolutionV2::Empty]
373
- #
374
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
375
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
376
- # @raise [Google::Apis::AuthorizationError] Authorization is required
377
- def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
378
- command = make_simple_command(:delete, 'v2/{+name}', options)
379
- command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation
380
- command.response_class = Google::Apis::BaremetalsolutionV2::Empty
381
- command.params['name'] = name unless name.nil?
382
- command.query['fields'] = fields unless fields.nil?
383
- command.query['quotaUser'] = quota_user unless quota_user.nil?
384
- execute_or_queue_command(command, &block)
385
- end
386
-
387
- # Gets the latest state of a long-running operation. Clients can use this method
388
- # to poll the operation result at intervals as recommended by the API service.
389
- # @param [String] name
390
- # The name of the operation resource.
391
- # @param [String] fields
392
- # Selector specifying which fields to include in a partial response.
393
- # @param [String] quota_user
394
- # Available to use for quota purposes for server-side applications. Can be any
395
- # arbitrary string assigned to a user, but should not exceed 40 characters.
396
- # @param [Google::Apis::RequestOptions] options
397
- # Request-specific options
398
- #
399
- # @yield [result, err] Result & error if block supplied
400
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
401
- # @yieldparam err [StandardError] error object if request failed
402
- #
403
- # @return [Google::Apis::BaremetalsolutionV2::Operation]
404
- #
405
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
406
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
407
- # @raise [Google::Apis::AuthorizationError] Authorization is required
408
- def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
409
- command = make_simple_command(:get, 'v2/{+name}', options)
410
- command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
411
- command.response_class = Google::Apis::BaremetalsolutionV2::Operation
412
- command.params['name'] = name unless name.nil?
413
- command.query['fields'] = fields unless fields.nil?
414
- command.query['quotaUser'] = quota_user unless quota_user.nil?
415
- execute_or_queue_command(command, &block)
416
- end
417
-
418
- # Lists operations that match the specified filter in the request. If the server
419
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
420
- # binding allows API services to override the binding to use different resource
421
- # name schemes, such as `users/*/operations`. To override the binding, API
422
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
423
- # service configuration. For backwards compatibility, the default name includes
424
- # the operations collection id, however overriding users must ensure the name
425
- # binding is the parent resource, without the operations collection id.
426
- # @param [String] name
427
- # The name of the operation's parent resource.
428
- # @param [String] filter
429
- # The standard list filter.
430
- # @param [Fixnum] page_size
431
- # The standard list page size.
432
- # @param [String] page_token
433
- # The standard list page token.
434
- # @param [String] fields
435
- # Selector specifying which fields to include in a partial response.
436
- # @param [String] quota_user
437
- # Available to use for quota purposes for server-side applications. Can be any
438
- # arbitrary string assigned to a user, but should not exceed 40 characters.
439
- # @param [Google::Apis::RequestOptions] options
440
- # Request-specific options
441
- #
442
- # @yield [result, err] Result & error if block supplied
443
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::ListOperationsResponse] parsed result object
444
- # @yieldparam err [StandardError] error object if request failed
445
- #
446
- # @return [Google::Apis::BaremetalsolutionV2::ListOperationsResponse]
447
- #
448
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
449
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
450
- # @raise [Google::Apis::AuthorizationError] Authorization is required
451
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
452
- command = make_simple_command(:get, 'v2/{+name}/operations', options)
453
- command.response_representation = Google::Apis::BaremetalsolutionV2::ListOperationsResponse::Representation
454
- command.response_class = Google::Apis::BaremetalsolutionV2::ListOperationsResponse
455
- command.params['name'] = name unless name.nil?
456
- command.query['filter'] = filter unless filter.nil?
457
- command.query['pageSize'] = page_size unless page_size.nil?
458
- command.query['pageToken'] = page_token unless page_token.nil?
459
- command.query['fields'] = fields unless fields.nil?
460
- command.query['quotaUser'] = quota_user unless quota_user.nil?
461
- execute_or_queue_command(command, &block)
462
- end
463
-
464
- # Gets details of a single Volume.
199
+ # Get details of a single storage lun.
465
200
  # @param [String] name
466
201
  # Required. Name of the resource.
467
202
  # @param [String] fields
@@ -473,36 +208,36 @@ module Google
473
208
  # Request-specific options
474
209
  #
475
210
  # @yield [result, err] Result & error if block supplied
476
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::Volume] parsed result object
211
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Lun] parsed result object
477
212
  # @yieldparam err [StandardError] error object if request failed
478
213
  #
479
- # @return [Google::Apis::BaremetalsolutionV2::Volume]
214
+ # @return [Google::Apis::BaremetalsolutionV2::Lun]
480
215
  #
481
216
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
482
217
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
483
218
  # @raise [Google::Apis::AuthorizationError] Authorization is required
484
- def get_project_location_volume(name, fields: nil, quota_user: nil, options: nil, &block)
219
+ def get_project_location_volume_lun(name, fields: nil, quota_user: nil, options: nil, &block)
485
220
  command = make_simple_command(:get, 'v2/{+name}', options)
486
- command.response_representation = Google::Apis::BaremetalsolutionV2::Volume::Representation
487
- command.response_class = Google::Apis::BaremetalsolutionV2::Volume
221
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Lun::Representation
222
+ command.response_class = Google::Apis::BaremetalsolutionV2::Lun
488
223
  command.params['name'] = name unless name.nil?
489
224
  command.query['fields'] = fields unless fields.nil?
490
225
  command.query['quotaUser'] = quota_user unless quota_user.nil?
491
226
  execute_or_queue_command(command, &block)
492
227
  end
493
228
 
494
- # Lists Volumes in a given project and location.
229
+ # List storage volume luns for given storage volume.
495
230
  # @param [String] parent
496
- # Required. Parent value for ListVolumesRequest.
231
+ # Required. Parent value for ListLunsRequest.
497
232
  # @param [String] filter
498
233
  # Filtering results.
499
234
  # @param [String] order_by
500
235
  # Hint for how to order the results.
501
236
  # @param [Fixnum] page_size
502
- # Requested page size. Server may return fewer items than requested. If
237
+ # Requested page size. The server might return fewer items than requested. If
503
238
  # unspecified, server will pick an appropriate default.
504
239
  # @param [String] page_token
505
- # A token identifying a page of results the server should return.
240
+ # A token identifying a page of results from the server.
506
241
  # @param [String] fields
507
242
  # Selector specifying which fields to include in a partial response.
508
243
  # @param [String] quota_user
@@ -512,18 +247,18 @@ module Google
512
247
  # Request-specific options
513
248
  #
514
249
  # @yield [result, err] Result & error if block supplied
515
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::ListVolumesResponse] parsed result object
250
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::ListLunsResponse] parsed result object
516
251
  # @yieldparam err [StandardError] error object if request failed
517
252
  #
518
- # @return [Google::Apis::BaremetalsolutionV2::ListVolumesResponse]
253
+ # @return [Google::Apis::BaremetalsolutionV2::ListLunsResponse]
519
254
  #
520
255
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
521
256
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
522
257
  # @raise [Google::Apis::AuthorizationError] Authorization is required
523
- def list_project_location_volumes(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
524
- command = make_simple_command(:get, 'v2/{+parent}/volumes', options)
525
- command.response_representation = Google::Apis::BaremetalsolutionV2::ListVolumesResponse::Representation
526
- command.response_class = Google::Apis::BaremetalsolutionV2::ListVolumesResponse
258
+ def list_project_location_volume_luns(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
259
+ command = make_simple_command(:get, 'v2/{+parent}/luns', options)
260
+ command.response_representation = Google::Apis::BaremetalsolutionV2::ListLunsResponse::Representation
261
+ command.response_class = Google::Apis::BaremetalsolutionV2::ListLunsResponse
527
262
  command.params['parent'] = parent unless parent.nil?
528
263
  command.query['filter'] = filter unless filter.nil?
529
264
  command.query['orderBy'] = order_by unless order_by.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-baremetalsolution_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-30 00:00:00.000000000 Z
11
+ date: 2021-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-baremetalsolution_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.2.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.3.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-baremetalsolution_v2
63
63
  post_install_message:
64
64
  rdoc_options: []