Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions packages/clients/src/api/jobs/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
import {
API as ParentAPI,
enrichForPagination,
unmarshalServiceInfo,
urlParams,
validatePathParam,
} from '../../../bridge'
import type { Region, ServiceInfo } from '../../../bridge'
import type { Region } from '../../../bridge'
import {
marshalCreateJobDefinitionRequest,
marshalUpdateJobDefinitionRequest,
Expand All @@ -21,7 +20,6 @@ import type {
DeleteJobDefinitionRequest,
GetJobDefinitionRequest,
GetJobRunRequest,
GetServiceInfoRequest,
JobDefinition,
JobRun,
ListJobDefinitionsRequest,
Expand All @@ -42,18 +40,6 @@ export class API extends ParentAPI {
/** Lists the available regions of the API. */
public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw']

getServiceInfo = (request: Readonly<GetServiceInfoRequest> = {}) =>
this.client.fetch<ServiceInfo>(
{
method: 'GET',
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam(
'region',
request.region ?? this.client.settings.defaultRegion,
)}`,
},
unmarshalServiceInfo,
)

createJobDefinition = (request: Readonly<CreateJobDefinitionRequest>) =>
this.client.fetch<JobDefinition>(
{
Expand Down
1 change: 0 additions & 1 deletion packages/clients/src/api/jobs/v1alpha1/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export type {
DeleteJobDefinitionRequest,
GetJobDefinitionRequest,
GetJobRunRequest,
GetServiceInfoRequest,
JobDefinition,
JobRun,
JobRunState,
Expand Down
8 changes: 0 additions & 8 deletions packages/clients/src/api/jobs/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,6 @@ export type GetJobRunRequest = {
jobRunId: string
}

export type GetServiceInfoRequest = {
/**
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
}

export type ListJobDefinitionsRequest = {
/**
* Region to target. If none is passed will use default region from the
Expand Down