@@ -14,17 +14,15 @@ type ListOptsBuilder interface {
14
14
// ListOpts controls the view of data returned (e.g globally or per project).
15
15
type ListOpts struct {
16
16
// 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"`
20
18
// The host name for the back end.
21
- HostName string `json:"host_name "`
19
+ HostName string `q:"host "`
22
20
// The name of the back end.
23
- BackendName string `json:"backend_name "`
21
+ BackendName string `q:"backend "`
24
22
// The capabilities for the storage back end.
25
- Capabilities string `json :"capabilities"`
23
+ Capabilities string `q :"capabilities"`
26
24
// 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"`
28
26
}
29
27
30
28
// ToPoolsListQuery formats a ListOpts into a query string.
@@ -57,17 +55,15 @@ type ListDetailOptsBuilder interface {
57
55
// ListOpts controls the view of data returned (e.g globally or per project).
58
56
type ListDetailOpts struct {
59
57
// 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"`
63
59
// The host name for the back end.
64
- HostName string `json:"host_name "`
60
+ HostName string `q:"host "`
65
61
// The name of the back end.
66
- BackendName string `json:"backend_name "`
62
+ BackendName string `q:"backend "`
67
63
// The capabilities for the storage back end.
68
- Capabilities string `json :"capabilities"`
64
+ Capabilities string `q :"capabilities"`
69
65
// 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"`
71
67
}
72
68
73
69
// ToPoolsListQuery formats a ListDetailOpts into a query string.
0 commit comments