Add filter and sort_by attributes to run_v2.List*Request. #12821
Labels
triage me
I really want to be triaged.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Determine this is the right repository
Summary of the feature request
Most Google collection listing APIs have the
filter
and thesort-by
options. For example,gcloud run services list
accepts both the--filter
and--sort-by
options:It would be nice for the have the
filter
andsort_by
attributes be available onrun_v2.List*Request
classes, e.g.google.cloud.run_v2.types.ListServicesRequest
, so that features (filter & sort) available in thegcloud
CLI can also be done programmatically using the Google Cloud Python Client.Here is the full list of classes that should have the
filter
andsort_by
attributes added:run_v2.ListExecutionsRequest
run_v2.ListJobsRequest
run_v2.ListRevisionsRequest
run_v2.ListServicesRequest
run_v2.ListTasksRequest
Desired code experience
Example API changes to the
google.cloud.run_v2.types.ListServicesRequest
classExpected results
Return a list of services with their labels matching the
env:prod*
pattern & sorted by their service names in descending order.API client name and version
No response
The text was updated successfully, but these errors were encountered: