@schemastore/cloudbuild 0.0.2 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/index.d.ts +191 -168
  4. package/package.json +3 -3
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Florian Keller. All rights reserved.
3
+ Copyright (c) Florian Imdahl. All rights reserved.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -8,5 +8,5 @@ This package contains type definitions for cloudbuild.
8
8
  Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/cloudbuild.
9
9
 
10
10
  ## Additional Details
11
- * Last updated: Sat, Jul 04, 2020, 11:00:04 GMT
11
+ * Last updated: Mon, Jan 23, 2023, 19:39:42 GMT
12
12
  * Dependencies: none
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* tslint:disable */
1
+ /* eslint-disable */
2
2
  /**
3
3
  * This file was automatically generated by json-schema-to-typescript.
4
4
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
@@ -59,173 +59,9 @@ export interface GoogleCloudBuildBuildConfigFile {
59
59
  * `FAILURE`.
60
60
  */
61
61
  images?: string[];
62
- /**
63
- * Special options for this build.
64
- */
65
- options?: {
66
- /**
67
- * Compute Engine machine type on which to run the build.
68
- */
69
- machineType?: "UNSPECIFIED" | "N1_HIGHCPU_8" | "N1_HIGHCPU_32";
70
- /**
71
- * Global list of volumes to mount for ALL build steps
72
- *
73
- * Each volume is created as an empty volume prior to starting the build
74
- * process. Upon completion of the build, volumes and their contents are
75
- * discarded. Global volume names and paths cannot conflict with the volumes
76
- * defined a build step.
77
- *
78
- * Using a global volume in a build with only one step is not valid as
79
- * it is indicative of a build request with an incorrect configuration.
80
- */
81
- volumes?: Volume[];
82
- /**
83
- * Option to define build log streaming behavior to Google Cloud
84
- * Storage.
85
- */
86
- logStreamingOption?: "STREAM_DEFAULT" | "STREAM_ON" | "STREAM_OFF";
87
- /**
88
- * Option to specify a `WorkerPool` for the build. User specifies the pool
89
- * with the format "[WORKERPOOL_PROJECT_ID]/[WORKERPOOL_NAME]".
90
- * This is an experimental field.
91
- */
92
- workerPool?: string;
93
- /**
94
- * A list of global environment variable definitions that will exist for all
95
- * build steps in this build. If a variable is defined in both globally and in
96
- * a build step, the variable will use the build step value.
97
- *
98
- * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
99
- * being given the value "VALUE".
100
- */
101
- env?: string[];
102
- /**
103
- * Option to specify the logging mode, which determines where the logs are
104
- * stored.
105
- */
106
- logging?: "LOGGING_UNSPECIFIED" | "LEGACY" | "GCS_ONLY";
107
- /**
108
- * Requested verifiability options.
109
- */
110
- requestedVerifyOption?: "NOT_VERIFIED" | "VERIFIED";
111
- /**
112
- * Option to specify behavior when there is an error in the substitution
113
- * checks.
114
- */
115
- substitutionOption?: "MUST_MATCH" | "ALLOW_LOOSE";
116
- /**
117
- * Requested disk size for the VM that runs the build. Note that this is *NOT*
118
- * "disk free"; some of the space will be used by the operating system and
119
- * build utilities. Also note that this is the minimum disk size that will be
120
- * allocated for the build -- the build may run with a larger disk than
121
- * requested. At present, the maximum disk size is 1000GB; builds that request
122
- * more than the maximum are rejected with an error.
123
- */
124
- diskSizeGb?: string;
125
- /**
126
- * A list of global environment variables, which are encrypted using a Cloud
127
- * Key Management Service crypto key. These values must be specified in the
128
- * build's `Secret`. These variables will be available to all build steps
129
- * in this build.
130
- */
131
- secretEnv?: string[];
132
- /**
133
- * Requested hash for SourceProvenance.
134
- */
135
- sourceProvenanceHash?: ("NONE" | "SHA256" | "MD5")[];
136
- [k: string]: unknown;
137
- };
138
- /**
139
- * The location of the source files to build.
140
- */
141
- source?: {
142
- storageSource?: StorageSource;
143
- /**
144
- * If provided, get the source from this location in a Cloud Source
145
- * Repository.
146
- */
147
- repoSource?: {
148
- /**
149
- * Name of the tag to build.
150
- */
151
- tagName?: string;
152
- /**
153
- * ID of the project that owns the Cloud Source Repository. If omitted, the
154
- * project ID requesting the build is assumed.
155
- */
156
- projectId?: string;
157
- /**
158
- * Name of the Cloud Source Repository. If omitted, the name "default" is
159
- * assumed.
160
- */
161
- repoName?: string;
162
- /**
163
- * Explicit commit SHA to build.
164
- */
165
- commitSha?: string;
166
- /**
167
- * Directory, relative to the source root, in which to run the build.
168
- *
169
- * This must be a relative path. If a step's `dir` is specified and is an
170
- * absolute path, this value is ignored for that step's execution.
171
- */
172
- dir?: string;
173
- /**
174
- * Name of the branch to build.
175
- */
176
- branchName?: string;
177
- [k: string]: unknown;
178
- };
179
- [k: string]: unknown;
180
- };
181
- /**
182
- * Artifacts produced by the build that should be uploaded upon
183
- * successful completion of all build steps.
184
- */
185
- artifacts?: {
186
- /**
187
- * A list of objects to be uploaded to Cloud Storage upon successful
188
- * completion of all build steps.
189
- *
190
- * Files in the workspace matching specified paths globs will be uploaded to
191
- * the specified Cloud Storage location using the builder service account's
192
- * credentials.
193
- *
194
- * The location and generation of the uploaded objects will be stored in the
195
- * Build resource's results field.
196
- *
197
- * If any objects fail to be pushed, the build is marked FAILURE.
198
- */
199
- objects?: {
200
- /**
201
- * Cloud Storage bucket and optional object path, in the form
202
- * "gs://bucket/path/to/somewhere/". (see [Bucket Name
203
- * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
204
- *
205
- * Files in the workspace matching any path pattern will be uploaded to
206
- * Cloud Storage with this location as a prefix.
207
- */
208
- location?: string;
209
- /**
210
- * Path globs used to match files in the build's workspace.
211
- */
212
- paths?: string[];
213
- [k: string]: unknown;
214
- };
215
- /**
216
- * A list of images to be pushed upon the successful completion of all build
217
- * steps.
218
- *
219
- * The images will be pushed using the builder service account's credentials.
220
- *
221
- * The digests of the pushed images will be stored in the Build resource's
222
- * results field.
223
- *
224
- * If any of the images fail to be pushed, the build is marked FAILURE.
225
- */
226
- images?: string[];
227
- [k: string]: unknown;
228
- };
62
+ options?: BuildOptions;
63
+ source?: Source;
64
+ artifacts?: Artifacts;
229
65
  /**
230
66
  * Amount of time that this build should be allowed to run, to second
231
67
  * granularity. If this amount of time elapses, work on the build will cease
@@ -357,6 +193,108 @@ export interface Volume {
357
193
  path?: string;
358
194
  [k: string]: unknown;
359
195
  }
196
+ /**
197
+ * Special options for this build.
198
+ */
199
+ export interface BuildOptions {
200
+ /**
201
+ * Compute Engine machine type on which to run the build.
202
+ */
203
+ machineType?:
204
+ | "E2_HIGHCPU_2"
205
+ | "E2_HIGHCPU_4"
206
+ | "E2_HIGHCPU_8"
207
+ | "E2_HIGHCPU_16"
208
+ | "E2_HIGHCPU_32"
209
+ | "E2_HIGHMEM_2"
210
+ | "E2_HIGHMEM_4"
211
+ | "E2_HIGHMEM_8"
212
+ | "E2_HIGHMEM_16"
213
+ | "E2_MEDIUM"
214
+ | "E2_STANDARD_2"
215
+ | "E2_STANDARD_4"
216
+ | "E2_STANDARD_8"
217
+ | "E2_STANDARD_16"
218
+ | "E2_STANDARD_32"
219
+ | "N1_HIGHCPU_8"
220
+ | "N1_HIGHCPU_32"
221
+ | "UNSPECIFIED";
222
+ /**
223
+ * Global list of volumes to mount for ALL build steps
224
+ *
225
+ * Each volume is created as an empty volume prior to starting the build
226
+ * process. Upon completion of the build, volumes and their contents are
227
+ * discarded. Global volume names and paths cannot conflict with the volumes
228
+ * defined a build step.
229
+ *
230
+ * Using a global volume in a build with only one step is not valid as
231
+ * it is indicative of a build request with an incorrect configuration.
232
+ */
233
+ volumes?: Volume[];
234
+ /**
235
+ * Option to define build log streaming behavior to Google Cloud
236
+ * Storage.
237
+ */
238
+ logStreamingOption?: "STREAM_DEFAULT" | "STREAM_ON" | "STREAM_OFF";
239
+ /**
240
+ * Option to specify a `WorkerPool` for the build. User specifies the pool
241
+ * with the format "[WORKERPOOL_PROJECT_ID]/[WORKERPOOL_NAME]".
242
+ * This is an experimental field.
243
+ */
244
+ workerPool?: string;
245
+ /**
246
+ * A list of global environment variable definitions that will exist for all
247
+ * build steps in this build. If a variable is defined in both globally and in
248
+ * a build step, the variable will use the build step value.
249
+ *
250
+ * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
251
+ * being given the value "VALUE".
252
+ */
253
+ env?: string[];
254
+ /**
255
+ * Option to specify the logging mode, which determines where the logs are
256
+ * stored.
257
+ */
258
+ logging?: "LOGGING_UNSPECIFIED" | "LEGACY" | "GCS_ONLY" | "CLOUD_LOGGING_ONLY" | "NONE";
259
+ /**
260
+ * Requested verifiability options.
261
+ */
262
+ requestedVerifyOption?: "NOT_VERIFIED" | "VERIFIED";
263
+ /**
264
+ * Option to specify behavior when there is an error in the substitution
265
+ * checks.
266
+ */
267
+ substitutionOption?: "MUST_MATCH" | "ALLOW_LOOSE";
268
+ /**
269
+ * Requested disk size for the VM that runs the build. Note that this is *NOT*
270
+ * "disk free"; some of the space will be used by the operating system and
271
+ * build utilities. Also note that this is the minimum disk size that will be
272
+ * allocated for the build -- the build may run with a larger disk than
273
+ * requested. At present, the maximum disk size is 1000GB; builds that request
274
+ * more than the maximum are rejected with an error.
275
+ */
276
+ diskSizeGb?: string;
277
+ /**
278
+ * A list of global environment variables, which are encrypted using a Cloud
279
+ * Key Management Service crypto key. These values must be specified in the
280
+ * build's `Secret`. These variables will be available to all build steps
281
+ * in this build.
282
+ */
283
+ secretEnv?: string[];
284
+ /**
285
+ * Requested hash for SourceProvenance.
286
+ */
287
+ sourceProvenanceHash?: ("NONE" | "SHA256" | "MD5")[];
288
+ [k: string]: unknown;
289
+ }
290
+ /**
291
+ * The location of the source files to build.
292
+ */
293
+ export interface Source {
294
+ storageSource?: StorageSource;
295
+ repoSource?: RepoSource;
296
+ [k: string]: unknown;
297
+ }
360
298
  /**
361
299
  * If provided, get the source from this location in Google Cloud Storage.
362
300
  */
@@ -381,6 +319,91 @@ export interface StorageSource {
381
319
  object?: string;
382
320
  [k: string]: unknown;
383
321
  }
322
+ /**
323
+ * If provided, get the source from this location in a Cloud Source
324
+ * Repository.
325
+ */
326
+ export interface RepoSource {
327
+ /**
328
+ * Name of the tag to build.
329
+ */
330
+ tagName?: string;
331
+ /**
332
+ * ID of the project that owns the Cloud Source Repository. If omitted, the
333
+ * project ID requesting the build is assumed.
334
+ */
335
+ projectId?: string;
336
+ /**
337
+ * Name of the Cloud Source Repository. If omitted, the name "default" is
338
+ * assumed.
339
+ */
340
+ repoName?: string;
341
+ /**
342
+ * Explicit commit SHA to build.
343
+ */
344
+ commitSha?: string;
345
+ /**
346
+ * Directory, relative to the source root, in which to run the build.
347
+ *
348
+ * This must be a relative path. If a step's `dir` is specified and is an
349
+ * absolute path, this value is ignored for that step's execution.
350
+ */
351
+ dir?: string;
352
+ /**
353
+ * Name of the branch to build.
354
+ */
355
+ branchName?: string;
356
+ [k: string]: unknown;
357
+ }
358
+ /**
359
+ * Artifacts produced by the build that should be uploaded upon
360
+ * successful completion of all build steps.
361
+ */
362
+ export interface Artifacts {
363
+ objects?: ArtifactObjects;
364
+ /**
365
+ * A list of images to be pushed upon the successful completion of all build
366
+ * steps.
367
+ *
368
+ * The images will be pushed using the builder service account's credentials.
369
+ *
370
+ * The digests of the pushed images will be stored in the Build resource's
371
+ * results field.
372
+ *
373
+ * If any of the images fail to be pushed, the build is marked FAILURE.
374
+ */
375
+ images?: string[];
376
+ [k: string]: unknown;
377
+ }
378
+ /**
379
+ * A list of objects to be uploaded to Cloud Storage upon successful
380
+ * completion of all build steps.
381
+ *
382
+ * Files in the workspace matching specified paths globs will be uploaded to
383
+ * the specified Cloud Storage location using the builder service account's
384
+ * credentials.
385
+ *
386
+ * The location and generation of the uploaded objects will be stored in the
387
+ * Build resource's results field.
388
+ *
389
+ * If any objects fail to be pushed, the build is marked FAILURE.
390
+ */
391
+ export interface ArtifactObjects {
392
+ /**
393
+ * Cloud Storage bucket and optional object path, in the form
394
+ * "gs://bucket/path/to/somewhere/". (see [Bucket Name
395
+ * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
396
+ *
397
+ * Files in the workspace matching any path pattern will be uploaded to
398
+ * Cloud Storage with this location as a prefix.
399
+ */
400
+ location?: string;
401
+ /**
402
+ * Path globs used to match files in the build's workspace.
403
+ */
404
+ paths?: string[];
405
+ [k: string]: unknown;
406
+ }
384
407
  /**
385
408
  * Pairs a set of secret environment variables containing encrypted
386
409
  * values with the Cloud KMS key to use to decrypt the value.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "author": "Florian Keller <github@floriankeller.de>",
2
+ "author": "Florian Imdahl <git@ffflorian.de>",
3
3
  "dependencies": {},
4
4
  "description": "TypeScript definitions for cloudbuild.",
5
5
  "license": "MIT",
@@ -7,8 +7,8 @@
7
7
  "name": "@schemastore/cloudbuild",
8
8
  "repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/cloudbuild",
9
9
  "scripts": {},
10
- "typesPublisherContentHash": "f34346452b14c907f71fcc3f926aa1b4eedb0daada291e319151d3fe2891d337",
10
+ "typesPublisherContentHash": "778f15989f2ad6fddffdd9d41c6a8b3fd071ee4f5c15fbddd99f02f7a6d1f29a",
11
11
  "types": "index.d.ts",
12
- "version": "0.0.2",
12
+ "version": "0.0.7",
13
13
  "typeScriptVersion": "2.2"
14
14
  }