google-apis-baremetalsolution_v2 0.10.0 → 0.11.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: 9ff7c6a28e457e4054b2e29a430fe673e0508be9a0eb4847d05a396e2d0dd045
4
- data.tar.gz: 2ce33bac77e72492cb7fa4ddfbfd85ec704f6d3896c07f9580c49abc8c4270ae
3
+ metadata.gz: 2d3ac20bb7fed7dca3af49382595f5a512b57c73455af6ba06b3efeb5f05ce18
4
+ data.tar.gz: 388840d06d62c33fc866ed7dcf4644489f1a9176782a4900ae44bfe55769b563
5
5
  SHA512:
6
- metadata.gz: 77ee9d83485c9aa0cba163192a47820c478f012cb566063b375dcaf726aa6765a47e3dca38ddefa5931c65372a7c47e58b0d5a9b1d659f8c4c12e8b75ebf79e4
7
- data.tar.gz: b9270b61f183a370e8bff41209d71fd2534a88fc6653620767fe8b05f8986bf75594c62c0e8c893e521fc5cfc1b9c73ffc0fe3ac462e12ef06e0d65b48853309
6
+ metadata.gz: 71b63fab0384203dc6ea8f0d3a27e5a7759a7743a535d8d87184979e68a9a58c4e9a9f93b9f21b8fcd493a6ea5b92fd616e6e26781ed06a3e1ab96101a0515ed
7
+ data.tar.gz: 534fd583ff6159cf9a627fc27e56f840d86874bf12e99d41635c7c58a2617b6684c74cb94fd85afaba8b1a34d6c8ab87141aad6906767fd571283b7ef8a7f34d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.11.0 (2022-04-24)
4
+
5
+ * Regenerated from discovery document revision 20220418
6
+
3
7
  ### v0.10.0 (2022-03-27)
4
8
 
5
9
  * Regenerated from discovery document revision 20220322
@@ -98,6 +98,25 @@ module Google
98
98
  end
99
99
  end
100
100
 
101
+ # Response with all provisioning settings.
102
+ class FetchInstanceProvisioningSettingsResponse
103
+ include Google::Apis::Core::Hashable
104
+
105
+ # The OS images available.
106
+ # Corresponds to the JSON property `images`
107
+ # @return [Array<Google::Apis::BaremetalsolutionV2::OsImage>]
108
+ attr_accessor :images
109
+
110
+ def initialize(**args)
111
+ update!(**args)
112
+ end
113
+
114
+ # Update properties of this object
115
+ def update!(**args)
116
+ @images = args[:images] if args.key?(:images)
117
+ end
118
+ end
119
+
101
120
  # A server.
102
121
  class Instance
103
122
  include Google::Apis::Core::Hashable
@@ -155,6 +174,11 @@ module Google
155
174
  # @return [Array<Google::Apis::BaremetalsolutionV2::Network>]
156
175
  attr_accessor :networks
157
176
 
177
+ # The OS image currently installed on the server.
178
+ # Corresponds to the JSON property `osImage`
179
+ # @return [String]
180
+ attr_accessor :os_image
181
+
158
182
  # The state of the server.
159
183
  # Corresponds to the JSON property `state`
160
184
  # @return [String]
@@ -180,6 +204,7 @@ module Google
180
204
  @machine_type = args[:machine_type] if args.key?(:machine_type)
181
205
  @name = args[:name] if args.key?(:name)
182
206
  @networks = args[:networks] if args.key?(:networks)
207
+ @os_image = args[:os_image] if args.key?(:os_image)
183
208
  @state = args[:state] if args.key?(:state)
184
209
  @update_time = args[:update_time] if args.key?(:update_time)
185
210
  end
@@ -650,6 +675,39 @@ module Google
650
675
  end
651
676
  end
652
677
 
678
+ # Logical interface.
679
+ class LogicalInterface
680
+ include Google::Apis::Core::Hashable
681
+
682
+ # Interface name. This is not a globally unique identifier. Name is unique only
683
+ # inside the ServerNetworkTemplate.
684
+ # Corresponds to the JSON property `name`
685
+ # @return [String]
686
+ attr_accessor :name
687
+
688
+ # If true, interface must have network connected.
689
+ # Corresponds to the JSON property `required`
690
+ # @return [Boolean]
691
+ attr_accessor :required
692
+ alias_method :required?, :required
693
+
694
+ # Interface type.
695
+ # Corresponds to the JSON property `type`
696
+ # @return [String]
697
+ attr_accessor :type
698
+
699
+ def initialize(**args)
700
+ update!(**args)
701
+ end
702
+
703
+ # Update properties of this object
704
+ def update!(**args)
705
+ @name = args[:name] if args.key?(:name)
706
+ @required = args[:required] if args.key?(:required)
707
+ @type = args[:type] if args.key?(:type)
708
+ end
709
+ end
710
+
653
711
  # A storage volume logical unit number (LUN).
654
712
  class Lun
655
713
  include Google::Apis::Core::Hashable
@@ -1077,6 +1135,50 @@ module Google
1077
1135
  end
1078
1136
  end
1079
1137
 
1138
+ # Operation System image.
1139
+ class OsImage
1140
+ include Google::Apis::Core::Hashable
1141
+
1142
+ # Instance types this image is applicable to. [Available types](https://cloud.
1143
+ # google.com/bare-metal/docs/bms-planning#server_configurations)
1144
+ # Corresponds to the JSON property `applicableInstanceTypes`
1145
+ # @return [Array<String>]
1146
+ attr_accessor :applicable_instance_types
1147
+
1148
+ # OS Image code.
1149
+ # Corresponds to the JSON property `code`
1150
+ # @return [String]
1151
+ attr_accessor :code
1152
+
1153
+ # OS Image description.
1154
+ # Corresponds to the JSON property `description`
1155
+ # @return [String]
1156
+ attr_accessor :description
1157
+
1158
+ # Output only. OS Image's unique name.
1159
+ # Corresponds to the JSON property `name`
1160
+ # @return [String]
1161
+ attr_accessor :name
1162
+
1163
+ # Network templates that can be used with this OS Image.
1164
+ # Corresponds to the JSON property `supportedNetworkTemplates`
1165
+ # @return [Array<Google::Apis::BaremetalsolutionV2::ServerNetworkTemplate>]
1166
+ attr_accessor :supported_network_templates
1167
+
1168
+ def initialize(**args)
1169
+ update!(**args)
1170
+ end
1171
+
1172
+ # Update properties of this object
1173
+ def update!(**args)
1174
+ @applicable_instance_types = args[:applicable_instance_types] if args.key?(:applicable_instance_types)
1175
+ @code = args[:code] if args.key?(:code)
1176
+ @description = args[:description] if args.key?(:description)
1177
+ @name = args[:name] if args.key?(:name)
1178
+ @supported_network_templates = args[:supported_network_templates] if args.key?(:supported_network_templates)
1179
+ end
1180
+ end
1181
+
1080
1182
  # This resource represents a long-running operation that is the result of a
1081
1183
  # network API call.
1082
1184
  class Operation
@@ -1364,6 +1466,37 @@ module Google
1364
1466
  end
1365
1467
  end
1366
1468
 
1469
+ # Network template.
1470
+ class ServerNetworkTemplate
1471
+ include Google::Apis::Core::Hashable
1472
+
1473
+ # Instance types this template is applicable to.
1474
+ # Corresponds to the JSON property `applicableInstanceTypes`
1475
+ # @return [Array<String>]
1476
+ attr_accessor :applicable_instance_types
1477
+
1478
+ # Logical interfaces.
1479
+ # Corresponds to the JSON property `logicalInterfaces`
1480
+ # @return [Array<Google::Apis::BaremetalsolutionV2::LogicalInterface>]
1481
+ attr_accessor :logical_interfaces
1482
+
1483
+ # Output only. Template's unique name.
1484
+ # Corresponds to the JSON property `name`
1485
+ # @return [String]
1486
+ attr_accessor :name
1487
+
1488
+ def initialize(**args)
1489
+ update!(**args)
1490
+ end
1491
+
1492
+ # Update properties of this object
1493
+ def update!(**args)
1494
+ @applicable_instance_types = args[:applicable_instance_types] if args.key?(:applicable_instance_types)
1495
+ @logical_interfaces = args[:logical_interfaces] if args.key?(:logical_interfaces)
1496
+ @name = args[:name] if args.key?(:name)
1497
+ end
1498
+ end
1499
+
1367
1500
  # Details about snapshot space reservation and usage on the storage volume.
1368
1501
  class SnapshotReservationDetail
1369
1502
  include Google::Apis::Core::Hashable
@@ -1509,6 +1642,19 @@ module Google
1509
1642
  end
1510
1643
  end
1511
1644
 
1645
+ # Message requesting to stop a server.
1646
+ class StopInstanceRequest
1647
+ include Google::Apis::Core::Hashable
1648
+
1649
+ def initialize(**args)
1650
+ update!(**args)
1651
+ end
1652
+
1653
+ # Update properties of this object
1654
+ def update!(**args)
1655
+ end
1656
+ end
1657
+
1512
1658
  # Request for SubmitProvisioningConfig.
1513
1659
  class SubmitProvisioningConfigRequest
1514
1660
  include Google::Apis::Core::Hashable
@@ -1638,6 +1784,12 @@ module Google
1638
1784
  # @return [Fixnum]
1639
1785
  attr_accessor :current_size_gib
1640
1786
 
1787
+ # Additional emergency size that was requested for this Volume, in GiB.
1788
+ # current_size_gib includes this value.
1789
+ # Corresponds to the JSON property `emergencySizeGib`
1790
+ # @return [Fixnum]
1791
+ attr_accessor :emergency_size_gib
1792
+
1641
1793
  # An identifier for the `Volume`, generated by the backend.
1642
1794
  # Corresponds to the JSON property `id`
1643
1795
  # @return [String]
@@ -1706,6 +1858,7 @@ module Google
1706
1858
  def update!(**args)
1707
1859
  @auto_grown_size_gib = args[:auto_grown_size_gib] if args.key?(:auto_grown_size_gib)
1708
1860
  @current_size_gib = args[:current_size_gib] if args.key?(:current_size_gib)
1861
+ @emergency_size_gib = args[:emergency_size_gib] if args.key?(:emergency_size_gib)
1709
1862
  @id = args[:id] if args.key?(:id)
1710
1863
  @labels = args[:labels] if args.key?(:labels)
1711
1864
  @name = args[:name] if args.key?(:name)
@@ -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.10.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220322"
25
+ REVISION = "20220418"
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 FetchInstanceProvisioningSettingsResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class Instance
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -124,6 +130,12 @@ module Google
124
130
  include Google::Apis::Core::JsonObjectSupport
125
131
  end
126
132
 
133
+ class LogicalInterface
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
127
139
  class Lun
128
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
141
 
@@ -172,6 +184,12 @@ module Google
172
184
  include Google::Apis::Core::JsonObjectSupport
173
185
  end
174
186
 
187
+ class OsImage
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
175
193
  class Operation
176
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
195
 
@@ -214,6 +232,12 @@ module Google
214
232
  include Google::Apis::Core::JsonObjectSupport
215
233
  end
216
234
 
235
+ class ServerNetworkTemplate
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
217
241
  class SnapshotReservationDetail
218
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
243
 
@@ -238,6 +262,12 @@ module Google
238
262
  include Google::Apis::Core::JsonObjectSupport
239
263
  end
240
264
 
265
+ class StopInstanceRequest
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
241
271
  class SubmitProvisioningConfigRequest
242
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
273
 
@@ -299,6 +329,14 @@ module Google
299
329
  end
300
330
  end
301
331
 
332
+ class FetchInstanceProvisioningSettingsResponse
333
+ # @private
334
+ class Representation < Google::Apis::Core::JsonRepresentation
335
+ collection :images, as: 'images', class: Google::Apis::BaremetalsolutionV2::OsImage, decorator: Google::Apis::BaremetalsolutionV2::OsImage::Representation
336
+
337
+ end
338
+ end
339
+
302
340
  class Instance
303
341
  # @private
304
342
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -313,6 +351,7 @@ module Google
313
351
  property :name, as: 'name'
314
352
  collection :networks, as: 'networks', class: Google::Apis::BaremetalsolutionV2::Network, decorator: Google::Apis::BaremetalsolutionV2::Network::Representation
315
353
 
354
+ property :os_image, as: 'osImage'
316
355
  property :state, as: 'state'
317
356
  property :update_time, as: 'updateTime'
318
357
  end
@@ -459,6 +498,15 @@ module Google
459
498
  end
460
499
  end
461
500
 
501
+ class LogicalInterface
502
+ # @private
503
+ class Representation < Google::Apis::Core::JsonRepresentation
504
+ property :name, as: 'name'
505
+ property :required, as: 'required'
506
+ property :type, as: 'type'
507
+ end
508
+ end
509
+
462
510
  class Lun
463
511
  # @private
464
512
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -562,6 +610,18 @@ module Google
562
610
  end
563
611
  end
564
612
 
613
+ class OsImage
614
+ # @private
615
+ class Representation < Google::Apis::Core::JsonRepresentation
616
+ collection :applicable_instance_types, as: 'applicableInstanceTypes'
617
+ property :code, as: 'code'
618
+ property :description, as: 'description'
619
+ property :name, as: 'name'
620
+ collection :supported_network_templates, as: 'supportedNetworkTemplates', class: Google::Apis::BaremetalsolutionV2::ServerNetworkTemplate, decorator: Google::Apis::BaremetalsolutionV2::ServerNetworkTemplate::Representation
621
+
622
+ end
623
+ end
624
+
565
625
  class Operation
566
626
  # @private
567
627
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -638,6 +698,16 @@ module Google
638
698
  end
639
699
  end
640
700
 
701
+ class ServerNetworkTemplate
702
+ # @private
703
+ class Representation < Google::Apis::Core::JsonRepresentation
704
+ collection :applicable_instance_types, as: 'applicableInstanceTypes'
705
+ collection :logical_interfaces, as: 'logicalInterfaces', class: Google::Apis::BaremetalsolutionV2::LogicalInterface, decorator: Google::Apis::BaremetalsolutionV2::LogicalInterface::Representation
706
+
707
+ property :name, as: 'name'
708
+ end
709
+ end
710
+
641
711
  class SnapshotReservationDetail
642
712
  # @private
643
713
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -676,6 +746,12 @@ module Google
676
746
  end
677
747
  end
678
748
 
749
+ class StopInstanceRequest
750
+ # @private
751
+ class Representation < Google::Apis::Core::JsonRepresentation
752
+ end
753
+ end
754
+
679
755
  class SubmitProvisioningConfigRequest
680
756
  # @private
681
757
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -719,6 +795,7 @@ module Google
719
795
  class Representation < Google::Apis::Core::JsonRepresentation
720
796
  property :auto_grown_size_gib, :numeric_string => true, as: 'autoGrownSizeGib'
721
797
  property :current_size_gib, :numeric_string => true, as: 'currentSizeGib'
798
+ property :emergency_size_gib, :numeric_string => true, as: 'emergencySizeGib'
722
799
  property :id, as: 'id'
723
800
  hash :labels, as: 'labels'
724
801
  property :name, as: 'name'
@@ -85,8 +85,8 @@ module Google
85
85
  # The resource that owns the locations collection, if applicable.
86
86
  # @param [String] filter
87
87
  # A filter to narrow down results to a preferred subset. The filtering language
88
- # accepts strings like "displayName=tokyo", and is documented in more detail in [
89
- # AIP-160](https://google.aip.dev/160).
88
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
89
+ # in [AIP-160](https://google.aip.dev/160).
90
90
  # @param [Fixnum] page_size
91
91
  # The maximum number of results to return. If not set, the service selects a
92
92
  # default.
@@ -123,6 +123,37 @@ 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
+
126
157
  # Get details about a single server.
127
158
  # @param [String] name
128
159
  # Required. Name of the resource.
@@ -202,6 +233,7 @@ module Google
202
233
  # @param [Google::Apis::BaremetalsolutionV2::Instance] instance_object
203
234
  # @param [String] update_mask
204
235
  # The list of fields to update. The only currently supported fields are: `labels`
236
+ # `hyperthreading_enabled`
205
237
  # @param [String] fields
206
238
  # Selector specifying which fields to include in a partial response.
207
239
  # @param [String] quota_user
@@ -299,6 +331,39 @@ module Google
299
331
  execute_or_queue_command(command, &block)
300
332
  end
301
333
 
334
+ # Stop a running server.
335
+ # @param [String] name
336
+ # Required. Name of the resource.
337
+ # @param [Google::Apis::BaremetalsolutionV2::StopInstanceRequest] stop_instance_request_object
338
+ # @param [String] fields
339
+ # Selector specifying which fields to include in a partial response.
340
+ # @param [String] quota_user
341
+ # Available to use for quota purposes for server-side applications. Can be any
342
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
343
+ # @param [Google::Apis::RequestOptions] options
344
+ # Request-specific options
345
+ #
346
+ # @yield [result, err] Result & error if block supplied
347
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
348
+ # @yieldparam err [StandardError] error object if request failed
349
+ #
350
+ # @return [Google::Apis::BaremetalsolutionV2::Operation]
351
+ #
352
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
353
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
354
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
355
+ def stop_instance(name, stop_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
356
+ command = make_simple_command(:post, 'v2/{+name}:stop', options)
357
+ command.request_representation = Google::Apis::BaremetalsolutionV2::StopInstanceRequest::Representation
358
+ command.request_object = stop_instance_request_object
359
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
360
+ command.response_class = Google::Apis::BaremetalsolutionV2::Operation
361
+ command.params['name'] = name unless name.nil?
362
+ command.query['fields'] = fields unless fields.nil?
363
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
364
+ execute_or_queue_command(command, &block)
365
+ end
366
+
302
367
  # Get details of a single network.
303
368
  # @param [String] name
304
369
  # Required. Name of the resource.
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.10.0
4
+ version: 0.11.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-03-28 00:00:00.000000000 Z
11
+ date: 2022-04-25 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.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.11.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: []