google-apis-baremetalsolution_v2 0.42.0 → 0.44.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: 49be4751abe40afa365c5f1654deea4fc35221c9c00d15753139d7b922536d50
4
- data.tar.gz: a59931984e8f48f640b8fa06628b294af175454b63f0d6553b1fd6a243a546cc
3
+ metadata.gz: bf52a509233954f5a250404587426fd38d2a576685a72d0c82714e1c842cb7f9
4
+ data.tar.gz: fb0f5d733275d815c957c0d3532f15e84df0b633928d0f49863f0584f6c44775
5
5
  SHA512:
6
- metadata.gz: 8cbaf3b55d4ed03be1dbd05e92db7b5ad715cfd378ef3bcaacb46c7f2afa42383ea01991e3aad51e9dc932710462c3fc454bfe7ba3cc6aa15c997fb77490bed5
7
- data.tar.gz: 93f40c9b2de5361ff6004efb07182066276f35f681c2b029ccc92ae33250fedc3b70ad3ee4e93093c61222274289037653b9dbe48b6ff2d1b0d2561e68079c2b
6
+ metadata.gz: 100365452cd0108e381664d4631b7a9511015220f9814e4f63faf9c9f2a76a8a375814d89be946ffb4b54386f3911231646a28afba1e92004e81ccc0863eb1e7
7
+ data.tar.gz: 834df5fc705f5409425be161d243036caa9c598dbff19c3f3f17cf3dc2d93ba087d25fd0b2baa06e4cec6d94a74d5e063426257419d60a773f73caf1816da78c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.44.0 (2024-01-23)
4
+
5
+ * Regenerated using generator version 0.13.0
6
+
7
+ ### v0.43.0 (2023-12-10)
8
+
9
+ * Regenerated from discovery document revision 20231130
10
+
3
11
  ### v0.42.0 (2023-10-22)
4
12
 
5
13
  * Regenerated from discovery document revision 20231018
@@ -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 gigabytes.
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.42.0"
19
+ GEM_VERSION = "0.44.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231018"
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
@@ -33,6 +33,8 @@ module Google
33
33
  #
34
34
  # @see https://cloud.google.com/bare-metal
35
35
  class BaremetalsolutionService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://baremetalsolution.$UNIVERSE_DOMAIN$/"
37
+
36
38
  # @return [String]
37
39
  # API key. Your API key identifies your project and provides you with API access,
38
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -44,7 +46,7 @@ module Google
44
46
  attr_accessor :quota_user
45
47
 
46
48
  def initialize
47
- super('https://baremetalsolution.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
48
50
  client_name: 'google-apis-baremetalsolution_v2',
49
51
  client_version: Google::Apis::BaremetalsolutionV2::GEM_VERSION)
50
52
  @batch_path = 'batch'
@@ -292,6 +294,36 @@ module Google
292
294
  execute_or_queue_command(command, &block)
293
295
  end
294
296
 
297
+ # Load auth info for a server.
298
+ # @param [String] name
299
+ # Required. Name of the server.
300
+ # @param [String] fields
301
+ # Selector specifying which fields to include in a partial response.
302
+ # @param [String] quota_user
303
+ # Available to use for quota purposes for server-side applications. Can be any
304
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
305
+ # @param [Google::Apis::RequestOptions] options
306
+ # Request-specific options
307
+ #
308
+ # @yield [result, err] Result & error if block supplied
309
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::LoadInstanceAuthInfoResponse] parsed result object
310
+ # @yieldparam err [StandardError] error object if request failed
311
+ #
312
+ # @return [Google::Apis::BaremetalsolutionV2::LoadInstanceAuthInfoResponse]
313
+ #
314
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
315
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
316
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
317
+ def load_project_location_instance_auth_info(name, fields: nil, quota_user: nil, options: nil, &block)
318
+ command = make_simple_command(:get, 'v2/{+name}:loadAuthInfo', options)
319
+ command.response_representation = Google::Apis::BaremetalsolutionV2::LoadInstanceAuthInfoResponse::Representation
320
+ command.response_class = Google::Apis::BaremetalsolutionV2::LoadInstanceAuthInfoResponse
321
+ command.params['name'] = name unless name.nil?
322
+ command.query['fields'] = fields unless fields.nil?
323
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
324
+ execute_or_queue_command(command, &block)
325
+ end
326
+
295
327
  # Update details of a single server.
296
328
  # @param [String] name
297
329
  # 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.42.0
4
+ version: 0.44.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-22 00:00:00.000000000 Z
11
+ date: 2024-01-23 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.11.0
19
+ version: 0.12.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: 0.11.0
29
+ version: 0.12.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.42.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.44.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.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Bare Metal Solution API V2