Skip to content

Commit 4ccc520

Browse files
authored
chore(serverless_jobs): remove GetServiceInfo (#1042)
1 parent 69b0360 commit 4ccc520

File tree

3 files changed

+1
-24
lines changed

3 files changed

+1
-24
lines changed

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

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
import {
44
API as ParentAPI,
55
enrichForPagination,
6-
unmarshalServiceInfo,
76
urlParams,
87
validatePathParam,
98
} from '../../../bridge'
10-
import type { Region, ServiceInfo } from '../../../bridge'
9+
import type { Region } from '../../../bridge'
1110
import {
1211
marshalCreateJobDefinitionRequest,
1312
marshalUpdateJobDefinitionRequest,
@@ -21,7 +20,6 @@ import type {
2120
DeleteJobDefinitionRequest,
2221
GetJobDefinitionRequest,
2322
GetJobRunRequest,
24-
GetServiceInfoRequest,
2523
JobDefinition,
2624
JobRun,
2725
ListJobDefinitionsRequest,
@@ -42,18 +40,6 @@ export class API extends ParentAPI {
4240
/** Lists the available regions of the API. */
4341
public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw']
4442

45-
getServiceInfo = (request: Readonly<GetServiceInfoRequest> = {}) =>
46-
this.client.fetch<ServiceInfo>(
47-
{
48-
method: 'GET',
49-
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam(
50-
'region',
51-
request.region ?? this.client.settings.defaultRegion,
52-
)}`,
53-
},
54-
unmarshalServiceInfo,
55-
)
56-
5743
createJobDefinition = (request: Readonly<CreateJobDefinitionRequest>) =>
5844
this.client.fetch<JobDefinition>(
5945
{

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export type {
77
DeleteJobDefinitionRequest,
88
GetJobDefinitionRequest,
99
GetJobRunRequest,
10-
GetServiceInfoRequest,
1110
JobDefinition,
1211
JobRun,
1312
JobRunState,

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,6 @@ export type GetJobRunRequest = {
9898
jobRunId: string
9999
}
100100

101-
export type GetServiceInfoRequest = {
102-
/**
103-
* Region to target. If none is passed will use default region from the
104-
* config.
105-
*/
106-
region?: Region
107-
}
108-
109101
export type ListJobDefinitionsRequest = {
110102
/**
111103
* Region to target. If none is passed will use default region from the

0 commit comments

Comments
 (0)