googleapis / googleapis/google-cloud-java

CloudRun - Support listing jobs with a label

オープン
#10,721 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
priority: p2 type: feature request
主要言語
Java
スター
2.1k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
154

説明

**Describe the solution you'd like**

We would like to be able to list CloudRun job using a filter.
Something like the following code snippet (which didn't work yet as there is no `setFilter()` method).

```java
var jobsClient = JobsClient.create();
var existingJob = jobsClient.listJobs(ListJobsRequest.newBuilder()
.setParent(String.format("projects/%s/locations/%s", projectId, region))
.setFilter("labels.key=value")
.build();
```

**Describe alternatives you've considered**
The alternative is to list all jobs and filter later.
However, this didn't scale if there were a lot of jobs.

**Additional context**
It is already possible via gcloud: `gcloud run jobs list --filter "labels.key=value"`.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。