Skip to content

Commit 736b1c8

Browse files
authored
feat(serverless_jobs): filter job defs and runs by organization_id (#1228)
1 parent 4536b46 commit 736b1c8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/clients/src/api/jobs/v1alpha1/api.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export class API extends ParentAPI {
8686
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions`,
8787
urlParams: urlParams(
8888
['order_by', request.orderBy],
89+
['organization_id', request.organizationId],
8990
['page', request.page],
9091
[
9192
'page_size',
@@ -201,6 +202,7 @@ export class API extends ParentAPI {
201202
urlParams: urlParams(
202203
['job_definition_id', request.jobDefinitionId],
203204
['order_by', request.orderBy],
205+
['organization_id', request.organizationId],
204206
['page', request.page],
205207
[
206208
'page_size',

packages/clients/src/api/jobs/v1alpha1/types.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export type ListJobDefinitionsRequest = {
155155
pageSize?: number
156156
orderBy?: ListJobDefinitionsRequestOrderBy
157157
projectId?: string
158+
organizationId?: string
158159
}
159160

160161
export interface ListJobDefinitionsResponse {
@@ -173,6 +174,7 @@ export type ListJobRunsRequest = {
173174
orderBy?: ListJobRunsRequestOrderBy
174175
jobDefinitionId?: string
175176
projectId?: string
177+
organizationId?: string
176178
}
177179

178180
export interface ListJobRunsResponse {

0 commit comments

Comments
 (0)