@googleapis/securitycenter 8.0.0 → 8.2.0

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.
package/v1.ts CHANGED
@@ -1868,7 +1868,7 @@ export namespace securitycenter_v1 {
1868
1868
  resourceTypes?: string[] | null;
1869
1869
  }
1870
1870
  /**
1871
- * A resource value config (RVC) is a mapping configuration of user's resources to resource values. Used in Attack path simulations.
1871
+ * A resource value configuration (RVC) is a mapping configuration of user's resources to resource values. Used in Attack path simulations.
1872
1872
  */
1873
1873
  export interface Schema$GoogleCloudSecuritycenterV1ResourceValueConfig {
1874
1874
  /**
@@ -1876,23 +1876,23 @@ export namespace securitycenter_v1 {
1876
1876
  */
1877
1877
  cloudProvider?: string | null;
1878
1878
  /**
1879
- * Output only. Timestamp this resource value config was created.
1879
+ * Output only. Timestamp this resource value configuration was created.
1880
1880
  */
1881
1881
  createTime?: string | null;
1882
1882
  /**
1883
- * Description of the resource value config.
1883
+ * Description of the resource value configuration.
1884
1884
  */
1885
1885
  description?: string | null;
1886
1886
  /**
1887
- * Name for the resource value config
1887
+ * Name for the resource value configuration
1888
1888
  */
1889
1889
  name?: string | null;
1890
1890
  /**
1891
- * List of resource labels to search for, evaluated with AND. E.g. "resource_labels_selector": {"key": "value", "env": "prod"\} will match resources with labels "key": "value" AND "env": "prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels
1891
+ * List of resource labels to search for, evaluated with AND. For example, "resource_labels_selector": {"key": "value", "env": "prod"\} will match resources with labels "key": "value" AND "env": "prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels
1892
1892
  */
1893
1893
  resourceLabelsSelector?: {[key: string]: string} | null;
1894
1894
  /**
1895
- * Apply resource_value only to resources that match resource_type. resource_type will be checked with "AND" of other resources. E.g. "storage.googleapis.com/Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
1895
+ * Apply resource_value only to resources that match resource_type. resource_type will be checked with AND of other resources. For example, "storage.googleapis.com/Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
1896
1896
  */
1897
1897
  resourceType?: string | null;
1898
1898
  /**
@@ -1900,7 +1900,7 @@ export namespace securitycenter_v1 {
1900
1900
  */
1901
1901
  resourceValue?: string | null;
1902
1902
  /**
1903
- * Project or folder to scope this config to. For example, "project/456" would apply this config only to resources in "project/456" scope will be checked with "AND" of other resources.
1903
+ * Project or folder to scope this configuration to. For example, "project/456" would apply this configuration only to resources in "project/456" scope will be checked with AND of other resources.
1904
1904
  */
1905
1905
  scope?: string | null;
1906
1906
  /**
@@ -1908,11 +1908,11 @@ export namespace securitycenter_v1 {
1908
1908
  */
1909
1909
  sensitiveDataProtectionMapping?: Schema$GoogleCloudSecuritycenterV1SensitiveDataProtectionMapping;
1910
1910
  /**
1911
- * Required. Tag values combined with AND to check against. Values in the form "tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ] https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
1911
+ * Required. Tag values combined with AND to check against. Values in the form "tagValues/123" Example: [ "tagValues/123", "tagValues/456", "tagValues/789" ] https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
1912
1912
  */
1913
1913
  tagValues?: string[] | null;
1914
1914
  /**
1915
- * Output only. Timestamp this resource value config was last updated.
1915
+ * Output only. Timestamp this resource value configuration was last updated.
1916
1916
  */
1917
1917
  updateTime?: string | null;
1918
1918
  }
@@ -3469,7 +3469,7 @@ export namespace securitycenter_v1 {
3469
3469
  nodeType?: string | null;
3470
3470
  }
3471
3471
  /**
3472
- * A resource value config (RVC) is a mapping configuration of user's resources to resource values. Used in Attack path simulations.
3472
+ * A resource value configuration (RVC) is a mapping configuration of user's resources to resource values. Used in Attack path simulations.
3473
3473
  */
3474
3474
  export interface Schema$GoogleCloudSecuritycenterV2ResourceValueConfig {
3475
3475
  /**
@@ -3477,23 +3477,23 @@ export namespace securitycenter_v1 {
3477
3477
  */
3478
3478
  cloudProvider?: string | null;
3479
3479
  /**
3480
- * Output only. Timestamp this resource value config was created.
3480
+ * Output only. Timestamp this resource value configuration was created.
3481
3481
  */
3482
3482
  createTime?: string | null;
3483
3483
  /**
3484
- * Description of the resource value config.
3484
+ * Description of the resource value configuration.
3485
3485
  */
3486
3486
  description?: string | null;
3487
3487
  /**
3488
- * Name for the resource value config
3488
+ * Name for the resource value configuration
3489
3489
  */
3490
3490
  name?: string | null;
3491
3491
  /**
3492
- * List of resource labels to search for, evaluated with AND. E.g. "resource_labels_selector": {"key": "value", "env": "prod"\} will match resources with labels "key": "value" AND "env": "prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels
3492
+ * List of resource labels to search for, evaluated with AND. For example, "resource_labels_selector": {"key": "value", "env": "prod"\} will match resources with labels "key": "value" AND "env": "prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels
3493
3493
  */
3494
3494
  resourceLabelsSelector?: {[key: string]: string} | null;
3495
3495
  /**
3496
- * Apply resource_value only to resources that match resource_type. resource_type will be checked with "AND" of other resources. E.g. "storage.googleapis.com/Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
3496
+ * Apply resource_value only to resources that match resource_type. resource_type will be checked with AND of other resources. For example, "storage.googleapis.com/Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
3497
3497
  */
3498
3498
  resourceType?: string | null;
3499
3499
  /**
@@ -3501,7 +3501,7 @@ export namespace securitycenter_v1 {
3501
3501
  */
3502
3502
  resourceValue?: string | null;
3503
3503
  /**
3504
- * Project or folder to scope this config to. For example, "project/456" would apply this config only to resources in "project/456" scope will be checked with "AND" of other resources.
3504
+ * Project or folder to scope this configuration to. For example, "project/456" would apply this configuration only to resources in "project/456" scope will be checked with AND of other resources.
3505
3505
  */
3506
3506
  scope?: string | null;
3507
3507
  /**
@@ -3509,11 +3509,11 @@ export namespace securitycenter_v1 {
3509
3509
  */
3510
3510
  sensitiveDataProtectionMapping?: Schema$GoogleCloudSecuritycenterV2SensitiveDataProtectionMapping;
3511
3511
  /**
3512
- * Required. Tag values combined with AND to check against. Values in the form "tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ] https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
3512
+ * Required. Tag values combined with AND to check against. Values in the form "tagValues/123" Example: [ "tagValues/123", "tagValues/456", "tagValues/789" ] https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
3513
3513
  */
3514
3514
  tagValues?: string[] | null;
3515
3515
  /**
3516
- * Output only. Timestamp this resource value config was last updated.
3516
+ * Output only. Timestamp this resource value configuration was last updated.
3517
3517
  */
3518
3518
  updateTime?: string | null;
3519
3519
  }
@@ -3787,7 +3787,7 @@ export namespace securitycenter_v1 {
3787
3787
  */
3788
3788
  filter?: string | null;
3789
3789
  /**
3790
- * Required. Expression that defines what assets fields to use for grouping (including `state_change`). The string value should follow SQL syntax: comma separated list of fields. For example: "parent,resource_name". The following fields are supported: * resource_name * category * state * parent * severity The following fields are supported when compare_duration is set: * state_change
3790
+ * Required. Expression that defines what assets fields to use for grouping (including `state_change`). The string value should follow SQL syntax: comma separated list of fields. For example: "parent,resource_name". The following fields are supported when compare_duration is set: * state_change
3791
3791
  */
3792
3792
  groupBy?: string | null;
3793
3793
  /**
@@ -7281,6 +7281,104 @@ export namespace securitycenter_v1 {
7281
7281
  this.context = context;
7282
7282
  }
7283
7283
 
7284
+ /**
7285
+ * Creates a mute config.
7286
+ *
7287
+ * @param params - Parameters for request
7288
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7289
+ * @param callback - Optional callback that handles the response.
7290
+ * @returns A promise if used with async/await, or void if used with a callback.
7291
+ */
7292
+ create(
7293
+ params: Params$Resource$Folders$Locations$Muteconfigs$Create,
7294
+ options: StreamMethodOptions
7295
+ ): GaxiosPromise<Readable>;
7296
+ create(
7297
+ params?: Params$Resource$Folders$Locations$Muteconfigs$Create,
7298
+ options?: MethodOptions
7299
+ ): GaxiosPromise<Schema$GoogleCloudSecuritycenterV1MuteConfig>;
7300
+ create(
7301
+ params: Params$Resource$Folders$Locations$Muteconfigs$Create,
7302
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7303
+ callback: BodyResponseCallback<Readable>
7304
+ ): void;
7305
+ create(
7306
+ params: Params$Resource$Folders$Locations$Muteconfigs$Create,
7307
+ options:
7308
+ | MethodOptions
7309
+ | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>,
7310
+ callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
7311
+ ): void;
7312
+ create(
7313
+ params: Params$Resource$Folders$Locations$Muteconfigs$Create,
7314
+ callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
7315
+ ): void;
7316
+ create(
7317
+ callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
7318
+ ): void;
7319
+ create(
7320
+ paramsOrCallback?:
7321
+ | Params$Resource$Folders$Locations$Muteconfigs$Create
7322
+ | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
7323
+ | BodyResponseCallback<Readable>,
7324
+ optionsOrCallback?:
7325
+ | MethodOptions
7326
+ | StreamMethodOptions
7327
+ | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
7328
+ | BodyResponseCallback<Readable>,
7329
+ callback?:
7330
+ | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
7331
+ | BodyResponseCallback<Readable>
7332
+ ):
7333
+ | void
7334
+ | GaxiosPromise<Schema$GoogleCloudSecuritycenterV1MuteConfig>
7335
+ | GaxiosPromise<Readable> {
7336
+ let params = (paramsOrCallback ||
7337
+ {}) as Params$Resource$Folders$Locations$Muteconfigs$Create;
7338
+ let options = (optionsOrCallback || {}) as MethodOptions;
7339
+
7340
+ if (typeof paramsOrCallback === 'function') {
7341
+ callback = paramsOrCallback;
7342
+ params = {} as Params$Resource$Folders$Locations$Muteconfigs$Create;
7343
+ options = {};
7344
+ }
7345
+
7346
+ if (typeof optionsOrCallback === 'function') {
7347
+ callback = optionsOrCallback;
7348
+ options = {};
7349
+ }
7350
+
7351
+ const rootUrl =
7352
+ options.rootUrl || 'https://securitycenter.googleapis.com/';
7353
+ const parameters = {
7354
+ options: Object.assign(
7355
+ {
7356
+ url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(
7357
+ /([^:]\/)\/+/g,
7358
+ '$1'
7359
+ ),
7360
+ method: 'POST',
7361
+ apiVersion: '',
7362
+ },
7363
+ options
7364
+ ),
7365
+ params,
7366
+ requiredParams: ['parent'],
7367
+ pathParams: ['parent'],
7368
+ context: this.context,
7369
+ };
7370
+ if (callback) {
7371
+ createAPIRequest<Schema$GoogleCloudSecuritycenterV1MuteConfig>(
7372
+ parameters,
7373
+ callback as BodyResponseCallback<unknown>
7374
+ );
7375
+ } else {
7376
+ return createAPIRequest<Schema$GoogleCloudSecuritycenterV1MuteConfig>(
7377
+ parameters
7378
+ );
7379
+ }
7380
+ }
7381
+
7284
7382
  /**
7285
7383
  * Deletes an existing mute config.
7286
7384
  *
@@ -7462,6 +7560,97 @@ export namespace securitycenter_v1 {
7462
7560
  }
7463
7561
  }
7464
7562
 
7563
+ /**
7564
+ * Lists mute configs.
7565
+ *
7566
+ * @param params - Parameters for request
7567
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7568
+ * @param callback - Optional callback that handles the response.
7569
+ * @returns A promise if used with async/await, or void if used with a callback.
7570
+ */
7571
+ list(
7572
+ params: Params$Resource$Folders$Locations$Muteconfigs$List,
7573
+ options: StreamMethodOptions
7574
+ ): GaxiosPromise<Readable>;
7575
+ list(
7576
+ params?: Params$Resource$Folders$Locations$Muteconfigs$List,
7577
+ options?: MethodOptions
7578
+ ): GaxiosPromise<Schema$ListMuteConfigsResponse>;
7579
+ list(
7580
+ params: Params$Resource$Folders$Locations$Muteconfigs$List,
7581
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7582
+ callback: BodyResponseCallback<Readable>
7583
+ ): void;
7584
+ list(
7585
+ params: Params$Resource$Folders$Locations$Muteconfigs$List,
7586
+ options:
7587
+ | MethodOptions
7588
+ | BodyResponseCallback<Schema$ListMuteConfigsResponse>,
7589
+ callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>
7590
+ ): void;
7591
+ list(
7592
+ params: Params$Resource$Folders$Locations$Muteconfigs$List,
7593
+ callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>
7594
+ ): void;
7595
+ list(callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>): void;
7596
+ list(
7597
+ paramsOrCallback?:
7598
+ | Params$Resource$Folders$Locations$Muteconfigs$List
7599
+ | BodyResponseCallback<Schema$ListMuteConfigsResponse>
7600
+ | BodyResponseCallback<Readable>,
7601
+ optionsOrCallback?:
7602
+ | MethodOptions
7603
+ | StreamMethodOptions
7604
+ | BodyResponseCallback<Schema$ListMuteConfigsResponse>
7605
+ | BodyResponseCallback<Readable>,
7606
+ callback?:
7607
+ | BodyResponseCallback<Schema$ListMuteConfigsResponse>
7608
+ | BodyResponseCallback<Readable>
7609
+ ):
7610
+ | void
7611
+ | GaxiosPromise<Schema$ListMuteConfigsResponse>
7612
+ | GaxiosPromise<Readable> {
7613
+ let params = (paramsOrCallback ||
7614
+ {}) as Params$Resource$Folders$Locations$Muteconfigs$List;
7615
+ let options = (optionsOrCallback || {}) as MethodOptions;
7616
+
7617
+ if (typeof paramsOrCallback === 'function') {
7618
+ callback = paramsOrCallback;
7619
+ params = {} as Params$Resource$Folders$Locations$Muteconfigs$List;
7620
+ options = {};
7621
+ }
7622
+
7623
+ if (typeof optionsOrCallback === 'function') {
7624
+ callback = optionsOrCallback;
7625
+ options = {};
7626
+ }
7627
+
7628
+ const rootUrl =
7629
+ options.rootUrl || 'https://securitycenter.googleapis.com/';
7630
+ const parameters = {
7631
+ options: Object.assign(
7632
+ {
7633
+ url: (rootUrl + '/v1/{+parent}').replace(/([^:]\/)\/+/g, '$1'),
7634
+ method: 'GET',
7635
+ apiVersion: '',
7636
+ },
7637
+ options
7638
+ ),
7639
+ params,
7640
+ requiredParams: ['parent'],
7641
+ pathParams: ['parent'],
7642
+ context: this.context,
7643
+ };
7644
+ if (callback) {
7645
+ createAPIRequest<Schema$ListMuteConfigsResponse>(
7646
+ parameters,
7647
+ callback as BodyResponseCallback<unknown>
7648
+ );
7649
+ } else {
7650
+ return createAPIRequest<Schema$ListMuteConfigsResponse>(parameters);
7651
+ }
7652
+ }
7653
+
7465
7654
  /**
7466
7655
  * Updates a mute config.
7467
7656
  *
@@ -7558,6 +7747,22 @@ export namespace securitycenter_v1 {
7558
7747
  }
7559
7748
  }
7560
7749
 
7750
+ export interface Params$Resource$Folders$Locations$Muteconfigs$Create
7751
+ extends StandardParameters {
7752
+ /**
7753
+ * Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.
7754
+ */
7755
+ muteConfigId?: string;
7756
+ /**
7757
+ * Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".
7758
+ */
7759
+ parent?: string;
7760
+
7761
+ /**
7762
+ * Request body metadata
7763
+ */
7764
+ requestBody?: Schema$GoogleCloudSecuritycenterV1MuteConfig;
7765
+ }
7561
7766
  export interface Params$Resource$Folders$Locations$Muteconfigs$Delete
7562
7767
  extends StandardParameters {
7563
7768
  /**
@@ -7572,6 +7777,21 @@ export namespace securitycenter_v1 {
7572
7777
  */
7573
7778
  name?: string;
7574
7779
  }
7780
+ export interface Params$Resource$Folders$Locations$Muteconfigs$List
7781
+ extends StandardParameters {
7782
+ /**
7783
+ * The maximum number of configs to return. The service may return fewer than this value. If unspecified, at most 10 configs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
7784
+ */
7785
+ pageSize?: number;
7786
+ /**
7787
+ * A page token, received from a previous `ListMuteConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMuteConfigs` must match the call that provided the page token.
7788
+ */
7789
+ pageToken?: string;
7790
+ /**
7791
+ * Required. The parent, which owns the collection of mute configs. Its format is "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]".
7792
+ */
7793
+ parent?: string;
7794
+ }
7575
7795
  export interface Params$Resource$Folders$Locations$Muteconfigs$Patch
7576
7796
  extends StandardParameters {
7577
7797
  /**
@@ -12925,6 +13145,105 @@ export namespace securitycenter_v1 {
12925
13145
  this.context = context;
12926
13146
  }
12927
13147
 
13148
+ /**
13149
+ * Creates a mute config.
13150
+ *
13151
+ * @param params - Parameters for request
13152
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
13153
+ * @param callback - Optional callback that handles the response.
13154
+ * @returns A promise if used with async/await, or void if used with a callback.
13155
+ */
13156
+ create(
13157
+ params: Params$Resource$Organizations$Locations$Muteconfigs$Create,
13158
+ options: StreamMethodOptions
13159
+ ): GaxiosPromise<Readable>;
13160
+ create(
13161
+ params?: Params$Resource$Organizations$Locations$Muteconfigs$Create,
13162
+ options?: MethodOptions
13163
+ ): GaxiosPromise<Schema$GoogleCloudSecuritycenterV1MuteConfig>;
13164
+ create(
13165
+ params: Params$Resource$Organizations$Locations$Muteconfigs$Create,
13166
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
13167
+ callback: BodyResponseCallback<Readable>
13168
+ ): void;
13169
+ create(
13170
+ params: Params$Resource$Organizations$Locations$Muteconfigs$Create,
13171
+ options:
13172
+ | MethodOptions
13173
+ | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>,
13174
+ callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
13175
+ ): void;
13176
+ create(
13177
+ params: Params$Resource$Organizations$Locations$Muteconfigs$Create,
13178
+ callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
13179
+ ): void;
13180
+ create(
13181
+ callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
13182
+ ): void;
13183
+ create(
13184
+ paramsOrCallback?:
13185
+ | Params$Resource$Organizations$Locations$Muteconfigs$Create
13186
+ | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
13187
+ | BodyResponseCallback<Readable>,
13188
+ optionsOrCallback?:
13189
+ | MethodOptions
13190
+ | StreamMethodOptions
13191
+ | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
13192
+ | BodyResponseCallback<Readable>,
13193
+ callback?:
13194
+ | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
13195
+ | BodyResponseCallback<Readable>
13196
+ ):
13197
+ | void
13198
+ | GaxiosPromise<Schema$GoogleCloudSecuritycenterV1MuteConfig>
13199
+ | GaxiosPromise<Readable> {
13200
+ let params = (paramsOrCallback ||
13201
+ {}) as Params$Resource$Organizations$Locations$Muteconfigs$Create;
13202
+ let options = (optionsOrCallback || {}) as MethodOptions;
13203
+
13204
+ if (typeof paramsOrCallback === 'function') {
13205
+ callback = paramsOrCallback;
13206
+ params =
13207
+ {} as Params$Resource$Organizations$Locations$Muteconfigs$Create;
13208
+ options = {};
13209
+ }
13210
+
13211
+ if (typeof optionsOrCallback === 'function') {
13212
+ callback = optionsOrCallback;
13213
+ options = {};
13214
+ }
13215
+
13216
+ const rootUrl =
13217
+ options.rootUrl || 'https://securitycenter.googleapis.com/';
13218
+ const parameters = {
13219
+ options: Object.assign(
13220
+ {
13221
+ url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(
13222
+ /([^:]\/)\/+/g,
13223
+ '$1'
13224
+ ),
13225
+ method: 'POST',
13226
+ apiVersion: '',
13227
+ },
13228
+ options
13229
+ ),
13230
+ params,
13231
+ requiredParams: ['parent'],
13232
+ pathParams: ['parent'],
13233
+ context: this.context,
13234
+ };
13235
+ if (callback) {
13236
+ createAPIRequest<Schema$GoogleCloudSecuritycenterV1MuteConfig>(
13237
+ parameters,
13238
+ callback as BodyResponseCallback<unknown>
13239
+ );
13240
+ } else {
13241
+ return createAPIRequest<Schema$GoogleCloudSecuritycenterV1MuteConfig>(
13242
+ parameters
13243
+ );
13244
+ }
13245
+ }
13246
+
12928
13247
  /**
12929
13248
  * Deletes an existing mute config.
12930
13249
  *
@@ -13047,30 +13366,123 @@ export namespace securitycenter_v1 {
13047
13366
  get(
13048
13367
  callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
13049
13368
  ): void;
13050
- get(
13369
+ get(
13370
+ paramsOrCallback?:
13371
+ | Params$Resource$Organizations$Locations$Muteconfigs$Get
13372
+ | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
13373
+ | BodyResponseCallback<Readable>,
13374
+ optionsOrCallback?:
13375
+ | MethodOptions
13376
+ | StreamMethodOptions
13377
+ | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
13378
+ | BodyResponseCallback<Readable>,
13379
+ callback?:
13380
+ | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
13381
+ | BodyResponseCallback<Readable>
13382
+ ):
13383
+ | void
13384
+ | GaxiosPromise<Schema$GoogleCloudSecuritycenterV1MuteConfig>
13385
+ | GaxiosPromise<Readable> {
13386
+ let params = (paramsOrCallback ||
13387
+ {}) as Params$Resource$Organizations$Locations$Muteconfigs$Get;
13388
+ let options = (optionsOrCallback || {}) as MethodOptions;
13389
+
13390
+ if (typeof paramsOrCallback === 'function') {
13391
+ callback = paramsOrCallback;
13392
+ params = {} as Params$Resource$Organizations$Locations$Muteconfigs$Get;
13393
+ options = {};
13394
+ }
13395
+
13396
+ if (typeof optionsOrCallback === 'function') {
13397
+ callback = optionsOrCallback;
13398
+ options = {};
13399
+ }
13400
+
13401
+ const rootUrl =
13402
+ options.rootUrl || 'https://securitycenter.googleapis.com/';
13403
+ const parameters = {
13404
+ options: Object.assign(
13405
+ {
13406
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
13407
+ method: 'GET',
13408
+ apiVersion: '',
13409
+ },
13410
+ options
13411
+ ),
13412
+ params,
13413
+ requiredParams: ['name'],
13414
+ pathParams: ['name'],
13415
+ context: this.context,
13416
+ };
13417
+ if (callback) {
13418
+ createAPIRequest<Schema$GoogleCloudSecuritycenterV1MuteConfig>(
13419
+ parameters,
13420
+ callback as BodyResponseCallback<unknown>
13421
+ );
13422
+ } else {
13423
+ return createAPIRequest<Schema$GoogleCloudSecuritycenterV1MuteConfig>(
13424
+ parameters
13425
+ );
13426
+ }
13427
+ }
13428
+
13429
+ /**
13430
+ * Lists mute configs.
13431
+ *
13432
+ * @param params - Parameters for request
13433
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
13434
+ * @param callback - Optional callback that handles the response.
13435
+ * @returns A promise if used with async/await, or void if used with a callback.
13436
+ */
13437
+ list(
13438
+ params: Params$Resource$Organizations$Locations$Muteconfigs$List,
13439
+ options: StreamMethodOptions
13440
+ ): GaxiosPromise<Readable>;
13441
+ list(
13442
+ params?: Params$Resource$Organizations$Locations$Muteconfigs$List,
13443
+ options?: MethodOptions
13444
+ ): GaxiosPromise<Schema$ListMuteConfigsResponse>;
13445
+ list(
13446
+ params: Params$Resource$Organizations$Locations$Muteconfigs$List,
13447
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
13448
+ callback: BodyResponseCallback<Readable>
13449
+ ): void;
13450
+ list(
13451
+ params: Params$Resource$Organizations$Locations$Muteconfigs$List,
13452
+ options:
13453
+ | MethodOptions
13454
+ | BodyResponseCallback<Schema$ListMuteConfigsResponse>,
13455
+ callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>
13456
+ ): void;
13457
+ list(
13458
+ params: Params$Resource$Organizations$Locations$Muteconfigs$List,
13459
+ callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>
13460
+ ): void;
13461
+ list(callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>): void;
13462
+ list(
13051
13463
  paramsOrCallback?:
13052
- | Params$Resource$Organizations$Locations$Muteconfigs$Get
13053
- | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
13464
+ | Params$Resource$Organizations$Locations$Muteconfigs$List
13465
+ | BodyResponseCallback<Schema$ListMuteConfigsResponse>
13054
13466
  | BodyResponseCallback<Readable>,
13055
13467
  optionsOrCallback?:
13056
13468
  | MethodOptions
13057
13469
  | StreamMethodOptions
13058
- | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
13470
+ | BodyResponseCallback<Schema$ListMuteConfigsResponse>
13059
13471
  | BodyResponseCallback<Readable>,
13060
13472
  callback?:
13061
- | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
13473
+ | BodyResponseCallback<Schema$ListMuteConfigsResponse>
13062
13474
  | BodyResponseCallback<Readable>
13063
13475
  ):
13064
13476
  | void
13065
- | GaxiosPromise<Schema$GoogleCloudSecuritycenterV1MuteConfig>
13477
+ | GaxiosPromise<Schema$ListMuteConfigsResponse>
13066
13478
  | GaxiosPromise<Readable> {
13067
13479
  let params = (paramsOrCallback ||
13068
- {}) as Params$Resource$Organizations$Locations$Muteconfigs$Get;
13480
+ {}) as Params$Resource$Organizations$Locations$Muteconfigs$List;
13069
13481
  let options = (optionsOrCallback || {}) as MethodOptions;
13070
13482
 
13071
13483
  if (typeof paramsOrCallback === 'function') {
13072
13484
  callback = paramsOrCallback;
13073
- params = {} as Params$Resource$Organizations$Locations$Muteconfigs$Get;
13485
+ params = {} as Params$Resource$Organizations$Locations$Muteconfigs$List;
13074
13486
  options = {};
13075
13487
  }
13076
13488
 
@@ -13084,26 +13496,24 @@ export namespace securitycenter_v1 {
13084
13496
  const parameters = {
13085
13497
  options: Object.assign(
13086
13498
  {
13087
- url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
13499
+ url: (rootUrl + '/v1/{+parent}').replace(/([^:]\/)\/+/g, '$1'),
13088
13500
  method: 'GET',
13089
13501
  apiVersion: '',
13090
13502
  },
13091
13503
  options
13092
13504
  ),
13093
13505
  params,
13094
- requiredParams: ['name'],
13095
- pathParams: ['name'],
13506
+ requiredParams: ['parent'],
13507
+ pathParams: ['parent'],
13096
13508
  context: this.context,
13097
13509
  };
13098
13510
  if (callback) {
13099
- createAPIRequest<Schema$GoogleCloudSecuritycenterV1MuteConfig>(
13511
+ createAPIRequest<Schema$ListMuteConfigsResponse>(
13100
13512
  parameters,
13101
13513
  callback as BodyResponseCallback<unknown>
13102
13514
  );
13103
13515
  } else {
13104
- return createAPIRequest<Schema$GoogleCloudSecuritycenterV1MuteConfig>(
13105
- parameters
13106
- );
13516
+ return createAPIRequest<Schema$ListMuteConfigsResponse>(parameters);
13107
13517
  }
13108
13518
  }
13109
13519
 
@@ -13204,6 +13614,22 @@ export namespace securitycenter_v1 {
13204
13614
  }
13205
13615
  }
13206
13616
 
13617
+ export interface Params$Resource$Organizations$Locations$Muteconfigs$Create
13618
+ extends StandardParameters {
13619
+ /**
13620
+ * Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.
13621
+ */
13622
+ muteConfigId?: string;
13623
+ /**
13624
+ * Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".
13625
+ */
13626
+ parent?: string;
13627
+
13628
+ /**
13629
+ * Request body metadata
13630
+ */
13631
+ requestBody?: Schema$GoogleCloudSecuritycenterV1MuteConfig;
13632
+ }
13207
13633
  export interface Params$Resource$Organizations$Locations$Muteconfigs$Delete
13208
13634
  extends StandardParameters {
13209
13635
  /**
@@ -13218,6 +13644,21 @@ export namespace securitycenter_v1 {
13218
13644
  */
13219
13645
  name?: string;
13220
13646
  }
13647
+ export interface Params$Resource$Organizations$Locations$Muteconfigs$List
13648
+ extends StandardParameters {
13649
+ /**
13650
+ * The maximum number of configs to return. The service may return fewer than this value. If unspecified, at most 10 configs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
13651
+ */
13652
+ pageSize?: number;
13653
+ /**
13654
+ * A page token, received from a previous `ListMuteConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMuteConfigs` must match the call that provided the page token.
13655
+ */
13656
+ pageToken?: string;
13657
+ /**
13658
+ * Required. The parent, which owns the collection of mute configs. Its format is "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]".
13659
+ */
13660
+ parent?: string;
13661
+ }
13221
13662
  export interface Params$Resource$Organizations$Locations$Muteconfigs$Patch
13222
13663
  extends StandardParameters {
13223
13664
  /**
@@ -15216,7 +15657,7 @@ export namespace securitycenter_v1 {
15216
15657
  export interface Params$Resource$Organizations$Resourcevalueconfigs$Patch
15217
15658
  extends StandardParameters {
15218
15659
  /**
15219
- * Name for the resource value config
15660
+ * Name for the resource value configuration
15220
15661
  */
15221
15662
  name?: string;
15222
15663
  /**
@@ -20750,6 +21191,104 @@ export namespace securitycenter_v1 {
20750
21191
  this.context = context;
20751
21192
  }
20752
21193
 
21194
+ /**
21195
+ * Creates a mute config.
21196
+ *
21197
+ * @param params - Parameters for request
21198
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
21199
+ * @param callback - Optional callback that handles the response.
21200
+ * @returns A promise if used with async/await, or void if used with a callback.
21201
+ */
21202
+ create(
21203
+ params: Params$Resource$Projects$Locations$Muteconfigs$Create,
21204
+ options: StreamMethodOptions
21205
+ ): GaxiosPromise<Readable>;
21206
+ create(
21207
+ params?: Params$Resource$Projects$Locations$Muteconfigs$Create,
21208
+ options?: MethodOptions
21209
+ ): GaxiosPromise<Schema$GoogleCloudSecuritycenterV1MuteConfig>;
21210
+ create(
21211
+ params: Params$Resource$Projects$Locations$Muteconfigs$Create,
21212
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
21213
+ callback: BodyResponseCallback<Readable>
21214
+ ): void;
21215
+ create(
21216
+ params: Params$Resource$Projects$Locations$Muteconfigs$Create,
21217
+ options:
21218
+ | MethodOptions
21219
+ | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>,
21220
+ callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
21221
+ ): void;
21222
+ create(
21223
+ params: Params$Resource$Projects$Locations$Muteconfigs$Create,
21224
+ callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
21225
+ ): void;
21226
+ create(
21227
+ callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
21228
+ ): void;
21229
+ create(
21230
+ paramsOrCallback?:
21231
+ | Params$Resource$Projects$Locations$Muteconfigs$Create
21232
+ | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
21233
+ | BodyResponseCallback<Readable>,
21234
+ optionsOrCallback?:
21235
+ | MethodOptions
21236
+ | StreamMethodOptions
21237
+ | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
21238
+ | BodyResponseCallback<Readable>,
21239
+ callback?:
21240
+ | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>
21241
+ | BodyResponseCallback<Readable>
21242
+ ):
21243
+ | void
21244
+ | GaxiosPromise<Schema$GoogleCloudSecuritycenterV1MuteConfig>
21245
+ | GaxiosPromise<Readable> {
21246
+ let params = (paramsOrCallback ||
21247
+ {}) as Params$Resource$Projects$Locations$Muteconfigs$Create;
21248
+ let options = (optionsOrCallback || {}) as MethodOptions;
21249
+
21250
+ if (typeof paramsOrCallback === 'function') {
21251
+ callback = paramsOrCallback;
21252
+ params = {} as Params$Resource$Projects$Locations$Muteconfigs$Create;
21253
+ options = {};
21254
+ }
21255
+
21256
+ if (typeof optionsOrCallback === 'function') {
21257
+ callback = optionsOrCallback;
21258
+ options = {};
21259
+ }
21260
+
21261
+ const rootUrl =
21262
+ options.rootUrl || 'https://securitycenter.googleapis.com/';
21263
+ const parameters = {
21264
+ options: Object.assign(
21265
+ {
21266
+ url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(
21267
+ /([^:]\/)\/+/g,
21268
+ '$1'
21269
+ ),
21270
+ method: 'POST',
21271
+ apiVersion: '',
21272
+ },
21273
+ options
21274
+ ),
21275
+ params,
21276
+ requiredParams: ['parent'],
21277
+ pathParams: ['parent'],
21278
+ context: this.context,
21279
+ };
21280
+ if (callback) {
21281
+ createAPIRequest<Schema$GoogleCloudSecuritycenterV1MuteConfig>(
21282
+ parameters,
21283
+ callback as BodyResponseCallback<unknown>
21284
+ );
21285
+ } else {
21286
+ return createAPIRequest<Schema$GoogleCloudSecuritycenterV1MuteConfig>(
21287
+ parameters
21288
+ );
21289
+ }
21290
+ }
21291
+
20753
21292
  /**
20754
21293
  * Deletes an existing mute config.
20755
21294
  *
@@ -20931,6 +21470,97 @@ export namespace securitycenter_v1 {
20931
21470
  }
20932
21471
  }
20933
21472
 
21473
+ /**
21474
+ * Lists mute configs.
21475
+ *
21476
+ * @param params - Parameters for request
21477
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
21478
+ * @param callback - Optional callback that handles the response.
21479
+ * @returns A promise if used with async/await, or void if used with a callback.
21480
+ */
21481
+ list(
21482
+ params: Params$Resource$Projects$Locations$Muteconfigs$List,
21483
+ options: StreamMethodOptions
21484
+ ): GaxiosPromise<Readable>;
21485
+ list(
21486
+ params?: Params$Resource$Projects$Locations$Muteconfigs$List,
21487
+ options?: MethodOptions
21488
+ ): GaxiosPromise<Schema$ListMuteConfigsResponse>;
21489
+ list(
21490
+ params: Params$Resource$Projects$Locations$Muteconfigs$List,
21491
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
21492
+ callback: BodyResponseCallback<Readable>
21493
+ ): void;
21494
+ list(
21495
+ params: Params$Resource$Projects$Locations$Muteconfigs$List,
21496
+ options:
21497
+ | MethodOptions
21498
+ | BodyResponseCallback<Schema$ListMuteConfigsResponse>,
21499
+ callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>
21500
+ ): void;
21501
+ list(
21502
+ params: Params$Resource$Projects$Locations$Muteconfigs$List,
21503
+ callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>
21504
+ ): void;
21505
+ list(callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>): void;
21506
+ list(
21507
+ paramsOrCallback?:
21508
+ | Params$Resource$Projects$Locations$Muteconfigs$List
21509
+ | BodyResponseCallback<Schema$ListMuteConfigsResponse>
21510
+ | BodyResponseCallback<Readable>,
21511
+ optionsOrCallback?:
21512
+ | MethodOptions
21513
+ | StreamMethodOptions
21514
+ | BodyResponseCallback<Schema$ListMuteConfigsResponse>
21515
+ | BodyResponseCallback<Readable>,
21516
+ callback?:
21517
+ | BodyResponseCallback<Schema$ListMuteConfigsResponse>
21518
+ | BodyResponseCallback<Readable>
21519
+ ):
21520
+ | void
21521
+ | GaxiosPromise<Schema$ListMuteConfigsResponse>
21522
+ | GaxiosPromise<Readable> {
21523
+ let params = (paramsOrCallback ||
21524
+ {}) as Params$Resource$Projects$Locations$Muteconfigs$List;
21525
+ let options = (optionsOrCallback || {}) as MethodOptions;
21526
+
21527
+ if (typeof paramsOrCallback === 'function') {
21528
+ callback = paramsOrCallback;
21529
+ params = {} as Params$Resource$Projects$Locations$Muteconfigs$List;
21530
+ options = {};
21531
+ }
21532
+
21533
+ if (typeof optionsOrCallback === 'function') {
21534
+ callback = optionsOrCallback;
21535
+ options = {};
21536
+ }
21537
+
21538
+ const rootUrl =
21539
+ options.rootUrl || 'https://securitycenter.googleapis.com/';
21540
+ const parameters = {
21541
+ options: Object.assign(
21542
+ {
21543
+ url: (rootUrl + '/v1/{+parent}').replace(/([^:]\/)\/+/g, '$1'),
21544
+ method: 'GET',
21545
+ apiVersion: '',
21546
+ },
21547
+ options
21548
+ ),
21549
+ params,
21550
+ requiredParams: ['parent'],
21551
+ pathParams: ['parent'],
21552
+ context: this.context,
21553
+ };
21554
+ if (callback) {
21555
+ createAPIRequest<Schema$ListMuteConfigsResponse>(
21556
+ parameters,
21557
+ callback as BodyResponseCallback<unknown>
21558
+ );
21559
+ } else {
21560
+ return createAPIRequest<Schema$ListMuteConfigsResponse>(parameters);
21561
+ }
21562
+ }
21563
+
20934
21564
  /**
20935
21565
  * Updates a mute config.
20936
21566
  *
@@ -21027,6 +21657,22 @@ export namespace securitycenter_v1 {
21027
21657
  }
21028
21658
  }
21029
21659
 
21660
+ export interface Params$Resource$Projects$Locations$Muteconfigs$Create
21661
+ extends StandardParameters {
21662
+ /**
21663
+ * Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.
21664
+ */
21665
+ muteConfigId?: string;
21666
+ /**
21667
+ * Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".
21668
+ */
21669
+ parent?: string;
21670
+
21671
+ /**
21672
+ * Request body metadata
21673
+ */
21674
+ requestBody?: Schema$GoogleCloudSecuritycenterV1MuteConfig;
21675
+ }
21030
21676
  export interface Params$Resource$Projects$Locations$Muteconfigs$Delete
21031
21677
  extends StandardParameters {
21032
21678
  /**
@@ -21041,6 +21687,21 @@ export namespace securitycenter_v1 {
21041
21687
  */
21042
21688
  name?: string;
21043
21689
  }
21690
+ export interface Params$Resource$Projects$Locations$Muteconfigs$List
21691
+ extends StandardParameters {
21692
+ /**
21693
+ * The maximum number of configs to return. The service may return fewer than this value. If unspecified, at most 10 configs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
21694
+ */
21695
+ pageSize?: number;
21696
+ /**
21697
+ * A page token, received from a previous `ListMuteConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMuteConfigs` must match the call that provided the page token.
21698
+ */
21699
+ pageToken?: string;
21700
+ /**
21701
+ * Required. The parent, which owns the collection of mute configs. Its format is "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]".
21702
+ */
21703
+ parent?: string;
21704
+ }
21044
21705
  export interface Params$Resource$Projects$Locations$Muteconfigs$Patch
21045
21706
  extends StandardParameters {
21046
21707
  /**