refactor(api module): enforce typed definitions (#2238)
This commit is contained in:
1 parent
d6c1402223
commit
c2bfcc0664
79 files changed
+906
-551
No files matched your search
@@ -38,7 +38,7 @@ type HostSetReadResult struct {
|
||||
response *api.Response
|
||||
}
|
||||
|
||||
func (n HostSetReadResult) GetItem() interface{} {
|
||||
func (n HostSetReadResult) GetItem() *HostSet {
|
||||
return n.Item
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ type HostSetListResult struct {
|
||||
response *api.Response
|
||||
}
|
||||
|
||||
func (n HostSetListResult) GetItems() interface{} {
|
||||
func (n HostSetListResult) GetItems() []*HostSet {
|
||||
return n.Items
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user