@@ -77,7 +77,10 @@ export class API extends ParentAPI {
77
77
path : `/serverless-jobs/v1alpha1/regions/${ validatePathParam (
78
78
'region' ,
79
79
request . region ?? this . client . settings . defaultRegion ,
80
- ) } /job-definitions/${ validatePathParam ( 'id' , request . id ) } `,
80
+ ) } /job-definitions/${ validatePathParam (
81
+ 'jobDefinitionId' ,
82
+ request . jobDefinitionId ,
83
+ ) } `,
81
84
} ,
82
85
unmarshalJobDefinition ,
83
86
)
@@ -123,7 +126,10 @@ export class API extends ParentAPI {
123
126
path : `/serverless-jobs/v1alpha1/regions/${ validatePathParam (
124
127
'region' ,
125
128
request . region ?? this . client . settings . defaultRegion ,
126
- ) } /job-definitions/${ validatePathParam ( 'id' , request . id ) } `,
129
+ ) } /job-definitions/${ validatePathParam (
130
+ 'jobDefinitionId' ,
131
+ request . jobDefinitionId ,
132
+ ) } `,
127
133
} ,
128
134
unmarshalJobDefinition ,
129
135
)
@@ -134,7 +140,10 @@ export class API extends ParentAPI {
134
140
path : `/serverless-jobs/v1alpha1/regions/${ validatePathParam (
135
141
'region' ,
136
142
request . region ?? this . client . settings . defaultRegion ,
137
- ) } /job-definitions/${ validatePathParam ( 'id' , request . id ) } `,
143
+ ) } /job-definitions/${ validatePathParam (
144
+ 'jobDefinitionId' ,
145
+ request . jobDefinitionId ,
146
+ ) } `,
138
147
} )
139
148
140
149
startJobDefinition = ( request : Readonly < StartJobDefinitionRequest > ) =>
@@ -146,7 +155,10 @@ export class API extends ParentAPI {
146
155
path : `/serverless-jobs/v1alpha1/regions/${ validatePathParam (
147
156
'region' ,
148
157
request . region ?? this . client . settings . defaultRegion ,
149
- ) } /job-definitions/${ validatePathParam ( 'id' , request . id ) } /start`,
158
+ ) } /job-definitions/${ validatePathParam (
159
+ 'jobDefinitionId' ,
160
+ request . jobDefinitionId ,
161
+ ) } /start`,
150
162
} ,
151
163
unmarshalJobRun ,
152
164
)
@@ -158,7 +170,7 @@ export class API extends ParentAPI {
158
170
path : `/serverless-jobs/v1alpha1/regions/${ validatePathParam (
159
171
'region' ,
160
172
request . region ?? this . client . settings . defaultRegion ,
161
- ) } /job-runs/${ validatePathParam ( 'id ' , request . id ) } `,
173
+ ) } /job-runs/${ validatePathParam ( 'jobRunId ' , request . jobRunId ) } `,
162
174
} ,
163
175
unmarshalJobRun ,
164
176
)
@@ -172,7 +184,7 @@ export class API extends ParentAPI {
172
184
path : `/serverless-jobs/v1alpha1/regions/${ validatePathParam (
173
185
'region' ,
174
186
request . region ?? this . client . settings . defaultRegion ,
175
- ) } /job-runs/${ validatePathParam ( 'id ' , request . id ) } /stop`,
187
+ ) } /job-runs/${ validatePathParam ( 'jobRunId ' , request . jobRunId ) } /stop`,
176
188
} ,
177
189
unmarshalJobRun ,
178
190
)
@@ -186,7 +198,7 @@ export class API extends ParentAPI {
186
198
request . region ?? this . client . settings . defaultRegion ,
187
199
) } /job-runs`,
188
200
urlParams : urlParams (
189
- [ 'id ' , request . id ] ,
201
+ [ 'job_definition_id ' , request . jobDefinitionId ] ,
190
202
[ 'order_by' , request . orderBy ] ,
191
203
[ 'page' , request . page ] ,
192
204
[
0 commit comments