google-apis-baremetalsolution_v2 0.23.0 → 0.25.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: 720b5c0dda16e73c4ef1ad5d4a0e821643f7ea2e3a6534e8a7fa0b1a7e93cb62
4
- data.tar.gz: 02ae76360d349ebe4bb451062557735ddaa46865f418506661e15ac181d45a8a
3
+ metadata.gz: ab1a9dc1efa41dae262d91f7a77b4a9c95ba2dad8b835294266105b071861d3a
4
+ data.tar.gz: 5c8a34ea45d68f207fbc4bbad515f54eadc690cd483516bdaf96dda122c2169d
5
5
  SHA512:
6
- metadata.gz: 941444d3aff49ae032a1d2c607b6193b4153b6537347388279ca060893511d5c3760b82546fec300ddc8495c7fd7fb805dbcd48e60e466874447625ff6005a40
7
- data.tar.gz: 4abf3031fbef635859634f9af452227d599125d537d8d17d485752e28a85a999a2527e923b4cb1236699aa581353c4445975b680c0b6f24f985d912bab2198e5
6
+ metadata.gz: 16d3bc130162dbb7b619881ec89fcaa522aab60b7c080fec487cadd32a9d581840350bddb830221ba18608b3f8026738e1a036f6caa942f3f4ae520ff88504de
7
+ data.tar.gz: 44a7e4edc9b4251b0edd72a6d25abdb8c1fa147127a20a11e6641e5d21b31fa3c49375174b37a1b963903f644a9c90613c446ece5416e9643b6738f028109adf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.25.0 (2022-10-28)
4
+
5
+ * Regenerated from discovery document revision 20221017
6
+ * Regenerated using generator version 0.11.0
7
+
8
+ ### v0.24.0 (2022-09-24)
9
+
10
+ * Regenerated from discovery document revision 20220921
11
+ * Regenerated using generator version 0.10.0
12
+
3
13
  ### v0.23.0 (2022-09-01)
4
14
 
5
15
  * Regenerated from discovery document revision 20220829
@@ -117,6 +117,48 @@ module Google
117
117
  end
118
118
  end
119
119
 
120
+ # Message for disabling the interactive serial console on an instance.
121
+ class DisableInteractiveSerialConsoleRequest
122
+ include Google::Apis::Core::Hashable
123
+
124
+ def initialize(**args)
125
+ update!(**args)
126
+ end
127
+
128
+ # Update properties of this object
129
+ def update!(**args)
130
+ end
131
+ end
132
+
133
+ # A generic empty message that you can re-use to avoid defining duplicated empty
134
+ # messages in your APIs. A typical example is to use it as the request or the
135
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
136
+ # protobuf.Empty) returns (google.protobuf.Empty); `
137
+ class Empty
138
+ include Google::Apis::Core::Hashable
139
+
140
+ def initialize(**args)
141
+ update!(**args)
142
+ end
143
+
144
+ # Update properties of this object
145
+ def update!(**args)
146
+ end
147
+ end
148
+
149
+ # Message for enabling the interactive serial console on an instance.
150
+ class EnableInteractiveSerialConsoleRequest
151
+ include Google::Apis::Core::Hashable
152
+
153
+ def initialize(**args)
154
+ update!(**args)
155
+ end
156
+
157
+ # Update properties of this object
158
+ def update!(**args)
159
+ end
160
+ end
161
+
120
162
  # Response with all provisioning settings.
121
163
  class FetchInstanceProvisioningSettingsResponse
122
164
  include Google::Apis::Core::Hashable
@@ -696,6 +738,63 @@ module Google
696
738
  end
697
739
  end
698
740
 
741
+ # Message for response of ListSSHKeys.
742
+ class ListSshKeysResponse
743
+ include Google::Apis::Core::Hashable
744
+
745
+ # Token to retrieve the next page of results, or empty if there are no more
746
+ # results in the list.
747
+ # Corresponds to the JSON property `nextPageToken`
748
+ # @return [String]
749
+ attr_accessor :next_page_token
750
+
751
+ # The SSH keys registered in the project.
752
+ # Corresponds to the JSON property `sshKeys`
753
+ # @return [Array<Google::Apis::BaremetalsolutionV2::SshKey>]
754
+ attr_accessor :ssh_keys
755
+
756
+ def initialize(**args)
757
+ update!(**args)
758
+ end
759
+
760
+ # Update properties of this object
761
+ def update!(**args)
762
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
763
+ @ssh_keys = args[:ssh_keys] if args.key?(:ssh_keys)
764
+ end
765
+ end
766
+
767
+ # Response message containing the list of volume snapshots.
768
+ class ListVolumeSnapshotsResponse
769
+ include Google::Apis::Core::Hashable
770
+
771
+ # A token identifying a page of results from the server.
772
+ # Corresponds to the JSON property `nextPageToken`
773
+ # @return [String]
774
+ attr_accessor :next_page_token
775
+
776
+ # Locations that could not be reached.
777
+ # Corresponds to the JSON property `unreachable`
778
+ # @return [Array<String>]
779
+ attr_accessor :unreachable
780
+
781
+ # The list of snapshots.
782
+ # Corresponds to the JSON property `volumeSnapshots`
783
+ # @return [Array<Google::Apis::BaremetalsolutionV2::VolumeSnapshot>]
784
+ attr_accessor :volume_snapshots
785
+
786
+ def initialize(**args)
787
+ update!(**args)
788
+ end
789
+
790
+ # Update properties of this object
791
+ def update!(**args)
792
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
793
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
794
+ @volume_snapshots = args[:volume_snapshots] if args.key?(:volume_snapshots)
795
+ end
796
+ end
797
+
699
798
  # Response message containing the list of storage volumes.
700
799
  class ListVolumesResponse
701
800
  include Google::Apis::Core::Hashable
@@ -929,6 +1028,11 @@ module Google
929
1028
  # @return [String]
930
1029
  attr_accessor :cidr
931
1030
 
1031
+ # Output only. Gateway ip address.
1032
+ # Corresponds to the JSON property `gatewayIp`
1033
+ # @return [String]
1034
+ attr_accessor :gateway_ip
1035
+
932
1036
  # An identifier for the `Network`, generated by the backend.
933
1037
  # Corresponds to the JSON property `id`
934
1038
  # @return [String]
@@ -1012,6 +1116,7 @@ module Google
1012
1116
  # Update properties of this object
1013
1117
  def update!(**args)
1014
1118
  @cidr = args[:cidr] if args.key?(:cidr)
1119
+ @gateway_ip = args[:gateway_ip] if args.key?(:gateway_ip)
1015
1120
  @id = args[:id] if args.key?(:id)
1016
1121
  @ip_address = args[:ip_address] if args.key?(:ip_address)
1017
1122
  @jumbo_frames_enabled = args[:jumbo_frames_enabled] if args.key?(:jumbo_frames_enabled)
@@ -1547,6 +1652,11 @@ module Google
1547
1652
  # @return [String]
1548
1653
  attr_accessor :cloud_console_uri
1549
1654
 
1655
+ # Optional. The user-defined identifier of the provisioning config.
1656
+ # Corresponds to the JSON property `customId`
1657
+ # @return [String]
1658
+ attr_accessor :custom_id
1659
+
1550
1660
  # Email provided to send a confirmation with provisioning config to. Deprecated
1551
1661
  # in favour of email field in request messages.
1552
1662
  # Corresponds to the JSON property `email`
@@ -1570,7 +1680,8 @@ module Google
1570
1680
  # @return [String]
1571
1681
  attr_accessor :location
1572
1682
 
1573
- # Output only. The name of the provisioning config.
1683
+ # Output only. The system-generated name of the provisioning config. This
1684
+ # follows the UUID format.
1574
1685
  # Corresponds to the JSON property `name`
1575
1686
  # @return [String]
1576
1687
  attr_accessor :name
@@ -1618,6 +1729,7 @@ module Google
1618
1729
  # Update properties of this object
1619
1730
  def update!(**args)
1620
1731
  @cloud_console_uri = args[:cloud_console_uri] if args.key?(:cloud_console_uri)
1732
+ @custom_id = args[:custom_id] if args.key?(:custom_id)
1621
1733
  @email = args[:email] if args.key?(:email)
1622
1734
  @handover_service_account = args[:handover_service_account] if args.key?(:handover_service_account)
1623
1735
  @instances = args[:instances] if args.key?(:instances)
@@ -1751,6 +1863,45 @@ module Google
1751
1863
  end
1752
1864
  end
1753
1865
 
1866
+ # Message for restoring a volume snapshot.
1867
+ class RestoreVolumeSnapshotRequest
1868
+ include Google::Apis::Core::Hashable
1869
+
1870
+ def initialize(**args)
1871
+ update!(**args)
1872
+ end
1873
+
1874
+ # Update properties of this object
1875
+ def update!(**args)
1876
+ end
1877
+ end
1878
+
1879
+ # An SSH key, used for authorizing with the interactive serial console feature.
1880
+ class SshKey
1881
+ include Google::Apis::Core::Hashable
1882
+
1883
+ # Output only. The name of this SSH key. Currently, the only valid value for the
1884
+ # location is "global".
1885
+ # Corresponds to the JSON property `name`
1886
+ # @return [String]
1887
+ attr_accessor :name
1888
+
1889
+ # The public SSH key. This must be in OpenSSH .authorized_keys format.
1890
+ # Corresponds to the JSON property `publicKey`
1891
+ # @return [String]
1892
+ attr_accessor :public_key
1893
+
1894
+ def initialize(**args)
1895
+ update!(**args)
1896
+ end
1897
+
1898
+ # Update properties of this object
1899
+ def update!(**args)
1900
+ @name = args[:name] if args.key?(:name)
1901
+ @public_key = args[:public_key] if args.key?(:public_key)
1902
+ end
1903
+ end
1904
+
1754
1905
  # Network template.
1755
1906
  class ServerNetworkTemplate
1756
1907
  include Google::Apis::Core::Hashable
@@ -2262,6 +2413,56 @@ module Google
2262
2413
  @user_note = args[:user_note] if args.key?(:user_note)
2263
2414
  end
2264
2415
  end
2416
+
2417
+ # A snapshot of a volume. Only boot volumes can have snapshots.
2418
+ class VolumeSnapshot
2419
+ include Google::Apis::Core::Hashable
2420
+
2421
+ # Output only. The creation time of the snapshot.
2422
+ # Corresponds to the JSON property `createTime`
2423
+ # @return [String]
2424
+ attr_accessor :create_time
2425
+
2426
+ # The description of the snapshot.
2427
+ # Corresponds to the JSON property `description`
2428
+ # @return [String]
2429
+ attr_accessor :description
2430
+
2431
+ # Output only. An identifier for the snapshot, generated by the backend.
2432
+ # Corresponds to the JSON property `id`
2433
+ # @return [String]
2434
+ attr_accessor :id
2435
+
2436
+ # The name of the snapshot.
2437
+ # Corresponds to the JSON property `name`
2438
+ # @return [String]
2439
+ attr_accessor :name
2440
+
2441
+ # Output only. The name of the volume which this snapshot belongs to.
2442
+ # Corresponds to the JSON property `storageVolume`
2443
+ # @return [String]
2444
+ attr_accessor :storage_volume
2445
+
2446
+ # Output only. The type of the snapshot which indicates whether it was scheduled
2447
+ # or manual/ad-hoc.
2448
+ # Corresponds to the JSON property `type`
2449
+ # @return [String]
2450
+ attr_accessor :type
2451
+
2452
+ def initialize(**args)
2453
+ update!(**args)
2454
+ end
2455
+
2456
+ # Update properties of this object
2457
+ def update!(**args)
2458
+ @create_time = args[:create_time] if args.key?(:create_time)
2459
+ @description = args[:description] if args.key?(:description)
2460
+ @id = args[:id] if args.key?(:id)
2461
+ @name = args[:name] if args.key?(:name)
2462
+ @storage_volume = args[:storage_volume] if args.key?(:storage_volume)
2463
+ @type = args[:type] if args.key?(:type)
2464
+ end
2465
+ end
2265
2466
  end
2266
2467
  end
2267
2468
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BaremetalsolutionV2
18
18
  # Version of the google-apis-baremetalsolution_v2 gem
19
- GEM_VERSION = "0.23.0"
19
+ GEM_VERSION = "0.25.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.9.0"
22
+ GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220829"
25
+ REVISION = "20221017"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,24 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class DisableInteractiveSerialConsoleRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Empty
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class EnableInteractiveSerialConsoleRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
37
55
  class FetchInstanceProvisioningSettingsResponse
38
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
57
 
@@ -118,6 +136,18 @@ module Google
118
136
  include Google::Apis::Core::JsonObjectSupport
119
137
  end
120
138
 
139
+ class ListSshKeysResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ListVolumeSnapshotsResponse
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
121
151
  class ListVolumesResponse
122
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
153
 
@@ -244,6 +274,18 @@ module Google
244
274
  include Google::Apis::Core::JsonObjectSupport
245
275
  end
246
276
 
277
+ class RestoreVolumeSnapshotRequest
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class SshKey
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
247
289
  class ServerNetworkTemplate
248
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
291
 
@@ -310,6 +352,12 @@ module Google
310
352
  include Google::Apis::Core::JsonObjectSupport
311
353
  end
312
354
 
355
+ class VolumeSnapshot
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
313
361
  class AllowedClient
314
362
  # @private
315
363
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -332,6 +380,24 @@ module Google
332
380
  end
333
381
  end
334
382
 
383
+ class DisableInteractiveSerialConsoleRequest
384
+ # @private
385
+ class Representation < Google::Apis::Core::JsonRepresentation
386
+ end
387
+ end
388
+
389
+ class Empty
390
+ # @private
391
+ class Representation < Google::Apis::Core::JsonRepresentation
392
+ end
393
+ end
394
+
395
+ class EnableInteractiveSerialConsoleRequest
396
+ # @private
397
+ class Representation < Google::Apis::Core::JsonRepresentation
398
+ end
399
+ end
400
+
335
401
  class FetchInstanceProvisioningSettingsResponse
336
402
  # @private
337
403
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -492,6 +558,25 @@ module Google
492
558
  end
493
559
  end
494
560
 
561
+ class ListSshKeysResponse
562
+ # @private
563
+ class Representation < Google::Apis::Core::JsonRepresentation
564
+ property :next_page_token, as: 'nextPageToken'
565
+ collection :ssh_keys, as: 'sshKeys', class: Google::Apis::BaremetalsolutionV2::SshKey, decorator: Google::Apis::BaremetalsolutionV2::SshKey::Representation
566
+
567
+ end
568
+ end
569
+
570
+ class ListVolumeSnapshotsResponse
571
+ # @private
572
+ class Representation < Google::Apis::Core::JsonRepresentation
573
+ property :next_page_token, as: 'nextPageToken'
574
+ collection :unreachable, as: 'unreachable'
575
+ collection :volume_snapshots, as: 'volumeSnapshots', class: Google::Apis::BaremetalsolutionV2::VolumeSnapshot, decorator: Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
576
+
577
+ end
578
+ end
579
+
495
580
  class ListVolumesResponse
496
581
  # @private
497
582
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -552,6 +637,7 @@ module Google
552
637
  # @private
553
638
  class Representation < Google::Apis::Core::JsonRepresentation
554
639
  property :cidr, as: 'cidr'
640
+ property :gateway_ip, as: 'gatewayIp'
555
641
  property :id, as: 'id'
556
642
  property :ip_address, as: 'ipAddress'
557
643
  property :jumbo_frames_enabled, as: 'jumboFramesEnabled'
@@ -697,6 +783,7 @@ module Google
697
783
  # @private
698
784
  class Representation < Google::Apis::Core::JsonRepresentation
699
785
  property :cloud_console_uri, as: 'cloudConsoleUri'
786
+ property :custom_id, as: 'customId'
700
787
  property :email, as: 'email'
701
788
  property :handover_service_account, as: 'handoverServiceAccount'
702
789
  collection :instances, as: 'instances', class: Google::Apis::BaremetalsolutionV2::InstanceConfig, decorator: Google::Apis::BaremetalsolutionV2::InstanceConfig::Representation
@@ -751,6 +838,20 @@ module Google
751
838
  end
752
839
  end
753
840
 
841
+ class RestoreVolumeSnapshotRequest
842
+ # @private
843
+ class Representation < Google::Apis::Core::JsonRepresentation
844
+ end
845
+ end
846
+
847
+ class SshKey
848
+ # @private
849
+ class Representation < Google::Apis::Core::JsonRepresentation
850
+ property :name, as: 'name'
851
+ property :public_key, as: 'publicKey'
852
+ end
853
+ end
854
+
754
855
  class ServerNetworkTemplate
755
856
  # @private
756
857
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -881,6 +982,18 @@ module Google
881
982
  property :user_note, as: 'userNote'
882
983
  end
883
984
  end
985
+
986
+ class VolumeSnapshot
987
+ # @private
988
+ class Representation < Google::Apis::Core::JsonRepresentation
989
+ property :create_time, as: 'createTime'
990
+ property :description, as: 'description'
991
+ property :id, as: 'id'
992
+ property :name, as: 'name'
993
+ property :storage_volume, as: 'storageVolume'
994
+ property :type, as: 'type'
995
+ end
996
+ end
884
997
  end
885
998
  end
886
999
  end
@@ -220,6 +220,72 @@ module Google
220
220
  execute_or_queue_command(command, &block)
221
221
  end
222
222
 
223
+ # Disable the interactive serial console feature on an instance.
224
+ # @param [String] name
225
+ # Required. Name of the resource.
226
+ # @param [Google::Apis::BaremetalsolutionV2::DisableInteractiveSerialConsoleRequest] disable_interactive_serial_console_request_object
227
+ # @param [String] fields
228
+ # Selector specifying which fields to include in a partial response.
229
+ # @param [String] quota_user
230
+ # Available to use for quota purposes for server-side applications. Can be any
231
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
232
+ # @param [Google::Apis::RequestOptions] options
233
+ # Request-specific options
234
+ #
235
+ # @yield [result, err] Result & error if block supplied
236
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
237
+ # @yieldparam err [StandardError] error object if request failed
238
+ #
239
+ # @return [Google::Apis::BaremetalsolutionV2::Operation]
240
+ #
241
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
242
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
243
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
244
+ def disable_instance_interactive_serial_console(name, disable_interactive_serial_console_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
245
+ command = make_simple_command(:post, 'v2/{+name}:disableInteractiveSerialConsole', options)
246
+ command.request_representation = Google::Apis::BaremetalsolutionV2::DisableInteractiveSerialConsoleRequest::Representation
247
+ command.request_object = disable_interactive_serial_console_request_object
248
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
249
+ command.response_class = Google::Apis::BaremetalsolutionV2::Operation
250
+ command.params['name'] = name unless name.nil?
251
+ command.query['fields'] = fields unless fields.nil?
252
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
253
+ execute_or_queue_command(command, &block)
254
+ end
255
+
256
+ # Enable the interactive serial console feature on an instance.
257
+ # @param [String] name
258
+ # Required. Name of the resource.
259
+ # @param [Google::Apis::BaremetalsolutionV2::EnableInteractiveSerialConsoleRequest] enable_interactive_serial_console_request_object
260
+ # @param [String] fields
261
+ # Selector specifying which fields to include in a partial response.
262
+ # @param [String] quota_user
263
+ # Available to use for quota purposes for server-side applications. Can be any
264
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
265
+ # @param [Google::Apis::RequestOptions] options
266
+ # Request-specific options
267
+ #
268
+ # @yield [result, err] Result & error if block supplied
269
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
270
+ # @yieldparam err [StandardError] error object if request failed
271
+ #
272
+ # @return [Google::Apis::BaremetalsolutionV2::Operation]
273
+ #
274
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
275
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
276
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
277
+ def enable_instance_interactive_serial_console(name, enable_interactive_serial_console_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
278
+ command = make_simple_command(:post, 'v2/{+name}:enableInteractiveSerialConsole', options)
279
+ command.request_representation = Google::Apis::BaremetalsolutionV2::EnableInteractiveSerialConsoleRequest::Representation
280
+ command.request_object = enable_interactive_serial_console_request_object
281
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
282
+ command.response_class = Google::Apis::BaremetalsolutionV2::Operation
283
+ command.params['name'] = name unless name.nil?
284
+ command.query['fields'] = fields unless fields.nil?
285
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
286
+ execute_or_queue_command(command, &block)
287
+ end
288
+
223
289
  # Get details about a single server.
224
290
  # @param [String] name
225
291
  # Required. Name of the resource.
@@ -540,7 +606,7 @@ module Google
540
606
  # @param [Google::Apis::BaremetalsolutionV2::Network] network_object
541
607
  # @param [String] update_mask
542
608
  # The list of fields to update. The only currently supported fields are: `labels`
543
- # , `reservations`
609
+ # , `reservations`, `vrf.vlan_attachments`
544
610
  # @param [String] fields
545
611
  # Selector specifying which fields to include in a partial response.
546
612
  # @param [String] quota_user
@@ -840,7 +906,8 @@ module Google
840
906
 
841
907
  # Update existing ProvisioningConfig.
842
908
  # @param [String] name
843
- # Output only. The name of the provisioning config.
909
+ # Output only. The system-generated name of the provisioning config. This
910
+ # follows the UUID format.
844
911
  # @param [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] provisioning_config_object
845
912
  # @param [String] email
846
913
  # Optional. Email provided to send a confirmation with provisioning config to.
@@ -949,6 +1016,114 @@ module Google
949
1016
  execute_or_queue_command(command, &block)
950
1017
  end
951
1018
 
1019
+ # Register a public SSH key in the specified project for use with the
1020
+ # interactive serial console feature.
1021
+ # @param [String] parent
1022
+ # Required. The parent containing the SSH keys.
1023
+ # @param [Google::Apis::BaremetalsolutionV2::SshKey] ssh_key_object
1024
+ # @param [String] ssh_key_id
1025
+ # Required. The ID to use for the key, which will become the final component of
1026
+ # the key's resource name. This value must match the regex: [a-zA-Z0-9@.\-_]`1,
1027
+ # 64`
1028
+ # @param [String] fields
1029
+ # Selector specifying which fields to include in a partial response.
1030
+ # @param [String] quota_user
1031
+ # Available to use for quota purposes for server-side applications. Can be any
1032
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1033
+ # @param [Google::Apis::RequestOptions] options
1034
+ # Request-specific options
1035
+ #
1036
+ # @yield [result, err] Result & error if block supplied
1037
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::SshKey] parsed result object
1038
+ # @yieldparam err [StandardError] error object if request failed
1039
+ #
1040
+ # @return [Google::Apis::BaremetalsolutionV2::SshKey]
1041
+ #
1042
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1043
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1044
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1045
+ def create_project_location_ssh_key(parent, ssh_key_object = nil, ssh_key_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1046
+ command = make_simple_command(:post, 'v2/{+parent}/sshKeys', options)
1047
+ command.request_representation = Google::Apis::BaremetalsolutionV2::SshKey::Representation
1048
+ command.request_object = ssh_key_object
1049
+ command.response_representation = Google::Apis::BaremetalsolutionV2::SshKey::Representation
1050
+ command.response_class = Google::Apis::BaremetalsolutionV2::SshKey
1051
+ command.params['parent'] = parent unless parent.nil?
1052
+ command.query['sshKeyId'] = ssh_key_id unless ssh_key_id.nil?
1053
+ command.query['fields'] = fields unless fields.nil?
1054
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1055
+ execute_or_queue_command(command, &block)
1056
+ end
1057
+
1058
+ # Deletes a public SSH key registered in the specified project.
1059
+ # @param [String] name
1060
+ # Required. The name of the SSH key to delete. Currently, the only valid value
1061
+ # for the location is "global".
1062
+ # @param [String] fields
1063
+ # Selector specifying which fields to include in a partial response.
1064
+ # @param [String] quota_user
1065
+ # Available to use for quota purposes for server-side applications. Can be any
1066
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1067
+ # @param [Google::Apis::RequestOptions] options
1068
+ # Request-specific options
1069
+ #
1070
+ # @yield [result, err] Result & error if block supplied
1071
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Empty] parsed result object
1072
+ # @yieldparam err [StandardError] error object if request failed
1073
+ #
1074
+ # @return [Google::Apis::BaremetalsolutionV2::Empty]
1075
+ #
1076
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1077
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1078
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1079
+ def delete_project_location_ssh_key(name, fields: nil, quota_user: nil, options: nil, &block)
1080
+ command = make_simple_command(:delete, 'v2/{+name}', options)
1081
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation
1082
+ command.response_class = Google::Apis::BaremetalsolutionV2::Empty
1083
+ command.params['name'] = name unless name.nil?
1084
+ command.query['fields'] = fields unless fields.nil?
1085
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1086
+ execute_or_queue_command(command, &block)
1087
+ end
1088
+
1089
+ # Lists the public SSH keys registered for the specified project. These SSH keys
1090
+ # are used only for the interactive serial console feature.
1091
+ # @param [String] parent
1092
+ # Required. The parent containing the SSH keys. Currently, the only valid value
1093
+ # for the location is "global".
1094
+ # @param [Fixnum] page_size
1095
+ # The maximum number of items to return.
1096
+ # @param [String] page_token
1097
+ # The next_page_token value returned from a previous List request, if any.
1098
+ # @param [String] fields
1099
+ # Selector specifying which fields to include in a partial response.
1100
+ # @param [String] quota_user
1101
+ # Available to use for quota purposes for server-side applications. Can be any
1102
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1103
+ # @param [Google::Apis::RequestOptions] options
1104
+ # Request-specific options
1105
+ #
1106
+ # @yield [result, err] Result & error if block supplied
1107
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::ListSshKeysResponse] parsed result object
1108
+ # @yieldparam err [StandardError] error object if request failed
1109
+ #
1110
+ # @return [Google::Apis::BaremetalsolutionV2::ListSshKeysResponse]
1111
+ #
1112
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1113
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1114
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1115
+ def list_project_location_ssh_keys(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1116
+ command = make_simple_command(:get, 'v2/{+parent}/sshKeys', options)
1117
+ command.response_representation = Google::Apis::BaremetalsolutionV2::ListSshKeysResponse::Representation
1118
+ command.response_class = Google::Apis::BaremetalsolutionV2::ListSshKeysResponse
1119
+ command.params['parent'] = parent unless parent.nil?
1120
+ command.query['pageSize'] = page_size unless page_size.nil?
1121
+ command.query['pageToken'] = page_token unless page_token.nil?
1122
+ command.query['fields'] = fields unless fields.nil?
1123
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1124
+ execute_or_queue_command(command, &block)
1125
+ end
1126
+
952
1127
  # Get details of a single storage volume.
953
1128
  # @param [String] name
954
1129
  # Required. Name of the resource.
@@ -1157,6 +1332,174 @@ module Google
1157
1332
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1158
1333
  execute_or_queue_command(command, &block)
1159
1334
  end
1335
+
1336
+ # Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a
1337
+ # non-boot volume.
1338
+ # @param [String] parent
1339
+ # Required. The volume to snapshot.
1340
+ # @param [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] volume_snapshot_object
1341
+ # @param [String] fields
1342
+ # Selector specifying which fields to include in a partial response.
1343
+ # @param [String] quota_user
1344
+ # Available to use for quota purposes for server-side applications. Can be any
1345
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1346
+ # @param [Google::Apis::RequestOptions] options
1347
+ # Request-specific options
1348
+ #
1349
+ # @yield [result, err] Result & error if block supplied
1350
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] parsed result object
1351
+ # @yieldparam err [StandardError] error object if request failed
1352
+ #
1353
+ # @return [Google::Apis::BaremetalsolutionV2::VolumeSnapshot]
1354
+ #
1355
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1356
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1357
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1358
+ def create_project_location_volume_snapshot(parent, volume_snapshot_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1359
+ command = make_simple_command(:post, 'v2/{+parent}/snapshots', options)
1360
+ command.request_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
1361
+ command.request_object = volume_snapshot_object
1362
+ command.response_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
1363
+ command.response_class = Google::Apis::BaremetalsolutionV2::VolumeSnapshot
1364
+ command.params['parent'] = parent unless parent.nil?
1365
+ command.query['fields'] = fields unless fields.nil?
1366
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1367
+ execute_or_queue_command(command, &block)
1368
+ end
1369
+
1370
+ # Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot
1371
+ # volume.
1372
+ # @param [String] name
1373
+ # Required. The name of the snapshot to delete.
1374
+ # @param [String] fields
1375
+ # Selector specifying which fields to include in a partial response.
1376
+ # @param [String] quota_user
1377
+ # Available to use for quota purposes for server-side applications. Can be any
1378
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1379
+ # @param [Google::Apis::RequestOptions] options
1380
+ # Request-specific options
1381
+ #
1382
+ # @yield [result, err] Result & error if block supplied
1383
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Empty] parsed result object
1384
+ # @yieldparam err [StandardError] error object if request failed
1385
+ #
1386
+ # @return [Google::Apis::BaremetalsolutionV2::Empty]
1387
+ #
1388
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1389
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1390
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1391
+ def delete_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
1392
+ command = make_simple_command(:delete, 'v2/{+name}', options)
1393
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation
1394
+ command.response_class = Google::Apis::BaremetalsolutionV2::Empty
1395
+ command.params['name'] = name unless name.nil?
1396
+ command.query['fields'] = fields unless fields.nil?
1397
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1398
+ execute_or_queue_command(command, &block)
1399
+ end
1400
+
1401
+ # Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called
1402
+ # for a non-boot volume.
1403
+ # @param [String] name
1404
+ # Required. The name of the snapshot.
1405
+ # @param [String] fields
1406
+ # Selector specifying which fields to include in a partial response.
1407
+ # @param [String] quota_user
1408
+ # Available to use for quota purposes for server-side applications. Can be any
1409
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1410
+ # @param [Google::Apis::RequestOptions] options
1411
+ # Request-specific options
1412
+ #
1413
+ # @yield [result, err] Result & error if block supplied
1414
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] parsed result object
1415
+ # @yieldparam err [StandardError] error object if request failed
1416
+ #
1417
+ # @return [Google::Apis::BaremetalsolutionV2::VolumeSnapshot]
1418
+ #
1419
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1420
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1421
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1422
+ def get_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
1423
+ command = make_simple_command(:get, 'v2/{+name}', options)
1424
+ command.response_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
1425
+ command.response_class = Google::Apis::BaremetalsolutionV2::VolumeSnapshot
1426
+ command.params['name'] = name unless name.nil?
1427
+ command.query['fields'] = fields unless fields.nil?
1428
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1429
+ execute_or_queue_command(command, &block)
1430
+ end
1431
+
1432
+ # Retrieves the list of snapshots for the specified volume. Returns a response
1433
+ # with an empty list of snapshots if called for a non-boot volume.
1434
+ # @param [String] parent
1435
+ # Required. Parent value for ListVolumesRequest.
1436
+ # @param [Fixnum] page_size
1437
+ # Requested page size. The server might return fewer items than requested. If
1438
+ # unspecified, server will pick an appropriate default.
1439
+ # @param [String] page_token
1440
+ # A token identifying a page of results from the server.
1441
+ # @param [String] fields
1442
+ # Selector specifying which fields to include in a partial response.
1443
+ # @param [String] quota_user
1444
+ # Available to use for quota purposes for server-side applications. Can be any
1445
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1446
+ # @param [Google::Apis::RequestOptions] options
1447
+ # Request-specific options
1448
+ #
1449
+ # @yield [result, err] Result & error if block supplied
1450
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse] parsed result object
1451
+ # @yieldparam err [StandardError] error object if request failed
1452
+ #
1453
+ # @return [Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse]
1454
+ #
1455
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1456
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1457
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1458
+ def list_project_location_volume_snapshots(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1459
+ command = make_simple_command(:get, 'v2/{+parent}/snapshots', options)
1460
+ command.response_representation = Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse::Representation
1461
+ command.response_class = Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse
1462
+ command.params['parent'] = parent unless parent.nil?
1463
+ command.query['pageSize'] = page_size unless page_size.nil?
1464
+ command.query['pageToken'] = page_token unless page_token.nil?
1465
+ command.query['fields'] = fields unless fields.nil?
1466
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1467
+ execute_or_queue_command(command, &block)
1468
+ end
1469
+
1470
+ # Uses the specified snapshot to restore its parent volume. Returns
1471
+ # INVALID_ARGUMENT if called for a non-boot volume.
1472
+ # @param [String] volume_snapshot
1473
+ # Required. Name of the snapshot which will be used to restore its parent volume.
1474
+ # @param [Google::Apis::BaremetalsolutionV2::RestoreVolumeSnapshotRequest] restore_volume_snapshot_request_object
1475
+ # @param [String] fields
1476
+ # Selector specifying which fields to include in a partial response.
1477
+ # @param [String] quota_user
1478
+ # Available to use for quota purposes for server-side applications. Can be any
1479
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1480
+ # @param [Google::Apis::RequestOptions] options
1481
+ # Request-specific options
1482
+ #
1483
+ # @yield [result, err] Result & error if block supplied
1484
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
1485
+ # @yieldparam err [StandardError] error object if request failed
1486
+ #
1487
+ # @return [Google::Apis::BaremetalsolutionV2::Operation]
1488
+ #
1489
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1490
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1491
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1492
+ def restore_volume_snapshot(volume_snapshot, restore_volume_snapshot_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1493
+ command = make_simple_command(:post, 'v2/{+volumeSnapshot}:restoreVolumeSnapshot', options)
1494
+ command.request_representation = Google::Apis::BaremetalsolutionV2::RestoreVolumeSnapshotRequest::Representation
1495
+ command.request_object = restore_volume_snapshot_request_object
1496
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
1497
+ command.response_class = Google::Apis::BaremetalsolutionV2::Operation
1498
+ command.params['volumeSnapshot'] = volume_snapshot unless volume_snapshot.nil?
1499
+ command.query['fields'] = fields unless fields.nil?
1500
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1501
+ execute_or_queue_command(command, &block)
1502
+ end
1160
1503
 
1161
1504
  protected
1162
1505
 
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.23.0
4
+ version: 0.25.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-09-05 00:00:00.000000000 Z
11
+ date: 2022-10-31 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.7'
19
+ version: 0.9.1
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.7'
29
+ version: 0.9.1
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.23.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.25.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: []