@maxim_mazurok/gapi.client.containeranalysis-v1 0.0.20250124 → 0.0.20250207

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 +58 -30
  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: 20250124
12
+ // Revision: 20250207
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 {
@@ -355,6 +355,8 @@ declare namespace gapi.client {
355
355
  buildTriggerId?: string;
356
356
  /** Output only. Time at which the request to create the build was received. */
357
357
  createTime?: string;
358
+ /** Optional. Dependencies that the Cloud Build worker will fetch before executing user steps. */
359
+ dependencies?: ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency[];
358
360
  /** Output only. Contains information about the build when status=FAILURE. */
359
361
  failureInfo?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo;
360
362
  /** Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution. */
@@ -443,6 +445,8 @@ declare namespace gapi.client {
443
445
  machineType?: string;
444
446
  /** Optional. Specification for execution on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information. */
445
447
  pool?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption;
448
+ /** Optional. Option to specify the Pub/Sub topic to receive build status updates. */
449
+ pubsubTopic?: string;
446
450
  /** Requested verifiability options. */
447
451
  requestedVerifyOption?: string;
448
452
  /** 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. */
@@ -520,6 +524,30 @@ declare namespace gapi.client {
520
524
  /** Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. */
521
525
  revision?: string;
522
526
  }
527
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency {
528
+ /** If set to true disable all dependency fetching (ignoring the default source as well). */
529
+ empty?: boolean;
530
+ /** Represents a git repository as a build dependency. */
531
+ gitSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency;
532
+ }
533
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency {
534
+ /** Optional. How much history should be fetched for the build (default 1, -1 for all history). */
535
+ depth?: string;
536
+ /** Required. Where should the files be placed on the worker. */
537
+ destPath?: string;
538
+ /** Optional. True if submodules should be fetched too (default false). */
539
+ recurseSubmodules?: boolean;
540
+ /** Required. The kind of repo (url or dev connect). */
541
+ repository?: ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository;
542
+ /** Required. The revision that we will fetch the repo at. */
543
+ revision?: string;
544
+ }
545
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository {
546
+ /** The Developer Connect Git repository link or the url that matches a repository link in the current project, formatted as `projects/*‍/locations/*‍/connections/*‍/gitRepositoryLink/*` */
547
+ developerConnect?: string;
548
+ /** Location of the Git repository. */
549
+ url?: string;
550
+ }
523
551
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig {
524
552
  /** Required. Directory, relative to the source root, in which to run the build. */
525
553
  dir?: string;
@@ -858,7 +886,7 @@ declare namespace gapi.client {
858
886
  sig?: string;
859
887
  }
860
888
  interface ExportSBOMRequest {
861
- /** Empty placeholder to denote that this is a Google Cloud Storage export request. */
889
+ /** Optional. Empty placeholder to denote that this is a Google Cloud Storage export request. */
862
890
  cloudStorageLocation?: any;
863
891
  }
864
892
  interface ExportSBOMResponse {
@@ -1729,7 +1757,7 @@ declare namespace gapi.client {
1729
1757
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1730
1758
  uploadType?: string;
1731
1759
  },
1732
- body: BatchCreateNotesRequest
1760
+ body: BatchCreateNotesRequest,
1733
1761
  ): Request<BatchCreateNotesResponse>;
1734
1762
  /** Creates a new note. */
1735
1763
  create(request: {
@@ -1791,7 +1819,7 @@ declare namespace gapi.client {
1791
1819
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1792
1820
  uploadType?: string;
1793
1821
  },
1794
- body: Note
1822
+ body: Note,
1795
1823
  ): Request<Note>;
1796
1824
  /** Deletes the specified note. */
1797
1825
  delete(request?: {
@@ -1875,7 +1903,7 @@ declare namespace gapi.client {
1875
1903
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1876
1904
  uploadType?: string;
1877
1905
  },
1878
- body: GetIamPolicyRequest
1906
+ body: GetIamPolicyRequest,
1879
1907
  ): Request<Policy>;
1880
1908
  /** Lists notes for the specified project. */
1881
1909
  list(request?: {
@@ -1970,7 +1998,7 @@ declare namespace gapi.client {
1970
1998
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1971
1999
  uploadType?: string;
1972
2000
  },
1973
- body: Note
2001
+ body: Note,
1974
2002
  ): Request<Note>;
1975
2003
  /** 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. */
1976
2004
  setIamPolicy(
@@ -2000,7 +2028,7 @@ declare namespace gapi.client {
2000
2028
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2001
2029
  uploadType?: string;
2002
2030
  },
2003
- body: SetIamPolicyRequest
2031
+ body: SetIamPolicyRequest,
2004
2032
  ): Request<Policy>;
2005
2033
  /** 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. */
2006
2034
  testIamPermissions(
@@ -2030,7 +2058,7 @@ declare namespace gapi.client {
2030
2058
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2031
2059
  uploadType?: string;
2032
2060
  },
2033
- body: TestIamPermissionsRequest
2061
+ body: TestIamPermissionsRequest,
2034
2062
  ): Request<TestIamPermissionsResponse>;
2035
2063
  occurrences: OccurrencesResource;
2036
2064
  }
@@ -2091,7 +2119,7 @@ declare namespace gapi.client {
2091
2119
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2092
2120
  uploadType?: string;
2093
2121
  },
2094
- body: BatchCreateOccurrencesRequest
2122
+ body: BatchCreateOccurrencesRequest,
2095
2123
  ): Request<BatchCreateOccurrencesResponse>;
2096
2124
  /** Creates a new occurrence. */
2097
2125
  create(request: {
@@ -2149,7 +2177,7 @@ declare namespace gapi.client {
2149
2177
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2150
2178
  uploadType?: string;
2151
2179
  },
2152
- body: Occurrence
2180
+ body: Occurrence,
2153
2181
  ): Request<Occurrence>;
2154
2182
  /** Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. */
2155
2183
  delete(request?: {
@@ -2233,7 +2261,7 @@ declare namespace gapi.client {
2233
2261
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2234
2262
  uploadType?: string;
2235
2263
  },
2236
- body: GetIamPolicyRequest
2264
+ body: GetIamPolicyRequest,
2237
2265
  ): Request<Policy>;
2238
2266
  /** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
2239
2267
  getNotes(request?: {
@@ -2384,7 +2412,7 @@ declare namespace gapi.client {
2384
2412
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2385
2413
  uploadType?: string;
2386
2414
  },
2387
- body: Occurrence
2415
+ body: Occurrence,
2388
2416
  ): Request<Occurrence>;
2389
2417
  /** 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. */
2390
2418
  setIamPolicy(
@@ -2414,7 +2442,7 @@ declare namespace gapi.client {
2414
2442
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2415
2443
  uploadType?: string;
2416
2444
  },
2417
- body: SetIamPolicyRequest
2445
+ body: SetIamPolicyRequest,
2418
2446
  ): Request<Policy>;
2419
2447
  /** 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. */
2420
2448
  testIamPermissions(
@@ -2444,7 +2472,7 @@ declare namespace gapi.client {
2444
2472
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2445
2473
  uploadType?: string;
2446
2474
  },
2447
- body: TestIamPermissionsRequest
2475
+ body: TestIamPermissionsRequest,
2448
2476
  ): Request<TestIamPermissionsResponse>;
2449
2477
  }
2450
2478
  interface ResourcesResource {
@@ -2504,7 +2532,7 @@ declare namespace gapi.client {
2504
2532
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2505
2533
  uploadType?: string;
2506
2534
  },
2507
- body: ExportSBOMRequest
2535
+ body: ExportSBOMRequest,
2508
2536
  ): Request<ExportSBOMResponse>;
2509
2537
  }
2510
2538
  interface LocationsResource {
@@ -2604,7 +2632,7 @@ declare namespace gapi.client {
2604
2632
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2605
2633
  uploadType?: string;
2606
2634
  },
2607
- body: BatchCreateNotesRequest
2635
+ body: BatchCreateNotesRequest,
2608
2636
  ): Request<BatchCreateNotesResponse>;
2609
2637
  /** Creates a new note. */
2610
2638
  create(request: {
@@ -2666,7 +2694,7 @@ declare namespace gapi.client {
2666
2694
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2667
2695
  uploadType?: string;
2668
2696
  },
2669
- body: Note
2697
+ body: Note,
2670
2698
  ): Request<Note>;
2671
2699
  /** Deletes the specified note. */
2672
2700
  delete(request?: {
@@ -2750,7 +2778,7 @@ declare namespace gapi.client {
2750
2778
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2751
2779
  uploadType?: string;
2752
2780
  },
2753
- body: GetIamPolicyRequest
2781
+ body: GetIamPolicyRequest,
2754
2782
  ): Request<Policy>;
2755
2783
  /** Lists notes for the specified project. */
2756
2784
  list(request?: {
@@ -2845,7 +2873,7 @@ declare namespace gapi.client {
2845
2873
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2846
2874
  uploadType?: string;
2847
2875
  },
2848
- body: Note
2876
+ body: Note,
2849
2877
  ): Request<Note>;
2850
2878
  /** 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. */
2851
2879
  setIamPolicy(
@@ -2875,7 +2903,7 @@ declare namespace gapi.client {
2875
2903
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2876
2904
  uploadType?: string;
2877
2905
  },
2878
- body: SetIamPolicyRequest
2906
+ body: SetIamPolicyRequest,
2879
2907
  ): Request<Policy>;
2880
2908
  /** 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. */
2881
2909
  testIamPermissions(
@@ -2905,7 +2933,7 @@ declare namespace gapi.client {
2905
2933
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2906
2934
  uploadType?: string;
2907
2935
  },
2908
- body: TestIamPermissionsRequest
2936
+ body: TestIamPermissionsRequest,
2909
2937
  ): Request<TestIamPermissionsResponse>;
2910
2938
  occurrences: OccurrencesResource;
2911
2939
  }
@@ -2966,7 +2994,7 @@ declare namespace gapi.client {
2966
2994
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2967
2995
  uploadType?: string;
2968
2996
  },
2969
- body: BatchCreateOccurrencesRequest
2997
+ body: BatchCreateOccurrencesRequest,
2970
2998
  ): Request<BatchCreateOccurrencesResponse>;
2971
2999
  /** Creates a new occurrence. */
2972
3000
  create(request: {
@@ -3024,7 +3052,7 @@ declare namespace gapi.client {
3024
3052
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3025
3053
  uploadType?: string;
3026
3054
  },
3027
- body: Occurrence
3055
+ body: Occurrence,
3028
3056
  ): Request<Occurrence>;
3029
3057
  /** Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. */
3030
3058
  delete(request?: {
@@ -3108,7 +3136,7 @@ declare namespace gapi.client {
3108
3136
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3109
3137
  uploadType?: string;
3110
3138
  },
3111
- body: GetIamPolicyRequest
3139
+ body: GetIamPolicyRequest,
3112
3140
  ): Request<Policy>;
3113
3141
  /** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
3114
3142
  getNotes(request?: {
@@ -3259,7 +3287,7 @@ declare namespace gapi.client {
3259
3287
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3260
3288
  uploadType?: string;
3261
3289
  },
3262
- body: Occurrence
3290
+ body: Occurrence,
3263
3291
  ): Request<Occurrence>;
3264
3292
  /** 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. */
3265
3293
  setIamPolicy(
@@ -3289,7 +3317,7 @@ declare namespace gapi.client {
3289
3317
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3290
3318
  uploadType?: string;
3291
3319
  },
3292
- body: SetIamPolicyRequest
3320
+ body: SetIamPolicyRequest,
3293
3321
  ): Request<Policy>;
3294
3322
  /** 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. */
3295
3323
  testIamPermissions(
@@ -3319,7 +3347,7 @@ declare namespace gapi.client {
3319
3347
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3320
3348
  uploadType?: string;
3321
3349
  },
3322
- body: TestIamPermissionsRequest
3350
+ body: TestIamPermissionsRequest,
3323
3351
  ): Request<TestIamPermissionsResponse>;
3324
3352
  }
3325
3353
  interface ResourcesResource {
@@ -3379,7 +3407,7 @@ declare namespace gapi.client {
3379
3407
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3380
3408
  uploadType?: string;
3381
3409
  },
3382
- body: ExportSBOMRequest
3410
+ body: ExportSBOMRequest,
3383
3411
  ): Request<ExportSBOMResponse>;
3384
3412
  }
3385
3413
  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.20250124",
3
+ "version": "0.0.20250207",
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