google-apis-baremetalsolution_v2 0.17.0 → 0.20.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: 297f8cad8950987f6919b9bddff4183cd88222bcdac30c36d8ec3dea8b5868b8
4
- data.tar.gz: 1412cdd07bd3c223a6423fbf125b175f19698ac12d8cfc8d7767d03b4c7653a8
3
+ metadata.gz: e7bd3c1cbfcacde48bcf691ae8e52922f38d4ceb82330eac9728aed0b7de78bd
4
+ data.tar.gz: b80c4af1e905ff6bac3842f9ca00d94f551ef31379f0d91f45c2c058f0acb9b0
5
5
  SHA512:
6
- metadata.gz: b9e06c73ce1f063c386e3018f64f84df20aa52993e1b66c840389464e22928ab204f0200cda3651bfabc4576dd8edb795a83a29253a2c0fc7505252ffdee9f95
7
- data.tar.gz: '08659f857a4e5026c250f124a4a7db61688b6f260deb815685ae1bdae926ae25efbd42bceb558cf9a3df71d8c8567c0c6eae7c5031f88c5b7b075d7815e86e94'
6
+ metadata.gz: 69fd8bba1976b3606ab2b21cb4adf5ec776d759ed6ad709e2dbf8c3fbbddc0060846a7be679bc28d565c80d94789efd27432bb4551a08f14bb4f1b281301c589
7
+ data.tar.gz: 35851d57fe002e9d050679fb843e2677d2b728320e9fb7e9e450ae1d15615113e9e325c7ce04ae417b7936b9851f9931c825c82702dddd544a97b9487e0e9810
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.20.0 (2022-07-31)
4
+
5
+ * Regenerated from discovery document revision 20220725
6
+
7
+ ### v0.19.0 (2022-07-11)
8
+
9
+ * Regenerated from discovery document revision 20220706
10
+ * Regenerated using generator version 0.9.0
11
+
12
+ ### v0.18.0 (2022-06-30)
13
+
14
+ * Regenerated using generator version 0.8.0
15
+
3
16
  ### v0.17.0 (2022-06-24)
4
17
 
5
18
  * Regenerated from discovery document revision 20220615
@@ -53,6 +53,13 @@ module Google
53
53
  # @return [String]
54
54
  attr_accessor :network
55
55
 
56
+ # Output only. The path to access NFS, in format shareIP:/InstanceID InstanceID
57
+ # is the generated ID instead of customer provided name. example like "10.0.0.0:/
58
+ # g123456789-nfs001"
59
+ # Corresponds to the JSON property `nfsPath`
60
+ # @return [String]
61
+ attr_accessor :nfs_path
62
+
56
63
  # Disable root squashing, which is a feature of NFS. Root squash is a special
57
64
  # mapping of the remote superuser (root) identity when using identity
58
65
  # authentication.
@@ -77,6 +84,7 @@ module Google
77
84
  @allowed_clients_cidr = args[:allowed_clients_cidr] if args.key?(:allowed_clients_cidr)
78
85
  @mount_permissions = args[:mount_permissions] if args.key?(:mount_permissions)
79
86
  @network = args[:network] if args.key?(:network)
87
+ @nfs_path = args[:nfs_path] if args.key?(:nfs_path)
80
88
  @no_root_squash = args[:no_root_squash] if args.key?(:no_root_squash)
81
89
  @share_ip = args[:share_ip] if args.key?(:share_ip)
82
90
  end
@@ -91,6 +99,12 @@ module Google
91
99
  # @return [String]
92
100
  attr_accessor :lun
93
101
 
102
+ # If true, performs lun unmapping without instance reboot.
103
+ # Corresponds to the JSON property `skipReboot`
104
+ # @return [Boolean]
105
+ attr_accessor :skip_reboot
106
+ alias_method :skip_reboot?, :skip_reboot
107
+
94
108
  def initialize(**args)
95
109
  update!(**args)
96
110
  end
@@ -98,6 +112,7 @@ module Google
98
112
  # Update properties of this object
99
113
  def update!(**args)
100
114
  @lun = args[:lun] if args.key?(:lun)
115
+ @skip_reboot = args[:skip_reboot] if args.key?(:skip_reboot)
101
116
  end
102
117
  end
103
118
 
@@ -206,13 +221,13 @@ module Google
206
221
  attr_accessor :hyperthreading_enabled
207
222
  alias_method :hyperthreading_enabled?, :hyperthreading_enabled
208
223
 
209
- # An identifier for the `Instance`, generated by the backend.
224
+ # Output only. An identifier for the `Instance`, generated by the backend.
210
225
  # Corresponds to the JSON property `id`
211
226
  # @return [String]
212
227
  attr_accessor :id
213
228
 
214
- # True if the interactive serial console feature is enabled for the instance,
215
- # false otherwise. The default value is false.
229
+ # Output only. True if the interactive serial console feature is enabled for the
230
+ # instance, false otherwise. The default value is false.
216
231
  # Corresponds to the JSON property `interactiveSerialConsoleEnabled`
217
232
  # @return [Boolean]
218
233
  attr_accessor :interactive_serial_console_enabled
@@ -234,21 +249,26 @@ module Google
234
249
  # @return [Array<Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface>]
235
250
  attr_accessor :logical_interfaces
236
251
 
237
- # List of LUNs associated with this server.
252
+ # Output only. Text field about info for logging in.
253
+ # Corresponds to the JSON property `loginInfo`
254
+ # @return [String]
255
+ attr_accessor :login_info
256
+
257
+ # Immutable. List of LUNs associated with this server.
238
258
  # Corresponds to the JSON property `luns`
239
259
  # @return [Array<Google::Apis::BaremetalsolutionV2::Lun>]
240
260
  attr_accessor :luns
241
261
 
242
- # The server type. [Available server types](https://cloud.google.com/bare-metal/
243
- # docs/bms-planning#server_configurations)
262
+ # Immutable. The server type. [Available server types](https://cloud.google.com/
263
+ # bare-metal/docs/bms-planning#server_configurations)
244
264
  # Corresponds to the JSON property `machineType`
245
265
  # @return [String]
246
266
  attr_accessor :machine_type
247
267
 
248
- # Output only. The resource name of this `Instance`. Resource names are
249
- # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
250
- # design/resource_names. Format: `projects/`project`/locations/`location`/
251
- # instances/`instance``
268
+ # Immutable. The resource name of this `Instance`. Resource names are schemeless
269
+ # URIs that follow the conventions in https://cloud.google.com/apis/design/
270
+ # resource_names. Format: `projects/`project`/locations/`location`/instances/`
271
+ # instance``
252
272
  # Corresponds to the JSON property `name`
253
273
  # @return [String]
254
274
  attr_accessor :name
@@ -259,7 +279,7 @@ module Google
259
279
  # @return [String]
260
280
  attr_accessor :network_template
261
281
 
262
- # List of networks associated with this server.
282
+ # Output only. List of networks associated with this server.
263
283
  # Corresponds to the JSON property `networks`
264
284
  # @return [Array<Google::Apis::BaremetalsolutionV2::Network>]
265
285
  attr_accessor :networks
@@ -276,7 +296,7 @@ module Google
276
296
  # @return [String]
277
297
  attr_accessor :pod
278
298
 
279
- # The state of the server.
299
+ # Output only. The state of the server.
280
300
  # Corresponds to the JSON property `state`
281
301
  # @return [String]
282
302
  attr_accessor :state
@@ -286,6 +306,12 @@ module Google
286
306
  # @return [String]
287
307
  attr_accessor :update_time
288
308
 
309
+ # Input only. List of Volumes to attach to this Instance on creation. This field
310
+ # won't be populated in Get/List responses.
311
+ # Corresponds to the JSON property `volumes`
312
+ # @return [Array<Google::Apis::BaremetalsolutionV2::Volume>]
313
+ attr_accessor :volumes
314
+
289
315
  def initialize(**args)
290
316
  update!(**args)
291
317
  end
@@ -298,6 +324,7 @@ module Google
298
324
  @interactive_serial_console_enabled = args[:interactive_serial_console_enabled] if args.key?(:interactive_serial_console_enabled)
299
325
  @labels = args[:labels] if args.key?(:labels)
300
326
  @logical_interfaces = args[:logical_interfaces] if args.key?(:logical_interfaces)
327
+ @login_info = args[:login_info] if args.key?(:login_info)
301
328
  @luns = args[:luns] if args.key?(:luns)
302
329
  @machine_type = args[:machine_type] if args.key?(:machine_type)
303
330
  @name = args[:name] if args.key?(:name)
@@ -307,6 +334,7 @@ module Google
307
334
  @pod = args[:pod] if args.key?(:pod)
308
335
  @state = args[:state] if args.key?(:state)
309
336
  @update_time = args[:update_time] if args.key?(:update_time)
337
+ @volumes = args[:volumes] if args.key?(:volumes)
310
338
  end
311
339
  end
312
340
 
@@ -414,7 +442,12 @@ module Google
414
442
  # @return [Fixnum]
415
443
  attr_accessor :available_machine_count
416
444
 
417
- # Instance type.
445
+ # The gcp service of the provisioning quota.
446
+ # Corresponds to the JSON property `gcpService`
447
+ # @return [String]
448
+ attr_accessor :gcp_service
449
+
450
+ # Instance type. Deprecated: use gcp_service.
418
451
  # Corresponds to the JSON property `instanceType`
419
452
  # @return [String]
420
453
  attr_accessor :instance_type
@@ -436,6 +469,7 @@ module Google
436
469
  # Update properties of this object
437
470
  def update!(**args)
438
471
  @available_machine_count = args[:available_machine_count] if args.key?(:available_machine_count)
472
+ @gcp_service = args[:gcp_service] if args.key?(:gcp_service)
439
473
  @instance_type = args[:instance_type] if args.key?(:instance_type)
440
474
  @location = args[:location] if args.key?(:location)
441
475
  @name = args[:name] if args.key?(:name)
@@ -1220,6 +1254,12 @@ module Google
1220
1254
  # @return [Array<Google::Apis::BaremetalsolutionV2::AllowedClient>]
1221
1255
  attr_accessor :allowed_clients
1222
1256
 
1257
+ # Output only. An identifier for the NFS share, generated by the backend. This
1258
+ # is the same value as nfs_share_id and will replace it in the future.
1259
+ # Corresponds to the JSON property `id`
1260
+ # @return [String]
1261
+ attr_accessor :id
1262
+
1223
1263
  # Labels as key value pairs.
1224
1264
  # Corresponds to the JSON property `labels`
1225
1265
  # @return [Hash<String,String>]
@@ -1230,7 +1270,8 @@ module Google
1230
1270
  # @return [String]
1231
1271
  attr_accessor :name
1232
1272
 
1233
- # Output only. An identifier for the NFS share, generated by the backend.
1273
+ # Output only. An identifier for the NFS share, generated by the backend. This
1274
+ # field will be deprecated in the future, use `id` instead.
1234
1275
  # Corresponds to the JSON property `nfsShareId`
1235
1276
  # @return [String]
1236
1277
  attr_accessor :nfs_share_id
@@ -1257,6 +1298,7 @@ module Google
1257
1298
  # Update properties of this object
1258
1299
  def update!(**args)
1259
1300
  @allowed_clients = args[:allowed_clients] if args.key?(:allowed_clients)
1301
+ @id = args[:id] if args.key?(:id)
1260
1302
  @labels = args[:labels] if args.key?(:labels)
1261
1303
  @name = args[:name] if args.key?(:name)
1262
1304
  @nfs_share_id = args[:nfs_share_id] if args.key?(:nfs_share_id)
@@ -1954,6 +1996,11 @@ module Google
1954
1996
  # @return [String]
1955
1997
  attr_accessor :pod
1956
1998
 
1999
+ # Output only. Storage protocol for the Volume.
2000
+ # Corresponds to the JSON property `protocol`
2001
+ # @return [String]
2002
+ attr_accessor :protocol
2003
+
1957
2004
  # The space remaining in the storage volume for new LUNs, in GiB, excluding
1958
2005
  # space reserved for snapshots.
1959
2006
  # Corresponds to the JSON property `remainingSpaceGib`
@@ -2011,6 +2058,7 @@ module Google
2011
2058
  @name = args[:name] if args.key?(:name)
2012
2059
  @originally_requested_size_gib = args[:originally_requested_size_gib] if args.key?(:originally_requested_size_gib)
2013
2060
  @pod = args[:pod] if args.key?(:pod)
2061
+ @protocol = args[:protocol] if args.key?(:protocol)
2014
2062
  @remaining_space_gib = args[:remaining_space_gib] if args.key?(:remaining_space_gib)
2015
2063
  @requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib)
2016
2064
  @snapshot_auto_delete_behavior = args[:snapshot_auto_delete_behavior] if args.key?(:snapshot_auto_delete_behavior)
@@ -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.17.0"
19
+ GEM_VERSION = "0.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.7.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220615"
25
+ REVISION = "20220725"
26
26
  end
27
27
  end
28
28
  end
@@ -312,6 +312,7 @@ module Google
312
312
  property :allowed_clients_cidr, as: 'allowedClientsCidr'
313
313
  property :mount_permissions, as: 'mountPermissions'
314
314
  property :network, as: 'network'
315
+ property :nfs_path, as: 'nfsPath'
315
316
  property :no_root_squash, as: 'noRootSquash'
316
317
  property :share_ip, as: 'shareIp'
317
318
  end
@@ -321,6 +322,7 @@ module Google
321
322
  # @private
322
323
  class Representation < Google::Apis::Core::JsonRepresentation
323
324
  property :lun, as: 'lun'
325
+ property :skip_reboot, as: 'skipReboot'
324
326
  end
325
327
  end
326
328
 
@@ -361,6 +363,7 @@ module Google
361
363
  hash :labels, as: 'labels'
362
364
  collection :logical_interfaces, as: 'logicalInterfaces', class: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface, decorator: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface::Representation
363
365
 
366
+ property :login_info, as: 'loginInfo'
364
367
  collection :luns, as: 'luns', class: Google::Apis::BaremetalsolutionV2::Lun, decorator: Google::Apis::BaremetalsolutionV2::Lun::Representation
365
368
 
366
369
  property :machine_type, as: 'machineType'
@@ -372,6 +375,8 @@ module Google
372
375
  property :pod, as: 'pod'
373
376
  property :state, as: 'state'
374
377
  property :update_time, as: 'updateTime'
378
+ collection :volumes, as: 'volumes', class: Google::Apis::BaremetalsolutionV2::Volume, decorator: Google::Apis::BaremetalsolutionV2::Volume::Representation
379
+
375
380
  end
376
381
  end
377
382
 
@@ -400,6 +405,7 @@ module Google
400
405
  # @private
401
406
  class Representation < Google::Apis::Core::JsonRepresentation
402
407
  property :available_machine_count, as: 'availableMachineCount'
408
+ property :gcp_service, as: 'gcpService'
403
409
  property :instance_type, as: 'instanceType'
404
410
  property :location, as: 'location'
405
411
  property :name, as: 'name'
@@ -619,6 +625,7 @@ module Google
619
625
  class Representation < Google::Apis::Core::JsonRepresentation
620
626
  collection :allowed_clients, as: 'allowedClients', class: Google::Apis::BaremetalsolutionV2::AllowedClient, decorator: Google::Apis::BaremetalsolutionV2::AllowedClient::Representation
621
627
 
628
+ property :id, as: 'id'
622
629
  hash :labels, as: 'labels'
623
630
  property :name, as: 'name'
624
631
  property :nfs_share_id, as: 'nfsShareId'
@@ -814,6 +821,7 @@ module Google
814
821
  property :name, as: 'name'
815
822
  property :originally_requested_size_gib, :numeric_string => true, as: 'originallyRequestedSizeGib'
816
823
  property :pod, as: 'pod'
824
+ property :protocol, as: 'protocol'
817
825
  property :remaining_space_gib, :numeric_string => true, as: 'remainingSpaceGib'
818
826
  property :requested_size_gib, :numeric_string => true, as: 'requestedSizeGib'
819
827
  property :snapshot_auto_delete_behavior, as: 'snapshotAutoDeleteBehavior'
@@ -154,6 +154,39 @@ module Google
154
154
  execute_or_queue_command(command, &block)
155
155
  end
156
156
 
157
+ # Create an Instance.
158
+ # @param [String] parent
159
+ # Required. The parent project and location.
160
+ # @param [Google::Apis::BaremetalsolutionV2::Instance] instance_object
161
+ # @param [String] fields
162
+ # Selector specifying which fields to include in a partial response.
163
+ # @param [String] quota_user
164
+ # Available to use for quota purposes for server-side applications. Can be any
165
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
166
+ # @param [Google::Apis::RequestOptions] options
167
+ # Request-specific options
168
+ #
169
+ # @yield [result, err] Result & error if block supplied
170
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
171
+ # @yieldparam err [StandardError] error object if request failed
172
+ #
173
+ # @return [Google::Apis::BaremetalsolutionV2::Operation]
174
+ #
175
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
176
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
177
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
178
+ def create_project_location_instance(parent, instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
179
+ command = make_simple_command(:post, 'v2/{+parent}/instances', options)
180
+ command.request_representation = Google::Apis::BaremetalsolutionV2::Instance::Representation
181
+ command.request_object = instance_object
182
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
183
+ command.response_class = Google::Apis::BaremetalsolutionV2::Operation
184
+ command.params['parent'] = parent unless parent.nil?
185
+ command.query['fields'] = fields unless fields.nil?
186
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
187
+ execute_or_queue_command(command, &block)
188
+ end
189
+
157
190
  # Detach LUN from Instance.
158
191
  # @param [String] instance
159
192
  # Required. Name of the instance.
@@ -259,10 +292,10 @@ module Google
259
292
 
260
293
  # Update details of a single server.
261
294
  # @param [String] name
262
- # Output only. The resource name of this `Instance`. Resource names are
263
- # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
264
- # design/resource_names. Format: `projects/`project`/locations/`location`/
265
- # instances/`instance``
295
+ # Immutable. The resource name of this `Instance`. Resource names are schemeless
296
+ # URIs that follow the conventions in https://cloud.google.com/apis/design/
297
+ # resource_names. Format: `projects/`project`/locations/`location`/instances/`
298
+ # instance``
266
299
  # @param [Google::Apis::BaremetalsolutionV2::Instance] instance_object
267
300
  # @param [String] update_mask
268
301
  # The list of fields to update. The currently supported fields are: `labels` `
@@ -644,6 +677,37 @@ module Google
644
677
  execute_or_queue_command(command, &block)
645
678
  end
646
679
 
680
+ # Get details about an operation. This method used only to work around CCFE lack
681
+ # of passthrough LRO support (b/221498758).
682
+ # @param [String] name
683
+ # The name of the operation resource.
684
+ # @param [String] fields
685
+ # Selector specifying which fields to include in a partial response.
686
+ # @param [String] quota_user
687
+ # Available to use for quota purposes for server-side applications. Can be any
688
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
689
+ # @param [Google::Apis::RequestOptions] options
690
+ # Request-specific options
691
+ #
692
+ # @yield [result, err] Result & error if block supplied
693
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
694
+ # @yieldparam err [StandardError] error object if request failed
695
+ #
696
+ # @return [Google::Apis::BaremetalsolutionV2::Operation]
697
+ #
698
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
699
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
700
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
701
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
702
+ command = make_simple_command(:get, 'v2/{+name}', options)
703
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
704
+ command.response_class = Google::Apis::BaremetalsolutionV2::Operation
705
+ command.params['name'] = name unless name.nil?
706
+ command.query['fields'] = fields unless fields.nil?
707
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
708
+ execute_or_queue_command(command, &block)
709
+ end
710
+
647
711
  # Create new ProvisioningConfig.
648
712
  # @param [String] parent
649
713
  # Required. The parent project and location containing the ProvisioningConfig.
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.17.0
4
+ version: 0.20.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-06-27 00:00:00.000000000 Z
11
+ date: 2022-08-01 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.6'
19
+ version: '0.7'
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.6'
29
+ version: '0.7'
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.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.20.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: []