@maxim_mazurok/gapi.client.cloudbuild-v1 0.2.20260309 → 0.2.20260602
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.
- package/index.d.ts +49 -3
- package/package.json +1 -1
- package/readme.md +12 -0
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://cloudbuild.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260602
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -59,6 +59,8 @@ declare namespace gapi.client {
|
|
|
59
59
|
location?: string;
|
|
60
60
|
}
|
|
61
61
|
interface Artifacts {
|
|
62
|
+
/** Optional. A list of generic artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. If any artifacts fail to be pushed, the build is marked FAILURE. */
|
|
63
|
+
genericArtifacts?: GenericArtifact[];
|
|
62
64
|
/** Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion of all build steps. If any objects fail to be pushed, the build is marked FAILURE. */
|
|
63
65
|
goModules?: GoModule[];
|
|
64
66
|
/** A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account's credentials. The digests of the pushed images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. */
|
|
@@ -351,6 +353,8 @@ declare namespace gapi.client {
|
|
|
351
353
|
name?: string;
|
|
352
354
|
/** Output only. Stores timing information for pulling this build step's builder image only. */
|
|
353
355
|
pullTiming?: TimeSpan;
|
|
356
|
+
/** Declaration of results for this build step. */
|
|
357
|
+
results?: StepResult[];
|
|
354
358
|
/** A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args. */
|
|
355
359
|
script?: string;
|
|
356
360
|
/** A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`. */
|
|
@@ -376,6 +380,10 @@ declare namespace gapi.client {
|
|
|
376
380
|
/** The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully. */
|
|
377
381
|
waitFor?: string[];
|
|
378
382
|
}
|
|
383
|
+
interface BuildStepResults {
|
|
384
|
+
/** Results for a build step. */
|
|
385
|
+
results?: {[P in string]: string};
|
|
386
|
+
}
|
|
379
387
|
interface BuildTrigger {
|
|
380
388
|
/** Configuration for manual approval to start a build invocation of this BuildTrigger. */
|
|
381
389
|
approvalConfig?: ApprovalConfig;
|
|
@@ -558,6 +566,8 @@ declare namespace gapi.client {
|
|
|
558
566
|
interface Dependency {
|
|
559
567
|
/** If set to true disable all dependency fetching (ignoring the default source as well). */
|
|
560
568
|
empty?: boolean;
|
|
569
|
+
/** Represents a generic artifact as a build dependency. */
|
|
570
|
+
genericArtifact?: GenericArtifactDependency;
|
|
561
571
|
/** Represents a git repository as a build dependency. */
|
|
562
572
|
gitSource?: GitSourceDependency;
|
|
563
573
|
}
|
|
@@ -604,6 +614,18 @@ declare namespace gapi.client {
|
|
|
604
614
|
/** Collection of file hashes. */
|
|
605
615
|
fileHash?: Hash[];
|
|
606
616
|
}
|
|
617
|
+
interface GenericArtifact {
|
|
618
|
+
/** Required. Path to the generic artifact in the build's workspace to be uploaded to Artifact Registry. */
|
|
619
|
+
folder?: string;
|
|
620
|
+
/** Required. Registry path to upload the generic artifact to, in the form projects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/versions/$VERSION */
|
|
621
|
+
registryPath?: string;
|
|
622
|
+
}
|
|
623
|
+
interface GenericArtifactDependency {
|
|
624
|
+
/** Required. Where the artifact files should be placed on the worker. */
|
|
625
|
+
destPath?: string;
|
|
626
|
+
/** Required. The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
|
|
627
|
+
resource?: string;
|
|
628
|
+
}
|
|
607
629
|
interface GitConfig {
|
|
608
630
|
/** Configuration for HTTP related git operations. */
|
|
609
631
|
http?: HttpConfig;
|
|
@@ -832,7 +854,7 @@ declare namespace gapi.client {
|
|
|
832
854
|
/** The HTTP request/response body as raw binary. */
|
|
833
855
|
data?: string;
|
|
834
856
|
/** Application specific response metadata. Must be set in the first response for streaming APIs. */
|
|
835
|
-
extensions?:
|
|
857
|
+
extensions?: {[P in string]: any}[];
|
|
836
858
|
}
|
|
837
859
|
interface HttpConfig {
|
|
838
860
|
/** SecretVersion resource of the HTTP proxy URL. The Service Account used in the build (either the default Service Account or user-specified Service Account) should have `secretmanager.versions.access` permissions on this secret. The proxy URL should be in format `protocol://@]proxyhost[:port]`. */
|
|
@@ -1077,6 +1099,10 @@ declare namespace gapi.client {
|
|
|
1077
1099
|
buildStepImages?: string[];
|
|
1078
1100
|
/** List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can't be substituted. */
|
|
1079
1101
|
buildStepOutputs?: string[];
|
|
1102
|
+
/** Results for build steps. step_id -> */
|
|
1103
|
+
buildStepResults?: {[P in string]: BuildStepResults};
|
|
1104
|
+
/** Output only. Generic artifacts uploaded to Artifact Registry at the end of the build. */
|
|
1105
|
+
genericArtifacts?: UploadedGenericArtifact[];
|
|
1080
1106
|
/** Optional. Go module artifacts uploaded to Artifact Registry at the end of the build. */
|
|
1081
1107
|
goModules?: UploadedGoModule[];
|
|
1082
1108
|
/** Container images that were built as a part of the build. */
|
|
@@ -1160,10 +1186,18 @@ declare namespace gapi.client {
|
|
|
1160
1186
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
1161
1187
|
code?: number;
|
|
1162
1188
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
1163
|
-
details?:
|
|
1189
|
+
details?: {[P in string]: any}[];
|
|
1164
1190
|
/** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
|
|
1165
1191
|
message?: string;
|
|
1166
1192
|
}
|
|
1193
|
+
interface StepResult {
|
|
1194
|
+
/** Optional. The content of the attestation to be generated. */
|
|
1195
|
+
attestationContent?: string;
|
|
1196
|
+
/** Optional. The type of attestation to be generated. */
|
|
1197
|
+
attestationType?: string;
|
|
1198
|
+
/** Required. The name of the result. */
|
|
1199
|
+
name?: string;
|
|
1200
|
+
}
|
|
1167
1201
|
interface StorageSource {
|
|
1168
1202
|
/** Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). */
|
|
1169
1203
|
bucket?: string;
|
|
@@ -1220,6 +1254,18 @@ declare namespace gapi.client {
|
|
|
1220
1254
|
/** The resource name of the `WorkerPool` being updated. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`. */
|
|
1221
1255
|
workerPool?: string;
|
|
1222
1256
|
}
|
|
1257
|
+
interface UploadedGenericArtifact {
|
|
1258
|
+
/** Output only. The hash of the whole artifact. */
|
|
1259
|
+
artifactFingerprint?: FileHashes;
|
|
1260
|
+
/** Output only. Path to the artifact in Artifact Registry. */
|
|
1261
|
+
artifactRegistryPackage?: string;
|
|
1262
|
+
/** Output only. The file hashes that make up the generic artifact. */
|
|
1263
|
+
fileHashes?: {[P in string]: FileHashes};
|
|
1264
|
+
/** Output only. Stores timing information for pushing the specified artifact. */
|
|
1265
|
+
pushTiming?: TimeSpan;
|
|
1266
|
+
/** Output only. URI of the uploaded artifact. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
|
|
1267
|
+
uri?: string;
|
|
1268
|
+
}
|
|
1223
1269
|
interface UploadedGoModule {
|
|
1224
1270
|
/** Output only. Path to the artifact in Artifact Registry. */
|
|
1225
1271
|
artifactRegistryPackage?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,18 @@ Install typings for Cloud Build API:
|
|
|
11
11
|
npm install @types/gapi.client.cloudbuild-v1 --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.cloudbuild-v1"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
14
26
|
## Usage
|
|
15
27
|
|
|
16
28
|
You need to initialize Google API client in your code:
|