Skip to content

Commit d240cc3

Browse files
authored
Merge pull request #413 from freudl/feat/list-opts
Add query parameters supported by CC 3.165.0 list operations
2 parents a5dc9be + 61eb1ee commit d240cc3

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

client/app_usage.go

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ type AppUsageClient commonClient
1313
// AppUsageListOptions list filters
1414
type AppUsageListOptions struct {
1515
*ListOptions
16+
17+
AfterGUID string `qs:"after_guid"`
18+
GUIDs Filter `qs:"guids"`
1619
}
1720

1821
// NewAppUsageOptions creates new options to pass to list

client/package.go

+6-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ type PackageClient commonClient
1515
type PackageListOptions struct {
1616
*ListOptions
1717

18-
GUIDs Filter `qs:"guids"` // list of package guids to filter by
19-
States Filter `qs:"states"` // list of package states to filter by
20-
Types Filter `qs:"types"` // list of package types to filter by, docker or bits
18+
GUIDs Filter `qs:"guids"` // list of package guids to filter by
19+
States Filter `qs:"states"` // list of package states to filter by
20+
Types Filter `qs:"types"` // list of package types to filter by, docker or bits
21+
AppGUIDs Filter `qs:"app_guids"` // list of app guids to filter by
22+
SpaceGUIDs Filter `qs:"space_guids"` // list of space guids to filter by
23+
OrganizationGUIDs Filter `qs:"organization_guids"` // list of organization guids to filter by
2124
}
2225

2326
// NewPackageListOptions creates new options to pass to list

client/process.go

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ type ProcessListOptions struct {
1616

1717
GUIDs Filter `qs:"guids"`
1818
Types Filter `qs:"types"`
19-
Names Filter `qs:"names"`
2019
AppGUIDs Filter `qs:"app_guids"`
2120
SpaceGUIDs Filter `qs:"space_guids"`
2221
OrganizationGUIDs Filter `qs:"organization_guids"`

client/stack.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ type StackClient commonClient
1414
type StackListOptions struct {
1515
*ListOptions
1616

17-
Names Filter `qs:"names"` // list of stack names to filter by
17+
Names Filter `qs:"names"` // list of stack names to filter by
18+
Default *bool `qs:"default"`
1819
}
1920

2021
// NewStackListOptions creates new options to pass to list

client/task.go

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type TaskListOptions struct {
1717
GUIDs Filter `qs:"guids"`
1818
Names Filter `qs:"names"`
1919
States Filter `qs:"states"`
20+
AppGUIDs Filter `qs:"app_guids"`
2021
SpaceGUIDs Filter `qs:"space_guids"`
2122
OrganizationGUIDs Filter `qs:"organization_guids"`
2223
}

0 commit comments

Comments
 (0)