google-apis-baremetalsolution_v2 0.12.0 → 0.15.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: e3cf2c48c1c654441e28d4562de5fb6d80a9fae9706f71a74d0513b3951316e4
4
- data.tar.gz: e0d0c3d0bd183720139d2fbacf9c44dc311a008e0277f40728425d9a1bf560cf
3
+ metadata.gz: 96929cf9fc110bffd2261677409f1159a6d1ac18867b042863f36145588918d1
4
+ data.tar.gz: 49e7c297c09867f74604017e044303601369f13b945e0962a1a65c38c7abe62b
5
5
  SHA512:
6
- metadata.gz: 2ec844b481408dfb2c6d6fd3b10c99721c3eb6cabdf654c1286c8fea5ac4e00893ddf4b4e34f18f6f69daf8c1f496c2a64d99433b15a9299d53d9aa295f82992
7
- data.tar.gz: fed55cf6b760655cccd9c3d480319087455177413f5063a96e2fefca0e6d4f81103959467bb6d2d36d666d42c9ec68b4fd36eccdcdd711b641bf3ca0cead94df
6
+ metadata.gz: 07af8ea319d6e3b6bfb9a3066bb52bc0ce466bf3c4e625d1b04fe0bc5298cab0430bf227996e888d02f74ceadbf510a19610a8d4e42d0e792610cd74bdf3750d
7
+ data.tar.gz: 0254e6269714dbbcb6335202cae3348894d67b468780139badf998e0a9067e6e4629b4f719cb6667885df92be3c45f642d7033bdf473266678840c66b09938d7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.15.0 (2022-06-08)
4
+
5
+ * Regenerated from discovery document revision 20220603
6
+ * Regenerated using generator version 0.5.0
7
+
8
+ ### v0.14.0 (2022-05-29)
9
+
10
+ * Regenerated from discovery document revision 20220524
11
+
12
+ ### v0.13.0 (2022-05-21)
13
+
14
+ * Regenerated from discovery document revision 20220506
15
+
3
16
  ### v0.12.0 (2022-05-06)
4
17
 
5
18
  * Regenerated from discovery document revision 20220501
@@ -120,6 +120,76 @@ module Google
120
120
  end
121
121
  end
122
122
 
123
+ # Each logical interface represents a logical abstraction of the underlying
124
+ # physical interface (for eg. bond, nic) of the instance. Each logical interface
125
+ # can effectively map to multiple network-IP pairs and still be mapped to one
126
+ # underlying physical interface.
127
+ class GoogleCloudBaremetalsolutionV2LogicalInterface
128
+ include Google::Apis::Core::Hashable
129
+
130
+ # The index of the logical interface mapping to the index of the hardware bond
131
+ # or nic on the chosen network template. This field is deprecated.
132
+ # Corresponds to the JSON property `interfaceIndex`
133
+ # @return [Fixnum]
134
+ attr_accessor :interface_index
135
+
136
+ # List of logical network interfaces within a logical interface.
137
+ # Corresponds to the JSON property `logicalNetworkInterfaces`
138
+ # @return [Array<Google::Apis::BaremetalsolutionV2::LogicalNetworkInterface>]
139
+ attr_accessor :logical_network_interfaces
140
+
141
+ # Interface name. This is of syntax or and forms part of the network template
142
+ # name.
143
+ # Corresponds to the JSON property `name`
144
+ # @return [String]
145
+ attr_accessor :name
146
+
147
+ def initialize(**args)
148
+ update!(**args)
149
+ end
150
+
151
+ # Update properties of this object
152
+ def update!(**args)
153
+ @interface_index = args[:interface_index] if args.key?(:interface_index)
154
+ @logical_network_interfaces = args[:logical_network_interfaces] if args.key?(:logical_network_interfaces)
155
+ @name = args[:name] if args.key?(:name)
156
+ end
157
+ end
158
+
159
+ # Logical interface.
160
+ class GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface
161
+ include Google::Apis::Core::Hashable
162
+
163
+ # Interface name. This is not a globally unique identifier. Name is unique only
164
+ # inside the ServerNetworkTemplate. This is of syntax or and forms part of the
165
+ # network template name.
166
+ # Corresponds to the JSON property `name`
167
+ # @return [String]
168
+ attr_accessor :name
169
+
170
+ # If true, interface must have network connected.
171
+ # Corresponds to the JSON property `required`
172
+ # @return [Boolean]
173
+ attr_accessor :required
174
+ alias_method :required?, :required
175
+
176
+ # Interface type.
177
+ # Corresponds to the JSON property `type`
178
+ # @return [String]
179
+ attr_accessor :type
180
+
181
+ def initialize(**args)
182
+ update!(**args)
183
+ end
184
+
185
+ # Update properties of this object
186
+ def update!(**args)
187
+ @name = args[:name] if args.key?(:name)
188
+ @required = args[:required] if args.key?(:required)
189
+ @type = args[:type] if args.key?(:type)
190
+ end
191
+ end
192
+
123
193
  # A server.
124
194
  class Instance
125
195
  include Google::Apis::Core::Hashable
@@ -153,6 +223,17 @@ module Google
153
223
  # @return [Hash<String,String>]
154
224
  attr_accessor :labels
155
225
 
226
+ # List of logical interfaces for the instance. The number of logical interfaces
227
+ # will be the same as number of hardware bond/nic on the chosen network template.
228
+ # For the non-multivlan configurations (for eg, existing servers) that use
229
+ # existing default network template (bondaa-bondaa), both the Instance.networks
230
+ # field and the Instance.logical_interfaces fields will be filled to ensure
231
+ # backward compatibility. For the others, only Instance.logical_interfaces will
232
+ # be filled.
233
+ # Corresponds to the JSON property `logicalInterfaces`
234
+ # @return [Array<Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface>]
235
+ attr_accessor :logical_interfaces
236
+
156
237
  # List of LUNs associated with this server.
157
238
  # Corresponds to the JSON property `luns`
158
239
  # @return [Array<Google::Apis::BaremetalsolutionV2::Lun>]
@@ -172,6 +253,12 @@ module Google
172
253
  # @return [String]
173
254
  attr_accessor :name
174
255
 
256
+ # Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
257
+ # Generally, the template name follows the syntax of "bond" or "nic".
258
+ # Corresponds to the JSON property `networkTemplate`
259
+ # @return [String]
260
+ attr_accessor :network_template
261
+
175
262
  # List of networks associated with this server.
176
263
  # Corresponds to the JSON property `networks`
177
264
  # @return [Array<Google::Apis::BaremetalsolutionV2::Network>]
@@ -182,6 +269,13 @@ module Google
182
269
  # @return [String]
183
270
  attr_accessor :os_image
184
271
 
272
+ # Immutable. Pod name. Pod is an independent part of infrastructure. Instance
273
+ # can be connected to the assets (networks, volumes) allocated in the same pod
274
+ # only.
275
+ # Corresponds to the JSON property `pod`
276
+ # @return [String]
277
+ attr_accessor :pod
278
+
185
279
  # The state of the server.
186
280
  # Corresponds to the JSON property `state`
187
281
  # @return [String]
@@ -203,11 +297,14 @@ module Google
203
297
  @id = args[:id] if args.key?(:id)
204
298
  @interactive_serial_console_enabled = args[:interactive_serial_console_enabled] if args.key?(:interactive_serial_console_enabled)
205
299
  @labels = args[:labels] if args.key?(:labels)
300
+ @logical_interfaces = args[:logical_interfaces] if args.key?(:logical_interfaces)
206
301
  @luns = args[:luns] if args.key?(:luns)
207
302
  @machine_type = args[:machine_type] if args.key?(:machine_type)
208
303
  @name = args[:name] if args.key?(:name)
304
+ @network_template = args[:network_template] if args.key?(:network_template)
209
305
  @networks = args[:networks] if args.key?(:networks)
210
306
  @os_image = args[:os_image] if args.key?(:os_image)
307
+ @pod = args[:pod] if args.key?(:pod)
211
308
  @state = args[:state] if args.key?(:state)
212
309
  @update_time = args[:update_time] if args.key?(:update_time)
213
310
  end
@@ -246,11 +343,29 @@ module Google
246
343
  # @return [String]
247
344
  attr_accessor :instance_type
248
345
 
346
+ # List of logical interfaces for the instance. The number of logical interfaces
347
+ # will be the same as number of hardware bond/nic on the chosen network template.
348
+ # Filled if InstanceConfig.multivlan_config is true.
349
+ # Corresponds to the JSON property `logicalInterfaces`
350
+ # @return [Array<Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface>]
351
+ attr_accessor :logical_interfaces
352
+
249
353
  # Output only. The name of the instance config.
250
354
  # Corresponds to the JSON property `name`
251
355
  # @return [String]
252
356
  attr_accessor :name
253
357
 
358
+ # The type of network configuration on the instance.
359
+ # Corresponds to the JSON property `networkConfig`
360
+ # @return [String]
361
+ attr_accessor :network_config
362
+
363
+ # Server network template name. Filled if InstanceConfig.multivlan_config is
364
+ # true.
365
+ # Corresponds to the JSON property `networkTemplate`
366
+ # @return [String]
367
+ attr_accessor :network_template
368
+
254
369
  # OS image to initialize the instance. [Available images](https://cloud.google.
255
370
  # com/bare-metal/docs/bms-planning#server_configurations)
256
371
  # Corresponds to the JSON property `osImage`
@@ -279,7 +394,10 @@ module Google
279
394
  @hyperthreading = args[:hyperthreading] if args.key?(:hyperthreading)
280
395
  @id = args[:id] if args.key?(:id)
281
396
  @instance_type = args[:instance_type] if args.key?(:instance_type)
397
+ @logical_interfaces = args[:logical_interfaces] if args.key?(:logical_interfaces)
282
398
  @name = args[:name] if args.key?(:name)
399
+ @network_config = args[:network_config] if args.key?(:network_config)
400
+ @network_template = args[:network_template] if args.key?(:network_template)
283
401
  @os_image = args[:os_image] if args.key?(:os_image)
284
402
  @private_network = args[:private_network] if args.key?(:private_network)
285
403
  @user_note = args[:user_note] if args.key?(:user_note)
@@ -621,26 +739,36 @@ module Google
621
739
  end
622
740
  end
623
741
 
624
- # Logical interface.
625
- class LogicalInterface
742
+ # Each logical network interface is effectively a network and IP pair.
743
+ class LogicalNetworkInterface
626
744
  include Google::Apis::Core::Hashable
627
745
 
628
- # Interface name. This is not a globally unique identifier. Name is unique only
629
- # inside the ServerNetworkTemplate.
630
- # Corresponds to the JSON property `name`
746
+ # Whether this interface is the default gateway for the instance. Only one
747
+ # interface can be the default gateway for the instance.
748
+ # Corresponds to the JSON property `defaultGateway`
749
+ # @return [Boolean]
750
+ attr_accessor :default_gateway
751
+ alias_method :default_gateway?, :default_gateway
752
+
753
+ # An identifier for the `Network`, generated by the backend.
754
+ # Corresponds to the JSON property `id`
631
755
  # @return [String]
632
- attr_accessor :name
756
+ attr_accessor :id
633
757
 
634
- # If true, interface must have network connected.
635
- # Corresponds to the JSON property `required`
636
- # @return [Boolean]
637
- attr_accessor :required
638
- alias_method :required?, :required
758
+ # IP address in the network
759
+ # Corresponds to the JSON property `ipAddress`
760
+ # @return [String]
761
+ attr_accessor :ip_address
639
762
 
640
- # Interface type.
641
- # Corresponds to the JSON property `type`
763
+ # Name of the network
764
+ # Corresponds to the JSON property `network`
642
765
  # @return [String]
643
- attr_accessor :type
766
+ attr_accessor :network
767
+
768
+ # Type of network.
769
+ # Corresponds to the JSON property `networkType`
770
+ # @return [String]
771
+ attr_accessor :network_type
644
772
 
645
773
  def initialize(**args)
646
774
  update!(**args)
@@ -648,9 +776,11 @@ module Google
648
776
 
649
777
  # Update properties of this object
650
778
  def update!(**args)
651
- @name = args[:name] if args.key?(:name)
652
- @required = args[:required] if args.key?(:required)
653
- @type = args[:type] if args.key?(:type)
779
+ @default_gateway = args[:default_gateway] if args.key?(:default_gateway)
780
+ @id = args[:id] if args.key?(:id)
781
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
782
+ @network = args[:network] if args.key?(:network)
783
+ @network_type = args[:network_type] if args.key?(:network_type)
654
784
  end
655
785
  end
656
786
 
@@ -936,6 +1066,12 @@ module Google
936
1066
  # @return [String]
937
1067
  attr_accessor :id
938
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
+
939
1075
  # Output only. The name of the network config.
940
1076
  # Corresponds to the JSON property `name`
941
1077
  # @return [String]
@@ -952,7 +1088,7 @@ module Google
952
1088
  attr_accessor :type
953
1089
 
954
1090
  # User note field, it can be used by customers to add additional information for
955
- # the BMS Ops team (b/194021617).
1091
+ # the BMS Ops team .
956
1092
  # Corresponds to the JSON property `userNote`
957
1093
  # @return [String]
958
1094
  attr_accessor :user_note
@@ -979,6 +1115,7 @@ module Google
979
1115
  @cidr = args[:cidr] if args.key?(:cidr)
980
1116
  @gcp_service = args[:gcp_service] if args.key?(:gcp_service)
981
1117
  @id = args[:id] if args.key?(:id)
1118
+ @jumbo_frames_enabled = args[:jumbo_frames_enabled] if args.key?(:jumbo_frames_enabled)
982
1119
  @name = args[:name] if args.key?(:name)
983
1120
  @service_cidr = args[:service_cidr] if args.key?(:service_cidr)
984
1121
  @type = args[:type] if args.key?(:type)
@@ -1098,6 +1235,11 @@ module Google
1098
1235
  # @return [String]
1099
1236
  attr_accessor :nfs_share_id
1100
1237
 
1238
+ # The requested size, in GiB.
1239
+ # Corresponds to the JSON property `requestedSizeGib`
1240
+ # @return [Fixnum]
1241
+ attr_accessor :requested_size_gib
1242
+
1101
1243
  # The state of the NFS share.
1102
1244
  # Corresponds to the JSON property `state`
1103
1245
  # @return [String]
@@ -1118,6 +1260,7 @@ module Google
1118
1260
  @labels = args[:labels] if args.key?(:labels)
1119
1261
  @name = args[:name] if args.key?(:name)
1120
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)
1121
1264
  @state = args[:state] if args.key?(:state)
1122
1265
  @volume = args[:volume] if args.key?(:volume)
1123
1266
  end
@@ -1276,7 +1419,7 @@ module Google
1276
1419
  # @return [String]
1277
1420
  attr_accessor :state
1278
1421
 
1279
- # A generated buganizer id to track provisioning request.
1422
+ # A generated ticket id to track provisioning request.
1280
1423
  # Corresponds to the JSON property `ticketId`
1281
1424
  # @return [String]
1282
1425
  attr_accessor :ticket_id
@@ -1291,6 +1434,12 @@ module Google
1291
1434
  # @return [Array<Google::Apis::BaremetalsolutionV2::VolumeConfig>]
1292
1435
  attr_accessor :volumes
1293
1436
 
1437
+ # If true, VPC SC is enabled for the cluster.
1438
+ # Corresponds to the JSON property `vpcScEnabled`
1439
+ # @return [Boolean]
1440
+ attr_accessor :vpc_sc_enabled
1441
+ alias_method :vpc_sc_enabled?, :vpc_sc_enabled
1442
+
1294
1443
  def initialize(**args)
1295
1444
  update!(**args)
1296
1445
  end
@@ -1308,6 +1457,7 @@ module Google
1308
1457
  @ticket_id = args[:ticket_id] if args.key?(:ticket_id)
1309
1458
  @update_time = args[:update_time] if args.key?(:update_time)
1310
1459
  @volumes = args[:volumes] if args.key?(:volumes)
1460
+ @vpc_sc_enabled = args[:vpc_sc_enabled] if args.key?(:vpc_sc_enabled)
1311
1461
  end
1312
1462
  end
1313
1463
 
@@ -1410,6 +1560,25 @@ module Google
1410
1560
  end
1411
1561
  end
1412
1562
 
1563
+ # Request for emergency resize Volume.
1564
+ class ResizeVolumeRequest
1565
+ include Google::Apis::Core::Hashable
1566
+
1567
+ # New Volume size, in GiB.
1568
+ # Corresponds to the JSON property `sizeGib`
1569
+ # @return [Fixnum]
1570
+ attr_accessor :size_gib
1571
+
1572
+ def initialize(**args)
1573
+ update!(**args)
1574
+ end
1575
+
1576
+ # Update properties of this object
1577
+ def update!(**args)
1578
+ @size_gib = args[:size_gib] if args.key?(:size_gib)
1579
+ end
1580
+ end
1581
+
1413
1582
  # Network template.
1414
1583
  class ServerNetworkTemplate
1415
1584
  include Google::Apis::Core::Hashable
@@ -1421,10 +1590,13 @@ module Google
1421
1590
 
1422
1591
  # Logical interfaces.
1423
1592
  # Corresponds to the JSON property `logicalInterfaces`
1424
- # @return [Array<Google::Apis::BaremetalsolutionV2::LogicalInterface>]
1593
+ # @return [Array<Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface>]
1425
1594
  attr_accessor :logical_interfaces
1426
1595
 
1427
- # Output only. Template's unique name.
1596
+ # Output only. Template's unique name. The full resource name follows the
1597
+ # pattern: `projects/`project`/locations/`location`/serverNetworkTemplate/`
1598
+ # server_network_template`` Generally, the `server_network_template` follows the
1599
+ # syntax of "bond" or "nic".
1428
1600
  # Corresponds to the JSON property `name`
1429
1601
  # @return [String]
1430
1602
  attr_accessor :name
@@ -1694,6 +1866,11 @@ module Google
1694
1866
  # @return [Hash<String,String>]
1695
1867
  attr_accessor :labels
1696
1868
 
1869
+ # Maximum size volume can be expanded to in case of evergency, in GiB.
1870
+ # Corresponds to the JSON property `maxSizeGib`
1871
+ # @return [Fixnum]
1872
+ attr_accessor :max_size_gib
1873
+
1697
1874
  # Output only. The resource name of this `Volume`. Resource names are schemeless
1698
1875
  # URIs that follow the conventions in https://cloud.google.com/apis/design/
1699
1876
  # resource_names. Format: `projects/`project`/locations/`location`/volumes/`
@@ -1702,6 +1879,16 @@ module Google
1702
1879
  # @return [String]
1703
1880
  attr_accessor :name
1704
1881
 
1882
+ # Originally requested size, in GiB.
1883
+ # Corresponds to the JSON property `originallyRequestedSizeGib`
1884
+ # @return [Fixnum]
1885
+ attr_accessor :originally_requested_size_gib
1886
+
1887
+ # Immutable. Pod name.
1888
+ # Corresponds to the JSON property `pod`
1889
+ # @return [String]
1890
+ attr_accessor :pod
1891
+
1705
1892
  # The space remaining in the storage volume for new LUNs, in GiB, excluding
1706
1893
  # space reserved for snapshots.
1707
1894
  # Corresponds to the JSON property `remainingSpaceGib`
@@ -1755,7 +1942,10 @@ module Google
1755
1942
  @emergency_size_gib = args[:emergency_size_gib] if args.key?(:emergency_size_gib)
1756
1943
  @id = args[:id] if args.key?(:id)
1757
1944
  @labels = args[:labels] if args.key?(:labels)
1945
+ @max_size_gib = args[:max_size_gib] if args.key?(:max_size_gib)
1758
1946
  @name = args[:name] if args.key?(:name)
1947
+ @originally_requested_size_gib = args[:originally_requested_size_gib] if args.key?(:originally_requested_size_gib)
1948
+ @pod = args[:pod] if args.key?(:pod)
1759
1949
  @remaining_space_gib = args[:remaining_space_gib] if args.key?(:remaining_space_gib)
1760
1950
  @requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib)
1761
1951
  @snapshot_auto_delete_behavior = args[:snapshot_auto_delete_behavior] if args.key?(:snapshot_auto_delete_behavior)
@@ -1825,7 +2015,7 @@ module Google
1825
2015
  attr_accessor :type
1826
2016
 
1827
2017
  # User note field, it can be used by customers to add additional information for
1828
- # the BMS Ops team (b/194021617).
2018
+ # the BMS Ops team .
1829
2019
  # Corresponds to the JSON property `userNote`
1830
2020
  # @return [String]
1831
2021
  attr_accessor :user_note
@@ -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.12.0"
19
+ GEM_VERSION = "0.15.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.5.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220501"
25
+ REVISION = "20220603"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,18 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class GoogleCloudBaremetalsolutionV2LogicalInterface
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
43
55
  class Instance
44
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
57
 
@@ -118,7 +130,7 @@ module Google
118
130
  include Google::Apis::Core::JsonObjectSupport
119
131
  end
120
132
 
121
- class LogicalInterface
133
+ class LogicalNetworkInterface
122
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
135
 
124
136
  include Google::Apis::Core::JsonObjectSupport
@@ -214,6 +226,12 @@ module Google
214
226
  include Google::Apis::Core::JsonObjectSupport
215
227
  end
216
228
 
229
+ class ResizeVolumeRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
217
235
  class ServerNetworkTemplate
218
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
237
 
@@ -308,6 +326,25 @@ module Google
308
326
  end
309
327
  end
310
328
 
329
+ class GoogleCloudBaremetalsolutionV2LogicalInterface
330
+ # @private
331
+ class Representation < Google::Apis::Core::JsonRepresentation
332
+ property :interface_index, as: 'interfaceIndex'
333
+ collection :logical_network_interfaces, as: 'logicalNetworkInterfaces', class: Google::Apis::BaremetalsolutionV2::LogicalNetworkInterface, decorator: Google::Apis::BaremetalsolutionV2::LogicalNetworkInterface::Representation
334
+
335
+ property :name, as: 'name'
336
+ end
337
+ end
338
+
339
+ class GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface
340
+ # @private
341
+ class Representation < Google::Apis::Core::JsonRepresentation
342
+ property :name, as: 'name'
343
+ property :required, as: 'required'
344
+ property :type, as: 'type'
345
+ end
346
+ end
347
+
311
348
  class Instance
312
349
  # @private
313
350
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -316,13 +353,17 @@ module Google
316
353
  property :id, as: 'id'
317
354
  property :interactive_serial_console_enabled, as: 'interactiveSerialConsoleEnabled'
318
355
  hash :labels, as: 'labels'
356
+ collection :logical_interfaces, as: 'logicalInterfaces', class: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface, decorator: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface::Representation
357
+
319
358
  collection :luns, as: 'luns', class: Google::Apis::BaremetalsolutionV2::Lun, decorator: Google::Apis::BaremetalsolutionV2::Lun::Representation
320
359
 
321
360
  property :machine_type, as: 'machineType'
322
361
  property :name, as: 'name'
362
+ property :network_template, as: 'networkTemplate'
323
363
  collection :networks, as: 'networks', class: Google::Apis::BaremetalsolutionV2::Network, decorator: Google::Apis::BaremetalsolutionV2::Network::Representation
324
364
 
325
365
  property :os_image, as: 'osImage'
366
+ property :pod, as: 'pod'
326
367
  property :state, as: 'state'
327
368
  property :update_time, as: 'updateTime'
328
369
  end
@@ -337,7 +378,11 @@ module Google
337
378
  property :hyperthreading, as: 'hyperthreading'
338
379
  property :id, as: 'id'
339
380
  property :instance_type, as: 'instanceType'
381
+ collection :logical_interfaces, as: 'logicalInterfaces', class: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface, decorator: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface::Representation
382
+
340
383
  property :name, as: 'name'
384
+ property :network_config, as: 'networkConfig'
385
+ property :network_template, as: 'networkTemplate'
341
386
  property :os_image, as: 'osImage'
342
387
  property :private_network, as: 'privateNetwork', class: Google::Apis::BaremetalsolutionV2::NetworkAddress, decorator: Google::Apis::BaremetalsolutionV2::NetworkAddress::Representation
343
388
 
@@ -450,12 +495,14 @@ module Google
450
495
  end
451
496
  end
452
497
 
453
- class LogicalInterface
498
+ class LogicalNetworkInterface
454
499
  # @private
455
500
  class Representation < Google::Apis::Core::JsonRepresentation
456
- property :name, as: 'name'
457
- property :required, as: 'required'
458
- property :type, as: 'type'
501
+ property :default_gateway, as: 'defaultGateway'
502
+ property :id, as: 'id'
503
+ property :ip_address, as: 'ipAddress'
504
+ property :network, as: 'network'
505
+ property :network_type, as: 'networkType'
459
506
  end
460
507
  end
461
508
 
@@ -528,6 +575,7 @@ module Google
528
575
  property :cidr, as: 'cidr'
529
576
  property :gcp_service, as: 'gcpService'
530
577
  property :id, as: 'id'
578
+ property :jumbo_frames_enabled, as: 'jumboFramesEnabled'
531
579
  property :name, as: 'name'
532
580
  property :service_cidr, as: 'serviceCidr'
533
581
  property :type, as: 'type'
@@ -568,6 +616,7 @@ module Google
568
616
  hash :labels, as: 'labels'
569
617
  property :name, as: 'name'
570
618
  property :nfs_share_id, as: 'nfsShareId'
619
+ property :requested_size_gib, :numeric_string => true, as: 'requestedSizeGib'
571
620
  property :state, as: 'state'
572
621
  property :volume, as: 'volume'
573
622
  end
@@ -614,6 +663,7 @@ module Google
614
663
  property :update_time, as: 'updateTime'
615
664
  collection :volumes, as: 'volumes', class: Google::Apis::BaremetalsolutionV2::VolumeConfig, decorator: Google::Apis::BaremetalsolutionV2::VolumeConfig::Representation
616
665
 
666
+ property :vpc_sc_enabled, as: 'vpcScEnabled'
617
667
  end
618
668
  end
619
669
 
@@ -646,11 +696,18 @@ module Google
646
696
  end
647
697
  end
648
698
 
699
+ class ResizeVolumeRequest
700
+ # @private
701
+ class Representation < Google::Apis::Core::JsonRepresentation
702
+ property :size_gib, :numeric_string => true, as: 'sizeGib'
703
+ end
704
+ end
705
+
649
706
  class ServerNetworkTemplate
650
707
  # @private
651
708
  class Representation < Google::Apis::Core::JsonRepresentation
652
709
  collection :applicable_instance_types, as: 'applicableInstanceTypes'
653
- collection :logical_interfaces, as: 'logicalInterfaces', class: Google::Apis::BaremetalsolutionV2::LogicalInterface, decorator: Google::Apis::BaremetalsolutionV2::LogicalInterface::Representation
710
+ collection :logical_interfaces, as: 'logicalInterfaces', class: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface, decorator: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface::Representation
654
711
 
655
712
  property :name, as: 'name'
656
713
  end
@@ -733,7 +790,10 @@ module Google
733
790
  property :emergency_size_gib, :numeric_string => true, as: 'emergencySizeGib'
734
791
  property :id, as: 'id'
735
792
  hash :labels, as: 'labels'
793
+ property :max_size_gib, :numeric_string => true, as: 'maxSizeGib'
736
794
  property :name, as: 'name'
795
+ property :originally_requested_size_gib, :numeric_string => true, as: 'originallyRequestedSizeGib'
796
+ property :pod, as: 'pod'
737
797
  property :remaining_space_gib, :numeric_string => true, as: 'remainingSpaceGib'
738
798
  property :requested_size_gib, :numeric_string => true, as: 'requestedSizeGib'
739
799
  property :snapshot_auto_delete_behavior, as: 'snapshotAutoDeleteBehavior'
@@ -265,8 +265,8 @@ module Google
265
265
  # instances/`instance``
266
266
  # @param [Google::Apis::BaremetalsolutionV2::Instance] instance_object
267
267
  # @param [String] update_mask
268
- # The list of fields to update. The only currently supported fields are: `labels`
269
- # `hyperthreading_enabled`
268
+ # The list of fields to update. The currently supported fields are: `labels` `
269
+ # hyperthreading_enabled` `os_image`
270
270
  # @param [String] fields
271
271
  # Selector specifying which fields to include in a partial response.
272
272
  # @param [String] quota_user
@@ -507,6 +507,7 @@ module Google
507
507
  # @param [Google::Apis::BaremetalsolutionV2::Network] network_object
508
508
  # @param [String] update_mask
509
509
  # The list of fields to update. The only currently supported fields are: `labels`
510
+ # , `reservations`
510
511
  # @param [String] fields
511
512
  # Selector specifying which fields to include in a partial response.
512
513
  # @param [String] quota_user
@@ -900,8 +901,7 @@ module Google
900
901
  # @param [String] update_mask
901
902
  # The list of fields to update. The only currently supported fields are: `
902
903
  # snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` 'labels' '
903
- # requested_size_gib' 'snapshot_enabled' 'snapshot_reservation_detail.
904
- # reserved_space_percent'
904
+ # snapshot_enabled' 'snapshot_reservation_detail.reserved_space_percent'
905
905
  # @param [String] fields
906
906
  # Selector specifying which fields to include in a partial response.
907
907
  # @param [String] quota_user
@@ -932,6 +932,39 @@ module Google
932
932
  execute_or_queue_command(command, &block)
933
933
  end
934
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
+
935
968
  # Get details of a single storage logical unit number(LUN).
936
969
  # @param [String] name
937
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.12.0
4
+ version: 0.15.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-09 00:00:00.000000000 Z
11
+ date: 2022-06-13 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.5'
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.5'
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.12.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.15.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Bare Metal Solution API V2