@@ -419,4 +419,59 @@ public function routerAccessibleJson(): array
419419 'description ' => 'Indicates whether this network is externally accessible. ' ,
420420 ];
421421 }
422+
423+ protected function quotaLimit (string $ sentAs , string $ description ): array
424+ {
425+ return [
426+ 'type ' => self ::INT_TYPE ,
427+ 'location ' => self ::JSON ,
428+ 'sentAs ' => $ sentAs ,
429+ 'description ' => $ description
430+ ];
431+ }
432+
433+ public function quotaLimitFloatingIp (): array
434+ {
435+ return $ this ->quotaLimit ('floatingip ' , 'The number of floating IP addresses allowed for each project. A value of -1 means no limit. ' );
436+ }
437+
438+ public function quotaLimitNetwork (): array
439+ {
440+ return $ this ->quotaLimit ('network ' , 'The number of networks allowed for each project. A value of -1 means no limit. ' );
441+ }
442+
443+ public function quotaLimitPort (): array
444+ {
445+ return $ this ->quotaLimit ('port ' , 'The number of ports allowed for each project. A value of -1 means no limit. ' );
446+ }
447+
448+ public function quotaLimitRbacPolicy (): array
449+ {
450+ return $ this ->quotaLimit ('rbac_policy ' , 'The number of role-based access control (RBAC) policies for each project. A value of -1 means no limit. ' );
451+ }
452+
453+ public function quotaLimitRouter (): array
454+ {
455+ return $ this ->quotaLimit ('router ' , 'The number of routers allowed for each project. A value of -1 means no limit. ' );
456+ }
457+
458+ public function quotaLimitSecurityGroup (): array
459+ {
460+ return $ this ->quotaLimit ('security_group ' , 'The number of security groups allowed for each project. A value of -1 means no limit. ' );
461+ }
462+
463+ public function quotaLimitSecurityGroupRule (): array
464+ {
465+ return $ this ->quotaLimit ('security_group_rule ' , 'The number of security group rules allowed for each project. A value of -1 means no limit. ' );
466+ }
467+
468+ public function quotaLimitSubnet (): array
469+ {
470+ return $ this ->quotaLimit ('subnet ' , 'The number of subnets allowed for each project. A value of -1 means no limit. ' );
471+ }
472+
473+ public function quotaLimitSubnetPool (): array
474+ {
475+ return $ this ->quotaLimit ('subnetpool ' , 'The number of subnet pools allowed for each project. A value of -1 means no limit. ' );
476+ }
422477}
0 commit comments