google-apis-baremetalsolution_v2 0.23.0 → 0.24.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/baremetalsolution_v2/classes.rb +108 -1
- data/lib/google/apis/baremetalsolution_v2/gem_version.rb +3 -3
- data/lib/google/apis/baremetalsolution_v2/representations.rb +67 -0
- data/lib/google/apis/baremetalsolution_v2/service.rb +177 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 144a29a9ed5065775b4e043e951d2eda849d0305e029c0bd73496ac668ad691c
|
4
|
+
data.tar.gz: e113cbeaf787f5a732e4b4566093e5e6f6ab056457a2c9fcf5d4fcc7c73e0790
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d73761ffd13600e1a4ab7c42492e3354a9602bdc652eb8108c2bdb8ea4eef3c08245c6aad6ffe69d8bb6f97afa9638ba8ceeda7b01d5007d97a9ee4f96626c16
|
7
|
+
data.tar.gz: 6cca078c9d03e447e21384c1cdc5cb83cd6fdf53e76577effbd0824a82607e2b1343dece685283e8526a2e0a13a541186968d110363e72abc27bb7ffa7f59708
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-baremetalsolution_v2
|
2
2
|
|
3
|
+
### v0.24.0 (2022-09-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220921
|
6
|
+
* Regenerated using generator version 0.10.0
|
7
|
+
|
3
8
|
### v0.23.0 (2022-09-01)
|
4
9
|
|
5
10
|
* 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,32 @@ 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
|
+
|
699
767
|
# Response message containing the list of storage volumes.
|
700
768
|
class ListVolumesResponse
|
701
769
|
include Google::Apis::Core::Hashable
|
@@ -929,6 +997,11 @@ module Google
|
|
929
997
|
# @return [String]
|
930
998
|
attr_accessor :cidr
|
931
999
|
|
1000
|
+
# Output only. Gateway ip address.
|
1001
|
+
# Corresponds to the JSON property `gatewayIp`
|
1002
|
+
# @return [String]
|
1003
|
+
attr_accessor :gateway_ip
|
1004
|
+
|
932
1005
|
# An identifier for the `Network`, generated by the backend.
|
933
1006
|
# Corresponds to the JSON property `id`
|
934
1007
|
# @return [String]
|
@@ -1012,6 +1085,7 @@ module Google
|
|
1012
1085
|
# Update properties of this object
|
1013
1086
|
def update!(**args)
|
1014
1087
|
@cidr = args[:cidr] if args.key?(:cidr)
|
1088
|
+
@gateway_ip = args[:gateway_ip] if args.key?(:gateway_ip)
|
1015
1089
|
@id = args[:id] if args.key?(:id)
|
1016
1090
|
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
1017
1091
|
@jumbo_frames_enabled = args[:jumbo_frames_enabled] if args.key?(:jumbo_frames_enabled)
|
@@ -1547,6 +1621,11 @@ module Google
|
|
1547
1621
|
# @return [String]
|
1548
1622
|
attr_accessor :cloud_console_uri
|
1549
1623
|
|
1624
|
+
# Optional. The user-defined identifier of the provisioning config.
|
1625
|
+
# Corresponds to the JSON property `customId`
|
1626
|
+
# @return [String]
|
1627
|
+
attr_accessor :custom_id
|
1628
|
+
|
1550
1629
|
# Email provided to send a confirmation with provisioning config to. Deprecated
|
1551
1630
|
# in favour of email field in request messages.
|
1552
1631
|
# Corresponds to the JSON property `email`
|
@@ -1570,7 +1649,8 @@ module Google
|
|
1570
1649
|
# @return [String]
|
1571
1650
|
attr_accessor :location
|
1572
1651
|
|
1573
|
-
# Output only. The name of the provisioning config.
|
1652
|
+
# Output only. The system-generated name of the provisioning config. This
|
1653
|
+
# follows the UUID format.
|
1574
1654
|
# Corresponds to the JSON property `name`
|
1575
1655
|
# @return [String]
|
1576
1656
|
attr_accessor :name
|
@@ -1618,6 +1698,7 @@ module Google
|
|
1618
1698
|
# Update properties of this object
|
1619
1699
|
def update!(**args)
|
1620
1700
|
@cloud_console_uri = args[:cloud_console_uri] if args.key?(:cloud_console_uri)
|
1701
|
+
@custom_id = args[:custom_id] if args.key?(:custom_id)
|
1621
1702
|
@email = args[:email] if args.key?(:email)
|
1622
1703
|
@handover_service_account = args[:handover_service_account] if args.key?(:handover_service_account)
|
1623
1704
|
@instances = args[:instances] if args.key?(:instances)
|
@@ -1751,6 +1832,32 @@ module Google
|
|
1751
1832
|
end
|
1752
1833
|
end
|
1753
1834
|
|
1835
|
+
# An SSH key, used for authorizing with the interactive serial console feature.
|
1836
|
+
class SshKey
|
1837
|
+
include Google::Apis::Core::Hashable
|
1838
|
+
|
1839
|
+
# Output only. The name of this SSH key. Currently, the only valid value for the
|
1840
|
+
# location is "global".
|
1841
|
+
# Corresponds to the JSON property `name`
|
1842
|
+
# @return [String]
|
1843
|
+
attr_accessor :name
|
1844
|
+
|
1845
|
+
# The public SSH key. This must be in OpenSSH .authorized_keys format.
|
1846
|
+
# Corresponds to the JSON property `publicKey`
|
1847
|
+
# @return [String]
|
1848
|
+
attr_accessor :public_key
|
1849
|
+
|
1850
|
+
def initialize(**args)
|
1851
|
+
update!(**args)
|
1852
|
+
end
|
1853
|
+
|
1854
|
+
# Update properties of this object
|
1855
|
+
def update!(**args)
|
1856
|
+
@name = args[:name] if args.key?(:name)
|
1857
|
+
@public_key = args[:public_key] if args.key?(:public_key)
|
1858
|
+
end
|
1859
|
+
end
|
1860
|
+
|
1754
1861
|
# Network template.
|
1755
1862
|
class ServerNetworkTemplate
|
1756
1863
|
include Google::Apis::Core::Hashable
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.24.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.10.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220921"
|
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,12 @@ 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
|
+
|
121
145
|
class ListVolumesResponse
|
122
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
147
|
|
@@ -244,6 +268,12 @@ module Google
|
|
244
268
|
include Google::Apis::Core::JsonObjectSupport
|
245
269
|
end
|
246
270
|
|
271
|
+
class SshKey
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
247
277
|
class ServerNetworkTemplate
|
248
278
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
279
|
|
@@ -332,6 +362,24 @@ module Google
|
|
332
362
|
end
|
333
363
|
end
|
334
364
|
|
365
|
+
class DisableInteractiveSerialConsoleRequest
|
366
|
+
# @private
|
367
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
368
|
+
end
|
369
|
+
end
|
370
|
+
|
371
|
+
class Empty
|
372
|
+
# @private
|
373
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
374
|
+
end
|
375
|
+
end
|
376
|
+
|
377
|
+
class EnableInteractiveSerialConsoleRequest
|
378
|
+
# @private
|
379
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
380
|
+
end
|
381
|
+
end
|
382
|
+
|
335
383
|
class FetchInstanceProvisioningSettingsResponse
|
336
384
|
# @private
|
337
385
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -492,6 +540,15 @@ module Google
|
|
492
540
|
end
|
493
541
|
end
|
494
542
|
|
543
|
+
class ListSshKeysResponse
|
544
|
+
# @private
|
545
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
546
|
+
property :next_page_token, as: 'nextPageToken'
|
547
|
+
collection :ssh_keys, as: 'sshKeys', class: Google::Apis::BaremetalsolutionV2::SshKey, decorator: Google::Apis::BaremetalsolutionV2::SshKey::Representation
|
548
|
+
|
549
|
+
end
|
550
|
+
end
|
551
|
+
|
495
552
|
class ListVolumesResponse
|
496
553
|
# @private
|
497
554
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -552,6 +609,7 @@ module Google
|
|
552
609
|
# @private
|
553
610
|
class Representation < Google::Apis::Core::JsonRepresentation
|
554
611
|
property :cidr, as: 'cidr'
|
612
|
+
property :gateway_ip, as: 'gatewayIp'
|
555
613
|
property :id, as: 'id'
|
556
614
|
property :ip_address, as: 'ipAddress'
|
557
615
|
property :jumbo_frames_enabled, as: 'jumboFramesEnabled'
|
@@ -697,6 +755,7 @@ module Google
|
|
697
755
|
# @private
|
698
756
|
class Representation < Google::Apis::Core::JsonRepresentation
|
699
757
|
property :cloud_console_uri, as: 'cloudConsoleUri'
|
758
|
+
property :custom_id, as: 'customId'
|
700
759
|
property :email, as: 'email'
|
701
760
|
property :handover_service_account, as: 'handoverServiceAccount'
|
702
761
|
collection :instances, as: 'instances', class: Google::Apis::BaremetalsolutionV2::InstanceConfig, decorator: Google::Apis::BaremetalsolutionV2::InstanceConfig::Representation
|
@@ -751,6 +810,14 @@ module Google
|
|
751
810
|
end
|
752
811
|
end
|
753
812
|
|
813
|
+
class SshKey
|
814
|
+
# @private
|
815
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
816
|
+
property :name, as: 'name'
|
817
|
+
property :public_key, as: 'publicKey'
|
818
|
+
end
|
819
|
+
end
|
820
|
+
|
754
821
|
class ServerNetworkTemplate
|
755
822
|
# @private
|
756
823
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -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.
|
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.
|
4
|
+
version: 0.24.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-
|
11
|
+
date: 2022-09-26 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:
|
19
|
+
version: 0.9.0
|
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:
|
29
|
+
version: 0.9.0
|
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.24.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: []
|