@maxim_mazurok/gapi.client.containeranalysis-v1beta1 0.0.20221015 → 0.0.20221104

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 +1 -138
  2. package/package.json +1 -1
  3. package/tests.ts +1 -22
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://containeranalysis.googleapis.com/$discovery/rest?version=v1beta1
12
- // Revision: 20221015
12
+ // Revision: 20221104
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1179,12 +1179,6 @@ declare namespace gapi.client {
1179
1179
  /** The occurrences requested. */
1180
1180
  occurrences?: Occurrence[];
1181
1181
  }
1182
- interface ListScanConfigsResponse {
1183
- /** The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results. */
1184
- nextPageToken?: string;
1185
- /** The scan configurations requested. */
1186
- scanConfigs?: ScanConfig[];
1187
- }
1188
1182
  interface Location {
1189
1183
  /** Deprecated. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. */
1190
1184
  cpeUri?: string;
@@ -1476,18 +1470,6 @@ declare namespace gapi.client {
1476
1470
  /** Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. */
1477
1471
  uri?: string;
1478
1472
  }
1479
- interface ScanConfig {
1480
- /** Output only. The time this scan config was created. */
1481
- createTime?: string;
1482
- /** Output only. A human-readable description of what the scan configuration does. */
1483
- description?: string;
1484
- /** Whether the scan is enabled. */
1485
- enabled?: boolean;
1486
- /** Output only. The name of the scan configuration in the form of `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. */
1487
- name?: string;
1488
- /** Output only. The time this scan config was last updated. */
1489
- updateTime?: string;
1490
- }
1491
1473
  interface SetIamPolicyRequest {
1492
1474
  /**
1493
1475
  * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud
@@ -2471,128 +2453,9 @@ declare namespace gapi.client {
2471
2453
  },
2472
2454
  body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
2473
2455
  }
2474
- interface ScanConfigsResource {
2475
- /** Gets the specified scan configuration. */
2476
- get(request?: {
2477
- /** V1 error format. */
2478
- "$.xgafv"?: string;
2479
- /** OAuth access token. */
2480
- access_token?: string;
2481
- /** Data format for response. */
2482
- alt?: string;
2483
- /** JSONP */
2484
- callback?: string;
2485
- /** Selector specifying which fields to include in a partial response. */
2486
- fields?: string;
2487
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2488
- key?: string;
2489
- /** Required. The name of the scan configuration in the form of `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. */
2490
- name: string;
2491
- /** OAuth 2.0 token for the current user. */
2492
- oauth_token?: string;
2493
- /** Returns response with indentations and line breaks. */
2494
- prettyPrint?: boolean;
2495
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2496
- quotaUser?: string;
2497
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2498
- upload_protocol?: string;
2499
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2500
- uploadType?: string;
2501
- }): Request<ScanConfig>;
2502
- /** Lists scan configurations for the specified project. */
2503
- list(request?: {
2504
- /** V1 error format. */
2505
- "$.xgafv"?: string;
2506
- /** OAuth access token. */
2507
- access_token?: string;
2508
- /** Data format for response. */
2509
- alt?: string;
2510
- /** JSONP */
2511
- callback?: string;
2512
- /** Selector specifying which fields to include in a partial response. */
2513
- fields?: string;
2514
- /** Required. The filter expression. */
2515
- filter?: string;
2516
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2517
- key?: string;
2518
- /** OAuth 2.0 token for the current user. */
2519
- oauth_token?: string;
2520
- /** The number of scan configs to return in the list. */
2521
- pageSize?: number;
2522
- /** Token to provide to skip to a particular spot in the list. */
2523
- pageToken?: string;
2524
- /** Required. The name of the project to list scan configurations for in the form of `projects/[PROJECT_ID]`. */
2525
- parent: string;
2526
- /** Returns response with indentations and line breaks. */
2527
- prettyPrint?: boolean;
2528
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2529
- quotaUser?: string;
2530
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2531
- upload_protocol?: string;
2532
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2533
- uploadType?: string;
2534
- }): Request<ListScanConfigsResponse>;
2535
- /** Updates the specified scan configuration. */
2536
- update(request: {
2537
- /** V1 error format. */
2538
- "$.xgafv"?: string;
2539
- /** OAuth access token. */
2540
- access_token?: string;
2541
- /** Data format for response. */
2542
- alt?: string;
2543
- /** JSONP */
2544
- callback?: string;
2545
- /** Selector specifying which fields to include in a partial response. */
2546
- fields?: string;
2547
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2548
- key?: string;
2549
- /** Required. The name of the scan configuration in the form of `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. */
2550
- name: string;
2551
- /** OAuth 2.0 token for the current user. */
2552
- oauth_token?: string;
2553
- /** Returns response with indentations and line breaks. */
2554
- prettyPrint?: boolean;
2555
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2556
- quotaUser?: string;
2557
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2558
- upload_protocol?: string;
2559
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2560
- uploadType?: string;
2561
- /** Request body */
2562
- resource: ScanConfig;
2563
- }): Request<ScanConfig>;
2564
- update(request: {
2565
- /** V1 error format. */
2566
- "$.xgafv"?: string;
2567
- /** OAuth access token. */
2568
- access_token?: string;
2569
- /** Data format for response. */
2570
- alt?: string;
2571
- /** JSONP */
2572
- callback?: string;
2573
- /** Selector specifying which fields to include in a partial response. */
2574
- fields?: string;
2575
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2576
- key?: string;
2577
- /** Required. The name of the scan configuration in the form of `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. */
2578
- name: string;
2579
- /** OAuth 2.0 token for the current user. */
2580
- oauth_token?: string;
2581
- /** Returns response with indentations and line breaks. */
2582
- prettyPrint?: boolean;
2583
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2584
- quotaUser?: string;
2585
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2586
- upload_protocol?: string;
2587
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2588
- uploadType?: string;
2589
- },
2590
- body: ScanConfig): Request<ScanConfig>;
2591
- }
2592
2456
  interface ProjectsResource {
2593
2457
  notes: NotesResource;
2594
2458
  occurrences: OccurrencesResource;
2595
- scanConfigs: ScanConfigsResource;
2596
2459
  }
2597
2460
 
2598
2461
  const projects: ProjectsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.containeranalysis-v1beta1",
3
- "version": "0.0.20221015",
3
+ "version": "0.0.20221104",
4
4
  "description": "TypeScript typings for Container Analysis API v1beta1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20221015
6
+ // Revision: 20221104
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -2163,26 +2163,5 @@ gapi.load('client', async () => {
2163
2163
  "Test string"
2164
2164
  ],
2165
2165
  });
2166
- /** Gets the specified scan configuration. */
2167
- await gapi.client.containeranalysis.projects.scanConfigs.get({
2168
- name: "Test string",
2169
- });
2170
- /** Lists scan configurations for the specified project. */
2171
- await gapi.client.containeranalysis.projects.scanConfigs.list({
2172
- filter: "Test string",
2173
- pageSize: 42,
2174
- pageToken: "Test string",
2175
- parent: "Test string",
2176
- });
2177
- /** Updates the specified scan configuration. */
2178
- await gapi.client.containeranalysis.projects.scanConfigs.update({
2179
- name: "Test string",
2180
- }, {
2181
- createTime: "Test string",
2182
- description: "Test string",
2183
- enabled: true,
2184
- name: "Test string",
2185
- updateTime: "Test string",
2186
- });
2187
2166
  }
2188
2167
  });