google-apis-baremetalsolution_v2 0.14.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1af06de5ea05055552d4700fb3db57550a62b94bcf50bcc82ed84fd941b7af0b
4
- data.tar.gz: c7dadedaa436d3fe010961b3c5de367823e7977ca45f28a04a851525a304752b
3
+ metadata.gz: 297f8cad8950987f6919b9bddff4183cd88222bcdac30c36d8ec3dea8b5868b8
4
+ data.tar.gz: 1412cdd07bd3c223a6423fbf125b175f19698ac12d8cfc8d7767d03b4c7653a8
5
5
  SHA512:
6
- metadata.gz: 13ab972a9e63c7071ee0272bbbbba38d2de6db8fde318a4e1795a791aee493a500220b2973635ac568f7579f18e3fdcd0066765ab79a2d24dc08760254242735
7
- data.tar.gz: 8128f743bcd1fd69ebf73e06d56cd7041536fc8ef78936f76a2978e5bce0584cb0b61630da7fad964b2d5d03d1474063bfb7214a33bb08d2e9b46177ffe037ae
6
+ metadata.gz: b9e06c73ce1f063c386e3018f64f84df20aa52993e1b66c840389464e22928ab204f0200cda3651bfabc4576dd8edb795a83a29253a2c0fc7505252ffdee9f95
7
+ data.tar.gz: '08659f857a4e5026c250f124a4a7db61688b6f260deb815685ae1bdae926ae25efbd42bceb558cf9a3df71d8c8567c0c6eae7c5031f88c5b7b075d7815e86e94'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.17.0 (2022-06-24)
4
+
5
+ * Regenerated from discovery document revision 20220615
6
+
7
+ ### v0.16.0 (2022-06-19)
8
+
9
+ * Regenerated using generator version 0.7.0
10
+
11
+ ### v0.15.0 (2022-06-08)
12
+
13
+ * Regenerated from discovery document revision 20220603
14
+ * Regenerated using generator version 0.5.0
15
+
3
16
  ### v0.14.0 (2022-05-29)
4
17
 
5
18
  * Regenerated from discovery document revision 20220524
@@ -128,7 +128,7 @@ module Google
128
128
  include Google::Apis::Core::Hashable
129
129
 
130
130
  # The index of the logical interface mapping to the index of the hardware bond
131
- # or nic on the chosen network template.
131
+ # or nic on the chosen network template. This field is deprecated.
132
132
  # Corresponds to the JSON property `interfaceIndex`
133
133
  # @return [Fixnum]
134
134
  attr_accessor :interface_index
@@ -1066,6 +1066,12 @@ module Google
1066
1066
  # @return [String]
1067
1067
  attr_accessor :id
1068
1068
 
1069
+ # The JumboFramesEnabled option for customer to set.
1070
+ # Corresponds to the JSON property `jumboFramesEnabled`
1071
+ # @return [Boolean]
1072
+ attr_accessor :jumbo_frames_enabled
1073
+ alias_method :jumbo_frames_enabled?, :jumbo_frames_enabled
1074
+
1069
1075
  # Output only. The name of the network config.
1070
1076
  # Corresponds to the JSON property `name`
1071
1077
  # @return [String]
@@ -1109,6 +1115,7 @@ module Google
1109
1115
  @cidr = args[:cidr] if args.key?(:cidr)
1110
1116
  @gcp_service = args[:gcp_service] if args.key?(:gcp_service)
1111
1117
  @id = args[:id] if args.key?(:id)
1118
+ @jumbo_frames_enabled = args[:jumbo_frames_enabled] if args.key?(:jumbo_frames_enabled)
1112
1119
  @name = args[:name] if args.key?(:name)
1113
1120
  @service_cidr = args[:service_cidr] if args.key?(:service_cidr)
1114
1121
  @type = args[:type] if args.key?(:type)
@@ -1228,6 +1235,11 @@ module Google
1228
1235
  # @return [String]
1229
1236
  attr_accessor :nfs_share_id
1230
1237
 
1238
+ # The requested size, in GiB.
1239
+ # Corresponds to the JSON property `requestedSizeGib`
1240
+ # @return [Fixnum]
1241
+ attr_accessor :requested_size_gib
1242
+
1231
1243
  # The state of the NFS share.
1232
1244
  # Corresponds to the JSON property `state`
1233
1245
  # @return [String]
@@ -1248,6 +1260,7 @@ module Google
1248
1260
  @labels = args[:labels] if args.key?(:labels)
1249
1261
  @name = args[:name] if args.key?(:name)
1250
1262
  @nfs_share_id = args[:nfs_share_id] if args.key?(:nfs_share_id)
1263
+ @requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib)
1251
1264
  @state = args[:state] if args.key?(:state)
1252
1265
  @volume = args[:volume] if args.key?(:volume)
1253
1266
  end
@@ -1359,6 +1372,65 @@ module Google
1359
1372
  end
1360
1373
  end
1361
1374
 
1375
+ # Represents the metadata from a long-running operation.
1376
+ class OperationMetadata
1377
+ include Google::Apis::Core::Hashable
1378
+
1379
+ # Output only. API version used with the operation.
1380
+ # Corresponds to the JSON property `apiVersion`
1381
+ # @return [String]
1382
+ attr_accessor :api_version
1383
+
1384
+ # Output only. The time the operation was created.
1385
+ # Corresponds to the JSON property `createTime`
1386
+ # @return [String]
1387
+ attr_accessor :create_time
1388
+
1389
+ # Output only. The time the operation finished running.
1390
+ # Corresponds to the JSON property `endTime`
1391
+ # @return [String]
1392
+ attr_accessor :end_time
1393
+
1394
+ # Output only. Identifies whether the user requested the cancellation of the
1395
+ # operation. Operations that have been successfully cancelled have Operation.
1396
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1397
+ # CANCELLED`.
1398
+ # Corresponds to the JSON property `requestedCancellation`
1399
+ # @return [Boolean]
1400
+ attr_accessor :requested_cancellation
1401
+ alias_method :requested_cancellation?, :requested_cancellation
1402
+
1403
+ # Output only. Human-readable status of the operation, if any.
1404
+ # Corresponds to the JSON property `statusMessage`
1405
+ # @return [String]
1406
+ attr_accessor :status_message
1407
+
1408
+ # Output only. Server-defined resource path for the target of the operation.
1409
+ # Corresponds to the JSON property `target`
1410
+ # @return [String]
1411
+ attr_accessor :target
1412
+
1413
+ # Output only. Name of the action executed by the operation.
1414
+ # Corresponds to the JSON property `verb`
1415
+ # @return [String]
1416
+ attr_accessor :verb
1417
+
1418
+ def initialize(**args)
1419
+ update!(**args)
1420
+ end
1421
+
1422
+ # Update properties of this object
1423
+ def update!(**args)
1424
+ @api_version = args[:api_version] if args.key?(:api_version)
1425
+ @create_time = args[:create_time] if args.key?(:create_time)
1426
+ @end_time = args[:end_time] if args.key?(:end_time)
1427
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
1428
+ @status_message = args[:status_message] if args.key?(:status_message)
1429
+ @target = args[:target] if args.key?(:target)
1430
+ @verb = args[:verb] if args.key?(:verb)
1431
+ end
1432
+ end
1433
+
1362
1434
  # A provisioning configuration.
1363
1435
  class ProvisioningConfig
1364
1436
  include Google::Apis::Core::Hashable
@@ -1406,6 +1478,11 @@ module Google
1406
1478
  # @return [String]
1407
1479
  attr_accessor :state
1408
1480
 
1481
+ # Optional status messages associated with the FAILED state.
1482
+ # Corresponds to the JSON property `statusMessage`
1483
+ # @return [String]
1484
+ attr_accessor :status_message
1485
+
1409
1486
  # A generated ticket id to track provisioning request.
1410
1487
  # Corresponds to the JSON property `ticketId`
1411
1488
  # @return [String]
@@ -1421,6 +1498,12 @@ module Google
1421
1498
  # @return [Array<Google::Apis::BaremetalsolutionV2::VolumeConfig>]
1422
1499
  attr_accessor :volumes
1423
1500
 
1501
+ # If true, VPC SC is enabled for the cluster.
1502
+ # Corresponds to the JSON property `vpcScEnabled`
1503
+ # @return [Boolean]
1504
+ attr_accessor :vpc_sc_enabled
1505
+ alias_method :vpc_sc_enabled?, :vpc_sc_enabled
1506
+
1424
1507
  def initialize(**args)
1425
1508
  update!(**args)
1426
1509
  end
@@ -1435,9 +1518,11 @@ module Google
1435
1518
  @name = args[:name] if args.key?(:name)
1436
1519
  @networks = args[:networks] if args.key?(:networks)
1437
1520
  @state = args[:state] if args.key?(:state)
1521
+ @status_message = args[:status_message] if args.key?(:status_message)
1438
1522
  @ticket_id = args[:ticket_id] if args.key?(:ticket_id)
1439
1523
  @update_time = args[:update_time] if args.key?(:update_time)
1440
1524
  @volumes = args[:volumes] if args.key?(:volumes)
1525
+ @vpc_sc_enabled = args[:vpc_sc_enabled] if args.key?(:vpc_sc_enabled)
1441
1526
  end
1442
1527
  end
1443
1528
 
@@ -1540,6 +1625,25 @@ module Google
1540
1625
  end
1541
1626
  end
1542
1627
 
1628
+ # Request for emergency resize Volume.
1629
+ class ResizeVolumeRequest
1630
+ include Google::Apis::Core::Hashable
1631
+
1632
+ # New Volume size, in GiB.
1633
+ # Corresponds to the JSON property `sizeGib`
1634
+ # @return [Fixnum]
1635
+ attr_accessor :size_gib
1636
+
1637
+ def initialize(**args)
1638
+ update!(**args)
1639
+ end
1640
+
1641
+ # Update properties of this object
1642
+ def update!(**args)
1643
+ @size_gib = args[:size_gib] if args.key?(:size_gib)
1644
+ end
1645
+ end
1646
+
1543
1647
  # Network template.
1544
1648
  class ServerNetworkTemplate
1545
1649
  include Google::Apis::Core::Hashable
@@ -1827,6 +1931,11 @@ module Google
1827
1931
  # @return [Hash<String,String>]
1828
1932
  attr_accessor :labels
1829
1933
 
1934
+ # Maximum size volume can be expanded to in case of evergency, in GiB.
1935
+ # Corresponds to the JSON property `maxSizeGib`
1936
+ # @return [Fixnum]
1937
+ attr_accessor :max_size_gib
1938
+
1830
1939
  # Output only. The resource name of this `Volume`. Resource names are schemeless
1831
1940
  # URIs that follow the conventions in https://cloud.google.com/apis/design/
1832
1941
  # resource_names. Format: `projects/`project`/locations/`location`/volumes/`
@@ -1835,6 +1944,11 @@ module Google
1835
1944
  # @return [String]
1836
1945
  attr_accessor :name
1837
1946
 
1947
+ # Originally requested size, in GiB.
1948
+ # Corresponds to the JSON property `originallyRequestedSizeGib`
1949
+ # @return [Fixnum]
1950
+ attr_accessor :originally_requested_size_gib
1951
+
1838
1952
  # Immutable. Pod name.
1839
1953
  # Corresponds to the JSON property `pod`
1840
1954
  # @return [String]
@@ -1893,7 +2007,9 @@ module Google
1893
2007
  @emergency_size_gib = args[:emergency_size_gib] if args.key?(:emergency_size_gib)
1894
2008
  @id = args[:id] if args.key?(:id)
1895
2009
  @labels = args[:labels] if args.key?(:labels)
2010
+ @max_size_gib = args[:max_size_gib] if args.key?(:max_size_gib)
1896
2011
  @name = args[:name] if args.key?(:name)
2012
+ @originally_requested_size_gib = args[:originally_requested_size_gib] if args.key?(:originally_requested_size_gib)
1897
2013
  @pod = args[:pod] if args.key?(:pod)
1898
2014
  @remaining_space_gib = args[:remaining_space_gib] if args.key?(:remaining_space_gib)
1899
2015
  @requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib)
@@ -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.14.0"
19
+ GEM_VERSION = "0.17.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.7.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220524"
25
+ REVISION = "20220615"
26
26
  end
27
27
  end
28
28
  end
@@ -202,6 +202,12 @@ module Google
202
202
  include Google::Apis::Core::JsonObjectSupport
203
203
  end
204
204
 
205
+ class OperationMetadata
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
205
211
  class ProvisioningConfig
206
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
213
 
@@ -226,6 +232,12 @@ module Google
226
232
  include Google::Apis::Core::JsonObjectSupport
227
233
  end
228
234
 
235
+ class ResizeVolumeRequest
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
229
241
  class ServerNetworkTemplate
230
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
243
 
@@ -569,6 +581,7 @@ module Google
569
581
  property :cidr, as: 'cidr'
570
582
  property :gcp_service, as: 'gcpService'
571
583
  property :id, as: 'id'
584
+ property :jumbo_frames_enabled, as: 'jumboFramesEnabled'
572
585
  property :name, as: 'name'
573
586
  property :service_cidr, as: 'serviceCidr'
574
587
  property :type, as: 'type'
@@ -609,6 +622,7 @@ module Google
609
622
  hash :labels, as: 'labels'
610
623
  property :name, as: 'name'
611
624
  property :nfs_share_id, as: 'nfsShareId'
625
+ property :requested_size_gib, :numeric_string => true, as: 'requestedSizeGib'
612
626
  property :state, as: 'state'
613
627
  property :volume, as: 'volume'
614
628
  end
@@ -638,6 +652,19 @@ module Google
638
652
  end
639
653
  end
640
654
 
655
+ class OperationMetadata
656
+ # @private
657
+ class Representation < Google::Apis::Core::JsonRepresentation
658
+ property :api_version, as: 'apiVersion'
659
+ property :create_time, as: 'createTime'
660
+ property :end_time, as: 'endTime'
661
+ property :requested_cancellation, as: 'requestedCancellation'
662
+ property :status_message, as: 'statusMessage'
663
+ property :target, as: 'target'
664
+ property :verb, as: 'verb'
665
+ end
666
+ end
667
+
641
668
  class ProvisioningConfig
642
669
  # @private
643
670
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -651,10 +678,12 @@ module Google
651
678
  collection :networks, as: 'networks', class: Google::Apis::BaremetalsolutionV2::NetworkConfig, decorator: Google::Apis::BaremetalsolutionV2::NetworkConfig::Representation
652
679
 
653
680
  property :state, as: 'state'
681
+ property :status_message, as: 'statusMessage'
654
682
  property :ticket_id, as: 'ticketId'
655
683
  property :update_time, as: 'updateTime'
656
684
  collection :volumes, as: 'volumes', class: Google::Apis::BaremetalsolutionV2::VolumeConfig, decorator: Google::Apis::BaremetalsolutionV2::VolumeConfig::Representation
657
685
 
686
+ property :vpc_sc_enabled, as: 'vpcScEnabled'
658
687
  end
659
688
  end
660
689
 
@@ -687,6 +716,13 @@ module Google
687
716
  end
688
717
  end
689
718
 
719
+ class ResizeVolumeRequest
720
+ # @private
721
+ class Representation < Google::Apis::Core::JsonRepresentation
722
+ property :size_gib, :numeric_string => true, as: 'sizeGib'
723
+ end
724
+ end
725
+
690
726
  class ServerNetworkTemplate
691
727
  # @private
692
728
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -774,7 +810,9 @@ module Google
774
810
  property :emergency_size_gib, :numeric_string => true, as: 'emergencySizeGib'
775
811
  property :id, as: 'id'
776
812
  hash :labels, as: 'labels'
813
+ property :max_size_gib, :numeric_string => true, as: 'maxSizeGib'
777
814
  property :name, as: 'name'
815
+ property :originally_requested_size_gib, :numeric_string => true, as: 'originallyRequestedSizeGib'
778
816
  property :pod, as: 'pod'
779
817
  property :remaining_space_gib, :numeric_string => true, as: 'remainingSpaceGib'
780
818
  property :requested_size_gib, :numeric_string => true, as: 'requestedSizeGib'
@@ -901,8 +901,7 @@ module Google
901
901
  # @param [String] update_mask
902
902
  # The list of fields to update. The only currently supported fields are: `
903
903
  # snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` 'labels' '
904
- # requested_size_gib' 'snapshot_enabled' 'snapshot_reservation_detail.
905
- # reserved_space_percent'
904
+ # snapshot_enabled' 'snapshot_reservation_detail.reserved_space_percent'
906
905
  # @param [String] fields
907
906
  # Selector specifying which fields to include in a partial response.
908
907
  # @param [String] quota_user
@@ -933,6 +932,39 @@ module Google
933
932
  execute_or_queue_command(command, &block)
934
933
  end
935
934
 
935
+ # Emergency Volume resize.
936
+ # @param [String] volume
937
+ # Required. Volume to resize.
938
+ # @param [Google::Apis::BaremetalsolutionV2::ResizeVolumeRequest] resize_volume_request_object
939
+ # @param [String] fields
940
+ # Selector specifying which fields to include in a partial response.
941
+ # @param [String] quota_user
942
+ # Available to use for quota purposes for server-side applications. Can be any
943
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
944
+ # @param [Google::Apis::RequestOptions] options
945
+ # Request-specific options
946
+ #
947
+ # @yield [result, err] Result & error if block supplied
948
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
949
+ # @yieldparam err [StandardError] error object if request failed
950
+ #
951
+ # @return [Google::Apis::BaremetalsolutionV2::Operation]
952
+ #
953
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
954
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
955
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
956
+ def resize_volume(volume, resize_volume_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
957
+ command = make_simple_command(:post, 'v2/{+volume}:resize', options)
958
+ command.request_representation = Google::Apis::BaremetalsolutionV2::ResizeVolumeRequest::Representation
959
+ command.request_object = resize_volume_request_object
960
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
961
+ command.response_class = Google::Apis::BaremetalsolutionV2::Operation
962
+ command.params['volume'] = volume unless volume.nil?
963
+ command.query['fields'] = fields unless fields.nil?
964
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
965
+ execute_or_queue_command(command, &block)
966
+ end
967
+
936
968
  # Get details of a single storage logical unit number(LUN).
937
969
  # @param [String] name
938
970
  # Required. Name of the resource.
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.14.0
4
+ version: 0.17.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: 2022-05-30 00:00:00.000000000 Z
11
+ date: 2022-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.6'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.6'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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/main/generated/google-apis-baremetalsolution_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.14.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.17.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-baremetalsolution_v2
63
63
  post_install_message:
64
64
  rdoc_options: []