@maxim_mazurok/gapi.client.containeranalysis-v1 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 +57 -29
  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=v1
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 v1 */
18
18
  function load(
19
- urlOrObject: 'https://containeranalysis.googleapis.com/$discovery/rest?version=v1'
19
+ urlOrObject: 'https://containeranalysis.googleapis.com/$discovery/rest?version=v1',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'containeranalysis', version: 'v1'): Promise<void>;
@@ -24,7 +24,7 @@ declare namespace gapi.client {
24
24
  function load(
25
25
  name: 'containeranalysis',
26
26
  version: 'v1',
27
- callback: () => any
27
+ callback: () => any,
28
28
  ): void;
29
29
 
30
30
  namespace containeranalysis {
@@ -285,6 +285,8 @@ declare namespace gapi.client {
285
285
  url?: string;
286
286
  }
287
287
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts {
288
+ /** 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. */
289
+ goModules?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule[];
288
290
  /** 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. */
289
291
  images?: string[];
290
292
  /** 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. */
@@ -304,6 +306,20 @@ declare namespace gapi.client {
304
306
  /** Output only. Stores timing information for pushing all artifact objects. */
305
307
  timing?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
306
308
  }
309
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule {
310
+ /** Optional. The Go module's "module path". e.g. example.com/foo/v2 */
311
+ modulePath?: string;
312
+ /** 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 */
313
+ moduleVersion?: string;
314
+ /** Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s location. */
315
+ repositoryLocation?: string;
316
+ /** 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 */
317
+ repositoryName?: string;
318
+ /** Optional. Project ID of the Artifact Registry repository. Defaults to the build project. */
319
+ repositoryProjectId?: string;
320
+ /** 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 */
321
+ sourcePath?: string;
322
+ }
307
323
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact {
308
324
  /** Maven `artifactId` value used when uploading the artifact to Artifact Registry. */
309
325
  artifactId?: string;
@@ -415,6 +431,8 @@ declare namespace gapi.client {
415
431
  diskSizeGb?: string;
416
432
  /** 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. */
417
433
  dynamicSubstitutions?: boolean;
434
+ /** Optional. Option to specify whether structured logging is enabled. If true, JSON-formatted logs are parsed as structured logs. */
435
+ enableStructuredLogging?: boolean;
418
436
  /** 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". */
419
437
  env?: string[];
420
438
  /** Option to specify the logging mode, which determines if and where build logs are stored. */
@@ -569,6 +587,8 @@ declare namespace gapi.client {
569
587
  buildStepImages?: string[];
570
588
  /** 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. */
571
589
  buildStepOutputs?: string[];
590
+ /** Optional. Go module artifacts uploaded to Artifact Registry at the end of the build. */
591
+ goModules?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule[];
572
592
  /** Container images that were built as a part of the build. */
573
593
  images?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage[];
574
594
  /** Maven artifacts uploaded to Artifact Registry at the end of the build. */
@@ -652,6 +672,14 @@ declare namespace gapi.client {
652
672
  /** Start of time span. */
653
673
  startTime?: string;
654
674
  }
675
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule {
676
+ /** Hash types and values of the Go Module Artifact. */
677
+ fileHashes?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
678
+ /** Output only. Stores timing information for pushing the specified artifact. */
679
+ pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
680
+ /** URI of the uploaded artifact. */
681
+ uri?: string;
682
+ }
655
683
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact {
656
684
  /** Hash types and values of the Maven Artifact. */
657
685
  fileHashes?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
@@ -1701,7 +1729,7 @@ declare namespace gapi.client {
1701
1729
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1702
1730
  uploadType?: string;
1703
1731
  },
1704
- body: BatchCreateNotesRequest
1732
+ body: BatchCreateNotesRequest,
1705
1733
  ): Request<BatchCreateNotesResponse>;
1706
1734
  /** Creates a new note. */
1707
1735
  create(request: {
@@ -1763,7 +1791,7 @@ declare namespace gapi.client {
1763
1791
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1764
1792
  uploadType?: string;
1765
1793
  },
1766
- body: Note
1794
+ body: Note,
1767
1795
  ): Request<Note>;
1768
1796
  /** Deletes the specified note. */
1769
1797
  delete(request?: {
@@ -1847,7 +1875,7 @@ declare namespace gapi.client {
1847
1875
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1848
1876
  uploadType?: string;
1849
1877
  },
1850
- body: GetIamPolicyRequest
1878
+ body: GetIamPolicyRequest,
1851
1879
  ): Request<Policy>;
1852
1880
  /** Lists notes for the specified project. */
1853
1881
  list(request?: {
@@ -1942,7 +1970,7 @@ declare namespace gapi.client {
1942
1970
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1943
1971
  uploadType?: string;
1944
1972
  },
1945
- body: Note
1973
+ body: Note,
1946
1974
  ): Request<Note>;
1947
1975
  /** 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. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
1948
1976
  setIamPolicy(
@@ -1972,7 +2000,7 @@ declare namespace gapi.client {
1972
2000
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1973
2001
  uploadType?: string;
1974
2002
  },
1975
- body: SetIamPolicyRequest
2003
+ body: SetIamPolicyRequest,
1976
2004
  ): Request<Policy>;
1977
2005
  /** Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
1978
2006
  testIamPermissions(
@@ -2002,7 +2030,7 @@ declare namespace gapi.client {
2002
2030
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2003
2031
  uploadType?: string;
2004
2032
  },
2005
- body: TestIamPermissionsRequest
2033
+ body: TestIamPermissionsRequest,
2006
2034
  ): Request<TestIamPermissionsResponse>;
2007
2035
  occurrences: OccurrencesResource;
2008
2036
  }
@@ -2063,7 +2091,7 @@ declare namespace gapi.client {
2063
2091
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2064
2092
  uploadType?: string;
2065
2093
  },
2066
- body: BatchCreateOccurrencesRequest
2094
+ body: BatchCreateOccurrencesRequest,
2067
2095
  ): Request<BatchCreateOccurrencesResponse>;
2068
2096
  /** Creates a new occurrence. */
2069
2097
  create(request: {
@@ -2121,7 +2149,7 @@ declare namespace gapi.client {
2121
2149
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2122
2150
  uploadType?: string;
2123
2151
  },
2124
- body: Occurrence
2152
+ body: Occurrence,
2125
2153
  ): Request<Occurrence>;
2126
2154
  /** Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. */
2127
2155
  delete(request?: {
@@ -2205,7 +2233,7 @@ declare namespace gapi.client {
2205
2233
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2206
2234
  uploadType?: string;
2207
2235
  },
2208
- body: GetIamPolicyRequest
2236
+ body: GetIamPolicyRequest,
2209
2237
  ): Request<Policy>;
2210
2238
  /** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
2211
2239
  getNotes(request?: {
@@ -2356,7 +2384,7 @@ declare namespace gapi.client {
2356
2384
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2357
2385
  uploadType?: string;
2358
2386
  },
2359
- body: Occurrence
2387
+ body: Occurrence,
2360
2388
  ): Request<Occurrence>;
2361
2389
  /** 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. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
2362
2390
  setIamPolicy(
@@ -2386,7 +2414,7 @@ declare namespace gapi.client {
2386
2414
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2387
2415
  uploadType?: string;
2388
2416
  },
2389
- body: SetIamPolicyRequest
2417
+ body: SetIamPolicyRequest,
2390
2418
  ): Request<Policy>;
2391
2419
  /** Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
2392
2420
  testIamPermissions(
@@ -2416,7 +2444,7 @@ declare namespace gapi.client {
2416
2444
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2417
2445
  uploadType?: string;
2418
2446
  },
2419
- body: TestIamPermissionsRequest
2447
+ body: TestIamPermissionsRequest,
2420
2448
  ): Request<TestIamPermissionsResponse>;
2421
2449
  }
2422
2450
  interface ResourcesResource {
@@ -2476,7 +2504,7 @@ declare namespace gapi.client {
2476
2504
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2477
2505
  uploadType?: string;
2478
2506
  },
2479
- body: ExportSBOMRequest
2507
+ body: ExportSBOMRequest,
2480
2508
  ): Request<ExportSBOMResponse>;
2481
2509
  }
2482
2510
  interface LocationsResource {
@@ -2576,7 +2604,7 @@ declare namespace gapi.client {
2576
2604
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2577
2605
  uploadType?: string;
2578
2606
  },
2579
- body: BatchCreateNotesRequest
2607
+ body: BatchCreateNotesRequest,
2580
2608
  ): Request<BatchCreateNotesResponse>;
2581
2609
  /** Creates a new note. */
2582
2610
  create(request: {
@@ -2638,7 +2666,7 @@ declare namespace gapi.client {
2638
2666
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2639
2667
  uploadType?: string;
2640
2668
  },
2641
- body: Note
2669
+ body: Note,
2642
2670
  ): Request<Note>;
2643
2671
  /** Deletes the specified note. */
2644
2672
  delete(request?: {
@@ -2722,7 +2750,7 @@ declare namespace gapi.client {
2722
2750
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2723
2751
  uploadType?: string;
2724
2752
  },
2725
- body: GetIamPolicyRequest
2753
+ body: GetIamPolicyRequest,
2726
2754
  ): Request<Policy>;
2727
2755
  /** Lists notes for the specified project. */
2728
2756
  list(request?: {
@@ -2817,7 +2845,7 @@ declare namespace gapi.client {
2817
2845
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2818
2846
  uploadType?: string;
2819
2847
  },
2820
- body: Note
2848
+ body: Note,
2821
2849
  ): Request<Note>;
2822
2850
  /** 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. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
2823
2851
  setIamPolicy(
@@ -2847,7 +2875,7 @@ declare namespace gapi.client {
2847
2875
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2848
2876
  uploadType?: string;
2849
2877
  },
2850
- body: SetIamPolicyRequest
2878
+ body: SetIamPolicyRequest,
2851
2879
  ): Request<Policy>;
2852
2880
  /** Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
2853
2881
  testIamPermissions(
@@ -2877,7 +2905,7 @@ declare namespace gapi.client {
2877
2905
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2878
2906
  uploadType?: string;
2879
2907
  },
2880
- body: TestIamPermissionsRequest
2908
+ body: TestIamPermissionsRequest,
2881
2909
  ): Request<TestIamPermissionsResponse>;
2882
2910
  occurrences: OccurrencesResource;
2883
2911
  }
@@ -2938,7 +2966,7 @@ declare namespace gapi.client {
2938
2966
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2939
2967
  uploadType?: string;
2940
2968
  },
2941
- body: BatchCreateOccurrencesRequest
2969
+ body: BatchCreateOccurrencesRequest,
2942
2970
  ): Request<BatchCreateOccurrencesResponse>;
2943
2971
  /** Creates a new occurrence. */
2944
2972
  create(request: {
@@ -2996,7 +3024,7 @@ declare namespace gapi.client {
2996
3024
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2997
3025
  uploadType?: string;
2998
3026
  },
2999
- body: Occurrence
3027
+ body: Occurrence,
3000
3028
  ): Request<Occurrence>;
3001
3029
  /** Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. */
3002
3030
  delete(request?: {
@@ -3080,7 +3108,7 @@ declare namespace gapi.client {
3080
3108
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3081
3109
  uploadType?: string;
3082
3110
  },
3083
- body: GetIamPolicyRequest
3111
+ body: GetIamPolicyRequest,
3084
3112
  ): Request<Policy>;
3085
3113
  /** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
3086
3114
  getNotes(request?: {
@@ -3231,7 +3259,7 @@ declare namespace gapi.client {
3231
3259
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3232
3260
  uploadType?: string;
3233
3261
  },
3234
- body: Occurrence
3262
+ body: Occurrence,
3235
3263
  ): Request<Occurrence>;
3236
3264
  /** 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. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
3237
3265
  setIamPolicy(
@@ -3261,7 +3289,7 @@ declare namespace gapi.client {
3261
3289
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3262
3290
  uploadType?: string;
3263
3291
  },
3264
- body: SetIamPolicyRequest
3292
+ body: SetIamPolicyRequest,
3265
3293
  ): Request<Policy>;
3266
3294
  /** Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
3267
3295
  testIamPermissions(
@@ -3291,7 +3319,7 @@ declare namespace gapi.client {
3291
3319
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3292
3320
  uploadType?: string;
3293
3321
  },
3294
- body: TestIamPermissionsRequest
3322
+ body: TestIamPermissionsRequest,
3295
3323
  ): Request<TestIamPermissionsResponse>;
3296
3324
  }
3297
3325
  interface ResourcesResource {
@@ -3351,7 +3379,7 @@ declare namespace gapi.client {
3351
3379
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3352
3380
  uploadType?: string;
3353
3381
  },
3354
- body: ExportSBOMRequest
3382
+ body: ExportSBOMRequest,
3355
3383
  ): Request<ExportSBOMResponse>;
3356
3384
  }
3357
3385
  interface ProjectsResource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.containeranalysis-v1",
3
- "version": "0.0.20250103",
3
+ "version": "0.0.20250129",
4
4
  "description": "TypeScript typings for Container Analysis API v1",
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