google-apis-baremetalsolution_v2 0.10.0 → 0.13.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: 1a9a04269252fe0ee90b422f2fabba5bfb8940696385ec25458a865733371035
4
+ data.tar.gz: eb462ff8fa2304d0b772fbf7161db5e28182f8521c4503c3751884e9ea4b97ec
5
5
  SHA512:
6
- metadata.gz: 77ee9d83485c9aa0cba163192a47820c478f012cb566063b375dcaf726aa6765a47e3dca38ddefa5931c65372a7c47e58b0d5a9b1d659f8c4c12e8b75ebf79e4
7
- data.tar.gz: b9270b61f183a370e8bff41209d71fd2534a88fc6653620767fe8b05f8986bf75594c62c0e8c893e521fc5cfc1b9c73ffc0fe3ac462e12ef06e0d65b48853309
6
+ metadata.gz: 5e498f7f5988ca8add479f0457ecff688a5f2f74fd382645d2ddc60adda93dd97c638d0dec3b3bc6a54ce81217d7c67ef8b8ba07a15c89493a7de6f8b92dbf6b
7
+ data.tar.gz: 6f2551998f527325fc2a6fbaaf03f004c3f657365494c2f73b28ef35388d3d9e543d426cb83236509a442fa1fc70b9a172e057a1f424d98cd0dfd425d6ff5873
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.13.0 (2022-05-21)
4
+
5
+ * Regenerated from discovery document revision 20220506
6
+
7
+ ### v0.12.0 (2022-05-06)
8
+
9
+ * Regenerated from discovery document revision 20220501
10
+
11
+ ### v0.11.0 (2022-04-24)
12
+
13
+ * Regenerated from discovery document revision 20220418
14
+
3
15
  ### v0.10.0 (2022-03-27)
4
16
 
5
17
  * Regenerated from discovery document revision 20220322
@@ -82,19 +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); `
89
- class Empty
85
+ # Message for detach specific LUN from an Instance.
86
+ class DetachLunRequest
90
87
  include Google::Apis::Core::Hashable
91
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
+
92
113
  def initialize(**args)
93
114
  update!(**args)
94
115
  end
95
116
 
96
117
  # Update properties of this object
97
118
  def update!(**args)
119
+ @images = args[:images] if args.key?(:images)
98
120
  end
99
121
  end
100
122
 
@@ -155,6 +177,18 @@ module Google
155
177
  # @return [Array<Google::Apis::BaremetalsolutionV2::Network>]
156
178
  attr_accessor :networks
157
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
+
185
+ # Immutable. Pod name. Pod is an independent part of infrastructure. Instance
186
+ # can be connected to the assets (networks, volumes) allocated in the same pod
187
+ # only.
188
+ # Corresponds to the JSON property `pod`
189
+ # @return [String]
190
+ attr_accessor :pod
191
+
158
192
  # The state of the server.
159
193
  # Corresponds to the JSON property `state`
160
194
  # @return [String]
@@ -180,6 +214,8 @@ module Google
180
214
  @machine_type = args[:machine_type] if args.key?(:machine_type)
181
215
  @name = args[:name] if args.key?(:name)
182
216
  @networks = args[:networks] if args.key?(:networks)
217
+ @os_image = args[:os_image] if args.key?(:os_image)
218
+ @pod = args[:pod] if args.key?(:pod)
183
219
  @state = args[:state] if args.key?(:state)
184
220
  @update_time = args[:update_time] if args.key?(:update_time)
185
221
  end
@@ -515,63 +551,6 @@ module Google
515
551
  end
516
552
  end
517
553
 
518
- # Response message containing the list of snapshot schedule policies.
519
- class ListSnapshotSchedulePoliciesResponse
520
- include Google::Apis::Core::Hashable
521
-
522
- # Token to retrieve the next page of results, or empty if there are no more
523
- # results in the list.
524
- # Corresponds to the JSON property `nextPageToken`
525
- # @return [String]
526
- attr_accessor :next_page_token
527
-
528
- # The snapshot schedule policies registered in this project.
529
- # Corresponds to the JSON property `snapshotSchedulePolicies`
530
- # @return [Array<Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy>]
531
- attr_accessor :snapshot_schedule_policies
532
-
533
- def initialize(**args)
534
- update!(**args)
535
- end
536
-
537
- # Update properties of this object
538
- def update!(**args)
539
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
540
- @snapshot_schedule_policies = args[:snapshot_schedule_policies] if args.key?(:snapshot_schedule_policies)
541
- end
542
- end
543
-
544
- # Response message containing the list of storage volume snapshots.
545
- class ListVolumeSnapshotsResponse
546
- include Google::Apis::Core::Hashable
547
-
548
- # A token identifying a page of results from the server.
549
- # Corresponds to the JSON property `nextPageToken`
550
- # @return [String]
551
- attr_accessor :next_page_token
552
-
553
- # Locations that could not be reached.
554
- # Corresponds to the JSON property `unreachable`
555
- # @return [Array<String>]
556
- attr_accessor :unreachable
557
-
558
- # The list of storage volumes.
559
- # Corresponds to the JSON property `volumeSnapshots`
560
- # @return [Array<Google::Apis::BaremetalsolutionV2::VolumeSnapshot>]
561
- attr_accessor :volume_snapshots
562
-
563
- def initialize(**args)
564
- update!(**args)
565
- end
566
-
567
- # Update properties of this object
568
- def update!(**args)
569
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
570
- @unreachable = args[:unreachable] if args.key?(:unreachable)
571
- @volume_snapshots = args[:volume_snapshots] if args.key?(:volume_snapshots)
572
- end
573
- end
574
-
575
554
  # Response message containing the list of storage volumes.
576
555
  class ListVolumesResponse
577
556
  include Google::Apis::Core::Hashable
@@ -650,6 +629,39 @@ module Google
650
629
  end
651
630
  end
652
631
 
632
+ # Logical interface.
633
+ class LogicalInterface
634
+ include Google::Apis::Core::Hashable
635
+
636
+ # Interface name. This is not a globally unique identifier. Name is unique only
637
+ # inside the ServerNetworkTemplate.
638
+ # Corresponds to the JSON property `name`
639
+ # @return [String]
640
+ attr_accessor :name
641
+
642
+ # If true, interface must have network connected.
643
+ # Corresponds to the JSON property `required`
644
+ # @return [Boolean]
645
+ attr_accessor :required
646
+ alias_method :required?, :required
647
+
648
+ # Interface type.
649
+ # Corresponds to the JSON property `type`
650
+ # @return [String]
651
+ attr_accessor :type
652
+
653
+ def initialize(**args)
654
+ update!(**args)
655
+ end
656
+
657
+ # Update properties of this object
658
+ def update!(**args)
659
+ @name = args[:name] if args.key?(:name)
660
+ @required = args[:required] if args.key?(:required)
661
+ @type = args[:type] if args.key?(:type)
662
+ end
663
+ end
664
+
653
665
  # A storage volume logical unit number (LUN).
654
666
  class Lun
655
667
  include Google::Apis::Core::Hashable
@@ -788,6 +800,13 @@ module Google
788
800
  # @return [String]
789
801
  attr_accessor :name
790
802
 
803
+ # List of IP address reservations in this network. When updating this field, an
804
+ # error will be generated if a reservation conflicts with an IP address already
805
+ # allocated to a physical server.
806
+ # Corresponds to the JSON property `reservations`
807
+ # @return [Array<Google::Apis::BaremetalsolutionV2::NetworkAddressReservation>]
808
+ attr_accessor :reservations
809
+
791
810
  # IP range for reserved for services (e.g. NFS).
792
811
  # Corresponds to the JSON property `servicesCidr`
793
812
  # @return [String]
@@ -825,6 +844,7 @@ module Google
825
844
  @labels = args[:labels] if args.key?(:labels)
826
845
  @mac_address = args[:mac_address] if args.key?(:mac_address)
827
846
  @name = args[:name] if args.key?(:name)
847
+ @reservations = args[:reservations] if args.key?(:reservations)
828
848
  @services_cidr = args[:services_cidr] if args.key?(:services_cidr)
829
849
  @state = args[:state] if args.key?(:state)
830
850
  @type = args[:type] if args.key?(:type)
@@ -864,6 +884,40 @@ module Google
864
884
  end
865
885
  end
866
886
 
887
+ # A reservation of one or more addresses in a network.
888
+ class NetworkAddressReservation
889
+ include Google::Apis::Core::Hashable
890
+
891
+ # The last address of this reservation block, inclusive. I.e., for cases when
892
+ # reservations are only single addresses, end_address and start_address will be
893
+ # the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
894
+ # Corresponds to the JSON property `endAddress`
895
+ # @return [String]
896
+ attr_accessor :end_address
897
+
898
+ # A note about this reservation, intended for human consumption.
899
+ # Corresponds to the JSON property `note`
900
+ # @return [String]
901
+ attr_accessor :note
902
+
903
+ # The first address of this reservation block. Must be specified as a single
904
+ # IPv4 address, e.g. 10.1.2.2.
905
+ # Corresponds to the JSON property `startAddress`
906
+ # @return [String]
907
+ attr_accessor :start_address
908
+
909
+ def initialize(**args)
910
+ update!(**args)
911
+ end
912
+
913
+ # Update properties of this object
914
+ def update!(**args)
915
+ @end_address = args[:end_address] if args.key?(:end_address)
916
+ @note = args[:note] if args.key?(:note)
917
+ @start_address = args[:start_address] if args.key?(:start_address)
918
+ end
919
+ end
920
+
867
921
  # Configuration parameters for a new network.
868
922
  class NetworkConfig
869
923
  include Google::Apis::Core::Hashable
@@ -1077,6 +1131,50 @@ module Google
1077
1131
  end
1078
1132
  end
1079
1133
 
1134
+ # Operation System image.
1135
+ class OsImage
1136
+ include Google::Apis::Core::Hashable
1137
+
1138
+ # Instance types this image is applicable to. [Available types](https://cloud.
1139
+ # google.com/bare-metal/docs/bms-planning#server_configurations)
1140
+ # Corresponds to the JSON property `applicableInstanceTypes`
1141
+ # @return [Array<String>]
1142
+ attr_accessor :applicable_instance_types
1143
+
1144
+ # OS Image code.
1145
+ # Corresponds to the JSON property `code`
1146
+ # @return [String]
1147
+ attr_accessor :code
1148
+
1149
+ # OS Image description.
1150
+ # Corresponds to the JSON property `description`
1151
+ # @return [String]
1152
+ attr_accessor :description
1153
+
1154
+ # Output only. OS Image's unique name.
1155
+ # Corresponds to the JSON property `name`
1156
+ # @return [String]
1157
+ attr_accessor :name
1158
+
1159
+ # Network templates that can be used with this OS Image.
1160
+ # Corresponds to the JSON property `supportedNetworkTemplates`
1161
+ # @return [Array<Google::Apis::BaremetalsolutionV2::ServerNetworkTemplate>]
1162
+ attr_accessor :supported_network_templates
1163
+
1164
+ def initialize(**args)
1165
+ update!(**args)
1166
+ end
1167
+
1168
+ # Update properties of this object
1169
+ def update!(**args)
1170
+ @applicable_instance_types = args[:applicable_instance_types] if args.key?(:applicable_instance_types)
1171
+ @code = args[:code] if args.key?(:code)
1172
+ @description = args[:description] if args.key?(:description)
1173
+ @name = args[:name] if args.key?(:name)
1174
+ @supported_network_templates = args[:supported_network_templates] if args.key?(:supported_network_templates)
1175
+ end
1176
+ end
1177
+
1080
1178
  # This resource represents a long-running operation that is the result of a
1081
1179
  # network API call.
1082
1180
  class Operation
@@ -1320,37 +1418,24 @@ module Google
1320
1418
  end
1321
1419
  end
1322
1420
 
1323
- # Message for restoring a volume snapshot.
1324
- class RestoreVolumeSnapshotRequest
1421
+ # Network template.
1422
+ class ServerNetworkTemplate
1325
1423
  include Google::Apis::Core::Hashable
1326
1424
 
1327
- def initialize(**args)
1328
- update!(**args)
1329
- end
1330
-
1331
- # Update properties of this object
1332
- def update!(**args)
1333
- end
1334
- end
1425
+ # Instance types this template is applicable to.
1426
+ # Corresponds to the JSON property `applicableInstanceTypes`
1427
+ # @return [Array<String>]
1428
+ attr_accessor :applicable_instance_types
1335
1429
 
1336
- # A snapshot schedule.
1337
- class Schedule
1338
- include Google::Apis::Core::Hashable
1430
+ # Logical interfaces.
1431
+ # Corresponds to the JSON property `logicalInterfaces`
1432
+ # @return [Array<Google::Apis::BaremetalsolutionV2::LogicalInterface>]
1433
+ attr_accessor :logical_interfaces
1339
1434
 
1340
- # A crontab-like specification that the schedule uses to take snapshots.
1341
- # Corresponds to the JSON property `crontabSpec`
1342
- # @return [String]
1343
- attr_accessor :crontab_spec
1344
-
1345
- # A list of snapshot names created in this schedule.
1346
- # Corresponds to the JSON property `prefix`
1435
+ # Output only. Template's unique name.
1436
+ # Corresponds to the JSON property `name`
1347
1437
  # @return [String]
1348
- attr_accessor :prefix
1349
-
1350
- # The maximum number of snapshots to retain in this schedule.
1351
- # Corresponds to the JSON property `retentionCount`
1352
- # @return [Fixnum]
1353
- attr_accessor :retention_count
1438
+ attr_accessor :name
1354
1439
 
1355
1440
  def initialize(**args)
1356
1441
  update!(**args)
@@ -1358,9 +1443,9 @@ module Google
1358
1443
 
1359
1444
  # Update properties of this object
1360
1445
  def update!(**args)
1361
- @crontab_spec = args[:crontab_spec] if args.key?(:crontab_spec)
1362
- @prefix = args[:prefix] if args.key?(:prefix)
1363
- @retention_count = args[:retention_count] if args.key?(:retention_count)
1446
+ @applicable_instance_types = args[:applicable_instance_types] if args.key?(:applicable_instance_types)
1447
+ @logical_interfaces = args[:logical_interfaces] if args.key?(:logical_interfaces)
1448
+ @name = args[:name] if args.key?(:name)
1364
1449
  end
1365
1450
  end
1366
1451
 
@@ -1407,56 +1492,6 @@ module Google
1407
1492
  end
1408
1493
  end
1409
1494
 
1410
- # A snapshot schedule policy.
1411
- class SnapshotSchedulePolicy
1412
- include Google::Apis::Core::Hashable
1413
-
1414
- # The description of the snapshot schedule policy.
1415
- # Corresponds to the JSON property `description`
1416
- # @return [String]
1417
- attr_accessor :description
1418
-
1419
- # An identifier for the snapshot schedule policy, generated by the backend.
1420
- # Corresponds to the JSON property `id`
1421
- # @return [String]
1422
- attr_accessor :id
1423
-
1424
- # Labels as key value pairs.
1425
- # Corresponds to the JSON property `labels`
1426
- # @return [Hash<String,String>]
1427
- attr_accessor :labels
1428
-
1429
- # Output only. The name of the snapshot schedule policy.
1430
- # Corresponds to the JSON property `name`
1431
- # @return [String]
1432
- attr_accessor :name
1433
-
1434
- # The snapshot schedules contained in this policy. You can specify a maximum of
1435
- # 5 schedules.
1436
- # Corresponds to the JSON property `schedules`
1437
- # @return [Array<Google::Apis::BaremetalsolutionV2::Schedule>]
1438
- attr_accessor :schedules
1439
-
1440
- # The state of the snapshot schedule policy.
1441
- # Corresponds to the JSON property `state`
1442
- # @return [String]
1443
- attr_accessor :state
1444
-
1445
- def initialize(**args)
1446
- update!(**args)
1447
- end
1448
-
1449
- # Update properties of this object
1450
- def update!(**args)
1451
- @description = args[:description] if args.key?(:description)
1452
- @id = args[:id] if args.key?(:id)
1453
- @labels = args[:labels] if args.key?(:labels)
1454
- @name = args[:name] if args.key?(:name)
1455
- @schedules = args[:schedules] if args.key?(:schedules)
1456
- @state = args[:state] if args.key?(:state)
1457
- end
1458
- end
1459
-
1460
1495
  # Message requesting to start a server.
1461
1496
  class StartInstanceRequest
1462
1497
  include Google::Apis::Core::Hashable
@@ -1509,6 +1544,19 @@ module Google
1509
1544
  end
1510
1545
  end
1511
1546
 
1547
+ # Message requesting to stop a server.
1548
+ class StopInstanceRequest
1549
+ include Google::Apis::Core::Hashable
1550
+
1551
+ def initialize(**args)
1552
+ update!(**args)
1553
+ end
1554
+
1555
+ # Update properties of this object
1556
+ def update!(**args)
1557
+ end
1558
+ end
1559
+
1512
1560
  # Request for SubmitProvisioningConfig.
1513
1561
  class SubmitProvisioningConfigRequest
1514
1562
  include Google::Apis::Core::Hashable
@@ -1638,6 +1686,12 @@ module Google
1638
1686
  # @return [Fixnum]
1639
1687
  attr_accessor :current_size_gib
1640
1688
 
1689
+ # Additional emergency size that was requested for this Volume, in GiB.
1690
+ # current_size_gib includes this value.
1691
+ # Corresponds to the JSON property `emergencySizeGib`
1692
+ # @return [Fixnum]
1693
+ attr_accessor :emergency_size_gib
1694
+
1641
1695
  # An identifier for the `Volume`, generated by the backend.
1642
1696
  # Corresponds to the JSON property `id`
1643
1697
  # @return [String]
@@ -1656,6 +1710,11 @@ module Google
1656
1710
  # @return [String]
1657
1711
  attr_accessor :name
1658
1712
 
1713
+ # Immutable. Pod name.
1714
+ # Corresponds to the JSON property `pod`
1715
+ # @return [String]
1716
+ attr_accessor :pod
1717
+
1659
1718
  # The space remaining in the storage volume for new LUNs, in GiB, excluding
1660
1719
  # space reserved for snapshots.
1661
1720
  # Corresponds to the JSON property `remainingSpaceGib`
@@ -1706,9 +1765,11 @@ module Google
1706
1765
  def update!(**args)
1707
1766
  @auto_grown_size_gib = args[:auto_grown_size_gib] if args.key?(:auto_grown_size_gib)
1708
1767
  @current_size_gib = args[:current_size_gib] if args.key?(:current_size_gib)
1768
+ @emergency_size_gib = args[:emergency_size_gib] if args.key?(:emergency_size_gib)
1709
1769
  @id = args[:id] if args.key?(:id)
1710
1770
  @labels = args[:labels] if args.key?(:labels)
1711
1771
  @name = args[:name] if args.key?(:name)
1772
+ @pod = args[:pod] if args.key?(:pod)
1712
1773
  @remaining_space_gib = args[:remaining_space_gib] if args.key?(:remaining_space_gib)
1713
1774
  @requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib)
1714
1775
  @snapshot_auto_delete_behavior = args[:snapshot_auto_delete_behavior] if args.key?(:snapshot_auto_delete_behavior)
@@ -1802,55 +1863,6 @@ module Google
1802
1863
  @user_note = args[:user_note] if args.key?(:user_note)
1803
1864
  end
1804
1865
  end
1805
-
1806
- # Snapshot registered for a given storage volume.
1807
- class VolumeSnapshot
1808
- include Google::Apis::Core::Hashable
1809
-
1810
- # Output only. The creation time of the storage volume snapshot.
1811
- # Corresponds to the JSON property `createTime`
1812
- # @return [String]
1813
- attr_accessor :create_time
1814
-
1815
- # The description of the storage volume snapshot.
1816
- # Corresponds to the JSON property `description`
1817
- # @return [String]
1818
- attr_accessor :description
1819
-
1820
- # An identifier for the snapshot, generated by the backend.
1821
- # Corresponds to the JSON property `id`
1822
- # @return [String]
1823
- attr_accessor :id
1824
-
1825
- # Output only. The name of the storage volume snapshot.
1826
- # Corresponds to the JSON property `name`
1827
- # @return [String]
1828
- attr_accessor :name
1829
-
1830
- # The size of the storage volume snapshot, in bytes.
1831
- # Corresponds to the JSON property `sizeBytes`
1832
- # @return [Fixnum]
1833
- attr_accessor :size_bytes
1834
-
1835
- # The storage volume this snapshot belongs to.
1836
- # Corresponds to the JSON property `storageVolume`
1837
- # @return [String]
1838
- attr_accessor :storage_volume
1839
-
1840
- def initialize(**args)
1841
- update!(**args)
1842
- end
1843
-
1844
- # Update properties of this object
1845
- def update!(**args)
1846
- @create_time = args[:create_time] if args.key?(:create_time)
1847
- @description = args[:description] if args.key?(:description)
1848
- @id = args[:id] if args.key?(:id)
1849
- @name = args[:name] if args.key?(:name)
1850
- @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
1851
- @storage_volume = args[:storage_volume] if args.key?(:storage_volume)
1852
- end
1853
- end
1854
1866
  end
1855
1867
  end
1856
1868
  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.10.0"
19
+ GEM_VERSION = "0.13.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 = "20220506"
26
26
  end
27
27
  end
28
28
  end