Skip to content

Commit f6574de

Browse files
committed
Fixed code review
1 parent 2a83417 commit f6574de

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/BlockStorage/v2/Api.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function getVolumes(): array
4040
'limit' => $this->params->limit(),
4141
'marker' => $this->params->marker(),
4242
'sort' => $this->params->sort(),
43+
'allTenants' => $this->params->allTenants(),
4344
],
4445
];
4546
}
@@ -64,9 +65,8 @@ public function getVolume(): array
6465
'method' => 'GET',
6566
'path' => 'volumes/{id}',
6667
'params' => [
67-
'id' => $this->params->idPath(),
68-
],
69-
'allTenants' => $this->params->allTenants(),
68+
'id' => $this->params->idPath()
69+
]
7070
];
7171
}
7272

src/Common/Api/AbstractParams.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ public function sortKey(): array
101101
public function allTenants(): array
102102
{
103103
return [
104-
'type' => self::STRING_TYPE,
104+
'type' => self::BOOL_TYPE,
105105
'location' => self::QUERY,
106106
'sentAs' => 'all_tenants',
107-
'description' => '(Admin only) Set this to 1 to pull volumes information from all tenants.',
107+
'description' => '(Admin only) Set this to true to pull volume information from all tenants.',
108108
];
109109
}
110110
}

0 commit comments

Comments
 (0)