@maxim_mazurok/gapi.client.containeranalysis-v1beta1 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 +59 -31
  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=v1beta1
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 v1beta1 */
18
18
  function load(
19
- urlOrObject: 'https://containeranalysis.googleapis.com/$discovery/rest?version=v1beta1'
19
+ urlOrObject: 'https://containeranalysis.googleapis.com/$discovery/rest?version=v1beta1',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'containeranalysis', version: 'v1beta1'): Promise<void>;
@@ -24,7 +24,7 @@ declare namespace gapi.client {
24
24
  function load(
25
25
  name: 'containeranalysis',
26
26
  version: 'v1beta1',
27
- callback: () => any
27
+ callback: () => any,
28
28
  ): void;
29
29
 
30
30
  namespace containeranalysis {
@@ -245,6 +245,8 @@ declare namespace gapi.client {
245
245
  url?: string;
246
246
  }
247
247
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts {
248
+ /** 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. */
249
+ goModules?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule[];
248
250
  /** 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. */
249
251
  images?: string[];
250
252
  /** 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. */
@@ -264,6 +266,20 @@ declare namespace gapi.client {
264
266
  /** Output only. Stores timing information for pushing all artifact objects. */
265
267
  timing?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
266
268
  }
269
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule {
270
+ /** Optional. The Go module's "module path". e.g. example.com/foo/v2 */
271
+ modulePath?: string;
272
+ /** 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 */
273
+ moduleVersion?: string;
274
+ /** Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s location. */
275
+ repositoryLocation?: string;
276
+ /** 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 */
277
+ repositoryName?: string;
278
+ /** Optional. Project ID of the Artifact Registry repository. Defaults to the build project. */
279
+ repositoryProjectId?: string;
280
+ /** 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 */
281
+ sourcePath?: string;
282
+ }
267
283
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact {
268
284
  /** Maven `artifactId` value used when uploading the artifact to Artifact Registry. */
269
285
  artifactId?: string;
@@ -375,6 +391,8 @@ declare namespace gapi.client {
375
391
  diskSizeGb?: string;
376
392
  /** 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. */
377
393
  dynamicSubstitutions?: boolean;
394
+ /** Optional. Option to specify whether structured logging is enabled. If true, JSON-formatted logs are parsed as structured logs. */
395
+ enableStructuredLogging?: boolean;
378
396
  /** 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". */
379
397
  env?: string[];
380
398
  /** Option to specify the logging mode, which determines if and where build logs are stored. */
@@ -529,6 +547,8 @@ declare namespace gapi.client {
529
547
  buildStepImages?: string[];
530
548
  /** 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. */
531
549
  buildStepOutputs?: string[];
550
+ /** Optional. Go module artifacts uploaded to Artifact Registry at the end of the build. */
551
+ goModules?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule[];
532
552
  /** Container images that were built as a part of the build. */
533
553
  images?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage[];
534
554
  /** Maven artifacts uploaded to Artifact Registry at the end of the build. */
@@ -612,6 +632,14 @@ declare namespace gapi.client {
612
632
  /** Start of time span. */
613
633
  startTime?: string;
614
634
  }
635
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule {
636
+ /** Hash types and values of the Go Module Artifact. */
637
+ fileHashes?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
638
+ /** Output only. Stores timing information for pushing the specified artifact. */
639
+ pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
640
+ /** URI of the uploaded artifact. */
641
+ uri?: string;
642
+ }
615
643
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact {
616
644
  /** Hash types and values of the Maven Artifact. */
617
645
  fileHashes?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
@@ -1698,7 +1726,7 @@ declare namespace gapi.client {
1698
1726
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1699
1727
  uploadType?: string;
1700
1728
  },
1701
- body: BatchCreateNotesRequest
1729
+ body: BatchCreateNotesRequest,
1702
1730
  ): Request<BatchCreateNotesResponse>;
1703
1731
  /** Creates a new note. */
1704
1732
  create(request: {
@@ -1760,7 +1788,7 @@ declare namespace gapi.client {
1760
1788
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1761
1789
  uploadType?: string;
1762
1790
  },
1763
- body: Note
1791
+ body: Note,
1764
1792
  ): Request<Note>;
1765
1793
  /** Deletes the specified note. */
1766
1794
  delete(request?: {
@@ -1844,7 +1872,7 @@ declare namespace gapi.client {
1844
1872
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1845
1873
  uploadType?: string;
1846
1874
  },
1847
- body: GetIamPolicyRequest
1875
+ body: GetIamPolicyRequest,
1848
1876
  ): Request<Policy>;
1849
1877
  /** Lists notes for the specified project. */
1850
1878
  list(request?: {
@@ -1939,7 +1967,7 @@ declare namespace gapi.client {
1939
1967
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1940
1968
  uploadType?: string;
1941
1969
  },
1942
- body: Note
1970
+ body: Note,
1943
1971
  ): Request<Note>;
1944
1972
  /** 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. */
1945
1973
  setIamPolicy(
@@ -1969,7 +1997,7 @@ declare namespace gapi.client {
1969
1997
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1970
1998
  uploadType?: string;
1971
1999
  },
1972
- body: SetIamPolicyRequest
2000
+ body: SetIamPolicyRequest,
1973
2001
  ): Request<Policy>;
1974
2002
  /** 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. */
1975
2003
  testIamPermissions(
@@ -1999,7 +2027,7 @@ declare namespace gapi.client {
1999
2027
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2000
2028
  uploadType?: string;
2001
2029
  },
2002
- body: TestIamPermissionsRequest
2030
+ body: TestIamPermissionsRequest,
2003
2031
  ): Request<TestIamPermissionsResponse>;
2004
2032
  occurrences: OccurrencesResource;
2005
2033
  }
@@ -2060,7 +2088,7 @@ declare namespace gapi.client {
2060
2088
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2061
2089
  uploadType?: string;
2062
2090
  },
2063
- body: BatchCreateOccurrencesRequest
2091
+ body: BatchCreateOccurrencesRequest,
2064
2092
  ): Request<BatchCreateOccurrencesResponse>;
2065
2093
  /** Creates a new occurrence. */
2066
2094
  create(request: {
@@ -2118,7 +2146,7 @@ declare namespace gapi.client {
2118
2146
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2119
2147
  uploadType?: string;
2120
2148
  },
2121
- body: Occurrence
2149
+ body: Occurrence,
2122
2150
  ): Request<Occurrence>;
2123
2151
  /** Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. */
2124
2152
  delete(request?: {
@@ -2202,7 +2230,7 @@ declare namespace gapi.client {
2202
2230
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2203
2231
  uploadType?: string;
2204
2232
  },
2205
- body: GetIamPolicyRequest
2233
+ body: GetIamPolicyRequest,
2206
2234
  ): Request<Policy>;
2207
2235
  /** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
2208
2236
  getNotes(request?: {
@@ -2353,7 +2381,7 @@ declare namespace gapi.client {
2353
2381
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2354
2382
  uploadType?: string;
2355
2383
  },
2356
- body: Occurrence
2384
+ body: Occurrence,
2357
2385
  ): Request<Occurrence>;
2358
2386
  /** 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. */
2359
2387
  setIamPolicy(
@@ -2383,7 +2411,7 @@ declare namespace gapi.client {
2383
2411
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2384
2412
  uploadType?: string;
2385
2413
  },
2386
- body: SetIamPolicyRequest
2414
+ body: SetIamPolicyRequest,
2387
2415
  ): Request<Policy>;
2388
2416
  /** 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. */
2389
2417
  testIamPermissions(
@@ -2413,7 +2441,7 @@ declare namespace gapi.client {
2413
2441
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2414
2442
  uploadType?: string;
2415
2443
  },
2416
- body: TestIamPermissionsRequest
2444
+ body: TestIamPermissionsRequest,
2417
2445
  ): Request<TestIamPermissionsResponse>;
2418
2446
  }
2419
2447
  interface ResourcesResource {
@@ -2473,7 +2501,7 @@ declare namespace gapi.client {
2473
2501
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2474
2502
  uploadType?: string;
2475
2503
  },
2476
- body: ExportSBOMRequest
2504
+ body: ExportSBOMRequest,
2477
2505
  ): Request<ExportSBOMResponse>;
2478
2506
  /** Gets a summary of the packages within a given resource. */
2479
2507
  generatePackagesSummary(request: {
@@ -2531,7 +2559,7 @@ declare namespace gapi.client {
2531
2559
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2532
2560
  uploadType?: string;
2533
2561
  },
2534
- body: GeneratePackagesSummaryRequest
2562
+ body: GeneratePackagesSummaryRequest,
2535
2563
  ): Request<PackagesSummaryResponse>;
2536
2564
  }
2537
2565
  interface LocationsResource {
@@ -2631,7 +2659,7 @@ declare namespace gapi.client {
2631
2659
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2632
2660
  uploadType?: string;
2633
2661
  },
2634
- body: BatchCreateNotesRequest
2662
+ body: BatchCreateNotesRequest,
2635
2663
  ): Request<BatchCreateNotesResponse>;
2636
2664
  /** Creates a new note. */
2637
2665
  create(request: {
@@ -2693,7 +2721,7 @@ declare namespace gapi.client {
2693
2721
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2694
2722
  uploadType?: string;
2695
2723
  },
2696
- body: Note
2724
+ body: Note,
2697
2725
  ): Request<Note>;
2698
2726
  /** Deletes the specified note. */
2699
2727
  delete(request?: {
@@ -2777,7 +2805,7 @@ declare namespace gapi.client {
2777
2805
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2778
2806
  uploadType?: string;
2779
2807
  },
2780
- body: GetIamPolicyRequest
2808
+ body: GetIamPolicyRequest,
2781
2809
  ): Request<Policy>;
2782
2810
  /** Lists notes for the specified project. */
2783
2811
  list(request?: {
@@ -2872,7 +2900,7 @@ declare namespace gapi.client {
2872
2900
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2873
2901
  uploadType?: string;
2874
2902
  },
2875
- body: Note
2903
+ body: Note,
2876
2904
  ): Request<Note>;
2877
2905
  /** 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. */
2878
2906
  setIamPolicy(
@@ -2902,7 +2930,7 @@ declare namespace gapi.client {
2902
2930
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2903
2931
  uploadType?: string;
2904
2932
  },
2905
- body: SetIamPolicyRequest
2933
+ body: SetIamPolicyRequest,
2906
2934
  ): Request<Policy>;
2907
2935
  /** 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. */
2908
2936
  testIamPermissions(
@@ -2932,7 +2960,7 @@ declare namespace gapi.client {
2932
2960
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2933
2961
  uploadType?: string;
2934
2962
  },
2935
- body: TestIamPermissionsRequest
2963
+ body: TestIamPermissionsRequest,
2936
2964
  ): Request<TestIamPermissionsResponse>;
2937
2965
  occurrences: OccurrencesResource;
2938
2966
  }
@@ -2993,7 +3021,7 @@ declare namespace gapi.client {
2993
3021
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2994
3022
  uploadType?: string;
2995
3023
  },
2996
- body: BatchCreateOccurrencesRequest
3024
+ body: BatchCreateOccurrencesRequest,
2997
3025
  ): Request<BatchCreateOccurrencesResponse>;
2998
3026
  /** Creates a new occurrence. */
2999
3027
  create(request: {
@@ -3051,7 +3079,7 @@ declare namespace gapi.client {
3051
3079
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3052
3080
  uploadType?: string;
3053
3081
  },
3054
- body: Occurrence
3082
+ body: Occurrence,
3055
3083
  ): Request<Occurrence>;
3056
3084
  /** Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. */
3057
3085
  delete(request?: {
@@ -3135,7 +3163,7 @@ declare namespace gapi.client {
3135
3163
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3136
3164
  uploadType?: string;
3137
3165
  },
3138
- body: GetIamPolicyRequest
3166
+ body: GetIamPolicyRequest,
3139
3167
  ): Request<Policy>;
3140
3168
  /** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
3141
3169
  getNotes(request?: {
@@ -3286,7 +3314,7 @@ declare namespace gapi.client {
3286
3314
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3287
3315
  uploadType?: string;
3288
3316
  },
3289
- body: Occurrence
3317
+ body: Occurrence,
3290
3318
  ): Request<Occurrence>;
3291
3319
  /** 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. */
3292
3320
  setIamPolicy(
@@ -3316,7 +3344,7 @@ declare namespace gapi.client {
3316
3344
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3317
3345
  uploadType?: string;
3318
3346
  },
3319
- body: SetIamPolicyRequest
3347
+ body: SetIamPolicyRequest,
3320
3348
  ): Request<Policy>;
3321
3349
  /** 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. */
3322
3350
  testIamPermissions(
@@ -3346,7 +3374,7 @@ declare namespace gapi.client {
3346
3374
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3347
3375
  uploadType?: string;
3348
3376
  },
3349
- body: TestIamPermissionsRequest
3377
+ body: TestIamPermissionsRequest,
3350
3378
  ): Request<TestIamPermissionsResponse>;
3351
3379
  }
3352
3380
  interface ResourcesResource {
@@ -3406,7 +3434,7 @@ declare namespace gapi.client {
3406
3434
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3407
3435
  uploadType?: string;
3408
3436
  },
3409
- body: ExportSBOMRequest
3437
+ body: ExportSBOMRequest,
3410
3438
  ): Request<ExportSBOMResponse>;
3411
3439
  /** Gets a summary of the packages within a given resource. */
3412
3440
  generatePackagesSummary(request: {
@@ -3464,7 +3492,7 @@ declare namespace gapi.client {
3464
3492
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3465
3493
  uploadType?: string;
3466
3494
  },
3467
- body: GeneratePackagesSummaryRequest
3495
+ body: GeneratePackagesSummaryRequest,
3468
3496
  ): Request<PackagesSummaryResponse>;
3469
3497
  }
3470
3498
  interface ProjectsResource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.containeranalysis-v1beta1",
3
- "version": "0.0.20250103",
3
+ "version": "0.0.20250129",
4
4
  "description": "TypeScript typings for Container Analysis API v1beta1",
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