google-apis-baremetalsolution_v2 0.9.0 → 0.12.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: b7cb58fe2d25caf2d08f73cdf1a956d9243f86792d39d0200b7239e33f32c86d
4
- data.tar.gz: 22d979766db812cb1264c2953bd24bcb1f3ea3712139ac610e863f9bda09bc89
3
+ metadata.gz: e3cf2c48c1c654441e28d4562de5fb6d80a9fae9706f71a74d0513b3951316e4
4
+ data.tar.gz: e0d0c3d0bd183720139d2fbacf9c44dc311a008e0277f40728425d9a1bf560cf
5
5
  SHA512:
6
- metadata.gz: 1636e32e6f428e9fc53bfbfaf9afdc3f989d792a1f99784d8e385406ce47ef77de96b411bf37e539f2a51b4abfc6f434e865fe04ef5f92e62e4beb886eedb231
7
- data.tar.gz: 87a603d2710821a12166a472fe7106f557ffdc6952492c4005acf8b7377a8b2b42f83959415cb88e368e45fe9a3ab94e63b462782ee086ee0264fff20bdcfd2c
6
+ metadata.gz: 2ec844b481408dfb2c6d6fd3b10c99721c3eb6cabdf654c1286c8fea5ac4e00893ddf4b4e34f18f6f69daf8c1f496c2a64d99433b15a9299d53d9aa295f82992
7
+ data.tar.gz: fed55cf6b760655cccd9c3d480319087455177413f5063a96e2fefca0e6d4f81103959467bb6d2d36d666d42c9ec68b4fd36eccdcdd711b641bf3ca0cead94df
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.12.0 (2022-05-06)
4
+
5
+ * Regenerated from discovery document revision 20220501
6
+
7
+ ### v0.11.0 (2022-04-24)
8
+
9
+ * Regenerated from discovery document revision 20220418
10
+
11
+ ### v0.10.0 (2022-03-27)
12
+
13
+ * Regenerated from discovery document revision 20220322
14
+
3
15
  ### v0.9.0 (2022-03-20)
4
16
 
5
17
  * Regenerated from discovery document revision 20220314
@@ -82,20 +82,41 @@ module Google
82
82
  end
83
83
  end
84
84
 
85
- # A generic empty message that you can re-use to avoid defining duplicated empty
86
- # messages in your APIs. A typical example is to use it as the request or the
87
- # response type of an API method. For instance: service Foo ` rpc Bar(google.
88
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
89
- # `Empty` is empty JSON object ````.
90
- class Empty
85
+ # Message for detach specific LUN from an Instance.
86
+ class DetachLunRequest
91
87
  include Google::Apis::Core::Hashable
92
88
 
89
+ # Required. Name of the Lun to detach.
90
+ # Corresponds to the JSON property `lun`
91
+ # @return [String]
92
+ attr_accessor :lun
93
+
94
+ def initialize(**args)
95
+ update!(**args)
96
+ end
97
+
98
+ # Update properties of this object
99
+ def update!(**args)
100
+ @lun = args[:lun] if args.key?(:lun)
101
+ end
102
+ end
103
+
104
+ # Response with all provisioning settings.
105
+ class FetchInstanceProvisioningSettingsResponse
106
+ include Google::Apis::Core::Hashable
107
+
108
+ # The OS images available.
109
+ # Corresponds to the JSON property `images`
110
+ # @return [Array<Google::Apis::BaremetalsolutionV2::OsImage>]
111
+ attr_accessor :images
112
+
93
113
  def initialize(**args)
94
114
  update!(**args)
95
115
  end
96
116
 
97
117
  # Update properties of this object
98
118
  def update!(**args)
119
+ @images = args[:images] if args.key?(:images)
99
120
  end
100
121
  end
101
122
 
@@ -156,6 +177,11 @@ module Google
156
177
  # @return [Array<Google::Apis::BaremetalsolutionV2::Network>]
157
178
  attr_accessor :networks
158
179
 
180
+ # The OS image currently installed on the server.
181
+ # Corresponds to the JSON property `osImage`
182
+ # @return [String]
183
+ attr_accessor :os_image
184
+
159
185
  # The state of the server.
160
186
  # Corresponds to the JSON property `state`
161
187
  # @return [String]
@@ -181,6 +207,7 @@ module Google
181
207
  @machine_type = args[:machine_type] if args.key?(:machine_type)
182
208
  @name = args[:name] if args.key?(:name)
183
209
  @networks = args[:networks] if args.key?(:networks)
210
+ @os_image = args[:os_image] if args.key?(:os_image)
184
211
  @state = args[:state] if args.key?(:state)
185
212
  @update_time = args[:update_time] if args.key?(:update_time)
186
213
  end
@@ -516,63 +543,6 @@ module Google
516
543
  end
517
544
  end
518
545
 
519
- # Response message containing the list of snapshot schedule policies.
520
- class ListSnapshotSchedulePoliciesResponse
521
- include Google::Apis::Core::Hashable
522
-
523
- # Token to retrieve the next page of results, or empty if there are no more
524
- # results in the list.
525
- # Corresponds to the JSON property `nextPageToken`
526
- # @return [String]
527
- attr_accessor :next_page_token
528
-
529
- # The snapshot schedule policies registered in this project.
530
- # Corresponds to the JSON property `snapshotSchedulePolicies`
531
- # @return [Array<Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy>]
532
- attr_accessor :snapshot_schedule_policies
533
-
534
- def initialize(**args)
535
- update!(**args)
536
- end
537
-
538
- # Update properties of this object
539
- def update!(**args)
540
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
541
- @snapshot_schedule_policies = args[:snapshot_schedule_policies] if args.key?(:snapshot_schedule_policies)
542
- end
543
- end
544
-
545
- # Response message containing the list of storage volume snapshots.
546
- class ListVolumeSnapshotsResponse
547
- include Google::Apis::Core::Hashable
548
-
549
- # A token identifying a page of results from the server.
550
- # Corresponds to the JSON property `nextPageToken`
551
- # @return [String]
552
- attr_accessor :next_page_token
553
-
554
- # Locations that could not be reached.
555
- # Corresponds to the JSON property `unreachable`
556
- # @return [Array<String>]
557
- attr_accessor :unreachable
558
-
559
- # The list of storage volumes.
560
- # Corresponds to the JSON property `volumeSnapshots`
561
- # @return [Array<Google::Apis::BaremetalsolutionV2::VolumeSnapshot>]
562
- attr_accessor :volume_snapshots
563
-
564
- def initialize(**args)
565
- update!(**args)
566
- end
567
-
568
- # Update properties of this object
569
- def update!(**args)
570
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
571
- @unreachable = args[:unreachable] if args.key?(:unreachable)
572
- @volume_snapshots = args[:volume_snapshots] if args.key?(:volume_snapshots)
573
- end
574
- end
575
-
576
546
  # Response message containing the list of storage volumes.
577
547
  class ListVolumesResponse
578
548
  include Google::Apis::Core::Hashable
@@ -651,6 +621,39 @@ module Google
651
621
  end
652
622
  end
653
623
 
624
+ # Logical interface.
625
+ class LogicalInterface
626
+ include Google::Apis::Core::Hashable
627
+
628
+ # Interface name. This is not a globally unique identifier. Name is unique only
629
+ # inside the ServerNetworkTemplate.
630
+ # Corresponds to the JSON property `name`
631
+ # @return [String]
632
+ attr_accessor :name
633
+
634
+ # If true, interface must have network connected.
635
+ # Corresponds to the JSON property `required`
636
+ # @return [Boolean]
637
+ attr_accessor :required
638
+ alias_method :required?, :required
639
+
640
+ # Interface type.
641
+ # Corresponds to the JSON property `type`
642
+ # @return [String]
643
+ attr_accessor :type
644
+
645
+ def initialize(**args)
646
+ update!(**args)
647
+ end
648
+
649
+ # Update properties of this object
650
+ def update!(**args)
651
+ @name = args[:name] if args.key?(:name)
652
+ @required = args[:required] if args.key?(:required)
653
+ @type = args[:type] if args.key?(:type)
654
+ end
655
+ end
656
+
654
657
  # A storage volume logical unit number (LUN).
655
658
  class Lun
656
659
  include Google::Apis::Core::Hashable
@@ -789,6 +792,13 @@ module Google
789
792
  # @return [String]
790
793
  attr_accessor :name
791
794
 
795
+ # List of IP address reservations in this network. When updating this field, an
796
+ # error will be generated if a reservation conflicts with an IP address already
797
+ # allocated to a physical server.
798
+ # Corresponds to the JSON property `reservations`
799
+ # @return [Array<Google::Apis::BaremetalsolutionV2::NetworkAddressReservation>]
800
+ attr_accessor :reservations
801
+
792
802
  # IP range for reserved for services (e.g. NFS).
793
803
  # Corresponds to the JSON property `servicesCidr`
794
804
  # @return [String]
@@ -826,6 +836,7 @@ module Google
826
836
  @labels = args[:labels] if args.key?(:labels)
827
837
  @mac_address = args[:mac_address] if args.key?(:mac_address)
828
838
  @name = args[:name] if args.key?(:name)
839
+ @reservations = args[:reservations] if args.key?(:reservations)
829
840
  @services_cidr = args[:services_cidr] if args.key?(:services_cidr)
830
841
  @state = args[:state] if args.key?(:state)
831
842
  @type = args[:type] if args.key?(:type)
@@ -865,6 +876,40 @@ module Google
865
876
  end
866
877
  end
867
878
 
879
+ # A reservation of one or more addresses in a network.
880
+ class NetworkAddressReservation
881
+ include Google::Apis::Core::Hashable
882
+
883
+ # The last address of this reservation block, inclusive. I.e., for cases when
884
+ # reservations are only single addresses, end_address and start_address will be
885
+ # the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
886
+ # Corresponds to the JSON property `endAddress`
887
+ # @return [String]
888
+ attr_accessor :end_address
889
+
890
+ # A note about this reservation, intended for human consumption.
891
+ # Corresponds to the JSON property `note`
892
+ # @return [String]
893
+ attr_accessor :note
894
+
895
+ # The first address of this reservation block. Must be specified as a single
896
+ # IPv4 address, e.g. 10.1.2.2.
897
+ # Corresponds to the JSON property `startAddress`
898
+ # @return [String]
899
+ attr_accessor :start_address
900
+
901
+ def initialize(**args)
902
+ update!(**args)
903
+ end
904
+
905
+ # Update properties of this object
906
+ def update!(**args)
907
+ @end_address = args[:end_address] if args.key?(:end_address)
908
+ @note = args[:note] if args.key?(:note)
909
+ @start_address = args[:start_address] if args.key?(:start_address)
910
+ end
911
+ end
912
+
868
913
  # Configuration parameters for a new network.
869
914
  class NetworkConfig
870
915
  include Google::Apis::Core::Hashable
@@ -1078,6 +1123,50 @@ module Google
1078
1123
  end
1079
1124
  end
1080
1125
 
1126
+ # Operation System image.
1127
+ class OsImage
1128
+ include Google::Apis::Core::Hashable
1129
+
1130
+ # Instance types this image is applicable to. [Available types](https://cloud.
1131
+ # google.com/bare-metal/docs/bms-planning#server_configurations)
1132
+ # Corresponds to the JSON property `applicableInstanceTypes`
1133
+ # @return [Array<String>]
1134
+ attr_accessor :applicable_instance_types
1135
+
1136
+ # OS Image code.
1137
+ # Corresponds to the JSON property `code`
1138
+ # @return [String]
1139
+ attr_accessor :code
1140
+
1141
+ # OS Image description.
1142
+ # Corresponds to the JSON property `description`
1143
+ # @return [String]
1144
+ attr_accessor :description
1145
+
1146
+ # Output only. OS Image's unique name.
1147
+ # Corresponds to the JSON property `name`
1148
+ # @return [String]
1149
+ attr_accessor :name
1150
+
1151
+ # Network templates that can be used with this OS Image.
1152
+ # Corresponds to the JSON property `supportedNetworkTemplates`
1153
+ # @return [Array<Google::Apis::BaremetalsolutionV2::ServerNetworkTemplate>]
1154
+ attr_accessor :supported_network_templates
1155
+
1156
+ def initialize(**args)
1157
+ update!(**args)
1158
+ end
1159
+
1160
+ # Update properties of this object
1161
+ def update!(**args)
1162
+ @applicable_instance_types = args[:applicable_instance_types] if args.key?(:applicable_instance_types)
1163
+ @code = args[:code] if args.key?(:code)
1164
+ @description = args[:description] if args.key?(:description)
1165
+ @name = args[:name] if args.key?(:name)
1166
+ @supported_network_templates = args[:supported_network_templates] if args.key?(:supported_network_templates)
1167
+ end
1168
+ end
1169
+
1081
1170
  # This resource represents a long-running operation that is the result of a
1082
1171
  # network API call.
1083
1172
  class Operation
@@ -1256,6 +1345,21 @@ module Google
1256
1345
  # @return [String]
1257
1346
  attr_accessor :name
1258
1347
 
1348
+ # Network bandwidth, Gbps
1349
+ # Corresponds to the JSON property `networkBandwidth`
1350
+ # @return [Fixnum]
1351
+ attr_accessor :network_bandwidth
1352
+
1353
+ # Server count.
1354
+ # Corresponds to the JSON property `serverCount`
1355
+ # @return [Fixnum]
1356
+ attr_accessor :server_count
1357
+
1358
+ # Storage size (GB).
1359
+ # Corresponds to the JSON property `storageGib`
1360
+ # @return [Fixnum]
1361
+ attr_accessor :storage_gib
1362
+
1259
1363
  def initialize(**args)
1260
1364
  update!(**args)
1261
1365
  end
@@ -1268,6 +1372,9 @@ module Google
1268
1372
  @instance_quota = args[:instance_quota] if args.key?(:instance_quota)
1269
1373
  @location = args[:location] if args.key?(:location)
1270
1374
  @name = args[:name] if args.key?(:name)
1375
+ @network_bandwidth = args[:network_bandwidth] if args.key?(:network_bandwidth)
1376
+ @server_count = args[:server_count] if args.key?(:server_count)
1377
+ @storage_gib = args[:storage_gib] if args.key?(:storage_gib)
1271
1378
  end
1272
1379
  end
1273
1380
 
@@ -1303,37 +1410,24 @@ module Google
1303
1410
  end
1304
1411
  end
1305
1412
 
1306
- # Message for restoring a volume snapshot.
1307
- class RestoreVolumeSnapshotRequest
1413
+ # Network template.
1414
+ class ServerNetworkTemplate
1308
1415
  include Google::Apis::Core::Hashable
1309
1416
 
1310
- def initialize(**args)
1311
- update!(**args)
1312
- end
1313
-
1314
- # Update properties of this object
1315
- def update!(**args)
1316
- end
1317
- end
1318
-
1319
- # A snapshot schedule.
1320
- class Schedule
1321
- include Google::Apis::Core::Hashable
1417
+ # Instance types this template is applicable to.
1418
+ # Corresponds to the JSON property `applicableInstanceTypes`
1419
+ # @return [Array<String>]
1420
+ attr_accessor :applicable_instance_types
1322
1421
 
1323
- # A crontab-like specification that the schedule uses to take snapshots.
1324
- # Corresponds to the JSON property `crontabSpec`
1325
- # @return [String]
1326
- attr_accessor :crontab_spec
1422
+ # Logical interfaces.
1423
+ # Corresponds to the JSON property `logicalInterfaces`
1424
+ # @return [Array<Google::Apis::BaremetalsolutionV2::LogicalInterface>]
1425
+ attr_accessor :logical_interfaces
1327
1426
 
1328
- # A list of snapshot names created in this schedule.
1329
- # Corresponds to the JSON property `prefix`
1427
+ # Output only. Template's unique name.
1428
+ # Corresponds to the JSON property `name`
1330
1429
  # @return [String]
1331
- attr_accessor :prefix
1332
-
1333
- # The maximum number of snapshots to retain in this schedule.
1334
- # Corresponds to the JSON property `retentionCount`
1335
- # @return [Fixnum]
1336
- attr_accessor :retention_count
1430
+ attr_accessor :name
1337
1431
 
1338
1432
  def initialize(**args)
1339
1433
  update!(**args)
@@ -1341,9 +1435,9 @@ module Google
1341
1435
 
1342
1436
  # Update properties of this object
1343
1437
  def update!(**args)
1344
- @crontab_spec = args[:crontab_spec] if args.key?(:crontab_spec)
1345
- @prefix = args[:prefix] if args.key?(:prefix)
1346
- @retention_count = args[:retention_count] if args.key?(:retention_count)
1438
+ @applicable_instance_types = args[:applicable_instance_types] if args.key?(:applicable_instance_types)
1439
+ @logical_interfaces = args[:logical_interfaces] if args.key?(:logical_interfaces)
1440
+ @name = args[:name] if args.key?(:name)
1347
1441
  end
1348
1442
  end
1349
1443
 
@@ -1390,56 +1484,6 @@ module Google
1390
1484
  end
1391
1485
  end
1392
1486
 
1393
- # A snapshot schedule policy.
1394
- class SnapshotSchedulePolicy
1395
- include Google::Apis::Core::Hashable
1396
-
1397
- # The description of the snapshot schedule policy.
1398
- # Corresponds to the JSON property `description`
1399
- # @return [String]
1400
- attr_accessor :description
1401
-
1402
- # An identifier for the snapshot schedule policy, generated by the backend.
1403
- # Corresponds to the JSON property `id`
1404
- # @return [String]
1405
- attr_accessor :id
1406
-
1407
- # Labels as key value pairs.
1408
- # Corresponds to the JSON property `labels`
1409
- # @return [Hash<String,String>]
1410
- attr_accessor :labels
1411
-
1412
- # Output only. The name of the snapshot schedule policy.
1413
- # Corresponds to the JSON property `name`
1414
- # @return [String]
1415
- attr_accessor :name
1416
-
1417
- # The snapshot schedules contained in this policy. You can specify a maximum of
1418
- # 5 schedules.
1419
- # Corresponds to the JSON property `schedules`
1420
- # @return [Array<Google::Apis::BaremetalsolutionV2::Schedule>]
1421
- attr_accessor :schedules
1422
-
1423
- # The state of the snapshot schedule policy.
1424
- # Corresponds to the JSON property `state`
1425
- # @return [String]
1426
- attr_accessor :state
1427
-
1428
- def initialize(**args)
1429
- update!(**args)
1430
- end
1431
-
1432
- # Update properties of this object
1433
- def update!(**args)
1434
- @description = args[:description] if args.key?(:description)
1435
- @id = args[:id] if args.key?(:id)
1436
- @labels = args[:labels] if args.key?(:labels)
1437
- @name = args[:name] if args.key?(:name)
1438
- @schedules = args[:schedules] if args.key?(:schedules)
1439
- @state = args[:state] if args.key?(:state)
1440
- end
1441
- end
1442
-
1443
1487
  # Message requesting to start a server.
1444
1488
  class StartInstanceRequest
1445
1489
  include Google::Apis::Core::Hashable
@@ -1492,6 +1536,19 @@ module Google
1492
1536
  end
1493
1537
  end
1494
1538
 
1539
+ # Message requesting to stop a server.
1540
+ class StopInstanceRequest
1541
+ include Google::Apis::Core::Hashable
1542
+
1543
+ def initialize(**args)
1544
+ update!(**args)
1545
+ end
1546
+
1547
+ # Update properties of this object
1548
+ def update!(**args)
1549
+ end
1550
+ end
1551
+
1495
1552
  # Request for SubmitProvisioningConfig.
1496
1553
  class SubmitProvisioningConfigRequest
1497
1554
  include Google::Apis::Core::Hashable
@@ -1621,6 +1678,12 @@ module Google
1621
1678
  # @return [Fixnum]
1622
1679
  attr_accessor :current_size_gib
1623
1680
 
1681
+ # Additional emergency size that was requested for this Volume, in GiB.
1682
+ # current_size_gib includes this value.
1683
+ # Corresponds to the JSON property `emergencySizeGib`
1684
+ # @return [Fixnum]
1685
+ attr_accessor :emergency_size_gib
1686
+
1624
1687
  # An identifier for the `Volume`, generated by the backend.
1625
1688
  # Corresponds to the JSON property `id`
1626
1689
  # @return [String]
@@ -1689,6 +1752,7 @@ module Google
1689
1752
  def update!(**args)
1690
1753
  @auto_grown_size_gib = args[:auto_grown_size_gib] if args.key?(:auto_grown_size_gib)
1691
1754
  @current_size_gib = args[:current_size_gib] if args.key?(:current_size_gib)
1755
+ @emergency_size_gib = args[:emergency_size_gib] if args.key?(:emergency_size_gib)
1692
1756
  @id = args[:id] if args.key?(:id)
1693
1757
  @labels = args[:labels] if args.key?(:labels)
1694
1758
  @name = args[:name] if args.key?(:name)
@@ -1785,55 +1849,6 @@ module Google
1785
1849
  @user_note = args[:user_note] if args.key?(:user_note)
1786
1850
  end
1787
1851
  end
1788
-
1789
- # Snapshot registered for a given storage volume.
1790
- class VolumeSnapshot
1791
- include Google::Apis::Core::Hashable
1792
-
1793
- # Output only. The creation time of the storage volume snapshot.
1794
- # Corresponds to the JSON property `createTime`
1795
- # @return [String]
1796
- attr_accessor :create_time
1797
-
1798
- # The description of the storage volume snapshot.
1799
- # Corresponds to the JSON property `description`
1800
- # @return [String]
1801
- attr_accessor :description
1802
-
1803
- # An identifier for the snapshot, generated by the backend.
1804
- # Corresponds to the JSON property `id`
1805
- # @return [String]
1806
- attr_accessor :id
1807
-
1808
- # Output only. The name of the storage volume snapshot.
1809
- # Corresponds to the JSON property `name`
1810
- # @return [String]
1811
- attr_accessor :name
1812
-
1813
- # The size of the storage volume snapshot, in bytes.
1814
- # Corresponds to the JSON property `sizeBytes`
1815
- # @return [Fixnum]
1816
- attr_accessor :size_bytes
1817
-
1818
- # The storage volume this snapshot belongs to.
1819
- # Corresponds to the JSON property `storageVolume`
1820
- # @return [String]
1821
- attr_accessor :storage_volume
1822
-
1823
- def initialize(**args)
1824
- update!(**args)
1825
- end
1826
-
1827
- # Update properties of this object
1828
- def update!(**args)
1829
- @create_time = args[:create_time] if args.key?(:create_time)
1830
- @description = args[:description] if args.key?(:description)
1831
- @id = args[:id] if args.key?(:id)
1832
- @name = args[:name] if args.key?(:name)
1833
- @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
1834
- @storage_volume = args[:storage_volume] if args.key?(:storage_volume)
1835
- end
1836
- end
1837
1852
  end
1838
1853
  end
1839
1854
  end
@@ -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.9.0"
19
+ GEM_VERSION = "0.12.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 = "20220314"
25
+ REVISION = "20220501"
26
26
  end
27
27
  end
28
28
  end