@@ -159,4 +159,69 @@ public function snapshotName(): array
159159 'location' => self::JSON,
160160 ];
161161 }
162+
163+ protected function quotaSetLimit($sentAs, $description): array
164+ {
165+ return [
166+ 'type' => self::INT_TYPE,
167+ 'location' => self::JSON,
168+ 'sentAs' => $sentAs,
169+ 'description' => $description,
170+ ];
171+ }
172+
173+ public function quotaSetLimitInstances(): array
174+ {
175+ return $this->quotaSetLimit('instances', 'The number of allowed instances for each tenant.');
176+ }
177+
178+ public function quotaSetBackupGigabytes(): array
179+ {
180+ return $this->quotaSetLimit('backup_gigabytes', 'Total size of back-up storage (GiB)');
181+ }
182+
183+ public function quotaSetBackups(): array
184+ {
185+ return $this->quotaSetLimit('backups', 'The number of allowed back-ups');
186+ }
187+
188+ public function quotaSetGigabytes(): array
189+ {
190+ return $this->quotaSetLimit('gigabytes', 'Total Size of Volumes and Snapshots (GiB)');
191+ }
192+
193+ public function quotaSetGigabytesIscsi(): array
194+ {
195+ return $this->quotaSetLimit('gigabytes_iscsi', 'Total Size of Volumes and Snapshots iscsi (GiB)');
196+ }
197+
198+ public function quotaSetTenantId(): array
199+ {
200+ return $this->quotaSetLimit('id', 'Tenant Id');
201+ }
202+
203+ public function quotaSetPerVolumeGigabytes(): array
204+ {
205+ return $this->quotaSetLimit('per_volume_gigabytes', 'Allowed size per Volume (GiB)');
206+ }
207+
208+ public function quotaSetSnapshots(): array
209+ {
210+ return $this->quotaSetLimit('snapshots', 'The number of allowed snapshots');
211+ }
212+
213+ public function quotaSetSnapshotsIscsi(): array
214+ {
215+ return $this->quotaSetLimit('snapshots_iscsi', 'The number of allowed snapshots iscsi');
216+ }
217+
218+ public function quotaSetVolumes(): array
219+ {
220+ return $this->quotaSetLimit('volumes', 'The number of allowed volumes');
221+ }
222+
223+ public function quotaSetVolumesIscsi(): array
224+ {
225+ return $this->quotaSetLimit('volumes_iscsi', 'The number of allowed volumes iscsi');
226+ }
162227}
0 commit comments