@maxim_mazurok/gapi.client.cloudbuild-v1 0.3.20260923 → 0.3.20261025
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 +41 -15
- package/package.json +1 -1
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: 20261025
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -292,8 +292,14 @@ declare namespace gapi.client {
|
|
|
292
292
|
pool?: PoolOption;
|
|
293
293
|
/** Optional. Option to specify the Pub/Sub topic to receive build status updates. */
|
|
294
294
|
pubsubTopic?: string;
|
|
295
|
+
/** Optional. Ranked list (earlier items have higher priority) of Machine Series to consider when provisioning Worker VMs. A concrete machine type will be selected based on machine availability in the given region. This field must be empty for the Build to be eligible to be paired with a pre-provisioned worker VM. */
|
|
296
|
+
rankedMachineSeries?:
|
|
297
|
+
| 'MACHINE_SERIES_UNSPECIFIED'
|
|
298
|
+
| 'MACHINE_SERIES_E'
|
|
299
|
+
| 'MACHINE_SERIES_N'
|
|
300
|
+
| 'MACHINE_SERIES_C'[];
|
|
295
301
|
/** Requested verifiability options. */
|
|
296
|
-
requestedVerifyOption?: 'NOT_VERIFIED' | 'VERIFIED';
|
|
302
|
+
requestedVerifyOption?: 'NOT_VERIFIED' | 'VERIFIED' | 'BEST_EFFORT';
|
|
297
303
|
/** Output only. Worker release resolved from the release channel. */
|
|
298
304
|
resolvedWorkerRelease?: string;
|
|
299
305
|
/** A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`. These variables will be available to all build steps in this build. */
|
|
@@ -315,6 +321,18 @@ declare namespace gapi.client {
|
|
|
315
321
|
/** Optional. Option to specify which release or release channel (rapid|regular|stable) to use to run this build. */
|
|
316
322
|
workerRelease?: string;
|
|
317
323
|
}
|
|
324
|
+
interface BuildResourceUsage {
|
|
325
|
+
/** Output only. The average CPU utilization ratio across all vCPUs over the duration of the build, expressed as a fraction in the range [0.0, 1.0]. */
|
|
326
|
+
averageCpuUtilization?: number;
|
|
327
|
+
/** Output only. The average memory utilization ratio over the duration of the build, expressed as a fraction in the range [0.0, 1.0]. */
|
|
328
|
+
averageMemoryUtilization?: number;
|
|
329
|
+
/** Output only. The highest CPU utilization ratio across all vCPUs observed over the duration of the build, expressed as a fraction in the range [0.0, 1.0]. */
|
|
330
|
+
peakCpuUtilization?: number;
|
|
331
|
+
/** Output only. The highest memory utilization ratio observed over the duration of the build, expressed as a fraction in the range [0.0, 1.0]. */
|
|
332
|
+
peakMemoryUtilization?: number;
|
|
333
|
+
/** Output only. Total CPU execution time consumed across all cores during build execution. */
|
|
334
|
+
totalCpuDuration?: string;
|
|
335
|
+
}
|
|
318
336
|
interface BuildStep {
|
|
319
337
|
/** Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence. */
|
|
320
338
|
allowExitCodes?: number[];
|
|
@@ -575,7 +593,7 @@ declare namespace gapi.client {
|
|
|
575
593
|
registryPath?: string;
|
|
576
594
|
}
|
|
577
595
|
interface GenericArtifactDependency {
|
|
578
|
-
/**
|
|
596
|
+
/** Optional. Where the artifact files should be placed on the worker. Required when specified in `Build.dependencies`. */
|
|
579
597
|
destPath?: string;
|
|
580
598
|
/** Required. The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
|
|
581
599
|
resource?: string;
|
|
@@ -980,6 +998,8 @@ declare namespace gapi.client {
|
|
|
980
998
|
numArtifacts?: string;
|
|
981
999
|
/** Python artifacts uploaded to Artifact Registry at the end of the build. */
|
|
982
1000
|
pythonPackages?: UploadedPythonPackage[];
|
|
1001
|
+
/** Output only. Aggregated metrics for the build. */
|
|
1002
|
+
resourceUsage?: BuildResourceUsage;
|
|
983
1003
|
}
|
|
984
1004
|
interface RetryBuildRequest {
|
|
985
1005
|
/** Required. Build ID of the original build. */
|
|
@@ -1184,6 +1204,12 @@ declare namespace gapi.client {
|
|
|
1184
1204
|
enableNestedVirtualization?: boolean;
|
|
1185
1205
|
/** Optional. Machine type of a worker, such as `e2-medium`. See [Worker pool config file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). If left blank, Cloud Build will use a sensible default. */
|
|
1186
1206
|
machineType?: string;
|
|
1207
|
+
/** Optional. Ranked list (earlier items have higher priority) of Machine Series to consider when provisioning Worker VMs. A concrete machine type will be selected based on machine availability in the given region. */
|
|
1208
|
+
rankedMachineSeries?:
|
|
1209
|
+
| 'MACHINE_SERIES_UNSPECIFIED'
|
|
1210
|
+
| 'MACHINE_SERIES_E'
|
|
1211
|
+
| 'MACHINE_SERIES_N'
|
|
1212
|
+
| 'MACHINE_SERIES_C'[];
|
|
1187
1213
|
/** Optional. Option to specify which release or release channel (rapid|regular|stable) to use to run this build. */
|
|
1188
1214
|
workerRelease?: string;
|
|
1189
1215
|
}
|
|
@@ -1427,7 +1453,7 @@ declare namespace gapi.client {
|
|
|
1427
1453
|
}): Request<Operation>;
|
|
1428
1454
|
}
|
|
1429
1455
|
interface BuildsResource {
|
|
1430
|
-
/** Approves or rejects a pending build. If approved, the returned long-running operation (LRO) will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done. */
|
|
1456
|
+
/** Approves or rejects a pending build. If approved, the returned long-running operation (LRO) will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done. Note: This method only approves or rejects builds in the "global" region when using the legacy resource path projects/{project_id}/builds/{id}:approve. For all regions, use the regional resource path: `projects/{project_id}/locations/{location}/builds/{id}:approve`. */
|
|
1431
1457
|
approve(request: {
|
|
1432
1458
|
/** V1 error format. */
|
|
1433
1459
|
'$.xgafv'?: '1' | '2';
|
|
@@ -2324,7 +2350,7 @@ declare namespace gapi.client {
|
|
|
2324
2350
|
repos: ReposResource;
|
|
2325
2351
|
}
|
|
2326
2352
|
interface BuildsResource {
|
|
2327
|
-
/** Approves or rejects a pending build. If approved, the returned long-running operation (LRO) will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done. */
|
|
2353
|
+
/** Approves or rejects a pending build. If approved, the returned long-running operation (LRO) will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done. Note: This method only approves or rejects builds in the "global" region when using the legacy resource path projects/{project_id}/builds/{id}:approve. For all regions, use the regional resource path: `projects/{project_id}/locations/{location}/builds/{id}:approve`. */
|
|
2328
2354
|
approve(request: {
|
|
2329
2355
|
/** V1 error format. */
|
|
2330
2356
|
'$.xgafv'?: '1' | '2';
|
|
@@ -2936,7 +2962,7 @@ declare namespace gapi.client {
|
|
|
2936
2962
|
}): Request<Operation>;
|
|
2937
2963
|
}
|
|
2938
2964
|
interface TriggersResource {
|
|
2939
|
-
/** Creates a new `BuildTrigger`. */
|
|
2965
|
+
/** Creates a new `BuildTrigger`. Note: This method only creates triggers in the "global" region when using the legacy resource path projects/{project_id}/triggers. For all regions, use the regional resource path: `projects/{project_id}/locations/{location}/triggers`. */
|
|
2940
2966
|
create(request: {
|
|
2941
2967
|
/** V1 error format. */
|
|
2942
2968
|
'$.xgafv'?: '1' | '2';
|
|
@@ -2998,7 +3024,7 @@ declare namespace gapi.client {
|
|
|
2998
3024
|
},
|
|
2999
3025
|
body: BuildTrigger,
|
|
3000
3026
|
): Request<BuildTrigger>;
|
|
3001
|
-
/** Deletes a `BuildTrigger` by its project ID and trigger ID. */
|
|
3027
|
+
/** Deletes a `BuildTrigger` by its project ID and trigger ID. Note: This method only deletes triggers in the "global" region when using the legacy resource path projects/{project_id}/triggers/{trigger_id}. For all regions, use the regional resource path: `projects/{project_id}/locations/{location}/triggers/{trigger_id}`. */
|
|
3002
3028
|
delete(request?: {
|
|
3003
3029
|
/** V1 error format. */
|
|
3004
3030
|
'$.xgafv'?: '1' | '2';
|
|
@@ -3029,7 +3055,7 @@ declare namespace gapi.client {
|
|
|
3029
3055
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3030
3056
|
uploadType?: string;
|
|
3031
3057
|
}): Request<{}>;
|
|
3032
|
-
/** Returns information about a `BuildTrigger`. */
|
|
3058
|
+
/** Returns information about a `BuildTrigger`. Note: This method only gets triggers in the "global" region when using the legacy resource path projects/{project_id}/triggers/{trigger_id}. For all regions, use the regional resource path: `projects/{project_id}/locations/{location}/triggers/{trigger_id}`. */
|
|
3033
3059
|
get(request?: {
|
|
3034
3060
|
/** V1 error format. */
|
|
3035
3061
|
'$.xgafv'?: '1' | '2';
|
|
@@ -3060,7 +3086,7 @@ declare namespace gapi.client {
|
|
|
3060
3086
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3061
3087
|
uploadType?: string;
|
|
3062
3088
|
}): Request<BuildTrigger>;
|
|
3063
|
-
/** Lists existing `BuildTrigger`s. */
|
|
3089
|
+
/** Lists existing `BuildTrigger`s. Note: This method only lists triggers in the "global" region when using the legacy resource path projects/{project_id}/triggers. For all regions, use the regional resource path: `projects/{project_id}/locations/{location}/triggers`. */
|
|
3064
3090
|
list(request?: {
|
|
3065
3091
|
/** V1 error format. */
|
|
3066
3092
|
'$.xgafv'?: '1' | '2';
|
|
@@ -3093,7 +3119,7 @@ declare namespace gapi.client {
|
|
|
3093
3119
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3094
3120
|
uploadType?: string;
|
|
3095
3121
|
}): Request<ListBuildTriggersResponse>;
|
|
3096
|
-
/** Updates a `BuildTrigger` by its project ID and trigger ID. */
|
|
3122
|
+
/** Updates a `BuildTrigger` by its project ID and trigger ID. Note: This method only updates triggers in the "global" region when using the legacy resource path projects/{project_id}/triggers/{trigger_id}. For all regions, use the regional resource path: `projects/{project_id}/locations/{location}/triggers/{trigger_id}`. */
|
|
3097
3123
|
patch(request: {
|
|
3098
3124
|
/** V1 error format. */
|
|
3099
3125
|
'$.xgafv'?: '1' | '2';
|
|
@@ -3553,7 +3579,7 @@ declare namespace gapi.client {
|
|
|
3553
3579
|
workerPools: WorkerPoolsResource;
|
|
3554
3580
|
}
|
|
3555
3581
|
interface TriggersResource {
|
|
3556
|
-
/** Creates a new `BuildTrigger`. */
|
|
3582
|
+
/** Creates a new `BuildTrigger`. Note: This method only creates triggers in the "global" region when using the legacy resource path projects/{project_id}/triggers. For all regions, use the regional resource path: `projects/{project_id}/locations/{location}/triggers`. */
|
|
3557
3583
|
create(request: {
|
|
3558
3584
|
/** V1 error format. */
|
|
3559
3585
|
'$.xgafv'?: '1' | '2';
|
|
@@ -3615,7 +3641,7 @@ declare namespace gapi.client {
|
|
|
3615
3641
|
},
|
|
3616
3642
|
body: BuildTrigger,
|
|
3617
3643
|
): Request<BuildTrigger>;
|
|
3618
|
-
/** Deletes a `BuildTrigger` by its project ID and trigger ID. */
|
|
3644
|
+
/** Deletes a `BuildTrigger` by its project ID and trigger ID. Note: This method only deletes triggers in the "global" region when using the legacy resource path projects/{project_id}/triggers/{trigger_id}. For all regions, use the regional resource path: `projects/{project_id}/locations/{location}/triggers/{trigger_id}`. */
|
|
3619
3645
|
delete(request?: {
|
|
3620
3646
|
/** V1 error format. */
|
|
3621
3647
|
'$.xgafv'?: '1' | '2';
|
|
@@ -3646,7 +3672,7 @@ declare namespace gapi.client {
|
|
|
3646
3672
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3647
3673
|
uploadType?: string;
|
|
3648
3674
|
}): Request<{}>;
|
|
3649
|
-
/** Returns information about a `BuildTrigger`. */
|
|
3675
|
+
/** Returns information about a `BuildTrigger`. Note: This method only gets triggers in the "global" region when using the legacy resource path projects/{project_id}/triggers/{trigger_id}. For all regions, use the regional resource path: `projects/{project_id}/locations/{location}/triggers/{trigger_id}`. */
|
|
3650
3676
|
get(request?: {
|
|
3651
3677
|
/** V1 error format. */
|
|
3652
3678
|
'$.xgafv'?: '1' | '2';
|
|
@@ -3677,7 +3703,7 @@ declare namespace gapi.client {
|
|
|
3677
3703
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3678
3704
|
uploadType?: string;
|
|
3679
3705
|
}): Request<BuildTrigger>;
|
|
3680
|
-
/** Lists existing `BuildTrigger`s. */
|
|
3706
|
+
/** Lists existing `BuildTrigger`s. Note: This method only lists triggers in the "global" region when using the legacy resource path projects/{project_id}/triggers. For all regions, use the regional resource path: `projects/{project_id}/locations/{location}/triggers`. */
|
|
3681
3707
|
list(request?: {
|
|
3682
3708
|
/** V1 error format. */
|
|
3683
3709
|
'$.xgafv'?: '1' | '2';
|
|
@@ -3710,7 +3736,7 @@ declare namespace gapi.client {
|
|
|
3710
3736
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3711
3737
|
uploadType?: string;
|
|
3712
3738
|
}): Request<ListBuildTriggersResponse>;
|
|
3713
|
-
/** Updates a `BuildTrigger` by its project ID and trigger ID. */
|
|
3739
|
+
/** Updates a `BuildTrigger` by its project ID and trigger ID. Note: This method only updates triggers in the "global" region when using the legacy resource path projects/{project_id}/triggers/{trigger_id}. For all regions, use the regional resource path: `projects/{project_id}/locations/{location}/triggers/{trigger_id}`. */
|
|
3714
3740
|
patch(request: {
|
|
3715
3741
|
/** V1 error format. */
|
|
3716
3742
|
'$.xgafv'?: '1' | '2';
|