File tree Expand file tree Collapse file tree 3 files changed +1
-24
lines changed
packages/clients/src/api/jobs/v1alpha1 Expand file tree Collapse file tree 3 files changed +1
-24
lines changed Original file line number Diff line number Diff line change 33import {
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'
1110import {
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 {
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ export type {
77 DeleteJobDefinitionRequest ,
88 GetJobDefinitionRequest ,
99 GetJobRunRequest ,
10- GetServiceInfoRequest ,
1110 JobDefinition ,
1211 JobRun ,
1312 JobRunState ,
Original file line number Diff line number Diff 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-
109101export type ListJobDefinitionsRequest = {
110102 /**
111103 * Region to target. If none is passed will use default region from the
You can’t perform that action at this time.
0 commit comments