@maxim_mazurok/gapi.client.containeranalysis-v1alpha1 0.0.20250103 → 0.0.20250129

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 (3) hide show
  1. package/index.d.ts +49 -21
  2. package/package.json +1 -1
  3. package/readme.md +2 -2
package/index.d.ts CHANGED
@@ -9,14 +9,14 @@
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://containeranalysis.googleapis.com/$discovery/rest?version=v1alpha1
12
- // Revision: 20250103
12
+ // Revision: 20250129
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
17
  /** Load Container Analysis API v1alpha1 */
18
18
  function load(
19
- urlOrObject: 'https://containeranalysis.googleapis.com/$discovery/rest?version=v1alpha1'
19
+ urlOrObject: 'https://containeranalysis.googleapis.com/$discovery/rest?version=v1alpha1',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'containeranalysis', version: 'v1alpha1'): Promise<void>;
@@ -24,7 +24,7 @@ declare namespace gapi.client {
24
24
  function load(
25
25
  name: 'containeranalysis',
26
26
  version: 'v1alpha1',
27
- callback: () => any
27
+ callback: () => any,
28
28
  ): void;
29
29
 
30
30
  namespace containeranalysis {
@@ -273,6 +273,8 @@ declare namespace gapi.client {
273
273
  url?: string;
274
274
  }
275
275
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts {
276
+ /** 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. */
277
+ goModules?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule[];
276
278
  /** 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. */
277
279
  images?: string[];
278
280
  /** A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. */
@@ -292,6 +294,20 @@ declare namespace gapi.client {
292
294
  /** Output only. Stores timing information for pushing all artifact objects. */
293
295
  timing?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
294
296
  }
297
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule {
298
+ /** Optional. The Go module's "module path". e.g. example.com/foo/v2 */
299
+ modulePath?: string;
300
+ /** Optional. The Go module's semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release identifiers can also be added by appending a dash and dot separated ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5 */
301
+ moduleVersion?: string;
302
+ /** Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s location. */
303
+ repositoryLocation?: string;
304
+ /** Optional. Artifact Registry repository name. Specified Go modules will be zipped and uploaded to Artifact Registry with this location as a prefix. e.g. my-go-repo */
305
+ repositoryName?: string;
306
+ /** Optional. Project ID of the Artifact Registry repository. Defaults to the build project. */
307
+ repositoryProjectId?: string;
308
+ /** Optional. Source path of the go.mod file in the build's workspace. If not specified, this will default to the current directory. e.g. ~/code/go/mypackage */
309
+ sourcePath?: string;
310
+ }
295
311
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact {
296
312
  /** Maven `artifactId` value used when uploading the artifact to Artifact Registry. */
297
313
  artifactId?: string;
@@ -403,6 +419,8 @@ declare namespace gapi.client {
403
419
  diskSizeGb?: string;
404
420
  /** Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file. */
405
421
  dynamicSubstitutions?: boolean;
422
+ /** Optional. Option to specify whether structured logging is enabled. If true, JSON-formatted logs are parsed as structured logs. */
423
+ enableStructuredLogging?: boolean;
406
424
  /** A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE". */
407
425
  env?: string[];
408
426
  /** Option to specify the logging mode, which determines if and where build logs are stored. */
@@ -557,6 +575,8 @@ declare namespace gapi.client {
557
575
  buildStepImages?: string[];
558
576
  /** 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. */
559
577
  buildStepOutputs?: string[];
578
+ /** Optional. Go module artifacts uploaded to Artifact Registry at the end of the build. */
579
+ goModules?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule[];
560
580
  /** Container images that were built as a part of the build. */
561
581
  images?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage[];
562
582
  /** Maven artifacts uploaded to Artifact Registry at the end of the build. */
@@ -640,6 +660,14 @@ declare namespace gapi.client {
640
660
  /** Start of time span. */
641
661
  startTime?: string;
642
662
  }
663
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule {
664
+ /** Hash types and values of the Go Module Artifact. */
665
+ fileHashes?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
666
+ /** Output only. Stores timing information for pushing the specified artifact. */
667
+ pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
668
+ /** URI of the uploaded artifact. */
669
+ uri?: string;
670
+ }
643
671
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact {
644
672
  /** Hash types and values of the Maven Artifact. */
645
673
  fileHashes?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
@@ -1904,7 +1932,7 @@ declare namespace gapi.client {
1904
1932
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1905
1933
  uploadType?: string;
1906
1934
  },
1907
- body: Note
1935
+ body: Note,
1908
1936
  ): Request<Note>;
1909
1937
  /** Deletes the given `Note` from the system. */
1910
1938
  delete(request?: {
@@ -1988,7 +2016,7 @@ declare namespace gapi.client {
1988
2016
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1989
2017
  uploadType?: string;
1990
2018
  },
1991
- body: GetIamPolicyRequest
2019
+ body: GetIamPolicyRequest,
1992
2020
  ): Request<Policy>;
1993
2021
  /** Lists all `Notes` for a given project. */
1994
2022
  list(request?: {
@@ -2085,7 +2113,7 @@ declare namespace gapi.client {
2085
2113
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2086
2114
  uploadType?: string;
2087
2115
  },
2088
- body: Note
2116
+ body: Note,
2089
2117
  ): Request<Note>;
2090
2118
  /** Sets the access control policy on the specified `Note` or `Occurrence`. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a `Note` or an `Occurrence`, respectively. Attempting to call this method without these permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences and projects/{projectid}/notes/{noteid} for notes */
2091
2119
  setIamPolicy(
@@ -2115,7 +2143,7 @@ declare namespace gapi.client {
2115
2143
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2116
2144
  uploadType?: string;
2117
2145
  },
2118
- body: SetIamPolicyRequest
2146
+ body: SetIamPolicyRequest,
2119
2147
  ): Request<Policy>;
2120
2148
  /** Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, "storage.objects.list" on the containing bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes` */
2121
2149
  testIamPermissions(
@@ -2145,7 +2173,7 @@ declare namespace gapi.client {
2145
2173
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2146
2174
  uploadType?: string;
2147
2175
  },
2148
- body: TestIamPermissionsRequest
2176
+ body: TestIamPermissionsRequest,
2149
2177
  ): Request<TestIamPermissionsResponse>;
2150
2178
  occurrences: OccurrencesResource;
2151
2179
  }
@@ -2210,7 +2238,7 @@ declare namespace gapi.client {
2210
2238
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2211
2239
  uploadType?: string;
2212
2240
  },
2213
- body: Occurrence
2241
+ body: Occurrence,
2214
2242
  ): Request<Occurrence>;
2215
2243
  /** Deletes the given `Occurrence` from the system. Use this when an `Occurrence` is no longer applicable for the given resource. */
2216
2244
  delete(request?: {
@@ -2294,7 +2322,7 @@ declare namespace gapi.client {
2294
2322
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2295
2323
  uploadType?: string;
2296
2324
  },
2297
- body: GetIamPolicyRequest
2325
+ body: GetIamPolicyRequest,
2298
2326
  ): Request<Policy>;
2299
2327
  /** Gets the `Note` attached to the given `Occurrence`. */
2300
2328
  getNotes(request?: {
@@ -2449,7 +2477,7 @@ declare namespace gapi.client {
2449
2477
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2450
2478
  uploadType?: string;
2451
2479
  },
2452
- body: Occurrence
2480
+ body: Occurrence,
2453
2481
  ): Request<Occurrence>;
2454
2482
  /** Sets the access control policy on the specified `Note` or `Occurrence`. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a `Note` or an `Occurrence`, respectively. Attempting to call this method without these permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences and projects/{projectid}/notes/{noteid} for notes */
2455
2483
  setIamPolicy(
@@ -2479,7 +2507,7 @@ declare namespace gapi.client {
2479
2507
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2480
2508
  uploadType?: string;
2481
2509
  },
2482
- body: SetIamPolicyRequest
2510
+ body: SetIamPolicyRequest,
2483
2511
  ): Request<Policy>;
2484
2512
  /** Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, "storage.objects.list" on the containing bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes` */
2485
2513
  testIamPermissions(
@@ -2509,7 +2537,7 @@ declare namespace gapi.client {
2509
2537
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2510
2538
  uploadType?: string;
2511
2539
  },
2512
- body: TestIamPermissionsRequest
2540
+ body: TestIamPermissionsRequest,
2513
2541
  ): Request<TestIamPermissionsResponse>;
2514
2542
  }
2515
2543
  interface OperationsResource {
@@ -2569,7 +2597,7 @@ declare namespace gapi.client {
2569
2597
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2570
2598
  uploadType?: string;
2571
2599
  },
2572
- body: CreateOperationRequest
2600
+ body: CreateOperationRequest,
2573
2601
  ): Request<Operation>;
2574
2602
  /** Updates an existing operation returns an error if operation does not exist. The only valid operations are to update mark the done bit change the result. */
2575
2603
  patch(request: {
@@ -2627,7 +2655,7 @@ declare namespace gapi.client {
2627
2655
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2628
2656
  uploadType?: string;
2629
2657
  },
2630
- body: UpdateOperationRequest
2658
+ body: UpdateOperationRequest,
2631
2659
  ): Request<Operation>;
2632
2660
  }
2633
2661
  interface ScanConfigsResource {
@@ -2751,7 +2779,7 @@ declare namespace gapi.client {
2751
2779
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2752
2780
  uploadType?: string;
2753
2781
  },
2754
- body: ScanConfig
2782
+ body: ScanConfig,
2755
2783
  ): Request<ScanConfig>;
2756
2784
  }
2757
2785
  interface ProjectsResource {
@@ -2860,7 +2888,7 @@ declare namespace gapi.client {
2860
2888
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2861
2889
  uploadType?: string;
2862
2890
  },
2863
- body: Note
2891
+ body: Note,
2864
2892
  ): Request<Note>;
2865
2893
  /** Deletes the given `Note` from the system. */
2866
2894
  delete(request?: {
@@ -2944,7 +2972,7 @@ declare namespace gapi.client {
2944
2972
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2945
2973
  uploadType?: string;
2946
2974
  },
2947
- body: GetIamPolicyRequest
2975
+ body: GetIamPolicyRequest,
2948
2976
  ): Request<Policy>;
2949
2977
  /** Lists all `Notes` for a given project. */
2950
2978
  list(request?: {
@@ -3041,7 +3069,7 @@ declare namespace gapi.client {
3041
3069
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3042
3070
  uploadType?: string;
3043
3071
  },
3044
- body: Note
3072
+ body: Note,
3045
3073
  ): Request<Note>;
3046
3074
  /** Sets the access control policy on the specified `Note` or `Occurrence`. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a `Note` or an `Occurrence`, respectively. Attempting to call this method without these permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences and projects/{projectid}/notes/{noteid} for notes */
3047
3075
  setIamPolicy(
@@ -3071,7 +3099,7 @@ declare namespace gapi.client {
3071
3099
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3072
3100
  uploadType?: string;
3073
3101
  },
3074
- body: SetIamPolicyRequest
3102
+ body: SetIamPolicyRequest,
3075
3103
  ): Request<Policy>;
3076
3104
  /** Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, "storage.objects.list" on the containing bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes` */
3077
3105
  testIamPermissions(
@@ -3101,7 +3129,7 @@ declare namespace gapi.client {
3101
3129
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3102
3130
  uploadType?: string;
3103
3131
  },
3104
- body: TestIamPermissionsRequest
3132
+ body: TestIamPermissionsRequest,
3105
3133
  ): Request<TestIamPermissionsResponse>;
3106
3134
  occurrences: OccurrencesResource;
3107
3135
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.containeranalysis-v1alpha1",
3
- "version": "0.0.20250103",
3
+ "version": "0.0.20250129",
4
4
  "description": "TypeScript typings for Container Analysis API v1alpha1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -30,7 +30,7 @@ gapi.client.load(
30
30
  () => {
31
31
  // now we can use:
32
32
  // gapi.client.containeranalysis
33
- }
33
+ },
34
34
  );
35
35
  ```
36
36
 
@@ -62,7 +62,7 @@ gapi.auth.authorize(
62
62
  } else {
63
63
  /* handle authorization error */
64
64
  }
65
- }
65
+ },
66
66
  );
67
67
  ```
68
68