google-apis-baremetalsolution_v2 0.13.0 → 0.14.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: 1af06de5ea05055552d4700fb3db57550a62b94bcf50bcc82ed84fd941b7af0b
4
+ data.tar.gz: c7dadedaa436d3fe010961b3c5de367823e7977ca45f28a04a851525a304752b
5
5
  SHA512:
6
- metadata.gz: 5e498f7f5988ca8add479f0457ecff688a5f2f74fd382645d2ddc60adda93dd97c638d0dec3b3bc6a54ce81217d7c67ef8b8ba07a15c89493a7de6f8b92dbf6b
7
- data.tar.gz: 6f2551998f527325fc2a6fbaaf03f004c3f657365494c2f73b28ef35388d3d9e543d426cb83236509a442fa1fc70b9a172e057a1f424d98cd0dfd425d6ff5873
6
+ metadata.gz: 13ab972a9e63c7071ee0272bbbbba38d2de6db8fde318a4e1795a791aee493a500220b2973635ac568f7579f18e3fdcd0066765ab79a2d24dc08760254242735
7
+ data.tar.gz: 8128f743bcd1fd69ebf73e06d56cd7041536fc8ef78936f76a2978e5bce0584cb0b61630da7fad964b2d5d03d1474063bfb7214a33bb08d2e9b46177ffe037ae
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.14.0 (2022-05-29)
4
+
5
+ * Regenerated from discovery document revision 20220524
6
+
3
7
  ### v0.13.0 (2022-05-21)
4
8
 
5
9
  * 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.
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
 
@@ -960,7 +1082,7 @@ module Google
960
1082
  attr_accessor :type
961
1083
 
962
1084
  # User note field, it can be used by customers to add additional information for
963
- # the BMS Ops team (b/194021617).
1085
+ # the BMS Ops team .
964
1086
  # Corresponds to the JSON property `userNote`
965
1087
  # @return [String]
966
1088
  attr_accessor :user_note
@@ -1284,7 +1406,7 @@ module Google
1284
1406
  # @return [String]
1285
1407
  attr_accessor :state
1286
1408
 
1287
- # A generated buganizer id to track provisioning request.
1409
+ # A generated ticket id to track provisioning request.
1288
1410
  # Corresponds to the JSON property `ticketId`
1289
1411
  # @return [String]
1290
1412
  attr_accessor :ticket_id
@@ -1429,10 +1551,13 @@ module Google
1429
1551
 
1430
1552
  # Logical interfaces.
1431
1553
  # Corresponds to the JSON property `logicalInterfaces`
1432
- # @return [Array<Google::Apis::BaremetalsolutionV2::LogicalInterface>]
1554
+ # @return [Array<Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface>]
1433
1555
  attr_accessor :logical_interfaces
1434
1556
 
1435
- # Output only. Template's unique name.
1557
+ # Output only. Template's unique name. The full resource name follows the
1558
+ # pattern: `projects/`project`/locations/`location`/serverNetworkTemplate/`
1559
+ # server_network_template`` Generally, the `server_network_template` follows the
1560
+ # syntax of "bond" or "nic".
1436
1561
  # Corresponds to the JSON property `name`
1437
1562
  # @return [String]
1438
1563
  attr_accessor :name
@@ -1839,7 +1964,7 @@ module Google
1839
1964
  attr_accessor :type
1840
1965
 
1841
1966
  # User note field, it can be used by customers to add additional information for
1842
- # the BMS Ops team (b/194021617).
1967
+ # the BMS Ops team .
1843
1968
  # Corresponds to the JSON property `userNote`
1844
1969
  # @return [String]
1845
1970
  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.14.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220506"
25
+ REVISION = "20220524"
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
@@ -308,6 +320,25 @@ module Google
308
320
  end
309
321
  end
310
322
 
323
+ class GoogleCloudBaremetalsolutionV2LogicalInterface
324
+ # @private
325
+ class Representation < Google::Apis::Core::JsonRepresentation
326
+ property :interface_index, as: 'interfaceIndex'
327
+ collection :logical_network_interfaces, as: 'logicalNetworkInterfaces', class: Google::Apis::BaremetalsolutionV2::LogicalNetworkInterface, decorator: Google::Apis::BaremetalsolutionV2::LogicalNetworkInterface::Representation
328
+
329
+ property :name, as: 'name'
330
+ end
331
+ end
332
+
333
+ class GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface
334
+ # @private
335
+ class Representation < Google::Apis::Core::JsonRepresentation
336
+ property :name, as: 'name'
337
+ property :required, as: 'required'
338
+ property :type, as: 'type'
339
+ end
340
+ end
341
+
311
342
  class Instance
312
343
  # @private
313
344
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -316,10 +347,13 @@ module Google
316
347
  property :id, as: 'id'
317
348
  property :interactive_serial_console_enabled, as: 'interactiveSerialConsoleEnabled'
318
349
  hash :labels, as: 'labels'
350
+ collection :logical_interfaces, as: 'logicalInterfaces', class: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface, decorator: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface::Representation
351
+
319
352
  collection :luns, as: 'luns', class: Google::Apis::BaremetalsolutionV2::Lun, decorator: Google::Apis::BaremetalsolutionV2::Lun::Representation
320
353
 
321
354
  property :machine_type, as: 'machineType'
322
355
  property :name, as: 'name'
356
+ property :network_template, as: 'networkTemplate'
323
357
  collection :networks, as: 'networks', class: Google::Apis::BaremetalsolutionV2::Network, decorator: Google::Apis::BaremetalsolutionV2::Network::Representation
324
358
 
325
359
  property :os_image, as: 'osImage'
@@ -338,7 +372,11 @@ module Google
338
372
  property :hyperthreading, as: 'hyperthreading'
339
373
  property :id, as: 'id'
340
374
  property :instance_type, as: 'instanceType'
375
+ collection :logical_interfaces, as: 'logicalInterfaces', class: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface, decorator: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface::Representation
376
+
341
377
  property :name, as: 'name'
378
+ property :network_config, as: 'networkConfig'
379
+ property :network_template, as: 'networkTemplate'
342
380
  property :os_image, as: 'osImage'
343
381
  property :private_network, as: 'privateNetwork', class: Google::Apis::BaremetalsolutionV2::NetworkAddress, decorator: Google::Apis::BaremetalsolutionV2::NetworkAddress::Representation
344
382
 
@@ -451,12 +489,14 @@ module Google
451
489
  end
452
490
  end
453
491
 
454
- class LogicalInterface
492
+ class LogicalNetworkInterface
455
493
  # @private
456
494
  class Representation < Google::Apis::Core::JsonRepresentation
457
- property :name, as: 'name'
458
- property :required, as: 'required'
459
- property :type, as: 'type'
495
+ property :default_gateway, as: 'defaultGateway'
496
+ property :id, as: 'id'
497
+ property :ip_address, as: 'ipAddress'
498
+ property :network, as: 'network'
499
+ property :network_type, as: 'networkType'
460
500
  end
461
501
  end
462
502
 
@@ -651,7 +691,7 @@ module Google
651
691
  # @private
652
692
  class Representation < Google::Apis::Core::JsonRepresentation
653
693
  collection :applicable_instance_types, as: 'applicableInstanceTypes'
654
- collection :logical_interfaces, as: 'logicalInterfaces', class: Google::Apis::BaremetalsolutionV2::LogicalInterface, decorator: Google::Apis::BaremetalsolutionV2::LogicalInterface::Representation
694
+ collection :logical_interfaces, as: 'logicalInterfaces', class: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface, decorator: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface::Representation
655
695
 
656
696
  property :name, as: 'name'
657
697
  end
@@ -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
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.14.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-05-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/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.14.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