@@ -291,4 +291,63 @@ public function deletePort(): array
291
291
'params ' => ['id ' => $ this ->params ->idPath ()],
292
292
];
293
293
}
294
+
295
+ public function getQuotas (): array
296
+ {
297
+ return [
298
+ 'method ' => 'GET ' ,
299
+ 'path ' => $ this ->pathPrefix . '/quotas ' ,
300
+ 'params ' => []
301
+ ];
302
+ }
303
+
304
+ public function getQuota (): array
305
+ {
306
+ return [
307
+ 'method ' => 'GET ' ,
308
+ 'path ' => $ this ->pathPrefix . '/quotas/{tenantId} ' ,
309
+ 'params ' => []
310
+ ];
311
+ }
312
+
313
+ public function getQuotaDefault (): array
314
+ {
315
+ return [
316
+ 'method ' => 'GET ' ,
317
+ 'path ' => $ this ->pathPrefix . '/quotas/{tenantId}/default ' ,
318
+ 'params ' => []
319
+ ];
320
+ }
321
+
322
+ public function putQuota (): array
323
+ {
324
+ return [
325
+ 'method ' => 'PUT ' ,
326
+ 'path ' => $ this ->pathPrefix . '/quotas/{tenantId} ' ,
327
+ 'jsonKey ' => 'quota ' ,
328
+ 'params ' => [
329
+ 'tenantId ' => $ this ->params ->idPath (),
330
+ 'floatingip ' => $ this ->params ->quotaLimitFloatingIp (),
331
+ 'network ' => $ this ->params ->quotaLimitNetwork (),
332
+ 'port ' => $ this ->params ->quotaLimitPort (),
333
+ 'rbacPolicy ' => $ this ->params ->quotaLimitRbacPolicy (),
334
+ 'router ' => $ this ->params ->quotaLimitRouter (),
335
+ 'securityGroup ' => $ this ->params ->quotaLimitSecurityGroup (),
336
+ 'securityGroupRule ' => $ this ->params ->quotaLimitSecurityGroupRule (),
337
+ 'subnet ' => $ this ->params ->quotaLimitSubnet (),
338
+ 'subnetpool ' => $ this ->params ->quotaLimitSubnetPool (),
339
+ ]
340
+ ];
341
+ }
342
+
343
+ public function deleteQuota () : array
344
+ {
345
+ return [
346
+ 'method ' => 'DELETE ' ,
347
+ 'path ' => $ this ->pathPrefix . '/quotas/{tenantId} ' ,
348
+ 'params ' => [
349
+ 'tenantId ' => $ this ->params ->idPath ()
350
+ ]
351
+ ];
352
+ }
294
353
}
0 commit comments