google-apis-baremetalsolution_v2 0.8.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: 1764ccaa775e4178b27b90ac07d4e4fec066ba4028e53db2961639c566db83f7
4
- data.tar.gz: bc19556bde4a70631e7938dd8c0b7d63cf1bc6dc3d980d3756aa012e48acb45a
3
+ metadata.gz: 2d3ac20bb7fed7dca3af49382595f5a512b57c73455af6ba06b3efeb5f05ce18
4
+ data.tar.gz: 388840d06d62c33fc866ed7dcf4644489f1a9176782a4900ae44bfe55769b563
5
5
  SHA512:
6
- metadata.gz: 89f97ba7ffdf8fd71a3e46d2016c9cca12f10653f8d9d18c83d8fff58067a25b7d368dca55e88d609ff14aff9ab0112d1aa850fcd76634f0c6f58fbd58833877
7
- data.tar.gz: 46b185621aa824a08c1926d6f0e95c242ba7eb86e23f6835654fa1e8872f2b20fd50f011f255efc9c0c9a907e14e11f87aa7632a3cd6fbad60122aafb4533e9f
6
+ metadata.gz: 71b63fab0384203dc6ea8f0d3a27e5a7759a7743a535d8d87184979e68a9a58c4e9a9f93b9f21b8fcd493a6ea5b92fd616e6e26781ed06a3e1ab96101a0515ed
7
+ data.tar.gz: 534fd583ff6159cf9a627fc27e56f840d86874bf12e99d41635c7c58a2617b6684c74cb94fd85afaba8b1a34d6c8ab87141aad6906767fd571283b7ef8a7f34d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
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
+
7
+ ### v0.10.0 (2022-03-27)
8
+
9
+ * Regenerated from discovery document revision 20220322
10
+
11
+ ### v0.9.0 (2022-03-20)
12
+
13
+ * Regenerated from discovery document revision 20220314
14
+
3
15
  ### v0.8.0 (2022-03-13)
4
16
 
5
17
  * Regenerated from discovery document revision 20220307
@@ -22,11 +22,70 @@ module Google
22
22
  module Apis
23
23
  module BaremetalsolutionV2
24
24
 
25
+ # Represents an 'access point' for the share.
26
+ class AllowedClient
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Allow dev flag. Which controls whether to allow creation of devices.
30
+ # Corresponds to the JSON property `allowDev`
31
+ # @return [Boolean]
32
+ attr_accessor :allow_dev
33
+ alias_method :allow_dev?, :allow_dev
34
+
35
+ # Allow the setuid flag.
36
+ # Corresponds to the JSON property `allowSuid`
37
+ # @return [Boolean]
38
+ attr_accessor :allow_suid
39
+ alias_method :allow_suid?, :allow_suid
40
+
41
+ # The subnet of IP addresses permitted to access the share.
42
+ # Corresponds to the JSON property `allowedClientsCidr`
43
+ # @return [String]
44
+ attr_accessor :allowed_clients_cidr
45
+
46
+ # Mount permissions.
47
+ # Corresponds to the JSON property `mountPermissions`
48
+ # @return [String]
49
+ attr_accessor :mount_permissions
50
+
51
+ # The network the access point sits on.
52
+ # Corresponds to the JSON property `network`
53
+ # @return [String]
54
+ attr_accessor :network
55
+
56
+ # Disable root squashing, which is a feature of NFS. Root squash is a special
57
+ # mapping of the remote superuser (root) identity when using identity
58
+ # authentication.
59
+ # Corresponds to the JSON property `noRootSquash`
60
+ # @return [Boolean]
61
+ attr_accessor :no_root_squash
62
+ alias_method :no_root_squash?, :no_root_squash
63
+
64
+ # The IP address of the share on this network.
65
+ # Corresponds to the JSON property `shareIp`
66
+ # @return [String]
67
+ attr_accessor :share_ip
68
+
69
+ def initialize(**args)
70
+ update!(**args)
71
+ end
72
+
73
+ # Update properties of this object
74
+ def update!(**args)
75
+ @allow_dev = args[:allow_dev] if args.key?(:allow_dev)
76
+ @allow_suid = args[:allow_suid] if args.key?(:allow_suid)
77
+ @allowed_clients_cidr = args[:allowed_clients_cidr] if args.key?(:allowed_clients_cidr)
78
+ @mount_permissions = args[:mount_permissions] if args.key?(:mount_permissions)
79
+ @network = args[:network] if args.key?(:network)
80
+ @no_root_squash = args[:no_root_squash] if args.key?(:no_root_squash)
81
+ @share_ip = args[:share_ip] if args.key?(:share_ip)
82
+ end
83
+ end
84
+
25
85
  # A generic empty message that you can re-use to avoid defining duplicated empty
26
86
  # messages in your APIs. A typical example is to use it as the request or the
27
87
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
28
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
29
- # `Empty` is empty JSON object ````.
88
+ # protobuf.Empty) returns (google.protobuf.Empty); `
30
89
  class Empty
31
90
  include Google::Apis::Core::Hashable
32
91
 
@@ -39,6 +98,25 @@ module Google
39
98
  end
40
99
  end
41
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
+
42
120
  # A server.
43
121
  class Instance
44
122
  include Google::Apis::Core::Hashable
@@ -96,6 +174,11 @@ module Google
96
174
  # @return [Array<Google::Apis::BaremetalsolutionV2::Network>]
97
175
  attr_accessor :networks
98
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
+
99
182
  # The state of the server.
100
183
  # Corresponds to the JSON property `state`
101
184
  # @return [String]
@@ -121,6 +204,7 @@ module Google
121
204
  @machine_type = args[:machine_type] if args.key?(:machine_type)
122
205
  @name = args[:name] if args.key?(:name)
123
206
  @networks = args[:networks] if args.key?(:networks)
207
+ @os_image = args[:os_image] if args.key?(:os_image)
124
208
  @state = args[:state] if args.key?(:state)
125
209
  @update_time = args[:update_time] if args.key?(:update_time)
126
210
  end
@@ -130,6 +214,12 @@ module Google
130
214
  class InstanceConfig
131
215
  include Google::Apis::Core::Hashable
132
216
 
217
+ # If true networks can be from different projects of the same vendor account.
218
+ # Corresponds to the JSON property `accountNetworksEnabled`
219
+ # @return [Boolean]
220
+ attr_accessor :account_networks_enabled
221
+ alias_method :account_networks_enabled?, :account_networks_enabled
222
+
133
223
  # A network.
134
224
  # Corresponds to the JSON property `clientNetwork`
135
225
  # @return [Google::Apis::BaremetalsolutionV2::NetworkAddress]
@@ -181,6 +271,7 @@ module Google
181
271
 
182
272
  # Update properties of this object
183
273
  def update!(**args)
274
+ @account_networks_enabled = args[:account_networks_enabled] if args.key?(:account_networks_enabled)
184
275
  @client_network = args[:client_network] if args.key?(:client_network)
185
276
  @hyperthreading = args[:hyperthreading] if args.key?(:hyperthreading)
186
277
  @id = args[:id] if args.key?(:id)
@@ -392,6 +483,37 @@ module Google
392
483
  end
393
484
  end
394
485
 
486
+ # Response message containing the list of NFS shares.
487
+ class ListNfsSharesResponse
488
+ include Google::Apis::Core::Hashable
489
+
490
+ # A token identifying a page of results from the server.
491
+ # Corresponds to the JSON property `nextPageToken`
492
+ # @return [String]
493
+ attr_accessor :next_page_token
494
+
495
+ # The list of NFS shares.
496
+ # Corresponds to the JSON property `nfsShares`
497
+ # @return [Array<Google::Apis::BaremetalsolutionV2::NfsShare>]
498
+ attr_accessor :nfs_shares
499
+
500
+ # Locations that could not be reached.
501
+ # Corresponds to the JSON property `unreachable`
502
+ # @return [Array<String>]
503
+ attr_accessor :unreachable
504
+
505
+ def initialize(**args)
506
+ update!(**args)
507
+ end
508
+
509
+ # Update properties of this object
510
+ def update!(**args)
511
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
512
+ @nfs_shares = args[:nfs_shares] if args.key?(:nfs_shares)
513
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
514
+ end
515
+ end
516
+
395
517
  # Response message for the list of provisioning quotas.
396
518
  class ListProvisioningQuotasResponse
397
519
  include Google::Apis::Core::Hashable
@@ -553,6 +675,39 @@ module Google
553
675
  end
554
676
  end
555
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
+
556
711
  # A storage volume logical unit number (LUN).
557
712
  class Lun
558
713
  include Google::Apis::Core::Hashable
@@ -931,6 +1086,99 @@ module Google
931
1086
  end
932
1087
  end
933
1088
 
1089
+ # An NFS share.
1090
+ class NfsShare
1091
+ include Google::Apis::Core::Hashable
1092
+
1093
+ # List of allowed access points.
1094
+ # Corresponds to the JSON property `allowedClients`
1095
+ # @return [Array<Google::Apis::BaremetalsolutionV2::AllowedClient>]
1096
+ attr_accessor :allowed_clients
1097
+
1098
+ # Labels as key value pairs.
1099
+ # Corresponds to the JSON property `labels`
1100
+ # @return [Hash<String,String>]
1101
+ attr_accessor :labels
1102
+
1103
+ # Output only. The name of the NFS share.
1104
+ # Corresponds to the JSON property `name`
1105
+ # @return [String]
1106
+ attr_accessor :name
1107
+
1108
+ # Output only. An identifier for the NFS share, generated by the backend.
1109
+ # Corresponds to the JSON property `nfsShareId`
1110
+ # @return [String]
1111
+ attr_accessor :nfs_share_id
1112
+
1113
+ # The state of the NFS share.
1114
+ # Corresponds to the JSON property `state`
1115
+ # @return [String]
1116
+ attr_accessor :state
1117
+
1118
+ # The volume containing the share.
1119
+ # Corresponds to the JSON property `volume`
1120
+ # @return [String]
1121
+ attr_accessor :volume
1122
+
1123
+ def initialize(**args)
1124
+ update!(**args)
1125
+ end
1126
+
1127
+ # Update properties of this object
1128
+ def update!(**args)
1129
+ @allowed_clients = args[:allowed_clients] if args.key?(:allowed_clients)
1130
+ @labels = args[:labels] if args.key?(:labels)
1131
+ @name = args[:name] if args.key?(:name)
1132
+ @nfs_share_id = args[:nfs_share_id] if args.key?(:nfs_share_id)
1133
+ @state = args[:state] if args.key?(:state)
1134
+ @volume = args[:volume] if args.key?(:volume)
1135
+ end
1136
+ end
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
+
934
1182
  # This resource represents a long-running operation that is the result of a
935
1183
  # network API call.
936
1184
  class Operation
@@ -1002,7 +1250,8 @@ module Google
1002
1250
  # @return [String]
1003
1251
  attr_accessor :cloud_console_uri
1004
1252
 
1005
- # Optional. Email provided to send a confirmation with provisioning config to.
1253
+ # Email provided to send a confirmation with provisioning config to. Deprecated
1254
+ # in favour of email field in request messages.
1006
1255
  # Corresponds to the JSON property `email`
1007
1256
  # @return [String]
1008
1257
  attr_accessor :email
@@ -1108,6 +1357,21 @@ module Google
1108
1357
  # @return [String]
1109
1358
  attr_accessor :name
1110
1359
 
1360
+ # Network bandwidth, Gbps
1361
+ # Corresponds to the JSON property `networkBandwidth`
1362
+ # @return [Fixnum]
1363
+ attr_accessor :network_bandwidth
1364
+
1365
+ # Server count.
1366
+ # Corresponds to the JSON property `serverCount`
1367
+ # @return [Fixnum]
1368
+ attr_accessor :server_count
1369
+
1370
+ # Storage size (GB).
1371
+ # Corresponds to the JSON property `storageGib`
1372
+ # @return [Fixnum]
1373
+ attr_accessor :storage_gib
1374
+
1111
1375
  def initialize(**args)
1112
1376
  update!(**args)
1113
1377
  end
@@ -1120,6 +1384,9 @@ module Google
1120
1384
  @instance_quota = args[:instance_quota] if args.key?(:instance_quota)
1121
1385
  @location = args[:location] if args.key?(:location)
1122
1386
  @name = args[:name] if args.key?(:name)
1387
+ @network_bandwidth = args[:network_bandwidth] if args.key?(:network_bandwidth)
1388
+ @server_count = args[:server_count] if args.key?(:server_count)
1389
+ @storage_gib = args[:storage_gib] if args.key?(:storage_gib)
1123
1390
  end
1124
1391
  end
1125
1392
 
@@ -1199,6 +1466,37 @@ module Google
1199
1466
  end
1200
1467
  end
1201
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
+
1202
1500
  # Details about snapshot space reservation and usage on the storage volume.
1203
1501
  class SnapshotReservationDetail
1204
1502
  include Google::Apis::Core::Hashable
@@ -1344,6 +1642,19 @@ module Google
1344
1642
  end
1345
1643
  end
1346
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
+
1347
1658
  # Request for SubmitProvisioningConfig.
1348
1659
  class SubmitProvisioningConfigRequest
1349
1660
  include Google::Apis::Core::Hashable
@@ -1473,6 +1784,12 @@ module Google
1473
1784
  # @return [Fixnum]
1474
1785
  attr_accessor :current_size_gib
1475
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
+
1476
1793
  # An identifier for the `Volume`, generated by the backend.
1477
1794
  # Corresponds to the JSON property `id`
1478
1795
  # @return [String]
@@ -1541,6 +1858,7 @@ module Google
1541
1858
  def update!(**args)
1542
1859
  @auto_grown_size_gib = args[:auto_grown_size_gib] if args.key?(:auto_grown_size_gib)
1543
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)
1544
1862
  @id = args[:id] if args.key?(:id)
1545
1863
  @labels = args[:labels] if args.key?(:labels)
1546
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.8.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 = "20220307"
25
+ REVISION = "20220418"
26
26
  end
27
27
  end
28
28
  end
@@ -22,12 +22,24 @@ module Google
22
22
  module Apis
23
23
  module BaremetalsolutionV2
24
24
 
25
+ class AllowedClient
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class Empty
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
28
34
  include Google::Apis::Core::JsonObjectSupport
29
35
  end
30
36
 
37
+ class FetchInstanceProvisioningSettingsResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
31
43
  class Instance
32
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
45
 
@@ -82,6 +94,12 @@ module Google
82
94
  include Google::Apis::Core::JsonObjectSupport
83
95
  end
84
96
 
97
+ class ListNfsSharesResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
85
103
  class ListProvisioningQuotasResponse
86
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
105
 
@@ -112,6 +130,12 @@ module Google
112
130
  include Google::Apis::Core::JsonObjectSupport
113
131
  end
114
132
 
133
+ class LogicalInterface
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
115
139
  class Lun
116
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
141
 
@@ -154,6 +178,18 @@ module Google
154
178
  include Google::Apis::Core::JsonObjectSupport
155
179
  end
156
180
 
181
+ class NfsShare
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class OsImage
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
157
193
  class Operation
158
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
195
 
@@ -196,6 +232,12 @@ module Google
196
232
  include Google::Apis::Core::JsonObjectSupport
197
233
  end
198
234
 
235
+ class ServerNetworkTemplate
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
199
241
  class SnapshotReservationDetail
200
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
243
 
@@ -220,6 +262,12 @@ module Google
220
262
  include Google::Apis::Core::JsonObjectSupport
221
263
  end
222
264
 
265
+ class StopInstanceRequest
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
223
271
  class SubmitProvisioningConfigRequest
224
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
273
 
@@ -262,12 +310,33 @@ module Google
262
310
  include Google::Apis::Core::JsonObjectSupport
263
311
  end
264
312
 
313
+ class AllowedClient
314
+ # @private
315
+ class Representation < Google::Apis::Core::JsonRepresentation
316
+ property :allow_dev, as: 'allowDev'
317
+ property :allow_suid, as: 'allowSuid'
318
+ property :allowed_clients_cidr, as: 'allowedClientsCidr'
319
+ property :mount_permissions, as: 'mountPermissions'
320
+ property :network, as: 'network'
321
+ property :no_root_squash, as: 'noRootSquash'
322
+ property :share_ip, as: 'shareIp'
323
+ end
324
+ end
325
+
265
326
  class Empty
266
327
  # @private
267
328
  class Representation < Google::Apis::Core::JsonRepresentation
268
329
  end
269
330
  end
270
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
+
271
340
  class Instance
272
341
  # @private
273
342
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -282,6 +351,7 @@ module Google
282
351
  property :name, as: 'name'
283
352
  collection :networks, as: 'networks', class: Google::Apis::BaremetalsolutionV2::Network, decorator: Google::Apis::BaremetalsolutionV2::Network::Representation
284
353
 
354
+ property :os_image, as: 'osImage'
285
355
  property :state, as: 'state'
286
356
  property :update_time, as: 'updateTime'
287
357
  end
@@ -290,6 +360,7 @@ module Google
290
360
  class InstanceConfig
291
361
  # @private
292
362
  class Representation < Google::Apis::Core::JsonRepresentation
363
+ property :account_networks_enabled, as: 'accountNetworksEnabled'
293
364
  property :client_network, as: 'clientNetwork', class: Google::Apis::BaremetalsolutionV2::NetworkAddress, decorator: Google::Apis::BaremetalsolutionV2::NetworkAddress::Representation
294
365
 
295
366
  property :hyperthreading, as: 'hyperthreading'
@@ -368,6 +439,16 @@ module Google
368
439
  end
369
440
  end
370
441
 
442
+ class ListNfsSharesResponse
443
+ # @private
444
+ class Representation < Google::Apis::Core::JsonRepresentation
445
+ property :next_page_token, as: 'nextPageToken'
446
+ collection :nfs_shares, as: 'nfsShares', class: Google::Apis::BaremetalsolutionV2::NfsShare, decorator: Google::Apis::BaremetalsolutionV2::NfsShare::Representation
447
+
448
+ collection :unreachable, as: 'unreachable'
449
+ end
450
+ end
451
+
371
452
  class ListProvisioningQuotasResponse
372
453
  # @private
373
454
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -417,6 +498,15 @@ module Google
417
498
  end
418
499
  end
419
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
+
420
510
  class Lun
421
511
  # @private
422
512
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -507,6 +597,31 @@ module Google
507
597
  end
508
598
  end
509
599
 
600
+ class NfsShare
601
+ # @private
602
+ class Representation < Google::Apis::Core::JsonRepresentation
603
+ collection :allowed_clients, as: 'allowedClients', class: Google::Apis::BaremetalsolutionV2::AllowedClient, decorator: Google::Apis::BaremetalsolutionV2::AllowedClient::Representation
604
+
605
+ hash :labels, as: 'labels'
606
+ property :name, as: 'name'
607
+ property :nfs_share_id, as: 'nfsShareId'
608
+ property :state, as: 'state'
609
+ property :volume, as: 'volume'
610
+ end
611
+ end
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
+
510
625
  class Operation
511
626
  # @private
512
627
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -549,6 +664,9 @@ module Google
549
664
 
550
665
  property :location, as: 'location'
551
666
  property :name, as: 'name'
667
+ property :network_bandwidth, :numeric_string => true, as: 'networkBandwidth'
668
+ property :server_count, :numeric_string => true, as: 'serverCount'
669
+ property :storage_gib, :numeric_string => true, as: 'storageGib'
552
670
  end
553
671
  end
554
672
 
@@ -580,6 +698,16 @@ module Google
580
698
  end
581
699
  end
582
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
+
583
711
  class SnapshotReservationDetail
584
712
  # @private
585
713
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -618,6 +746,12 @@ module Google
618
746
  end
619
747
  end
620
748
 
749
+ class StopInstanceRequest
750
+ # @private
751
+ class Representation < Google::Apis::Core::JsonRepresentation
752
+ end
753
+ end
754
+
621
755
  class SubmitProvisioningConfigRequest
622
756
  # @private
623
757
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -661,6 +795,7 @@ module Google
661
795
  class Representation < Google::Apis::Core::JsonRepresentation
662
796
  property :auto_grown_size_gib, :numeric_string => true, as: 'autoGrownSizeGib'
663
797
  property :current_size_gib, :numeric_string => true, as: 'currentSizeGib'
798
+ property :emergency_size_gib, :numeric_string => true, as: 'emergencySizeGib'
664
799
  property :id, as: 'id'
665
800
  hash :labels, as: 'labels'
666
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.
@@ -439,10 +504,118 @@ module Google
439
504
  execute_or_queue_command(command, &block)
440
505
  end
441
506
 
507
+ # Get details of a single NFS share.
508
+ # @param [String] name
509
+ # Required. Name of the resource.
510
+ # @param [String] fields
511
+ # Selector specifying which fields to include in a partial response.
512
+ # @param [String] quota_user
513
+ # Available to use for quota purposes for server-side applications. Can be any
514
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
515
+ # @param [Google::Apis::RequestOptions] options
516
+ # Request-specific options
517
+ #
518
+ # @yield [result, err] Result & error if block supplied
519
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::NfsShare] parsed result object
520
+ # @yieldparam err [StandardError] error object if request failed
521
+ #
522
+ # @return [Google::Apis::BaremetalsolutionV2::NfsShare]
523
+ #
524
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
525
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
526
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
527
+ def get_project_location_nfs_share(name, fields: nil, quota_user: nil, options: nil, &block)
528
+ command = make_simple_command(:get, 'v2/{+name}', options)
529
+ command.response_representation = Google::Apis::BaremetalsolutionV2::NfsShare::Representation
530
+ command.response_class = Google::Apis::BaremetalsolutionV2::NfsShare
531
+ command.params['name'] = name unless name.nil?
532
+ command.query['fields'] = fields unless fields.nil?
533
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
534
+ execute_or_queue_command(command, &block)
535
+ end
536
+
537
+ # List NFS shares.
538
+ # @param [String] parent
539
+ # Required. Parent value for ListNfsSharesRequest.
540
+ # @param [String] filter
541
+ # List filter.
542
+ # @param [Fixnum] page_size
543
+ # Requested page size. The server might return fewer items than requested. If
544
+ # unspecified, server will pick an appropriate default.
545
+ # @param [String] page_token
546
+ # A token identifying a page of results from the server.
547
+ # @param [String] fields
548
+ # Selector specifying which fields to include in a partial response.
549
+ # @param [String] quota_user
550
+ # Available to use for quota purposes for server-side applications. Can be any
551
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
552
+ # @param [Google::Apis::RequestOptions] options
553
+ # Request-specific options
554
+ #
555
+ # @yield [result, err] Result & error if block supplied
556
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::ListNfsSharesResponse] parsed result object
557
+ # @yieldparam err [StandardError] error object if request failed
558
+ #
559
+ # @return [Google::Apis::BaremetalsolutionV2::ListNfsSharesResponse]
560
+ #
561
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
562
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
563
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
564
+ def list_project_location_nfs_shares(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
565
+ command = make_simple_command(:get, 'v2/{+parent}/nfsShares', options)
566
+ command.response_representation = Google::Apis::BaremetalsolutionV2::ListNfsSharesResponse::Representation
567
+ command.response_class = Google::Apis::BaremetalsolutionV2::ListNfsSharesResponse
568
+ command.params['parent'] = parent unless parent.nil?
569
+ command.query['filter'] = filter unless filter.nil?
570
+ command.query['pageSize'] = page_size unless page_size.nil?
571
+ command.query['pageToken'] = page_token unless page_token.nil?
572
+ command.query['fields'] = fields unless fields.nil?
573
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
574
+ execute_or_queue_command(command, &block)
575
+ end
576
+
577
+ # Update details of a single NFS share.
578
+ # @param [String] name
579
+ # Output only. The name of the NFS share.
580
+ # @param [Google::Apis::BaremetalsolutionV2::NfsShare] nfs_share_object
581
+ # @param [String] update_mask
582
+ # The list of fields to update. The only currently supported fields are: `labels`
583
+ # @param [String] fields
584
+ # Selector specifying which fields to include in a partial response.
585
+ # @param [String] quota_user
586
+ # Available to use for quota purposes for server-side applications. Can be any
587
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
588
+ # @param [Google::Apis::RequestOptions] options
589
+ # Request-specific options
590
+ #
591
+ # @yield [result, err] Result & error if block supplied
592
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
593
+ # @yieldparam err [StandardError] error object if request failed
594
+ #
595
+ # @return [Google::Apis::BaremetalsolutionV2::Operation]
596
+ #
597
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
598
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
599
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
600
+ def patch_project_location_nfs_share(name, nfs_share_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
601
+ command = make_simple_command(:patch, 'v2/{+name}', options)
602
+ command.request_representation = Google::Apis::BaremetalsolutionV2::NfsShare::Representation
603
+ command.request_object = nfs_share_object
604
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
605
+ command.response_class = Google::Apis::BaremetalsolutionV2::Operation
606
+ command.params['name'] = name unless name.nil?
607
+ command.query['updateMask'] = update_mask unless update_mask.nil?
608
+ command.query['fields'] = fields unless fields.nil?
609
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
610
+ execute_or_queue_command(command, &block)
611
+ end
612
+
442
613
  # Create new ProvisioningConfig.
443
614
  # @param [String] parent
444
615
  # Required. The parent project and location containing the ProvisioningConfig.
445
616
  # @param [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] provisioning_config_object
617
+ # @param [String] email
618
+ # Optional. Email provided to send a confirmation with provisioning config to.
446
619
  # @param [String] fields
447
620
  # Selector specifying which fields to include in a partial response.
448
621
  # @param [String] quota_user
@@ -460,13 +633,14 @@ module Google
460
633
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
461
634
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
462
635
  # @raise [Google::Apis::AuthorizationError] Authorization is required
463
- def create_project_location_provisioning_config(parent, provisioning_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
636
+ def create_project_location_provisioning_config(parent, provisioning_config_object = nil, email: nil, fields: nil, quota_user: nil, options: nil, &block)
464
637
  command = make_simple_command(:post, 'v2/{+parent}/provisioningConfigs', options)
465
638
  command.request_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
466
639
  command.request_object = provisioning_config_object
467
640
  command.response_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
468
641
  command.response_class = Google::Apis::BaremetalsolutionV2::ProvisioningConfig
469
642
  command.params['parent'] = parent unless parent.nil?
643
+ command.query['email'] = email unless email.nil?
470
644
  command.query['fields'] = fields unless fields.nil?
471
645
  command.query['quotaUser'] = quota_user unless quota_user.nil?
472
646
  execute_or_queue_command(command, &block)
@@ -506,6 +680,8 @@ module Google
506
680
  # @param [String] name
507
681
  # Output only. The name of the provisioning config.
508
682
  # @param [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] provisioning_config_object
683
+ # @param [String] email
684
+ # Optional. Email provided to send a confirmation with provisioning config to.
509
685
  # @param [String] update_mask
510
686
  # Required. The list of fields to update.
511
687
  # @param [String] fields
@@ -525,13 +701,14 @@ module Google
525
701
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
526
702
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
527
703
  # @raise [Google::Apis::AuthorizationError] Authorization is required
528
- def patch_project_location_provisioning_config(name, provisioning_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
704
+ def patch_project_location_provisioning_config(name, provisioning_config_object = nil, email: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
529
705
  command = make_simple_command(:patch, 'v2/{+name}', options)
530
706
  command.request_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
531
707
  command.request_object = provisioning_config_object
532
708
  command.response_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
533
709
  command.response_class = Google::Apis::BaremetalsolutionV2::ProvisioningConfig
534
710
  command.params['name'] = name unless name.nil?
711
+ command.query['email'] = email unless email.nil?
535
712
  command.query['updateMask'] = update_mask unless update_mask.nil?
536
713
  command.query['fields'] = fields unless fields.nil?
537
714
  command.query['quotaUser'] = quota_user unless quota_user.nil?
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.8.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-14 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.8.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: []