google-apis-baremetalsolution_v2 0.19.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/baremetalsolution_v2/classes.rb +46 -13
- data/lib/google/apis/baremetalsolution_v2/gem_version.rb +2 -2
- data/lib/google/apis/baremetalsolution_v2/representations.rb +6 -0
- data/lib/google/apis/baremetalsolution_v2/service.rb +37 -4
- 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: e7bd3c1cbfcacde48bcf691ae8e52922f38d4ceb82330eac9728aed0b7de78bd
|
4
|
+
data.tar.gz: b80c4af1e905ff6bac3842f9ca00d94f551ef31379f0d91f45c2c058f0acb9b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69fd8bba1976b3606ab2b21cb4adf5ec776d759ed6ad709e2dbf8c3fbbddc0060846a7be679bc28d565c80d94789efd27432bb4551a08f14bb4f1b281301c589
|
7
|
+
data.tar.gz: 35851d57fe002e9d050679fb843e2677d2b728320e9fb7e9e450ae1d15615113e9e325c7ce04ae417b7936b9851f9931c825c82702dddd544a97b9487e0e9810
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -213,13 +221,13 @@ module Google
|
|
213
221
|
attr_accessor :hyperthreading_enabled
|
214
222
|
alias_method :hyperthreading_enabled?, :hyperthreading_enabled
|
215
223
|
|
216
|
-
# An identifier for the `Instance`, generated by the backend.
|
224
|
+
# Output only. An identifier for the `Instance`, generated by the backend.
|
217
225
|
# Corresponds to the JSON property `id`
|
218
226
|
# @return [String]
|
219
227
|
attr_accessor :id
|
220
228
|
|
221
|
-
# True if the interactive serial console feature is enabled for the
|
222
|
-
# 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.
|
223
231
|
# Corresponds to the JSON property `interactiveSerialConsoleEnabled`
|
224
232
|
# @return [Boolean]
|
225
233
|
attr_accessor :interactive_serial_console_enabled
|
@@ -241,21 +249,26 @@ module Google
|
|
241
249
|
# @return [Array<Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface>]
|
242
250
|
attr_accessor :logical_interfaces
|
243
251
|
|
244
|
-
#
|
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.
|
245
258
|
# Corresponds to the JSON property `luns`
|
246
259
|
# @return [Array<Google::Apis::BaremetalsolutionV2::Lun>]
|
247
260
|
attr_accessor :luns
|
248
261
|
|
249
|
-
# The server type. [Available server types](https://cloud.google.com/
|
250
|
-
# 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)
|
251
264
|
# Corresponds to the JSON property `machineType`
|
252
265
|
# @return [String]
|
253
266
|
attr_accessor :machine_type
|
254
267
|
|
255
|
-
#
|
256
|
-
#
|
257
|
-
#
|
258
|
-
#
|
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``
|
259
272
|
# Corresponds to the JSON property `name`
|
260
273
|
# @return [String]
|
261
274
|
attr_accessor :name
|
@@ -266,7 +279,7 @@ module Google
|
|
266
279
|
# @return [String]
|
267
280
|
attr_accessor :network_template
|
268
281
|
|
269
|
-
# List of networks associated with this server.
|
282
|
+
# Output only. List of networks associated with this server.
|
270
283
|
# Corresponds to the JSON property `networks`
|
271
284
|
# @return [Array<Google::Apis::BaremetalsolutionV2::Network>]
|
272
285
|
attr_accessor :networks
|
@@ -283,7 +296,7 @@ module Google
|
|
283
296
|
# @return [String]
|
284
297
|
attr_accessor :pod
|
285
298
|
|
286
|
-
# The state of the server.
|
299
|
+
# Output only. The state of the server.
|
287
300
|
# Corresponds to the JSON property `state`
|
288
301
|
# @return [String]
|
289
302
|
attr_accessor :state
|
@@ -293,6 +306,12 @@ module Google
|
|
293
306
|
# @return [String]
|
294
307
|
attr_accessor :update_time
|
295
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
|
+
|
296
315
|
def initialize(**args)
|
297
316
|
update!(**args)
|
298
317
|
end
|
@@ -305,6 +324,7 @@ module Google
|
|
305
324
|
@interactive_serial_console_enabled = args[:interactive_serial_console_enabled] if args.key?(:interactive_serial_console_enabled)
|
306
325
|
@labels = args[:labels] if args.key?(:labels)
|
307
326
|
@logical_interfaces = args[:logical_interfaces] if args.key?(:logical_interfaces)
|
327
|
+
@login_info = args[:login_info] if args.key?(:login_info)
|
308
328
|
@luns = args[:luns] if args.key?(:luns)
|
309
329
|
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
310
330
|
@name = args[:name] if args.key?(:name)
|
@@ -314,6 +334,7 @@ module Google
|
|
314
334
|
@pod = args[:pod] if args.key?(:pod)
|
315
335
|
@state = args[:state] if args.key?(:state)
|
316
336
|
@update_time = args[:update_time] if args.key?(:update_time)
|
337
|
+
@volumes = args[:volumes] if args.key?(:volumes)
|
317
338
|
end
|
318
339
|
end
|
319
340
|
|
@@ -421,7 +442,12 @@ module Google
|
|
421
442
|
# @return [Fixnum]
|
422
443
|
attr_accessor :available_machine_count
|
423
444
|
|
424
|
-
#
|
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.
|
425
451
|
# Corresponds to the JSON property `instanceType`
|
426
452
|
# @return [String]
|
427
453
|
attr_accessor :instance_type
|
@@ -443,6 +469,7 @@ module Google
|
|
443
469
|
# Update properties of this object
|
444
470
|
def update!(**args)
|
445
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)
|
446
473
|
@instance_type = args[:instance_type] if args.key?(:instance_type)
|
447
474
|
@location = args[:location] if args.key?(:location)
|
448
475
|
@name = args[:name] if args.key?(:name)
|
@@ -1969,6 +1996,11 @@ module Google
|
|
1969
1996
|
# @return [String]
|
1970
1997
|
attr_accessor :pod
|
1971
1998
|
|
1999
|
+
# Output only. Storage protocol for the Volume.
|
2000
|
+
# Corresponds to the JSON property `protocol`
|
2001
|
+
# @return [String]
|
2002
|
+
attr_accessor :protocol
|
2003
|
+
|
1972
2004
|
# The space remaining in the storage volume for new LUNs, in GiB, excluding
|
1973
2005
|
# space reserved for snapshots.
|
1974
2006
|
# Corresponds to the JSON property `remainingSpaceGib`
|
@@ -2026,6 +2058,7 @@ module Google
|
|
2026
2058
|
@name = args[:name] if args.key?(:name)
|
2027
2059
|
@originally_requested_size_gib = args[:originally_requested_size_gib] if args.key?(:originally_requested_size_gib)
|
2028
2060
|
@pod = args[:pod] if args.key?(:pod)
|
2061
|
+
@protocol = args[:protocol] if args.key?(:protocol)
|
2029
2062
|
@remaining_space_gib = args[:remaining_space_gib] if args.key?(:remaining_space_gib)
|
2030
2063
|
@requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib)
|
2031
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.
|
19
|
+
GEM_VERSION = "0.20.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.9.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
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
|
@@ -362,6 +363,7 @@ module Google
|
|
362
363
|
hash :labels, as: 'labels'
|
363
364
|
collection :logical_interfaces, as: 'logicalInterfaces', class: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface, decorator: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface::Representation
|
364
365
|
|
366
|
+
property :login_info, as: 'loginInfo'
|
365
367
|
collection :luns, as: 'luns', class: Google::Apis::BaremetalsolutionV2::Lun, decorator: Google::Apis::BaremetalsolutionV2::Lun::Representation
|
366
368
|
|
367
369
|
property :machine_type, as: 'machineType'
|
@@ -373,6 +375,8 @@ module Google
|
|
373
375
|
property :pod, as: 'pod'
|
374
376
|
property :state, as: 'state'
|
375
377
|
property :update_time, as: 'updateTime'
|
378
|
+
collection :volumes, as: 'volumes', class: Google::Apis::BaremetalsolutionV2::Volume, decorator: Google::Apis::BaremetalsolutionV2::Volume::Representation
|
379
|
+
|
376
380
|
end
|
377
381
|
end
|
378
382
|
|
@@ -401,6 +405,7 @@ module Google
|
|
401
405
|
# @private
|
402
406
|
class Representation < Google::Apis::Core::JsonRepresentation
|
403
407
|
property :available_machine_count, as: 'availableMachineCount'
|
408
|
+
property :gcp_service, as: 'gcpService'
|
404
409
|
property :instance_type, as: 'instanceType'
|
405
410
|
property :location, as: 'location'
|
406
411
|
property :name, as: 'name'
|
@@ -816,6 +821,7 @@ module Google
|
|
816
821
|
property :name, as: 'name'
|
817
822
|
property :originally_requested_size_gib, :numeric_string => true, as: 'originallyRequestedSizeGib'
|
818
823
|
property :pod, as: 'pod'
|
824
|
+
property :protocol, as: 'protocol'
|
819
825
|
property :remaining_space_gib, :numeric_string => true, as: 'remainingSpaceGib'
|
820
826
|
property :requested_size_gib, :numeric_string => true, as: 'requestedSizeGib'
|
821
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
|
-
#
|
263
|
-
#
|
264
|
-
#
|
265
|
-
#
|
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` `
|
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.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-
|
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
|
@@ -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.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: []
|