Skip to content

Commit 93ac782

Browse files
authored
Merge branch 'main' into v1.5701.0
2 parents e57f227 + c7ba13c commit 93ac782

File tree

2 files changed

+67
-6
lines changed

2 files changed

+67
-6
lines changed

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,12 @@ export class API extends ParentAPI {
185185
unmarshalStartJobDefinitionResponse,
186186
)
187187

188+
/**
189+
* Create a secret reference within a job definition.
190+
*
191+
* @param request - The request {@link CreateJobDefinitionSecretsRequest}
192+
* @returns A Promise of CreateJobDefinitionSecretsResponse
193+
*/
188194
createJobDefinitionSecrets = (
189195
request: Readonly<CreateJobDefinitionSecretsRequest>,
190196
) =>
@@ -203,6 +209,12 @@ export class API extends ParentAPI {
203209
unmarshalCreateJobDefinitionSecretsResponse,
204210
)
205211

212+
/**
213+
* Get a secret references within a job definition.
214+
*
215+
* @param request - The request {@link GetJobDefinitionSecretRequest}
216+
* @returns A Promise of Secret
217+
*/
206218
getJobDefinitionSecret = (request: Readonly<GetJobDefinitionSecretRequest>) =>
207219
this.client.fetch<Secret>(
208220
{
@@ -212,6 +224,12 @@ export class API extends ParentAPI {
212224
unmarshalSecret,
213225
)
214226

227+
/**
228+
* List secrets references within a job definition.
229+
*
230+
* @param request - The request {@link ListJobDefinitionSecretsRequest}
231+
* @returns A Promise of ListJobDefinitionSecretsResponse
232+
*/
215233
listJobDefinitionSecrets = (
216234
request: Readonly<ListJobDefinitionSecretsRequest>,
217235
) =>
@@ -223,6 +241,12 @@ export class API extends ParentAPI {
223241
unmarshalListJobDefinitionSecretsResponse,
224242
)
225243

244+
/**
245+
* Update a secret reference within a job definition.
246+
*
247+
* @param request - The request {@link UpdateJobDefinitionSecretRequest}
248+
* @returns A Promise of Secret
249+
*/
226250
updateJobDefinitionSecret = (
227251
request: Readonly<UpdateJobDefinitionSecretRequest>,
228252
) =>
@@ -241,6 +265,11 @@ export class API extends ParentAPI {
241265
unmarshalSecret,
242266
)
243267

268+
/**
269+
* Delete a secret reference within a job definition.
270+
*
271+
* @param request - The request {@link DeleteJobDefinitionSecretRequest}
272+
*/
244273
deleteJobDefinitionSecret = (
245274
request: Readonly<DeleteJobDefinitionSecretRequest>,
246275
) =>

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

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,23 @@ export interface CreateJobDefinitionSecretsRequestSecretConfig {
5151
}
5252

5353
export interface Secret {
54+
/** UUID of the secret reference within the job. */
5455
secretId: string
56+
/** UUID of the secret in Secret Manager. */
5557
secretManagerId: string
58+
/** Version of the secret in Secret Manager. */
5659
secretManagerVersion: string
57-
/** One-of ('secretConfig'): at most one of 'file', 'envVar' could be set. */
60+
/**
61+
* File secret mounted inside the job.
62+
*
63+
* One-of ('secretConfig'): at most one of 'file', 'envVar' could be set.
64+
*/
5865
file?: SecretFile
59-
/** One-of ('secretConfig'): at most one of 'file', 'envVar' could be set. */
66+
/**
67+
* Environment variable used to expose the secret.
68+
*
69+
* One-of ('secretConfig'): at most one of 'file', 'envVar' could be set.
70+
*/
6071
envVar?: SecretEnvVar
6172
}
6273

@@ -154,13 +165,14 @@ export type CreateJobDefinitionSecretsRequest = {
154165
* config.
155166
*/
156167
region?: Region
157-
/** UUID of the job definition to get. */
168+
/** UUID of the job definition. */
158169
jobDefinitionId: string
159-
/** Secrets to inject into the job. */
170+
/** List of secrets to inject into the job. */
160171
secrets: CreateJobDefinitionSecretsRequestSecretConfig[]
161172
}
162173

163174
export interface CreateJobDefinitionSecretsResponse {
175+
/** List of secrets created. */
164176
secrets: Secret[]
165177
}
166178

@@ -180,7 +192,9 @@ export type DeleteJobDefinitionSecretRequest = {
180192
* config.
181193
*/
182194
region?: Region
195+
/** UUID of the job definition. */
183196
jobDefinitionId: string
197+
/** UUID of the secret reference within the job. */
184198
secretId: string
185199
}
186200

@@ -200,7 +214,9 @@ export type GetJobDefinitionSecretRequest = {
200214
* config.
201215
*/
202216
region?: Region
217+
/** UUID of the job definition. */
203218
jobDefinitionId: string
219+
/** UUID of the secret reference within the job. */
204220
secretId: string
205221
}
206222

@@ -232,11 +248,14 @@ export type ListJobDefinitionSecretsRequest = {
232248
* config.
233249
*/
234250
region?: Region
251+
/** UUID of the job definition. */
235252
jobDefinitionId: string
236253
}
237254

238255
export interface ListJobDefinitionSecretsResponse {
256+
/** List of secret references within a job definition. */
239257
secrets: Secret[]
258+
/** Total count of secret references within a job definition. */
240259
totalCount: number
241260
}
242261

@@ -354,11 +373,24 @@ export type UpdateJobDefinitionSecretRequest = {
354373
* config.
355374
*/
356375
region?: Region
376+
/** UUID of the job definition. */
357377
jobDefinitionId: string
378+
/** UUID of the secret reference within the job. */
358379
secretId: string
380+
/** Version of the secret in Secret Manager. */
359381
secretManagerVersion?: string
360-
/** One-of ('secretConfig'): at most one of 'path', 'envVarName' could be set. */
382+
/**
383+
* Path of the secret to mount inside the job (either `path` or `env_var_name`
384+
* must be set).
385+
*
386+
* One-of ('secretConfig'): at most one of 'path', 'envVarName' could be set.
387+
*/
361388
path?: string
362-
/** One-of ('secretConfig'): at most one of 'path', 'envVarName' could be set. */
389+
/**
390+
* Environment variable name used to expose the secret inside the job (either
391+
* `path` or `env_var_name` must be set).
392+
*
393+
* One-of ('secretConfig'): at most one of 'path', 'envVarName' could be set.
394+
*/
363395
envVarName?: string
364396
}

0 commit comments

Comments
 (0)