File tree 4 files changed +13
-14
lines changed
4 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ type AutoscalingGroupGetParams struct {
44
44
type AutoscalingGroupListParams struct {
45
45
RequestParams
46
46
47
- Filter map [ string ] string `json:"filter,omitempty"`
48
- IncludeNodes bool `json:"includeNodes,omitempty"`
47
+ Filter Filter `json:"filter,omitempty"`
48
+ IncludeNodes bool `json:"includeNodes,omitempty"`
49
49
}
50
50
51
51
type AutoscalingGroupUpdateAttributeParams struct {
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ type ClusterGetParams struct {
67
67
type ClusterListParams struct {
68
68
RequestParams
69
69
70
- Filter map [ string ] string `json:"filter"`
70
+ Filter Filter `json:"filter,omitempty "`
71
71
}
72
72
73
73
type ClusterUpdateAttributeParams struct {
@@ -106,11 +106,7 @@ type ClusterUpdateS3Params struct {
106
106
}
107
107
108
108
func NewClusterListParams () ClusterListParams {
109
- clusterListParams := ClusterListParams {
110
- Filter : make (map [string ]string ),
111
- }
112
-
113
- return clusterListParams
109
+ return ClusterListParams {}
114
110
}
115
111
116
112
func (c Client ) CreateCluster (params ClusterCreateParams ) (Cluster , error ) {
Original file line number Diff line number Diff line change
1
+ package paperspace
2
+
3
+ type Filter struct {
4
+ Where map [string ]interface {} `json:"where,omitempty"`
5
+ Limit int64 `json:"limit,omitempty"`
6
+ Order string `json:"order,omitempty"`
7
+ }
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ type MachineGetParams struct {
71
71
type MachineListParams struct {
72
72
RequestParams
73
73
74
- Filter map [ string ] string `json:"filter,omitempty"`
74
+ Filter Filter `json:"filter,omitempty"`
75
75
}
76
76
77
77
type MachineUpdateAttributeParams struct {
@@ -94,11 +94,7 @@ type MachineUpdateParams struct {
94
94
}
95
95
96
96
func NewMachineListParams () MachineListParams {
97
- machineListParams := MachineListParams {
98
- Filter : make (map [string ]string ),
99
- }
100
-
101
- return machineListParams
97
+ return MachineListParams {}
102
98
}
103
99
104
100
func (c Client ) CreateMachine (params MachineCreateParams ) (Machine , error ) {
You can’t perform that action at this time.
0 commit comments