Skip to content

Commit d0a0420

Browse files
committed
sharedfilesystems/schedulerstats: fix ListOpts, ListDetailOpts
Ref: <https://docs.openstack.org/api-ref/shared-file-system/#scheduler-stats-storage-pools> Closes #3166.
1 parent 5cb81d7 commit d0a0420

File tree

1 file changed

+10
-14
lines changed
  • openstack/sharedfilesystems/v2/schedulerstats

1 file changed

+10
-14
lines changed

openstack/sharedfilesystems/v2/schedulerstats/requests.go

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,15 @@ type ListOptsBuilder interface {
1414
// ListOpts controls the view of data returned (e.g globally or per project).
1515
type ListOpts struct {
1616
// The pool name for the back end.
17-
ProjectID string `json:"project_id,omitempty"`
18-
// The pool name for the back end.
19-
PoolName string `json:"pool_name"`
17+
PoolName string `q:"pool"`
2018
// The host name for the back end.
21-
HostName string `json:"host_name"`
19+
HostName string `q:"host"`
2220
// The name of the back end.
23-
BackendName string `json:"backend_name"`
21+
BackendName string `q:"backend"`
2422
// The capabilities for the storage back end.
25-
Capabilities string `json:"capabilities"`
23+
Capabilities string `q:"capabilities"`
2624
// The share type name or UUID. Allows filtering back end pools based on the extra-specs in the share type.
27-
ShareType string `json:"share_type,omitempty"`
25+
ShareType string `q:"share_type"`
2826
}
2927

3028
// ToPoolsListQuery formats a ListOpts into a query string.
@@ -57,17 +55,15 @@ type ListDetailOptsBuilder interface {
5755
// ListOpts controls the view of data returned (e.g globally or per project).
5856
type ListDetailOpts struct {
5957
// The pool name for the back end.
60-
ProjectID string `json:"project_id,omitempty"`
61-
// The pool name for the back end.
62-
PoolName string `json:"pool_name"`
58+
PoolName string `q:"pool"`
6359
// The host name for the back end.
64-
HostName string `json:"host_name"`
60+
HostName string `q:"host"`
6561
// The name of the back end.
66-
BackendName string `json:"backend_name"`
62+
BackendName string `q:"backend"`
6763
// The capabilities for the storage back end.
68-
Capabilities string `json:"capabilities"`
64+
Capabilities string `q:"capabilities"`
6965
// The share type name or UUID. Allows filtering back end pools based on the extra-specs in the share type.
70-
ShareType string `json:"share_type,omitempty"`
66+
ShareType string `q:"share_type"`
7167
}
7268

7369
// ToPoolsListQuery formats a ListDetailOpts into a query string.

0 commit comments

Comments
 (0)