google-apis-baremetalsolution_v2 0.33.0 → 0.35.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: 933621725d6021ced9bc71ea9369b0e8fbfee8d6a696051836ec5186e41e5c62
4
- data.tar.gz: 86ce7f1f6eeb60547c12a22d59c2b5d8f33fab9ff412328778da5ca77d516edb
3
+ metadata.gz: 1983b0cca0e439f14f8c6b0233775ff57273432b230d8f5b5e8643c981b02890
4
+ data.tar.gz: 15a8b1535f1435dff455c0a1576ecad93c1cedb81155e9d5863083e30782647f
5
5
  SHA512:
6
- metadata.gz: 62cc8a50c3b0dba41d359ed1a0497d2517a06e6c5ca60fda2ac4205c12c94d23a940b6507d5a28060e323aea0a6a193587789a88960170376a03abc50d00e93f
7
- data.tar.gz: f63eaf0609d396319c7e31348778e3b896e54ef9edd1d5f75a15489c15855391a1b1208b5b989cb300df08faf619897ec629d12be93b2418e460150c9e6986d3
6
+ metadata.gz: 03f99d7774aaf79931d5932c69563d73d815f9cf8952a963a5dc3534f8760cddfe1bec2223d5c2585263778c2845fc61984f04831a55fb0879ae4448f68d6319
7
+ data.tar.gz: 80abe06bb65584c319f397cc67bbcbd5a60e6d2b1e8026453acc9ab8df4b5893a13da46a6e176501cfcf6abe293226684593bf66842ca9e59e5176a8dda3d1cc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.35.0 (2023-07-02)
4
+
5
+ * Regenerated from discovery document revision 20230628
6
+
7
+ ### v0.34.0 (2023-06-11)
8
+
9
+ * Regenerated from discovery document revision 20230607
10
+
3
11
  ### v0.33.0 (2023-05-28)
4
12
 
5
13
  * Regenerated from discovery document revision 20230522
@@ -185,25 +185,6 @@ module Google
185
185
  end
186
186
  end
187
187
 
188
- # Response with all provisioning settings.
189
- class FetchInstanceProvisioningSettingsResponse
190
- include Google::Apis::Core::Hashable
191
-
192
- # The OS images available.
193
- # Corresponds to the JSON property `images`
194
- # @return [Array<Google::Apis::BaremetalsolutionV2::OsImage>]
195
- attr_accessor :images
196
-
197
- def initialize(**args)
198
- update!(**args)
199
- end
200
-
201
- # Update properties of this object
202
- def update!(**args)
203
- @images = args[:images] if args.key?(:images)
204
- end
205
- end
206
-
207
188
  # Each logical interface represents a logical abstraction of the underlying
208
189
  # physical interface (for eg. bond, nic) of the instance. Each logical interface
209
190
  # can effectively map to multiple network-IP pairs and still be mapped to one
@@ -240,40 +221,6 @@ module Google
240
221
  end
241
222
  end
242
223
 
243
- # Logical interface.
244
- class GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface
245
- include Google::Apis::Core::Hashable
246
-
247
- # Interface name. This is not a globally unique identifier. Name is unique only
248
- # inside the ServerNetworkTemplate. This is of syntax or and forms part of the
249
- # network template name.
250
- # Corresponds to the JSON property `name`
251
- # @return [String]
252
- attr_accessor :name
253
-
254
- # If true, interface must have network connected.
255
- # Corresponds to the JSON property `required`
256
- # @return [Boolean]
257
- attr_accessor :required
258
- alias_method :required?, :required
259
-
260
- # Interface type.
261
- # Corresponds to the JSON property `type`
262
- # @return [String]
263
- attr_accessor :type
264
-
265
- def initialize(**args)
266
- update!(**args)
267
- end
268
-
269
- # Update properties of this object
270
- def update!(**args)
271
- @name = args[:name] if args.key?(:name)
272
- @required = args[:required] if args.key?(:required)
273
- @type = args[:type] if args.key?(:type)
274
- end
275
- end
276
-
277
224
  # A server.
278
225
  class Instance
279
226
  include Google::Apis::Core::Hashable
@@ -486,6 +433,11 @@ module Google
486
433
  # @return [Google::Apis::BaremetalsolutionV2::NetworkAddress]
487
434
  attr_accessor :private_network
488
435
 
436
+ # List of names of ssh keys used to provision the instance.
437
+ # Corresponds to the JSON property `sshKeyNames`
438
+ # @return [Array<String>]
439
+ attr_accessor :ssh_key_names
440
+
489
441
  # User note field, it can be used by customers to add additional information for
490
442
  # the BMS Ops team .
491
443
  # Corresponds to the JSON property `userNote`
@@ -509,6 +461,7 @@ module Google
509
461
  @network_template = args[:network_template] if args.key?(:network_template)
510
462
  @os_image = args[:os_image] if args.key?(:os_image)
511
463
  @private_network = args[:private_network] if args.key?(:private_network)
464
+ @ssh_key_names = args[:ssh_key_names] if args.key?(:ssh_key_names)
512
465
  @user_note = args[:user_note] if args.key?(:user_note)
513
466
  end
514
467
  end
@@ -1529,50 +1482,6 @@ module Google
1529
1482
  end
1530
1483
  end
1531
1484
 
1532
- # Operation System image.
1533
- class OsImage
1534
- include Google::Apis::Core::Hashable
1535
-
1536
- # Instance types this image is applicable to. [Available types](https://cloud.
1537
- # google.com/bare-metal/docs/bms-planning#server_configurations)
1538
- # Corresponds to the JSON property `applicableInstanceTypes`
1539
- # @return [Array<String>]
1540
- attr_accessor :applicable_instance_types
1541
-
1542
- # OS Image code.
1543
- # Corresponds to the JSON property `code`
1544
- # @return [String]
1545
- attr_accessor :code
1546
-
1547
- # OS Image description.
1548
- # Corresponds to the JSON property `description`
1549
- # @return [String]
1550
- attr_accessor :description
1551
-
1552
- # Output only. OS Image's unique name.
1553
- # Corresponds to the JSON property `name`
1554
- # @return [String]
1555
- attr_accessor :name
1556
-
1557
- # Network templates that can be used with this OS Image.
1558
- # Corresponds to the JSON property `supportedNetworkTemplates`
1559
- # @return [Array<Google::Apis::BaremetalsolutionV2::ServerNetworkTemplate>]
1560
- attr_accessor :supported_network_templates
1561
-
1562
- def initialize(**args)
1563
- update!(**args)
1564
- end
1565
-
1566
- # Update properties of this object
1567
- def update!(**args)
1568
- @applicable_instance_types = args[:applicable_instance_types] if args.key?(:applicable_instance_types)
1569
- @code = args[:code] if args.key?(:code)
1570
- @description = args[:description] if args.key?(:description)
1571
- @name = args[:name] if args.key?(:name)
1572
- @supported_network_templates = args[:supported_network_templates] if args.key?(:supported_network_templates)
1573
- end
1574
- end
1575
-
1576
1485
  # This resource represents a long-running operation that is the result of a
1577
1486
  # network API call.
1578
1487
  class Operation
@@ -1983,40 +1892,6 @@ module Google
1983
1892
  end
1984
1893
  end
1985
1894
 
1986
- # Network template.
1987
- class ServerNetworkTemplate
1988
- include Google::Apis::Core::Hashable
1989
-
1990
- # Instance types this template is applicable to.
1991
- # Corresponds to the JSON property `applicableInstanceTypes`
1992
- # @return [Array<String>]
1993
- attr_accessor :applicable_instance_types
1994
-
1995
- # Logical interfaces.
1996
- # Corresponds to the JSON property `logicalInterfaces`
1997
- # @return [Array<Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface>]
1998
- attr_accessor :logical_interfaces
1999
-
2000
- # Output only. Template's unique name. The full resource name follows the
2001
- # pattern: `projects/`project`/locations/`location`/serverNetworkTemplate/`
2002
- # server_network_template`` Generally, the `server_network_template` follows the
2003
- # syntax of "bond" or "nic".
2004
- # Corresponds to the JSON property `name`
2005
- # @return [String]
2006
- attr_accessor :name
2007
-
2008
- def initialize(**args)
2009
- update!(**args)
2010
- end
2011
-
2012
- # Update properties of this object
2013
- def update!(**args)
2014
- @applicable_instance_types = args[:applicable_instance_types] if args.key?(:applicable_instance_types)
2015
- @logical_interfaces = args[:logical_interfaces] if args.key?(:logical_interfaces)
2016
- @name = args[:name] if args.key?(:name)
2017
- end
2018
- end
2019
-
2020
1895
  # Details about snapshot space reservation and usage on the storage volume.
2021
1896
  class SnapshotReservationDetail
2022
1897
  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.33.0"
19
+ GEM_VERSION = "0.35.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 = "20230522"
25
+ REVISION = "20230628"
26
26
  end
27
27
  end
28
28
  end
@@ -64,24 +64,12 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class FetchInstanceProvisioningSettingsResponse
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
69
-
70
- include Google::Apis::Core::JsonObjectSupport
71
- end
72
-
73
67
  class GoogleCloudBaremetalsolutionV2LogicalInterface
74
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
69
 
76
70
  include Google::Apis::Core::JsonObjectSupport
77
71
  end
78
72
 
79
- class GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface
80
- class Representation < Google::Apis::Core::JsonRepresentation; end
81
-
82
- include Google::Apis::Core::JsonObjectSupport
83
- end
84
-
85
73
  class Instance
86
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
75
 
@@ -238,12 +226,6 @@ module Google
238
226
  include Google::Apis::Core::JsonObjectSupport
239
227
  end
240
228
 
241
- class OsImage
242
- class Representation < Google::Apis::Core::JsonRepresentation; end
243
-
244
- include Google::Apis::Core::JsonObjectSupport
245
- end
246
-
247
229
  class Operation
248
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
231
 
@@ -322,12 +304,6 @@ module Google
322
304
  include Google::Apis::Core::JsonObjectSupport
323
305
  end
324
306
 
325
- class ServerNetworkTemplate
326
- class Representation < Google::Apis::Core::JsonRepresentation; end
327
-
328
- include Google::Apis::Core::JsonObjectSupport
329
- end
330
-
331
307
  class SnapshotReservationDetail
332
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
309
 
@@ -458,14 +434,6 @@ module Google
458
434
  end
459
435
  end
460
436
 
461
- class FetchInstanceProvisioningSettingsResponse
462
- # @private
463
- class Representation < Google::Apis::Core::JsonRepresentation
464
- collection :images, as: 'images', class: Google::Apis::BaremetalsolutionV2::OsImage, decorator: Google::Apis::BaremetalsolutionV2::OsImage::Representation
465
-
466
- end
467
- end
468
-
469
437
  class GoogleCloudBaremetalsolutionV2LogicalInterface
470
438
  # @private
471
439
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -476,15 +444,6 @@ module Google
476
444
  end
477
445
  end
478
446
 
479
- class GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface
480
- # @private
481
- class Representation < Google::Apis::Core::JsonRepresentation
482
- property :name, as: 'name'
483
- property :required, as: 'required'
484
- property :type, as: 'type'
485
- end
486
- end
487
-
488
447
  class Instance
489
448
  # @private
490
449
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -531,6 +490,7 @@ module Google
531
490
  property :os_image, as: 'osImage'
532
491
  property :private_network, as: 'privateNetwork', class: Google::Apis::BaremetalsolutionV2::NetworkAddress, decorator: Google::Apis::BaremetalsolutionV2::NetworkAddress::Representation
533
492
 
493
+ collection :ssh_key_names, as: 'sshKeyNames'
534
494
  property :user_note, as: 'userNote'
535
495
  end
536
496
  end
@@ -806,18 +766,6 @@ module Google
806
766
  end
807
767
  end
808
768
 
809
- class OsImage
810
- # @private
811
- class Representation < Google::Apis::Core::JsonRepresentation
812
- collection :applicable_instance_types, as: 'applicableInstanceTypes'
813
- property :code, as: 'code'
814
- property :description, as: 'description'
815
- property :name, as: 'name'
816
- collection :supported_network_templates, as: 'supportedNetworkTemplates', class: Google::Apis::BaremetalsolutionV2::ServerNetworkTemplate, decorator: Google::Apis::BaremetalsolutionV2::ServerNetworkTemplate::Representation
817
-
818
- end
819
- end
820
-
821
769
  class Operation
822
770
  # @private
823
771
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -937,16 +885,6 @@ module Google
937
885
  end
938
886
  end
939
887
 
940
- class ServerNetworkTemplate
941
- # @private
942
- class Representation < Google::Apis::Core::JsonRepresentation
943
- collection :applicable_instance_types, as: 'applicableInstanceTypes'
944
- collection :logical_interfaces, as: 'logicalInterfaces', class: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface, decorator: Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface::Representation
945
-
946
- property :name, as: 'name'
947
- end
948
- end
949
-
950
888
  class SnapshotReservationDetail
951
889
  # @private
952
890
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -123,70 +123,6 @@ module Google
123
123
  execute_or_queue_command(command, &block)
124
124
  end
125
125
 
126
- # Get instance provisioning settings for a given project. This is hidden method
127
- # used by UI only.
128
- # @param [String] location
129
- # Required. The parent project and location containing the ProvisioningSettings.
130
- # @param [String] fields
131
- # Selector specifying which fields to include in a partial response.
132
- # @param [String] quota_user
133
- # Available to use for quota purposes for server-side applications. Can be any
134
- # arbitrary string assigned to a user, but should not exceed 40 characters.
135
- # @param [Google::Apis::RequestOptions] options
136
- # Request-specific options
137
- #
138
- # @yield [result, err] Result & error if block supplied
139
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::FetchInstanceProvisioningSettingsResponse] parsed result object
140
- # @yieldparam err [StandardError] error object if request failed
141
- #
142
- # @return [Google::Apis::BaremetalsolutionV2::FetchInstanceProvisioningSettingsResponse]
143
- #
144
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
145
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
146
- # @raise [Google::Apis::AuthorizationError] Authorization is required
147
- def fetch_project_location_instance_provisioning_setting(location, fields: nil, quota_user: nil, options: nil, &block)
148
- command = make_simple_command(:get, 'v2/{+location}/instanceProvisioningSettings:fetch', options)
149
- command.response_representation = Google::Apis::BaremetalsolutionV2::FetchInstanceProvisioningSettingsResponse::Representation
150
- command.response_class = Google::Apis::BaremetalsolutionV2::FetchInstanceProvisioningSettingsResponse
151
- command.params['location'] = location unless location.nil?
152
- command.query['fields'] = fields unless fields.nil?
153
- command.query['quotaUser'] = quota_user unless quota_user.nil?
154
- execute_or_queue_command(command, &block)
155
- end
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
-
190
126
  # Detach LUN from Instance.
191
127
  # @param [String] instance
192
128
  # Required. Name of the instance.
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.33.0
4
+ version: 0.35.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-05-28 00:00:00.000000000 Z
11
+ date: 2023-07-02 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.33.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.35.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: []