Skip to content

Commit

Permalink
Merge pull request #413 from freudl/feat/list-opts
Browse files Browse the repository at this point in the history
Add query parameters supported by CC 3.165.0 list operations
  • Loading branch information
sneal authored Jun 24, 2024
2 parents a5dc9be + 61eb1ee commit d240cc3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions client/app_usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ type AppUsageClient commonClient
// AppUsageListOptions list filters
type AppUsageListOptions struct {
*ListOptions

AfterGUID string `qs:"after_guid"`
GUIDs Filter `qs:"guids"`
}

// NewAppUsageOptions creates new options to pass to list
Expand Down
9 changes: 6 additions & 3 deletions client/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ type PackageClient commonClient
type PackageListOptions struct {
*ListOptions

GUIDs Filter `qs:"guids"` // list of package guids to filter by
States Filter `qs:"states"` // list of package states to filter by
Types Filter `qs:"types"` // list of package types to filter by, docker or bits
GUIDs Filter `qs:"guids"` // list of package guids to filter by
States Filter `qs:"states"` // list of package states to filter by
Types Filter `qs:"types"` // list of package types to filter by, docker or bits
AppGUIDs Filter `qs:"app_guids"` // list of app guids to filter by
SpaceGUIDs Filter `qs:"space_guids"` // list of space guids to filter by
OrganizationGUIDs Filter `qs:"organization_guids"` // list of organization guids to filter by
}

// NewPackageListOptions creates new options to pass to list
Expand Down
1 change: 0 additions & 1 deletion client/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ type ProcessListOptions struct {

GUIDs Filter `qs:"guids"`
Types Filter `qs:"types"`
Names Filter `qs:"names"`
AppGUIDs Filter `qs:"app_guids"`
SpaceGUIDs Filter `qs:"space_guids"`
OrganizationGUIDs Filter `qs:"organization_guids"`
Expand Down
3 changes: 2 additions & 1 deletion client/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ type StackClient commonClient
type StackListOptions struct {
*ListOptions

Names Filter `qs:"names"` // list of stack names to filter by
Names Filter `qs:"names"` // list of stack names to filter by
Default *bool `qs:"default"`
}

// NewStackListOptions creates new options to pass to list
Expand Down
1 change: 1 addition & 0 deletions client/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type TaskListOptions struct {
GUIDs Filter `qs:"guids"`
Names Filter `qs:"names"`
States Filter `qs:"states"`
AppGUIDs Filter `qs:"app_guids"`
SpaceGUIDs Filter `qs:"space_guids"`
OrganizationGUIDs Filter `qs:"organization_guids"`
}
Expand Down

0 comments on commit d240cc3

Please sign in to comment.