google-apis-baremetalsolution_v2 0.44.0 → 0.46.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf52a509233954f5a250404587426fd38d2a576685a72d0c82714e1c842cb7f9
4
- data.tar.gz: fb0f5d733275d815c957c0d3532f15e84df0b633928d0f49863f0584f6c44775
3
+ metadata.gz: f3695323086ded0342a6399a26859b5355a07e9aec89ff8c3dd94a650c97a330
4
+ data.tar.gz: c12c797851c3cbb2f146d49ba85f49c05a83439454d09eea5fbb74aa40067c05
5
5
  SHA512:
6
- metadata.gz: 100365452cd0108e381664d4631b7a9511015220f9814e4f63faf9c9f2a76a8a375814d89be946ffb4b54386f3911231646a28afba1e92004e81ccc0863eb1e7
7
- data.tar.gz: 834df5fc705f5409425be161d243036caa9c598dbff19c3f3f17cf3dc2d93ba087d25fd0b2baa06e4cec6d94a74d5e063426257419d60a773f73caf1816da78c
6
+ metadata.gz: 8003a4e2a0d52e99064cd907ac2b476195a2aebcf27ba1438586b619dbb8c9e2e6198ad92e9b5d70d1ca3e65d2fc0c56ec51190ec434796fccb9e2fddf0767d2
7
+ data.tar.gz: c72479ecedfdf727fc4a896e81f9fded38d6ddcb559ba6cadd50fd6bb71260c04f0dce4102074502154916234b366d03dcd6a2280565fd2f414f9172b55d4b1d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.46.0 (2024-05-05)
4
+
5
+ * Regenerated from discovery document revision 20240422
6
+
7
+ ### v0.45.0 (2024-02-23)
8
+
9
+ * Regenerated from discovery document revision 20240214
10
+ * Regenerated using generator version 0.14.0
11
+
3
12
  ### v0.44.0 (2024-01-23)
4
13
 
5
14
  * Regenerated using generator version 0.13.0
data/OVERVIEW.md CHANGED
@@ -83,9 +83,9 @@ The [product documentation](https://cloud.google.com/bare-metal) may provide gui
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.5+.
86
+ This library is supported on Ruby 2.7+.
87
87
 
88
- Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
90
90
  ## License
91
91
 
@@ -117,6 +117,19 @@ module Google
117
117
  end
118
118
  end
119
119
 
120
+ # Message requesting to perform disable hyperthreading operation on a server.
121
+ class DisableHyperthreadingRequest
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
+
120
133
  # Message for disabling the interactive serial console on an instance.
121
134
  class DisableInteractiveSerialConsoleRequest
122
135
  include Google::Apis::Core::Hashable
@@ -159,6 +172,19 @@ module Google
159
172
  end
160
173
  end
161
174
 
175
+ # Message requesting to perform enable hyperthreading operation on a server.
176
+ class EnableHyperthreadingRequest
177
+ include Google::Apis::Core::Hashable
178
+
179
+ def initialize(**args)
180
+ update!(**args)
181
+ end
182
+
183
+ # Update properties of this object
184
+ def update!(**args)
185
+ end
186
+ end
187
+
162
188
  # Message for enabling the interactive serial console on an instance.
163
189
  class EnableInteractiveSerialConsoleRequest
164
190
  include Google::Apis::Core::Hashable
@@ -1934,6 +1960,41 @@ module Google
1934
1960
  end
1935
1961
  end
1936
1962
 
1963
+ # Message requesting to perform reimage operation on a server.
1964
+ class ReimageInstanceRequest
1965
+ include Google::Apis::Core::Hashable
1966
+
1967
+ # Optional. Name of the KMS crypto key version used to encrypt the initial
1968
+ # passwords. The key has to have ASYMMETRIC_DECRYPT purpose. Format is `projects/
1969
+ # `project`/locations/`location`/keyRings/`keyring`/cryptoKeys/`key`/
1970
+ # cryptoKeyVersions/`version``.
1971
+ # Corresponds to the JSON property `kmsKeyVersion`
1972
+ # @return [String]
1973
+ attr_accessor :kms_key_version
1974
+
1975
+ # Required. The OS image code of the image which will be used in the reimage
1976
+ # operation.
1977
+ # Corresponds to the JSON property `osImage`
1978
+ # @return [String]
1979
+ attr_accessor :os_image
1980
+
1981
+ # Optional. List of SSH Keys used during reimaging an instance.
1982
+ # Corresponds to the JSON property `sshKeys`
1983
+ # @return [Array<String>]
1984
+ attr_accessor :ssh_keys
1985
+
1986
+ def initialize(**args)
1987
+ update!(**args)
1988
+ end
1989
+
1990
+ # Update properties of this object
1991
+ def update!(**args)
1992
+ @kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version)
1993
+ @os_image = args[:os_image] if args.key?(:os_image)
1994
+ @ssh_keys = args[:ssh_keys] if args.key?(:ssh_keys)
1995
+ end
1996
+ end
1997
+
1937
1998
  # Message requesting rename of a server.
1938
1999
  class RenameInstanceRequest
1939
2000
  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.44.0"
19
+ GEM_VERSION = "0.46.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.13.0"
22
+ GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231130"
25
+ REVISION = "20240422"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class DisableHyperthreadingRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class DisableInteractiveSerialConsoleRequest
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -52,6 +58,12 @@ module Google
52
58
  include Google::Apis::Core::JsonObjectSupport
53
59
  end
54
60
 
61
+ class EnableHyperthreadingRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
55
67
  class EnableInteractiveSerialConsoleRequest
56
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
69
 
@@ -286,6 +298,12 @@ module Google
286
298
  include Google::Apis::Core::JsonObjectSupport
287
299
  end
288
300
 
301
+ class ReimageInstanceRequest
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
289
307
  class RenameInstanceRequest
290
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
291
309
 
@@ -452,6 +470,12 @@ module Google
452
470
  end
453
471
  end
454
472
 
473
+ class DisableHyperthreadingRequest
474
+ # @private
475
+ class Representation < Google::Apis::Core::JsonRepresentation
476
+ end
477
+ end
478
+
455
479
  class DisableInteractiveSerialConsoleRequest
456
480
  # @private
457
481
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -470,6 +494,12 @@ module Google
470
494
  end
471
495
  end
472
496
 
497
+ class EnableHyperthreadingRequest
498
+ # @private
499
+ class Representation < Google::Apis::Core::JsonRepresentation
500
+ end
501
+ end
502
+
473
503
  class EnableInteractiveSerialConsoleRequest
474
504
  # @private
475
505
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -929,6 +959,15 @@ module Google
929
959
  end
930
960
  end
931
961
 
962
+ class ReimageInstanceRequest
963
+ # @private
964
+ class Representation < Google::Apis::Core::JsonRepresentation
965
+ property :kms_key_version, as: 'kmsKeyVersion'
966
+ property :os_image, as: 'osImage'
967
+ collection :ssh_keys, as: 'sshKeys'
968
+ end
969
+ end
970
+
932
971
  class RenameInstanceRequest
933
972
  # @private
934
973
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -158,6 +158,40 @@ module Google
158
158
  execute_or_queue_command(command, &block)
159
159
  end
160
160
 
161
+ # Perform disable hyperthreading operation on a single server.
162
+ # @param [String] name
163
+ # Required. The `name` field is used to identify the instance. Format: projects/`
164
+ # project`/locations/`location`/instances/`instance`
165
+ # @param [Google::Apis::BaremetalsolutionV2::DisableHyperthreadingRequest] disable_hyperthreading_request_object
166
+ # @param [String] fields
167
+ # Selector specifying which fields to include in a partial response.
168
+ # @param [String] quota_user
169
+ # Available to use for quota purposes for server-side applications. Can be any
170
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
171
+ # @param [Google::Apis::RequestOptions] options
172
+ # Request-specific options
173
+ #
174
+ # @yield [result, err] Result & error if block supplied
175
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
176
+ # @yieldparam err [StandardError] error object if request failed
177
+ #
178
+ # @return [Google::Apis::BaremetalsolutionV2::Operation]
179
+ #
180
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
181
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
182
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
183
+ def disable_instance_hyperthreading(name, disable_hyperthreading_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
184
+ command = make_simple_command(:post, 'v2/{+name}:disableHyperthreading', options)
185
+ command.request_representation = Google::Apis::BaremetalsolutionV2::DisableHyperthreadingRequest::Representation
186
+ command.request_object = disable_hyperthreading_request_object
187
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
188
+ command.response_class = Google::Apis::BaremetalsolutionV2::Operation
189
+ command.params['name'] = name unless name.nil?
190
+ command.query['fields'] = fields unless fields.nil?
191
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
192
+ execute_or_queue_command(command, &block)
193
+ end
194
+
161
195
  # Disable the interactive serial console feature on an instance.
162
196
  # @param [String] name
163
197
  # Required. Name of the resource.
@@ -191,6 +225,40 @@ module Google
191
225
  execute_or_queue_command(command, &block)
192
226
  end
193
227
 
228
+ # Perform enable hyperthreading operation on a single server.
229
+ # @param [String] name
230
+ # Required. The `name` field is used to identify the instance. Format: projects/`
231
+ # project`/locations/`location`/instances/`instance`
232
+ # @param [Google::Apis::BaremetalsolutionV2::EnableHyperthreadingRequest] enable_hyperthreading_request_object
233
+ # @param [String] fields
234
+ # Selector specifying which fields to include in a partial response.
235
+ # @param [String] quota_user
236
+ # Available to use for quota purposes for server-side applications. Can be any
237
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
238
+ # @param [Google::Apis::RequestOptions] options
239
+ # Request-specific options
240
+ #
241
+ # @yield [result, err] Result & error if block supplied
242
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
243
+ # @yieldparam err [StandardError] error object if request failed
244
+ #
245
+ # @return [Google::Apis::BaremetalsolutionV2::Operation]
246
+ #
247
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
248
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
249
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
250
+ def enable_instance_hyperthreading(name, enable_hyperthreading_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
251
+ command = make_simple_command(:post, 'v2/{+name}:enableHyperthreading', options)
252
+ command.request_representation = Google::Apis::BaremetalsolutionV2::EnableHyperthreadingRequest::Representation
253
+ command.request_object = enable_hyperthreading_request_object
254
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
255
+ command.response_class = Google::Apis::BaremetalsolutionV2::Operation
256
+ command.params['name'] = name unless name.nil?
257
+ command.query['fields'] = fields unless fields.nil?
258
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
259
+ execute_or_queue_command(command, &block)
260
+ end
261
+
194
262
  # Enable the interactive serial console feature on an instance.
195
263
  # @param [String] name
196
264
  # Required. Name of the resource.
@@ -364,6 +432,40 @@ module Google
364
432
  execute_or_queue_command(command, &block)
365
433
  end
366
434
 
435
+ # Perform reimage operation on a single server.
436
+ # @param [String] name
437
+ # Required. The `name` field is used to identify the instance. Format: projects/`
438
+ # project`/locations/`location`/instances/`instance`
439
+ # @param [Google::Apis::BaremetalsolutionV2::ReimageInstanceRequest] reimage_instance_request_object
440
+ # @param [String] fields
441
+ # Selector specifying which fields to include in a partial response.
442
+ # @param [String] quota_user
443
+ # Available to use for quota purposes for server-side applications. Can be any
444
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
445
+ # @param [Google::Apis::RequestOptions] options
446
+ # Request-specific options
447
+ #
448
+ # @yield [result, err] Result & error if block supplied
449
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
450
+ # @yieldparam err [StandardError] error object if request failed
451
+ #
452
+ # @return [Google::Apis::BaremetalsolutionV2::Operation]
453
+ #
454
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
455
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
456
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
457
+ def reimage_instance(name, reimage_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
458
+ command = make_simple_command(:post, 'v2/{+name}:reimage', options)
459
+ command.request_representation = Google::Apis::BaremetalsolutionV2::ReimageInstanceRequest::Representation
460
+ command.request_object = reimage_instance_request_object
461
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
462
+ command.response_class = Google::Apis::BaremetalsolutionV2::Operation
463
+ command.params['name'] = name unless name.nil?
464
+ command.query['fields'] = fields unless fields.nil?
465
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
466
+ execute_or_queue_command(command, &block)
467
+ end
468
+
367
469
  # RenameInstance sets a new name for an instance. Use with caution, previous
368
470
  # names become immediately invalidated.
369
471
  # @param [String] name
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.44.0
4
+ version: 0.46.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: 2024-01-23 00:00:00.000000000 Z
11
+ date: 2024-05-05 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.12.0
19
+ version: 0.14.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.12.0
29
+ version: 0.14.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.44.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.46.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: []
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: '2.5'
71
+ version: '2.7'
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.3
78
+ rubygems_version: 3.5.6
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Bare Metal Solution API V2