google-apis-baremetalsolution_v2 0.13.0 → 0.16.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: 1a9a04269252fe0ee90b422f2fabba5bfb8940696385ec25458a865733371035
4
- data.tar.gz: eb462ff8fa2304d0b772fbf7161db5e28182f8521c4503c3751884e9ea4b97ec
3
+ metadata.gz: c3c8cd7c075450811c8f890ad262d11ef4d9edec6b9b765814473d4265effc6a
4
+ data.tar.gz: 2e7f74e75f813d9c4fb8f8a8bc14b40645b06e08395e6f52a908ef48cf34aa93
5
5
  SHA512:
6
- metadata.gz: 5e498f7f5988ca8add479f0457ecff688a5f2f74fd382645d2ddc60adda93dd97c638d0dec3b3bc6a54ce81217d7c67ef8b8ba07a15c89493a7de6f8b92dbf6b
7
- data.tar.gz: 6f2551998f527325fc2a6fbaaf03f004c3f657365494c2f73b28ef35388d3d9e543d426cb83236509a442fa1fc70b9a172e057a1f424d98cd0dfd425d6ff5873
6
+ metadata.gz: 0155a2d19ea0478a3315b399af9f10802dbdf921cf1c77d6428386cbce6d2b364e661a30bb1e43c765e0551653a6548a138d2596d1d2a74699fe45aba37bbcca
7
+ data.tar.gz: d35cbd880ebaf315cc1ec92012396469e6c6da677bb60f4a1fa332f2a1945c5fd242bdc9fa4d37f88824c31e1a309f6ef1a88f9f23a12ed6f6d0e25f846a23bb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.16.0 (2022-06-19)
4
+
5
+ * Regenerated using generator version 0.7.0
6
+
7
+ ### v0.15.0 (2022-06-08)
8
+
9
+ * Regenerated from discovery document revision 20220603
10
+ * Regenerated using generator version 0.5.0
11
+
12
+ ### v0.14.0 (2022-05-29)
13
+
14
+ * Regenerated from discovery document revision 20220524
15
+
3
16
  ### v0.13.0 (2022-05-21)
4
17
 
5
18
  * Regenerated from discovery document revision 20220506
@@ -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>]
@@ -210,9 +297,11 @@ module Google
210
297
  @id = args[:id] if args.key?(:id)
211
298
  @interactive_serial_console_enabled = args[:interactive_serial_console_enabled] if args.key?(:interactive_serial_console_enabled)
212
299
  @labels = args[:labels] if args.key?(:labels)
300
+ @logical_interfaces = args[:logical_interfaces] if args.key?(:logical_interfaces)
213
301
  @luns = args[:luns] if args.key?(:luns)
214
302
  @machine_type = args[:machine_type] if args.key?(:machine_type)
215
303
  @name = args[:name] if args.key?(:name)
304
+ @network_template = args[:network_template] if args.key?(:network_template)
216
305
  @networks = args[:networks] if args.key?(:networks)
217
306
  @os_image = args[:os_image] if args.key?(:os_image)
218
307
  @pod = args[:pod] if args.key?(:pod)
@@ -254,11 +343,29 @@ module Google
254
343
  # @return [String]
255
344
  attr_accessor :instance_type
256
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
+
257
353
  # Output only. The name of the instance config.
258
354
  # Corresponds to the JSON property `name`
259
355
  # @return [String]
260
356
  attr_accessor :name
261
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
+
262
369
  # OS image to initialize the instance. [Available images](https://cloud.google.
263
370
  # com/bare-metal/docs/bms-planning#server_configurations)
264
371
  # Corresponds to the JSON property `osImage`
@@ -287,7 +394,10 @@ module Google
287
394
  @hyperthreading = args[:hyperthreading] if args.key?(:hyperthreading)
288
395
  @id = args[:id] if args.key?(:id)
289
396
  @instance_type = args[:instance_type] if args.key?(:instance_type)
397
+ @logical_interfaces = args[:logical_interfaces] if args.key?(:logical_interfaces)
290
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)
291
401
  @os_image = args[:os_image] if args.key?(:os_image)
292
402
  @private_network = args[:private_network] if args.key?(:private_network)
293
403
  @user_note = args[:user_note] if args.key?(:user_note)
@@ -629,26 +739,36 @@ module Google
629
739
  end
630
740
  end
631
741
 
632
- # Logical interface.
633
- class LogicalInterface
742
+ # Each logical network interface is effectively a network and IP pair.
743
+ class LogicalNetworkInterface
634
744
  include Google::Apis::Core::Hashable
635
745
 
636
- # Interface name. This is not a globally unique identifier. Name is unique only
637
- # inside the ServerNetworkTemplate.
638
- # 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`
639
755
  # @return [String]
640
- attr_accessor :name
756
+ attr_accessor :id
641
757
 
642
- # If true, interface must have network connected.
643
- # Corresponds to the JSON property `required`
644
- # @return [Boolean]
645
- attr_accessor :required
646
- 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
647
762
 
648
- # Interface type.
649
- # Corresponds to the JSON property `type`
763
+ # Name of the network
764
+ # Corresponds to the JSON property `network`
650
765
  # @return [String]
651
- 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
652
772
 
653
773
  def initialize(**args)
654
774
  update!(**args)
@@ -656,9 +776,11 @@ module Google
656
776
 
657
777
  # Update properties of this object
658
778
  def update!(**args)
659
- @name = args[:name] if args.key?(:name)
660
- @required = args[:required] if args.key?(:required)
661
- @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)
662
784
  end
663
785
  end
664
786
 
@@ -944,6 +1066,12 @@ module Google
944
1066
  # @return [String]
945
1067
  attr_accessor :id
946
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
+
947
1075
  # Output only. The name of the network config.
948
1076
  # Corresponds to the JSON property `name`
949
1077
  # @return [String]
@@ -960,7 +1088,7 @@ module Google
960
1088
  attr_accessor :type
961
1089
 
962
1090
  # User note field, it can be used by customers to add additional information for
963
- # the BMS Ops team (b/194021617).
1091
+ # the BMS Ops team .
964
1092
  # Corresponds to the JSON property `userNote`
965
1093
  # @return [String]
966
1094
  attr_accessor :user_note
@@ -987,6 +1115,7 @@ module Google
987
1115
  @cidr = args[:cidr] if args.key?(:cidr)
988
1116
  @gcp_service = args[:gcp_service] if args.key?(:gcp_service)
989
1117
  @id = args[:id] if args.key?(:id)
1118
+ @jumbo_frames_enabled = args[:jumbo_frames_enabled] if args.key?(:jumbo_frames_enabled)
990
1119
  @name = args[:name] if args.key?(:name)
991
1120
  @service_cidr = args[:service_cidr] if args.key?(:service_cidr)
992
1121
  @type = args[:type] if args.key?(:type)
@@ -1106,6 +1235,11 @@ module Google
1106
1235
  # @return [String]
1107
1236
  attr_accessor :nfs_share_id
1108
1237
 
1238
+ # The requested size, in GiB.
1239
+ # Corresponds to the JSON property `requestedSizeGib`
1240
+ # @return [Fixnum]
1241
+ attr_accessor :requested_size_gib
1242
+
1109
1243
  # The state of the NFS share.
1110
1244
  # Corresponds to the JSON property `state`
1111
1245
  # @return [String]
@@ -1126,6 +1260,7 @@ module Google
1126
1260
  @labels = args[:labels] if args.key?(:labels)
1127
1261
  @name = args[:name] if args.key?(:name)
1128
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)
1129
1264
  @state = args[:state] if args.key?(:state)
1130
1265
  @volume = args[:volume] if args.key?(:volume)
1131
1266
  end
@@ -1284,7 +1419,7 @@ module Google
1284
1419
  # @return [String]
1285
1420
  attr_accessor :state
1286
1421
 
1287
- # A generated buganizer id to track provisioning request.
1422
+ # A generated ticket id to track provisioning request.
1288
1423
  # Corresponds to the JSON property `ticketId`
1289
1424
  # @return [String]
1290
1425
  attr_accessor :ticket_id
@@ -1299,6 +1434,12 @@ module Google
1299
1434
  # @return [Array<Google::Apis::BaremetalsolutionV2::VolumeConfig>]
1300
1435
  attr_accessor :volumes
1301
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
+
1302
1443
  def initialize(**args)
1303
1444
  update!(**args)
1304
1445
  end
@@ -1316,6 +1457,7 @@ module Google
1316
1457
  @ticket_id = args[:ticket_id] if args.key?(:ticket_id)
1317
1458
  @update_time = args[:update_time] if args.key?(:update_time)
1318
1459
  @volumes = args[:volumes] if args.key?(:volumes)
1460
+ @vpc_sc_enabled = args[:vpc_sc_enabled] if args.key?(:vpc_sc_enabled)
1319
1461
  end
1320
1462
  end
1321
1463
 
@@ -1418,6 +1560,25 @@ module Google
1418
1560
  end
1419
1561
  end
1420
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
+
1421
1582
  # Network template.
1422
1583
  class ServerNetworkTemplate
1423
1584
  include Google::Apis::Core::Hashable
@@ -1429,10 +1590,13 @@ module Google
1429
1590
 
1430
1591
  # Logical interfaces.
1431
1592
  # Corresponds to the JSON property `logicalInterfaces`
1432
- # @return [Array<Google::Apis::BaremetalsolutionV2::LogicalInterface>]
1593
+ # @return [Array<Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface>]
1433
1594
  attr_accessor :logical_interfaces
1434
1595
 
1435
- # 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".
1436
1600
  # Corresponds to the JSON property `name`
1437
1601
  # @return [String]
1438
1602
  attr_accessor :name
@@ -1702,6 +1866,11 @@ module Google
1702
1866
  # @return [Hash<String,String>]
1703
1867
  attr_accessor :labels
1704
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
+
1705
1874
  # Output only. The resource name of this `Volume`. Resource names are schemeless
1706
1875
  # URIs that follow the conventions in https://cloud.google.com/apis/design/
1707
1876
  # resource_names. Format: `projects/`project`/locations/`location`/volumes/`
@@ -1710,6 +1879,11 @@ module Google
1710
1879
  # @return [String]
1711
1880
  attr_accessor :name
1712
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
+
1713
1887
  # Immutable. Pod name.
1714
1888
  # Corresponds to the JSON property `pod`
1715
1889
  # @return [String]
@@ -1768,7 +1942,9 @@ module Google
1768
1942
  @emergency_size_gib = args[:emergency_size_gib] if args.key?(:emergency_size_gib)
1769
1943
  @id = args[:id] if args.key?(:id)
1770
1944
  @labels = args[:labels] if args.key?(:labels)
1945
+ @max_size_gib = args[:max_size_gib] if args.key?(:max_size_gib)
1771
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)
1772
1948
  @pod = args[:pod] if args.key?(:pod)
1773
1949
  @remaining_space_gib = args[:remaining_space_gib] if args.key?(:remaining_space_gib)
1774
1950
  @requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib)
@@ -1839,7 +2015,7 @@ module Google
1839
2015
  attr_accessor :type
1840
2016
 
1841
2017
  # User note field, it can be used by customers to add additional information for
1842
- # the BMS Ops team (b/194021617).
2018
+ # the BMS Ops team .
1843
2019
  # Corresponds to the JSON property `userNote`
1844
2020
  # @return [String]
1845
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.13.0"
19
+ GEM_VERSION = "0.16.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 = "20220506"
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,10 +353,13 @@ 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'
@@ -338,7 +378,11 @@ module Google
338
378
  property :hyperthreading, as: 'hyperthreading'
339
379
  property :id, as: 'id'
340
380
  property :instance_type, as: 'instanceType'
381
+ collection :logical_interfaces, as: 'logicalInterfaces', class: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface, decorator: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface::Representation
382
+
341
383
  property :name, as: 'name'
384
+ property :network_config, as: 'networkConfig'
385
+ property :network_template, as: 'networkTemplate'
342
386
  property :os_image, as: 'osImage'
343
387
  property :private_network, as: 'privateNetwork', class: Google::Apis::BaremetalsolutionV2::NetworkAddress, decorator: Google::Apis::BaremetalsolutionV2::NetworkAddress::Representation
344
388
 
@@ -451,12 +495,14 @@ module Google
451
495
  end
452
496
  end
453
497
 
454
- class LogicalInterface
498
+ class LogicalNetworkInterface
455
499
  # @private
456
500
  class Representation < Google::Apis::Core::JsonRepresentation
457
- property :name, as: 'name'
458
- property :required, as: 'required'
459
- 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'
460
506
  end
461
507
  end
462
508
 
@@ -529,6 +575,7 @@ module Google
529
575
  property :cidr, as: 'cidr'
530
576
  property :gcp_service, as: 'gcpService'
531
577
  property :id, as: 'id'
578
+ property :jumbo_frames_enabled, as: 'jumboFramesEnabled'
532
579
  property :name, as: 'name'
533
580
  property :service_cidr, as: 'serviceCidr'
534
581
  property :type, as: 'type'
@@ -569,6 +616,7 @@ module Google
569
616
  hash :labels, as: 'labels'
570
617
  property :name, as: 'name'
571
618
  property :nfs_share_id, as: 'nfsShareId'
619
+ property :requested_size_gib, :numeric_string => true, as: 'requestedSizeGib'
572
620
  property :state, as: 'state'
573
621
  property :volume, as: 'volume'
574
622
  end
@@ -615,6 +663,7 @@ module Google
615
663
  property :update_time, as: 'updateTime'
616
664
  collection :volumes, as: 'volumes', class: Google::Apis::BaremetalsolutionV2::VolumeConfig, decorator: Google::Apis::BaremetalsolutionV2::VolumeConfig::Representation
617
665
 
666
+ property :vpc_sc_enabled, as: 'vpcScEnabled'
618
667
  end
619
668
  end
620
669
 
@@ -647,11 +696,18 @@ module Google
647
696
  end
648
697
  end
649
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
+
650
706
  class ServerNetworkTemplate
651
707
  # @private
652
708
  class Representation < Google::Apis::Core::JsonRepresentation
653
709
  collection :applicable_instance_types, as: 'applicableInstanceTypes'
654
- 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
655
711
 
656
712
  property :name, as: 'name'
657
713
  end
@@ -734,7 +790,9 @@ module Google
734
790
  property :emergency_size_gib, :numeric_string => true, as: 'emergencySizeGib'
735
791
  property :id, as: 'id'
736
792
  hash :labels, as: 'labels'
793
+ property :max_size_gib, :numeric_string => true, as: 'maxSizeGib'
737
794
  property :name, as: 'name'
795
+ property :originally_requested_size_gib, :numeric_string => true, as: 'originallyRequestedSizeGib'
738
796
  property :pod, as: 'pod'
739
797
  property :remaining_space_gib, :numeric_string => true, as: 'remainingSpaceGib'
740
798
  property :requested_size_gib, :numeric_string => true, as: 'requestedSizeGib'
@@ -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.13.0
4
+ version: 0.16.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-23 00:00:00.000000000 Z
11
+ date: 2022-06-20 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.13.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.16.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