google-apis-baremetalsolution_v2 0.42.0 → 0.43.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 +4 -0
- data/lib/google/apis/baremetalsolution_v2/classes.rb +73 -1
- data/lib/google/apis/baremetalsolution_v2/gem_version.rb +2 -2
- data/lib/google/apis/baremetalsolution_v2/representations.rb +33 -0
- data/lib/google/apis/baremetalsolution_v2/service.rb +30 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fcc0ee530dcb4594780cfde6b536aeb52797b2881b118261de01531745e77a8
|
4
|
+
data.tar.gz: 11631f49c0094e8dcbc1a6ebb2f01cc78be565c80222b8949aac035e2134f926
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb31a825e0300f490d184299f2dbf79f8dfe833f4056669bd21e9153ff78999041abef4c40b35dd0b85c068b6b4fda09e3d4fb5586ff4ce6494a026c94c5d16e
|
7
|
+
data.tar.gz: de4628f58dce1325bddacfa3825bff83e7480131be9873474ff8e23fd373d0ab81063240b505739ca13de36bfb9f59a2400a5e63a2d09079e9a341a9ba13f454
|
data/CHANGELOG.md
CHANGED
@@ -314,6 +314,14 @@ module Google
|
|
314
314
|
attr_accessor :interactive_serial_console_enabled
|
315
315
|
alias_method :interactive_serial_console_enabled?, :interactive_serial_console_enabled
|
316
316
|
|
317
|
+
# Optional. Name of the KMS crypto key version used to encrypt the initial
|
318
|
+
# passwords. The key has to have ASYMMETRIC_DECRYPT purpose. Format is `projects/
|
319
|
+
# `project`/locations/`location`/keyRings/`keyring`/cryptoKeys/`key`/
|
320
|
+
# cryptoKeyVersions/`version``.
|
321
|
+
# Corresponds to the JSON property `kmsKeyVersion`
|
322
|
+
# @return [String]
|
323
|
+
attr_accessor :kms_key_version
|
324
|
+
|
317
325
|
# Labels as key value pairs.
|
318
326
|
# Corresponds to the JSON property `labels`
|
319
327
|
# @return [Hash<String,String>]
|
@@ -377,6 +385,11 @@ module Google
|
|
377
385
|
# @return [String]
|
378
386
|
attr_accessor :pod
|
379
387
|
|
388
|
+
# Optional. List of SSH Keys used during instance provisioning.
|
389
|
+
# Corresponds to the JSON property `sshKeys`
|
390
|
+
# @return [Array<String>]
|
391
|
+
attr_accessor :ssh_keys
|
392
|
+
|
380
393
|
# Output only. The state of the server.
|
381
394
|
# Corresponds to the JSON property `state`
|
382
395
|
# @return [String]
|
@@ -409,6 +422,7 @@ module Google
|
|
409
422
|
@hyperthreading_enabled = args[:hyperthreading_enabled] if args.key?(:hyperthreading_enabled)
|
410
423
|
@id = args[:id] if args.key?(:id)
|
411
424
|
@interactive_serial_console_enabled = args[:interactive_serial_console_enabled] if args.key?(:interactive_serial_console_enabled)
|
425
|
+
@kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version)
|
412
426
|
@labels = args[:labels] if args.key?(:labels)
|
413
427
|
@logical_interfaces = args[:logical_interfaces] if args.key?(:logical_interfaces)
|
414
428
|
@login_info = args[:login_info] if args.key?(:login_info)
|
@@ -419,6 +433,7 @@ module Google
|
|
419
433
|
@networks = args[:networks] if args.key?(:networks)
|
420
434
|
@os_image = args[:os_image] if args.key?(:os_image)
|
421
435
|
@pod = args[:pod] if args.key?(:pod)
|
436
|
+
@ssh_keys = args[:ssh_keys] if args.key?(:ssh_keys)
|
422
437
|
@state = args[:state] if args.key?(:state)
|
423
438
|
@update_time = args[:update_time] if args.key?(:update_time)
|
424
439
|
@volumes = args[:volumes] if args.key?(:volumes)
|
@@ -459,6 +474,12 @@ module Google
|
|
459
474
|
# @return [String]
|
460
475
|
attr_accessor :instance_type
|
461
476
|
|
477
|
+
# Name of the KMS crypto key version used to encrypt the initial passwords. The
|
478
|
+
# key has to have ASYMMETRIC_DECRYPT purpose.
|
479
|
+
# Corresponds to the JSON property `kmsKeyVersion`
|
480
|
+
# @return [String]
|
481
|
+
attr_accessor :kms_key_version
|
482
|
+
|
462
483
|
# List of logical interfaces for the instance. The number of logical interfaces
|
463
484
|
# will be the same as number of hardware bond/nic on the chosen network template.
|
464
485
|
# Filled if InstanceConfig.multivlan_config is true.
|
@@ -515,6 +536,7 @@ module Google
|
|
515
536
|
@hyperthreading = args[:hyperthreading] if args.key?(:hyperthreading)
|
516
537
|
@id = args[:id] if args.key?(:id)
|
517
538
|
@instance_type = args[:instance_type] if args.key?(:instance_type)
|
539
|
+
@kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version)
|
518
540
|
@logical_interfaces = args[:logical_interfaces] if args.key?(:logical_interfaces)
|
519
541
|
@name = args[:name] if args.key?(:name)
|
520
542
|
@network_config = args[:network_config] if args.key?(:network_config)
|
@@ -903,6 +925,31 @@ module Google
|
|
903
925
|
end
|
904
926
|
end
|
905
927
|
|
928
|
+
# Response for LoadInstanceAuthInfo.
|
929
|
+
class LoadInstanceAuthInfoResponse
|
930
|
+
include Google::Apis::Core::Hashable
|
931
|
+
|
932
|
+
# List of ssh keys.
|
933
|
+
# Corresponds to the JSON property `sshKeys`
|
934
|
+
# @return [Array<Google::Apis::BaremetalsolutionV2::SshKey>]
|
935
|
+
attr_accessor :ssh_keys
|
936
|
+
|
937
|
+
# Map of username to the user account info.
|
938
|
+
# Corresponds to the JSON property `userAccounts`
|
939
|
+
# @return [Hash<String,Google::Apis::BaremetalsolutionV2::UserAccount>]
|
940
|
+
attr_accessor :user_accounts
|
941
|
+
|
942
|
+
def initialize(**args)
|
943
|
+
update!(**args)
|
944
|
+
end
|
945
|
+
|
946
|
+
# Update properties of this object
|
947
|
+
def update!(**args)
|
948
|
+
@ssh_keys = args[:ssh_keys] if args.key?(:ssh_keys)
|
949
|
+
@user_accounts = args[:user_accounts] if args.key?(:user_accounts)
|
950
|
+
end
|
951
|
+
end
|
952
|
+
|
906
953
|
# A resource that represents a Google Cloud location.
|
907
954
|
class Location
|
908
955
|
include Google::Apis::Core::Hashable
|
@@ -1038,7 +1085,7 @@ module Google
|
|
1038
1085
|
attr_accessor :shareable
|
1039
1086
|
alias_method :shareable?, :shareable
|
1040
1087
|
|
1041
|
-
# The size of this LUN, in
|
1088
|
+
# The size of this LUN, in GiB.
|
1042
1089
|
# Corresponds to the JSON property `sizeGb`
|
1043
1090
|
# @return [Fixnum]
|
1044
1091
|
attr_accessor :size_gb
|
@@ -2259,6 +2306,31 @@ module Google
|
|
2259
2306
|
end
|
2260
2307
|
end
|
2261
2308
|
|
2309
|
+
# User account provisioned for the customer.
|
2310
|
+
class UserAccount
|
2311
|
+
include Google::Apis::Core::Hashable
|
2312
|
+
|
2313
|
+
# Encrypted initial password value.
|
2314
|
+
# Corresponds to the JSON property `encryptedPassword`
|
2315
|
+
# @return [String]
|
2316
|
+
attr_accessor :encrypted_password
|
2317
|
+
|
2318
|
+
# KMS CryptoKey Version used to encrypt the password.
|
2319
|
+
# Corresponds to the JSON property `kmsKeyVersion`
|
2320
|
+
# @return [String]
|
2321
|
+
attr_accessor :kms_key_version
|
2322
|
+
|
2323
|
+
def initialize(**args)
|
2324
|
+
update!(**args)
|
2325
|
+
end
|
2326
|
+
|
2327
|
+
# Update properties of this object
|
2328
|
+
def update!(**args)
|
2329
|
+
@encrypted_password = args[:encrypted_password] if args.key?(:encrypted_password)
|
2330
|
+
@kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version)
|
2331
|
+
end
|
2332
|
+
end
|
2333
|
+
|
2262
2334
|
# A network VRF.
|
2263
2335
|
class Vrf
|
2264
2336
|
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.43.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20231130"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -178,6 +178,12 @@ module Google
|
|
178
178
|
include Google::Apis::Core::JsonObjectSupport
|
179
179
|
end
|
180
180
|
|
181
|
+
class LoadInstanceAuthInfoResponse
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
181
187
|
class Location
|
182
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
189
|
|
@@ -388,6 +394,12 @@ module Google
|
|
388
394
|
include Google::Apis::Core::JsonObjectSupport
|
389
395
|
end
|
390
396
|
|
397
|
+
class UserAccount
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
|
+
|
400
|
+
include Google::Apis::Core::JsonObjectSupport
|
401
|
+
end
|
402
|
+
|
391
403
|
class Vrf
|
392
404
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
405
|
|
@@ -509,6 +521,7 @@ module Google
|
|
509
521
|
property :hyperthreading_enabled, as: 'hyperthreadingEnabled'
|
510
522
|
property :id, as: 'id'
|
511
523
|
property :interactive_serial_console_enabled, as: 'interactiveSerialConsoleEnabled'
|
524
|
+
property :kms_key_version, as: 'kmsKeyVersion'
|
512
525
|
hash :labels, as: 'labels'
|
513
526
|
collection :logical_interfaces, as: 'logicalInterfaces', class: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface, decorator: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface::Representation
|
514
527
|
|
@@ -522,6 +535,7 @@ module Google
|
|
522
535
|
|
523
536
|
property :os_image, as: 'osImage'
|
524
537
|
property :pod, as: 'pod'
|
538
|
+
collection :ssh_keys, as: 'sshKeys'
|
525
539
|
property :state, as: 'state'
|
526
540
|
property :update_time, as: 'updateTime'
|
527
541
|
collection :volumes, as: 'volumes', class: Google::Apis::BaremetalsolutionV2::Volume, decorator: Google::Apis::BaremetalsolutionV2::Volume::Representation
|
@@ -539,6 +553,7 @@ module Google
|
|
539
553
|
property :hyperthreading, as: 'hyperthreading'
|
540
554
|
property :id, as: 'id'
|
541
555
|
property :instance_type, as: 'instanceType'
|
556
|
+
property :kms_key_version, as: 'kmsKeyVersion'
|
542
557
|
collection :logical_interfaces, as: 'logicalInterfaces', class: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface, decorator: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface::Representation
|
543
558
|
|
544
559
|
property :name, as: 'name'
|
@@ -675,6 +690,16 @@ module Google
|
|
675
690
|
end
|
676
691
|
end
|
677
692
|
|
693
|
+
class LoadInstanceAuthInfoResponse
|
694
|
+
# @private
|
695
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
696
|
+
collection :ssh_keys, as: 'sshKeys', class: Google::Apis::BaremetalsolutionV2::SshKey, decorator: Google::Apis::BaremetalsolutionV2::SshKey::Representation
|
697
|
+
|
698
|
+
hash :user_accounts, as: 'userAccounts', class: Google::Apis::BaremetalsolutionV2::UserAccount, decorator: Google::Apis::BaremetalsolutionV2::UserAccount::Representation
|
699
|
+
|
700
|
+
end
|
701
|
+
end
|
702
|
+
|
678
703
|
class Location
|
679
704
|
# @private
|
680
705
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1035,6 +1060,14 @@ module Google
|
|
1035
1060
|
end
|
1036
1061
|
end
|
1037
1062
|
|
1063
|
+
class UserAccount
|
1064
|
+
# @private
|
1065
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1066
|
+
property :encrypted_password, as: 'encryptedPassword'
|
1067
|
+
property :kms_key_version, as: 'kmsKeyVersion'
|
1068
|
+
end
|
1069
|
+
end
|
1070
|
+
|
1038
1071
|
class Vrf
|
1039
1072
|
# @private
|
1040
1073
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -292,6 +292,36 @@ module Google
|
|
292
292
|
execute_or_queue_command(command, &block)
|
293
293
|
end
|
294
294
|
|
295
|
+
# Load auth info for a server.
|
296
|
+
# @param [String] name
|
297
|
+
# Required. Name of the server.
|
298
|
+
# @param [String] fields
|
299
|
+
# Selector specifying which fields to include in a partial response.
|
300
|
+
# @param [String] quota_user
|
301
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
302
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
303
|
+
# @param [Google::Apis::RequestOptions] options
|
304
|
+
# Request-specific options
|
305
|
+
#
|
306
|
+
# @yield [result, err] Result & error if block supplied
|
307
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::LoadInstanceAuthInfoResponse] parsed result object
|
308
|
+
# @yieldparam err [StandardError] error object if request failed
|
309
|
+
#
|
310
|
+
# @return [Google::Apis::BaremetalsolutionV2::LoadInstanceAuthInfoResponse]
|
311
|
+
#
|
312
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
313
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
314
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
315
|
+
def load_project_location_instance_auth_info(name, fields: nil, quota_user: nil, options: nil, &block)
|
316
|
+
command = make_simple_command(:get, 'v2/{+name}:loadAuthInfo', options)
|
317
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::LoadInstanceAuthInfoResponse::Representation
|
318
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::LoadInstanceAuthInfoResponse
|
319
|
+
command.params['name'] = name unless name.nil?
|
320
|
+
command.query['fields'] = fields unless fields.nil?
|
321
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
322
|
+
execute_or_queue_command(command, &block)
|
323
|
+
end
|
324
|
+
|
295
325
|
# Update details of a single server.
|
296
326
|
# @param [String] name
|
297
327
|
# Immutable. The resource name of this `Instance`. Resource names are schemeless
|
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.43.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: 2023-10
|
11
|
+
date: 2023-12-10 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.43.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: []
|