google-apis-baremetalsolution_v2 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82cea9f6666d6b8e3418a950b9bfa3442bea929a86a2fe63c0bdf337e1594d34
4
- data.tar.gz: b263e5349b5a53fcc24bb0336808bdadb50a160e3635c7abb7961a655051f7b0
3
+ metadata.gz: 2e0c3f6f54b3d00a5b0bb74ef2af973e6c9056e496b39cee013aa94f167aab3b
4
+ data.tar.gz: f9a0442643ddae4ccac0a5ce6eb392fcab135a28fd338f5ef7bbae260c93b421
5
5
  SHA512:
6
- metadata.gz: 540c874f76c7d6313f02a2ddfde04722d897b2b24b80e676d60c1b674e3346101b631d4bd896404043e9504702193dc5576aa1c74836611b83c686ae5f2d3e31
7
- data.tar.gz: ffd31fde978f3dfcb66c5d2257ad0baeebda701d2619d8c87d41a61d48000b3cb206312c61e34e306ca07210b37119f6175f3ae49c617b455fb76422af104002
6
+ metadata.gz: 18df956a4ef577fa1a40edd4321cc1c4e85591fb6cfdc9b9967d5e897320ad185e7707141c768391e6d310da9b276db3efcbdb95cb330d29c2e84f79e4290d3a
7
+ data.tar.gz: 788016709c881e6c037584f4210499b97b99cdb7b42b692fd54814111475748354605e301ac003040749370e026e92d78fd459cffa8ffa0dd5ce523d5d1bb0bc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.2.0 (2021-08-26)
4
+
5
+ * Regenerated from discovery document revision 20210802
6
+
3
7
  ### v0.1.0 (2021-08-02)
4
8
 
5
9
  * Regenerated from discovery document revision 20210706
@@ -331,6 +331,37 @@ module Google
331
331
  end
332
332
  end
333
333
 
334
+ # Message for response to listing Volumes.
335
+ class ListVolumesResponse
336
+ include Google::Apis::Core::Hashable
337
+
338
+ # A token identifying a page of results the server should return.
339
+ # Corresponds to the JSON property `nextPageToken`
340
+ # @return [String]
341
+ attr_accessor :next_page_token
342
+
343
+ # Locations that could not be reached.
344
+ # Corresponds to the JSON property `unreachable`
345
+ # @return [Array<String>]
346
+ attr_accessor :unreachable
347
+
348
+ # The list of Volume.
349
+ # Corresponds to the JSON property `volumes`
350
+ # @return [Array<Google::Apis::BaremetalsolutionV2::Volume>]
351
+ attr_accessor :volumes
352
+
353
+ def initialize(**args)
354
+ update!(**args)
355
+ end
356
+
357
+ # Update properties of this object
358
+ def update!(**args)
359
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
360
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
361
+ @volumes = args[:volumes] if args.key?(:volumes)
362
+ end
363
+ end
364
+
334
365
  # A resource that represents Google Cloud Platform location.
335
366
  class Location
336
367
  include Google::Apis::Core::Hashable
@@ -415,6 +446,11 @@ module Google
415
446
  # @return [String]
416
447
  attr_accessor :state
417
448
 
449
+ # The storage type of this Lun.
450
+ # Corresponds to the JSON property `storageType`
451
+ # @return [String]
452
+ attr_accessor :storage_type
453
+
418
454
  # The storage volume that this Lun is attached to.
419
455
  # Corresponds to the JSON property `storageVolume`
420
456
  # @return [String]
@@ -432,6 +468,7 @@ module Google
432
468
  @shared = args[:shared] if args.key?(:shared)
433
469
  @size_gb = args[:size_gb] if args.key?(:size_gb)
434
470
  @state = args[:state] if args.key?(:state)
471
+ @storage_type = args[:storage_type] if args.key?(:storage_type)
435
472
  @storage_volume = args[:storage_volume] if args.key?(:storage_volume)
436
473
  end
437
474
  end
@@ -723,6 +760,40 @@ module Google
723
760
  end
724
761
  end
725
762
 
763
+ # Details about snapshot space reservation and usage on the Volume.
764
+ class SnapshotReservationDetail
765
+ include Google::Apis::Core::Hashable
766
+
767
+ # The space on this Volume reserved for snapshotsk, provided in GiB.
768
+ # Corresponds to the JSON property `reservedSpaceGib`
769
+ # @return [Fixnum]
770
+ attr_accessor :reserved_space_gib
771
+
772
+ # The amount, in GiB, of space available in this Volume's reserved snapshot
773
+ # space.
774
+ # Corresponds to the JSON property `reservedSpaceRemainingGib`
775
+ # @return [Fixnum]
776
+ attr_accessor :reserved_space_remaining_gib
777
+
778
+ # The percent of reserved snapshot space on this Volume that is actually used by
779
+ # snapshot copies. This may be higher than 100% if snapshot copies are occupying
780
+ # more space than has been reserved on the Volume.
781
+ # Corresponds to the JSON property `reservedSpaceUsedPercent`
782
+ # @return [Fixnum]
783
+ attr_accessor :reserved_space_used_percent
784
+
785
+ def initialize(**args)
786
+ update!(**args)
787
+ end
788
+
789
+ # Update properties of this object
790
+ def update!(**args)
791
+ @reserved_space_gib = args[:reserved_space_gib] if args.key?(:reserved_space_gib)
792
+ @reserved_space_remaining_gib = args[:reserved_space_remaining_gib] if args.key?(:reserved_space_remaining_gib)
793
+ @reserved_space_used_percent = args[:reserved_space_used_percent] if args.key?(:reserved_space_used_percent)
794
+ end
795
+ end
796
+
726
797
  # The `Status` type defines a logical error model that is suitable for different
727
798
  # programming environments, including REST APIs and RPC APIs. It is used by [
728
799
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -801,6 +872,74 @@ module Google
801
872
  @permissions = args[:permissions] if args.key?(:permissions)
802
873
  end
803
874
  end
875
+
876
+ # A storage Volume.
877
+ class Volume
878
+ include Google::Apis::Core::Hashable
879
+
880
+ # The size, in GiB, that this Volume has expanded as a result of an auto grow
881
+ # policy. In the absence of auto-grow, the value is 0.
882
+ # Corresponds to the JSON property `autoGrownSizeGib`
883
+ # @return [Fixnum]
884
+ attr_accessor :auto_grown_size_gib
885
+
886
+ # The current size of this Volume, in GiB, including space reserved for
887
+ # snapshots. This size may be different than the requested size if the Volume
888
+ # has been configured with auto grow or auto shrink.
889
+ # Corresponds to the JSON property `currentSizeGib`
890
+ # @return [Fixnum]
891
+ attr_accessor :current_size_gib
892
+
893
+ # Output only. The resource name of this `Volume`. Resource names are schemeless
894
+ # URIs that follow the conventions in https://cloud.google.com/apis/design/
895
+ # resource_names. Format: `projects/`project`/locations/`location`/volumes/`
896
+ # volume``
897
+ # Corresponds to the JSON property `name`
898
+ # @return [String]
899
+ attr_accessor :name
900
+
901
+ # The space remaining in the Volume for new LUNs, in GiB, excluding space
902
+ # reserved for snapshots.
903
+ # Corresponds to the JSON property `remainingSpaceGib`
904
+ # @return [Fixnum]
905
+ attr_accessor :remaining_space_gib
906
+
907
+ # The requested size of this Volume, in GiB.
908
+ # Corresponds to the JSON property `requestedSizeGib`
909
+ # @return [Fixnum]
910
+ attr_accessor :requested_size_gib
911
+
912
+ # Details about snapshot space reservation and usage on the Volume.
913
+ # Corresponds to the JSON property `snapshotReservationDetail`
914
+ # @return [Google::Apis::BaremetalsolutionV2::SnapshotReservationDetail]
915
+ attr_accessor :snapshot_reservation_detail
916
+
917
+ # The state of this Volume.
918
+ # Corresponds to the JSON property `state`
919
+ # @return [String]
920
+ attr_accessor :state
921
+
922
+ # The storage type of this Volume.
923
+ # Corresponds to the JSON property `storageType`
924
+ # @return [String]
925
+ attr_accessor :storage_type
926
+
927
+ def initialize(**args)
928
+ update!(**args)
929
+ end
930
+
931
+ # Update properties of this object
932
+ def update!(**args)
933
+ @auto_grown_size_gib = args[:auto_grown_size_gib] if args.key?(:auto_grown_size_gib)
934
+ @current_size_gib = args[:current_size_gib] if args.key?(:current_size_gib)
935
+ @name = args[:name] if args.key?(:name)
936
+ @remaining_space_gib = args[:remaining_space_gib] if args.key?(:remaining_space_gib)
937
+ @requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib)
938
+ @snapshot_reservation_detail = args[:snapshot_reservation_detail] if args.key?(:snapshot_reservation_detail)
939
+ @state = args[:state] if args.key?(:state)
940
+ @storage_type = args[:storage_type] if args.key?(:storage_type)
941
+ end
942
+ end
804
943
  end
805
944
  end
806
945
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BaremetalsolutionV2
18
18
  # Version of the google-apis-baremetalsolution_v2 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210706"
25
+ REVISION = "20210802"
26
26
  end
27
27
  end
28
28
  end
@@ -70,6 +70,12 @@ module Google
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
+ class ListVolumesResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
73
79
  class Location
74
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
81
 
@@ -112,6 +118,12 @@ module Google
112
118
  include Google::Apis::Core::JsonObjectSupport
113
119
  end
114
120
 
121
+ class SnapshotReservationDetail
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
115
127
  class Status
116
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
129
 
@@ -130,6 +142,12 @@ module Google
130
142
  include Google::Apis::Core::JsonObjectSupport
131
143
  end
132
144
 
145
+ class Volume
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
133
151
  class Binding
134
152
  # @private
135
153
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -207,6 +225,16 @@ module Google
207
225
  end
208
226
  end
209
227
 
228
+ class ListVolumesResponse
229
+ # @private
230
+ class Representation < Google::Apis::Core::JsonRepresentation
231
+ property :next_page_token, as: 'nextPageToken'
232
+ collection :unreachable, as: 'unreachable'
233
+ collection :volumes, as: 'volumes', class: Google::Apis::BaremetalsolutionV2::Volume, decorator: Google::Apis::BaremetalsolutionV2::Volume::Representation
234
+
235
+ end
236
+ end
237
+
210
238
  class Location
211
239
  # @private
212
240
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -227,6 +255,7 @@ module Google
227
255
  property :shared, as: 'shared'
228
256
  property :size_gb, :numeric_string => true, as: 'sizeGb'
229
257
  property :state, as: 'state'
258
+ property :storage_type, as: 'storageType'
230
259
  property :storage_volume, as: 'storageVolume'
231
260
  end
232
261
  end
@@ -284,6 +313,15 @@ module Google
284
313
  end
285
314
  end
286
315
 
316
+ class SnapshotReservationDetail
317
+ # @private
318
+ class Representation < Google::Apis::Core::JsonRepresentation
319
+ property :reserved_space_gib, :numeric_string => true, as: 'reservedSpaceGib'
320
+ property :reserved_space_remaining_gib, :numeric_string => true, as: 'reservedSpaceRemainingGib'
321
+ property :reserved_space_used_percent, as: 'reservedSpaceUsedPercent'
322
+ end
323
+ end
324
+
287
325
  class Status
288
326
  # @private
289
327
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -306,6 +344,21 @@ module Google
306
344
  collection :permissions, as: 'permissions'
307
345
  end
308
346
  end
347
+
348
+ class Volume
349
+ # @private
350
+ class Representation < Google::Apis::Core::JsonRepresentation
351
+ property :auto_grown_size_gib, :numeric_string => true, as: 'autoGrownSizeGib'
352
+ property :current_size_gib, :numeric_string => true, as: 'currentSizeGib'
353
+ property :name, as: 'name'
354
+ property :remaining_space_gib, :numeric_string => true, as: 'remainingSpaceGib'
355
+ property :requested_size_gib, :numeric_string => true, as: 'requestedSizeGib'
356
+ property :snapshot_reservation_detail, as: 'snapshotReservationDetail', class: Google::Apis::BaremetalsolutionV2::SnapshotReservationDetail, decorator: Google::Apis::BaremetalsolutionV2::SnapshotReservationDetail::Representation
357
+
358
+ property :state, as: 'state'
359
+ property :storage_type, as: 'storageType'
360
+ end
361
+ end
309
362
  end
310
363
  end
311
364
  end
@@ -460,6 +460,79 @@ module Google
460
460
  command.query['quotaUser'] = quota_user unless quota_user.nil?
461
461
  execute_or_queue_command(command, &block)
462
462
  end
463
+
464
+ # Gets details of a single Volume.
465
+ # @param [String] name
466
+ # Required. Name of the resource.
467
+ # @param [String] fields
468
+ # Selector specifying which fields to include in a partial response.
469
+ # @param [String] quota_user
470
+ # Available to use for quota purposes for server-side applications. Can be any
471
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
472
+ # @param [Google::Apis::RequestOptions] options
473
+ # Request-specific options
474
+ #
475
+ # @yield [result, err] Result & error if block supplied
476
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Volume] parsed result object
477
+ # @yieldparam err [StandardError] error object if request failed
478
+ #
479
+ # @return [Google::Apis::BaremetalsolutionV2::Volume]
480
+ #
481
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
482
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
483
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
484
+ def get_project_location_volume(name, fields: nil, quota_user: nil, options: nil, &block)
485
+ 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
488
+ command.params['name'] = name unless name.nil?
489
+ command.query['fields'] = fields unless fields.nil?
490
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
491
+ execute_or_queue_command(command, &block)
492
+ end
493
+
494
+ # Lists Volumes in a given project and location.
495
+ # @param [String] parent
496
+ # Required. Parent value for ListVolumesRequest.
497
+ # @param [String] filter
498
+ # Filtering results.
499
+ # @param [String] order_by
500
+ # Hint for how to order the results.
501
+ # @param [Fixnum] page_size
502
+ # Requested page size. Server may return fewer items than requested. If
503
+ # unspecified, server will pick an appropriate default.
504
+ # @param [String] page_token
505
+ # A token identifying a page of results the server should return.
506
+ # @param [String] fields
507
+ # Selector specifying which fields to include in a partial response.
508
+ # @param [String] quota_user
509
+ # Available to use for quota purposes for server-side applications. Can be any
510
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
511
+ # @param [Google::Apis::RequestOptions] options
512
+ # Request-specific options
513
+ #
514
+ # @yield [result, err] Result & error if block supplied
515
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::ListVolumesResponse] parsed result object
516
+ # @yieldparam err [StandardError] error object if request failed
517
+ #
518
+ # @return [Google::Apis::BaremetalsolutionV2::ListVolumesResponse]
519
+ #
520
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
521
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
522
+ # @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
527
+ command.params['parent'] = parent unless parent.nil?
528
+ command.query['filter'] = filter unless filter.nil?
529
+ command.query['orderBy'] = order_by unless order_by.nil?
530
+ command.query['pageSize'] = page_size unless page_size.nil?
531
+ command.query['pageToken'] = page_token unless page_token.nil?
532
+ command.query['fields'] = fields unless fields.nil?
533
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
534
+ execute_or_queue_command(command, &block)
535
+ end
463
536
 
464
537
  protected
465
538
 
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V2'
32
32
 
33
- # See, edit, configure, and delete your Google Cloud Platform data
33
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
35
  end
36
36
  end
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.1.0
4
+ version: 0.2.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-09 00:00:00.000000000 Z
11
+ date: 2021-08-30 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.1.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.2.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: []