@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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [8.2.0](https://github.com/googleapis/google-api-nodejs-client/compare/securitycenter-v8.1.0...securitycenter-v8.2.0) (2024-06-03)
4
+
5
+
6
+ ### Features
7
+
8
+ * **securitycenter:** update the API ([44291b7](https://github.com/googleapis/google-api-nodejs-client/commit/44291b78619606187b1ab1b6f2ad1caf7797866b))
9
+
10
+ ## [8.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/securitycenter-v8.0.0...securitycenter-v8.1.0) (2024-05-07)
11
+
12
+
13
+ ### Features
14
+
15
+ * run the generator ([181f2d5](https://github.com/googleapis/google-api-nodejs-client/commit/181f2d5118e33081dcd33a485ff79c5d6a7e1c43))
16
+
3
17
  ## [8.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/securitycenter-v7.0.0...securitycenter-v8.0.0) (2024-05-02)
4
18
 
5
19
 
package/build/v1.d.ts CHANGED
@@ -1831,7 +1831,7 @@ export declare namespace securitycenter_v1 {
1831
1831
  resourceTypes?: string[] | null;
1832
1832
  }
1833
1833
  /**
1834
- * A resource value config (RVC) is a mapping configuration of user's resources to resource values. Used in Attack path simulations.
1834
+ * A resource value configuration (RVC) is a mapping configuration of user's resources to resource values. Used in Attack path simulations.
1835
1835
  */
1836
1836
  export interface Schema$GoogleCloudSecuritycenterV1ResourceValueConfig {
1837
1837
  /**
@@ -1839,25 +1839,25 @@ export declare namespace securitycenter_v1 {
1839
1839
  */
1840
1840
  cloudProvider?: string | null;
1841
1841
  /**
1842
- * Output only. Timestamp this resource value config was created.
1842
+ * Output only. Timestamp this resource value configuration was created.
1843
1843
  */
1844
1844
  createTime?: string | null;
1845
1845
  /**
1846
- * Description of the resource value config.
1846
+ * Description of the resource value configuration.
1847
1847
  */
1848
1848
  description?: string | null;
1849
1849
  /**
1850
- * Name for the resource value config
1850
+ * Name for the resource value configuration
1851
1851
  */
1852
1852
  name?: string | null;
1853
1853
  /**
1854
- * 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
1854
+ * 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
1855
1855
  */
1856
1856
  resourceLabelsSelector?: {
1857
1857
  [key: string]: string;
1858
1858
  } | null;
1859
1859
  /**
1860
- * 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.
1860
+ * 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.
1861
1861
  */
1862
1862
  resourceType?: string | null;
1863
1863
  /**
@@ -1865,7 +1865,7 @@ export declare namespace securitycenter_v1 {
1865
1865
  */
1866
1866
  resourceValue?: string | null;
1867
1867
  /**
1868
- * 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.
1868
+ * 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.
1869
1869
  */
1870
1870
  scope?: string | null;
1871
1871
  /**
@@ -1873,11 +1873,11 @@ export declare namespace securitycenter_v1 {
1873
1873
  */
1874
1874
  sensitiveDataProtectionMapping?: Schema$GoogleCloudSecuritycenterV1SensitiveDataProtectionMapping;
1875
1875
  /**
1876
- * 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
1876
+ * 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
1877
1877
  */
1878
1878
  tagValues?: string[] | null;
1879
1879
  /**
1880
- * Output only. Timestamp this resource value config was last updated.
1880
+ * Output only. Timestamp this resource value configuration was last updated.
1881
1881
  */
1882
1882
  updateTime?: string | null;
1883
1883
  }
@@ -3437,7 +3437,7 @@ export declare namespace securitycenter_v1 {
3437
3437
  nodeType?: string | null;
3438
3438
  }
3439
3439
  /**
3440
- * A resource value config (RVC) is a mapping configuration of user's resources to resource values. Used in Attack path simulations.
3440
+ * A resource value configuration (RVC) is a mapping configuration of user's resources to resource values. Used in Attack path simulations.
3441
3441
  */
3442
3442
  export interface Schema$GoogleCloudSecuritycenterV2ResourceValueConfig {
3443
3443
  /**
@@ -3445,25 +3445,25 @@ export declare namespace securitycenter_v1 {
3445
3445
  */
3446
3446
  cloudProvider?: string | null;
3447
3447
  /**
3448
- * Output only. Timestamp this resource value config was created.
3448
+ * Output only. Timestamp this resource value configuration was created.
3449
3449
  */
3450
3450
  createTime?: string | null;
3451
3451
  /**
3452
- * Description of the resource value config.
3452
+ * Description of the resource value configuration.
3453
3453
  */
3454
3454
  description?: string | null;
3455
3455
  /**
3456
- * Name for the resource value config
3456
+ * Name for the resource value configuration
3457
3457
  */
3458
3458
  name?: string | null;
3459
3459
  /**
3460
- * 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
3460
+ * 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
3461
3461
  */
3462
3462
  resourceLabelsSelector?: {
3463
3463
  [key: string]: string;
3464
3464
  } | null;
3465
3465
  /**
3466
- * 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.
3466
+ * 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.
3467
3467
  */
3468
3468
  resourceType?: string | null;
3469
3469
  /**
@@ -3471,7 +3471,7 @@ export declare namespace securitycenter_v1 {
3471
3471
  */
3472
3472
  resourceValue?: string | null;
3473
3473
  /**
3474
- * 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.
3474
+ * 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.
3475
3475
  */
3476
3476
  scope?: string | null;
3477
3477
  /**
@@ -3479,11 +3479,11 @@ export declare namespace securitycenter_v1 {
3479
3479
  */
3480
3480
  sensitiveDataProtectionMapping?: Schema$GoogleCloudSecuritycenterV2SensitiveDataProtectionMapping;
3481
3481
  /**
3482
- * 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
3482
+ * 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
3483
3483
  */
3484
3484
  tagValues?: string[] | null;
3485
3485
  /**
3486
- * Output only. Timestamp this resource value config was last updated.
3486
+ * Output only. Timestamp this resource value configuration was last updated.
3487
3487
  */
3488
3488
  updateTime?: string | null;
3489
3489
  }
@@ -3759,7 +3759,7 @@ export declare namespace securitycenter_v1 {
3759
3759
  */
3760
3760
  filter?: string | null;
3761
3761
  /**
3762
- * 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
3762
+ * 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
3763
3763
  */
3764
3764
  groupBy?: string | null;
3765
3765
  /**
@@ -5736,6 +5736,20 @@ export declare namespace securitycenter_v1 {
5736
5736
  export class Resource$Folders$Locations$Muteconfigs {
5737
5737
  context: APIRequestContext;
5738
5738
  constructor(context: APIRequestContext);
5739
+ /**
5740
+ * Creates a mute config.
5741
+ *
5742
+ * @param params - Parameters for request
5743
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5744
+ * @param callback - Optional callback that handles the response.
5745
+ * @returns A promise if used with async/await, or void if used with a callback.
5746
+ */
5747
+ create(params: Params$Resource$Folders$Locations$Muteconfigs$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
5748
+ create(params?: Params$Resource$Folders$Locations$Muteconfigs$Create, options?: MethodOptions): GaxiosPromise<Schema$GoogleCloudSecuritycenterV1MuteConfig>;
5749
+ create(params: Params$Resource$Folders$Locations$Muteconfigs$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
5750
+ create(params: Params$Resource$Folders$Locations$Muteconfigs$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
5751
+ create(params: Params$Resource$Folders$Locations$Muteconfigs$Create, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
5752
+ create(callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
5739
5753
  /**
5740
5754
  * Deletes an existing mute config.
5741
5755
  *
@@ -5764,6 +5778,20 @@ export declare namespace securitycenter_v1 {
5764
5778
  get(params: Params$Resource$Folders$Locations$Muteconfigs$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
5765
5779
  get(params: Params$Resource$Folders$Locations$Muteconfigs$Get, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
5766
5780
  get(callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
5781
+ /**
5782
+ * Lists mute configs.
5783
+ *
5784
+ * @param params - Parameters for request
5785
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5786
+ * @param callback - Optional callback that handles the response.
5787
+ * @returns A promise if used with async/await, or void if used with a callback.
5788
+ */
5789
+ list(params: Params$Resource$Folders$Locations$Muteconfigs$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
5790
+ list(params?: Params$Resource$Folders$Locations$Muteconfigs$List, options?: MethodOptions): GaxiosPromise<Schema$ListMuteConfigsResponse>;
5791
+ list(params: Params$Resource$Folders$Locations$Muteconfigs$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
5792
+ list(params: Params$Resource$Folders$Locations$Muteconfigs$List, options: MethodOptions | BodyResponseCallback<Schema$ListMuteConfigsResponse>, callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>): void;
5793
+ list(params: Params$Resource$Folders$Locations$Muteconfigs$List, callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>): void;
5794
+ list(callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>): void;
5767
5795
  /**
5768
5796
  * Updates a mute config.
5769
5797
  *
@@ -5779,6 +5807,20 @@ export declare namespace securitycenter_v1 {
5779
5807
  patch(params: Params$Resource$Folders$Locations$Muteconfigs$Patch, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
5780
5808
  patch(callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
5781
5809
  }
5810
+ export interface Params$Resource$Folders$Locations$Muteconfigs$Create extends StandardParameters {
5811
+ /**
5812
+ * 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.
5813
+ */
5814
+ muteConfigId?: string;
5815
+ /**
5816
+ * Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".
5817
+ */
5818
+ parent?: string;
5819
+ /**
5820
+ * Request body metadata
5821
+ */
5822
+ requestBody?: Schema$GoogleCloudSecuritycenterV1MuteConfig;
5823
+ }
5782
5824
  export interface Params$Resource$Folders$Locations$Muteconfigs$Delete extends StandardParameters {
5783
5825
  /**
5784
5826
  * Required. Name of the mute config to delete. Its format is organizations/{organization\}/muteConfigs/{config_id\}, folders/{folder\}/muteConfigs/{config_id\}, projects/{project\}/muteConfigs/{config_id\}, organizations/{organization\}/locations/global/muteConfigs/{config_id\}, folders/{folder\}/locations/global/muteConfigs/{config_id\}, or projects/{project\}/locations/global/muteConfigs/{config_id\}.
@@ -5791,6 +5833,20 @@ export declare namespace securitycenter_v1 {
5791
5833
  */
5792
5834
  name?: string;
5793
5835
  }
5836
+ export interface Params$Resource$Folders$Locations$Muteconfigs$List extends StandardParameters {
5837
+ /**
5838
+ * 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.
5839
+ */
5840
+ pageSize?: number;
5841
+ /**
5842
+ * 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.
5843
+ */
5844
+ pageToken?: string;
5845
+ /**
5846
+ * Required. The parent, which owns the collection of mute configs. Its format is "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]".
5847
+ */
5848
+ parent?: string;
5849
+ }
5794
5850
  export interface Params$Resource$Folders$Locations$Muteconfigs$Patch extends StandardParameters {
5795
5851
  /**
5796
5852
  * This field will be ignored if provided on config creation. Format "organizations/{organization\}/muteConfigs/{mute_config\}" "folders/{folder\}/muteConfigs/{mute_config\}" "projects/{project\}/muteConfigs/{mute_config\}" "organizations/{organization\}/locations/global/muteConfigs/{mute_config\}" "folders/{folder\}/locations/global/muteConfigs/{mute_config\}" "projects/{project\}/locations/global/muteConfigs/{mute_config\}"
@@ -7139,6 +7195,20 @@ export declare namespace securitycenter_v1 {
7139
7195
  export class Resource$Organizations$Locations$Muteconfigs {
7140
7196
  context: APIRequestContext;
7141
7197
  constructor(context: APIRequestContext);
7198
+ /**
7199
+ * Creates a mute config.
7200
+ *
7201
+ * @param params - Parameters for request
7202
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7203
+ * @param callback - Optional callback that handles the response.
7204
+ * @returns A promise if used with async/await, or void if used with a callback.
7205
+ */
7206
+ create(params: Params$Resource$Organizations$Locations$Muteconfigs$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
7207
+ create(params?: Params$Resource$Organizations$Locations$Muteconfigs$Create, options?: MethodOptions): GaxiosPromise<Schema$GoogleCloudSecuritycenterV1MuteConfig>;
7208
+ create(params: Params$Resource$Organizations$Locations$Muteconfigs$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
7209
+ create(params: Params$Resource$Organizations$Locations$Muteconfigs$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
7210
+ create(params: Params$Resource$Organizations$Locations$Muteconfigs$Create, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
7211
+ create(callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
7142
7212
  /**
7143
7213
  * Deletes an existing mute config.
7144
7214
  *
@@ -7167,6 +7237,20 @@ export declare namespace securitycenter_v1 {
7167
7237
  get(params: Params$Resource$Organizations$Locations$Muteconfigs$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
7168
7238
  get(params: Params$Resource$Organizations$Locations$Muteconfigs$Get, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
7169
7239
  get(callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
7240
+ /**
7241
+ * Lists mute configs.
7242
+ *
7243
+ * @param params - Parameters for request
7244
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7245
+ * @param callback - Optional callback that handles the response.
7246
+ * @returns A promise if used with async/await, or void if used with a callback.
7247
+ */
7248
+ list(params: Params$Resource$Organizations$Locations$Muteconfigs$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
7249
+ list(params?: Params$Resource$Organizations$Locations$Muteconfigs$List, options?: MethodOptions): GaxiosPromise<Schema$ListMuteConfigsResponse>;
7250
+ list(params: Params$Resource$Organizations$Locations$Muteconfigs$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
7251
+ list(params: Params$Resource$Organizations$Locations$Muteconfigs$List, options: MethodOptions | BodyResponseCallback<Schema$ListMuteConfigsResponse>, callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>): void;
7252
+ list(params: Params$Resource$Organizations$Locations$Muteconfigs$List, callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>): void;
7253
+ list(callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>): void;
7170
7254
  /**
7171
7255
  * Updates a mute config.
7172
7256
  *
@@ -7182,6 +7266,20 @@ export declare namespace securitycenter_v1 {
7182
7266
  patch(params: Params$Resource$Organizations$Locations$Muteconfigs$Patch, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
7183
7267
  patch(callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
7184
7268
  }
7269
+ export interface Params$Resource$Organizations$Locations$Muteconfigs$Create extends StandardParameters {
7270
+ /**
7271
+ * 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.
7272
+ */
7273
+ muteConfigId?: string;
7274
+ /**
7275
+ * Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".
7276
+ */
7277
+ parent?: string;
7278
+ /**
7279
+ * Request body metadata
7280
+ */
7281
+ requestBody?: Schema$GoogleCloudSecuritycenterV1MuteConfig;
7282
+ }
7185
7283
  export interface Params$Resource$Organizations$Locations$Muteconfigs$Delete extends StandardParameters {
7186
7284
  /**
7187
7285
  * Required. Name of the mute config to delete. Its format is organizations/{organization\}/muteConfigs/{config_id\}, folders/{folder\}/muteConfigs/{config_id\}, projects/{project\}/muteConfigs/{config_id\}, organizations/{organization\}/locations/global/muteConfigs/{config_id\}, folders/{folder\}/locations/global/muteConfigs/{config_id\}, or projects/{project\}/locations/global/muteConfigs/{config_id\}.
@@ -7194,6 +7292,20 @@ export declare namespace securitycenter_v1 {
7194
7292
  */
7195
7293
  name?: string;
7196
7294
  }
7295
+ export interface Params$Resource$Organizations$Locations$Muteconfigs$List extends StandardParameters {
7296
+ /**
7297
+ * 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.
7298
+ */
7299
+ pageSize?: number;
7300
+ /**
7301
+ * 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.
7302
+ */
7303
+ pageToken?: string;
7304
+ /**
7305
+ * Required. The parent, which owns the collection of mute configs. Its format is "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]".
7306
+ */
7307
+ parent?: string;
7308
+ }
7197
7309
  export interface Params$Resource$Organizations$Locations$Muteconfigs$Patch extends StandardParameters {
7198
7310
  /**
7199
7311
  * This field will be ignored if provided on config creation. Format "organizations/{organization\}/muteConfigs/{mute_config\}" "folders/{folder\}/muteConfigs/{mute_config\}" "projects/{project\}/muteConfigs/{mute_config\}" "organizations/{organization\}/locations/global/muteConfigs/{mute_config\}" "folders/{folder\}/locations/global/muteConfigs/{mute_config\}" "projects/{project\}/locations/global/muteConfigs/{mute_config\}"
@@ -7672,7 +7784,7 @@ export declare namespace securitycenter_v1 {
7672
7784
  }
7673
7785
  export interface Params$Resource$Organizations$Resourcevalueconfigs$Patch extends StandardParameters {
7674
7786
  /**
7675
- * Name for the resource value config
7787
+ * Name for the resource value configuration
7676
7788
  */
7677
7789
  name?: string;
7678
7790
  /**
@@ -9101,6 +9213,20 @@ export declare namespace securitycenter_v1 {
9101
9213
  export class Resource$Projects$Locations$Muteconfigs {
9102
9214
  context: APIRequestContext;
9103
9215
  constructor(context: APIRequestContext);
9216
+ /**
9217
+ * Creates a mute config.
9218
+ *
9219
+ * @param params - Parameters for request
9220
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9221
+ * @param callback - Optional callback that handles the response.
9222
+ * @returns A promise if used with async/await, or void if used with a callback.
9223
+ */
9224
+ create(params: Params$Resource$Projects$Locations$Muteconfigs$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
9225
+ create(params?: Params$Resource$Projects$Locations$Muteconfigs$Create, options?: MethodOptions): GaxiosPromise<Schema$GoogleCloudSecuritycenterV1MuteConfig>;
9226
+ create(params: Params$Resource$Projects$Locations$Muteconfigs$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
9227
+ create(params: Params$Resource$Projects$Locations$Muteconfigs$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
9228
+ create(params: Params$Resource$Projects$Locations$Muteconfigs$Create, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
9229
+ create(callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
9104
9230
  /**
9105
9231
  * Deletes an existing mute config.
9106
9232
  *
@@ -9129,6 +9255,20 @@ export declare namespace securitycenter_v1 {
9129
9255
  get(params: Params$Resource$Projects$Locations$Muteconfigs$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
9130
9256
  get(params: Params$Resource$Projects$Locations$Muteconfigs$Get, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
9131
9257
  get(callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
9258
+ /**
9259
+ * Lists mute configs.
9260
+ *
9261
+ * @param params - Parameters for request
9262
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9263
+ * @param callback - Optional callback that handles the response.
9264
+ * @returns A promise if used with async/await, or void if used with a callback.
9265
+ */
9266
+ list(params: Params$Resource$Projects$Locations$Muteconfigs$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
9267
+ list(params?: Params$Resource$Projects$Locations$Muteconfigs$List, options?: MethodOptions): GaxiosPromise<Schema$ListMuteConfigsResponse>;
9268
+ list(params: Params$Resource$Projects$Locations$Muteconfigs$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
9269
+ list(params: Params$Resource$Projects$Locations$Muteconfigs$List, options: MethodOptions | BodyResponseCallback<Schema$ListMuteConfigsResponse>, callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>): void;
9270
+ list(params: Params$Resource$Projects$Locations$Muteconfigs$List, callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>): void;
9271
+ list(callback: BodyResponseCallback<Schema$ListMuteConfigsResponse>): void;
9132
9272
  /**
9133
9273
  * Updates a mute config.
9134
9274
  *
@@ -9144,6 +9284,20 @@ export declare namespace securitycenter_v1 {
9144
9284
  patch(params: Params$Resource$Projects$Locations$Muteconfigs$Patch, callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
9145
9285
  patch(callback: BodyResponseCallback<Schema$GoogleCloudSecuritycenterV1MuteConfig>): void;
9146
9286
  }
9287
+ export interface Params$Resource$Projects$Locations$Muteconfigs$Create extends StandardParameters {
9288
+ /**
9289
+ * 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.
9290
+ */
9291
+ muteConfigId?: string;
9292
+ /**
9293
+ * Required. Resource name of the new mute configs's parent. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".
9294
+ */
9295
+ parent?: string;
9296
+ /**
9297
+ * Request body metadata
9298
+ */
9299
+ requestBody?: Schema$GoogleCloudSecuritycenterV1MuteConfig;
9300
+ }
9147
9301
  export interface Params$Resource$Projects$Locations$Muteconfigs$Delete extends StandardParameters {
9148
9302
  /**
9149
9303
  * Required. Name of the mute config to delete. Its format is organizations/{organization\}/muteConfigs/{config_id\}, folders/{folder\}/muteConfigs/{config_id\}, projects/{project\}/muteConfigs/{config_id\}, organizations/{organization\}/locations/global/muteConfigs/{config_id\}, folders/{folder\}/locations/global/muteConfigs/{config_id\}, or projects/{project\}/locations/global/muteConfigs/{config_id\}.
@@ -9156,6 +9310,20 @@ export declare namespace securitycenter_v1 {
9156
9310
  */
9157
9311
  name?: string;
9158
9312
  }
9313
+ export interface Params$Resource$Projects$Locations$Muteconfigs$List extends StandardParameters {
9314
+ /**
9315
+ * 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.
9316
+ */
9317
+ pageSize?: number;
9318
+ /**
9319
+ * 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.
9320
+ */
9321
+ pageToken?: string;
9322
+ /**
9323
+ * Required. The parent, which owns the collection of mute configs. Its format is "organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]".
9324
+ */
9325
+ parent?: string;
9326
+ }
9159
9327
  export interface Params$Resource$Projects$Locations$Muteconfigs$Patch extends StandardParameters {
9160
9328
  /**
9161
9329
  * This field will be ignored if provided on config creation. Format "organizations/{organization\}/muteConfigs/{mute_config\}" "folders/{folder\}/muteConfigs/{mute_config\}" "projects/{project\}/muteConfigs/{mute_config\}" "organizations/{organization\}/locations/global/muteConfigs/{mute_config\}" "folders/{folder\}/locations/global/muteConfigs/{mute_config\}" "projects/{project\}/locations/global/muteConfigs/{mute_config\}"
package/build/v1.js CHANGED
@@ -697,6 +697,38 @@ var securitycenter_v1;
697
697
  constructor(context) {
698
698
  this.context = context;
699
699
  }
700
+ create(paramsOrCallback, optionsOrCallback, callback) {
701
+ let params = (paramsOrCallback ||
702
+ {});
703
+ let options = (optionsOrCallback || {});
704
+ if (typeof paramsOrCallback === 'function') {
705
+ callback = paramsOrCallback;
706
+ params = {};
707
+ options = {};
708
+ }
709
+ if (typeof optionsOrCallback === 'function') {
710
+ callback = optionsOrCallback;
711
+ options = {};
712
+ }
713
+ const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/';
714
+ const parameters = {
715
+ options: Object.assign({
716
+ url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'),
717
+ method: 'POST',
718
+ apiVersion: '',
719
+ }, options),
720
+ params,
721
+ requiredParams: ['parent'],
722
+ pathParams: ['parent'],
723
+ context: this.context,
724
+ };
725
+ if (callback) {
726
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
727
+ }
728
+ else {
729
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
730
+ }
731
+ }
700
732
  delete(paramsOrCallback, optionsOrCallback, callback) {
701
733
  let params = (paramsOrCallback ||
702
734
  {});
@@ -761,6 +793,38 @@ var securitycenter_v1;
761
793
  return (0, googleapis_common_1.createAPIRequest)(parameters);
762
794
  }
763
795
  }
796
+ list(paramsOrCallback, optionsOrCallback, callback) {
797
+ let params = (paramsOrCallback ||
798
+ {});
799
+ let options = (optionsOrCallback || {});
800
+ if (typeof paramsOrCallback === 'function') {
801
+ callback = paramsOrCallback;
802
+ params = {};
803
+ options = {};
804
+ }
805
+ if (typeof optionsOrCallback === 'function') {
806
+ callback = optionsOrCallback;
807
+ options = {};
808
+ }
809
+ const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/';
810
+ const parameters = {
811
+ options: Object.assign({
812
+ url: (rootUrl + '/v1/{+parent}').replace(/([^:]\/)\/+/g, '$1'),
813
+ method: 'GET',
814
+ apiVersion: '',
815
+ }, options),
816
+ params,
817
+ requiredParams: ['parent'],
818
+ pathParams: ['parent'],
819
+ context: this.context,
820
+ };
821
+ if (callback) {
822
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
823
+ }
824
+ else {
825
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
826
+ }
827
+ }
764
828
  patch(paramsOrCallback, optionsOrCallback, callback) {
765
829
  let params = (paramsOrCallback ||
766
830
  {});
@@ -2478,6 +2542,39 @@ var securitycenter_v1;
2478
2542
  constructor(context) {
2479
2543
  this.context = context;
2480
2544
  }
2545
+ create(paramsOrCallback, optionsOrCallback, callback) {
2546
+ let params = (paramsOrCallback ||
2547
+ {});
2548
+ let options = (optionsOrCallback || {});
2549
+ if (typeof paramsOrCallback === 'function') {
2550
+ callback = paramsOrCallback;
2551
+ params =
2552
+ {};
2553
+ options = {};
2554
+ }
2555
+ if (typeof optionsOrCallback === 'function') {
2556
+ callback = optionsOrCallback;
2557
+ options = {};
2558
+ }
2559
+ const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/';
2560
+ const parameters = {
2561
+ options: Object.assign({
2562
+ url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'),
2563
+ method: 'POST',
2564
+ apiVersion: '',
2565
+ }, options),
2566
+ params,
2567
+ requiredParams: ['parent'],
2568
+ pathParams: ['parent'],
2569
+ context: this.context,
2570
+ };
2571
+ if (callback) {
2572
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
2573
+ }
2574
+ else {
2575
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
2576
+ }
2577
+ }
2481
2578
  delete(paramsOrCallback, optionsOrCallback, callback) {
2482
2579
  let params = (paramsOrCallback ||
2483
2580
  {});
@@ -2543,6 +2640,38 @@ var securitycenter_v1;
2543
2640
  return (0, googleapis_common_1.createAPIRequest)(parameters);
2544
2641
  }
2545
2642
  }
2643
+ list(paramsOrCallback, optionsOrCallback, callback) {
2644
+ let params = (paramsOrCallback ||
2645
+ {});
2646
+ let options = (optionsOrCallback || {});
2647
+ if (typeof paramsOrCallback === 'function') {
2648
+ callback = paramsOrCallback;
2649
+ params = {};
2650
+ options = {};
2651
+ }
2652
+ if (typeof optionsOrCallback === 'function') {
2653
+ callback = optionsOrCallback;
2654
+ options = {};
2655
+ }
2656
+ const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/';
2657
+ const parameters = {
2658
+ options: Object.assign({
2659
+ url: (rootUrl + '/v1/{+parent}').replace(/([^:]\/)\/+/g, '$1'),
2660
+ method: 'GET',
2661
+ apiVersion: '',
2662
+ }, options),
2663
+ params,
2664
+ requiredParams: ['parent'],
2665
+ pathParams: ['parent'],
2666
+ context: this.context,
2667
+ };
2668
+ if (callback) {
2669
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
2670
+ }
2671
+ else {
2672
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
2673
+ }
2674
+ }
2546
2675
  patch(paramsOrCallback, optionsOrCallback, callback) {
2547
2676
  let params = (paramsOrCallback ||
2548
2677
  {});
@@ -4970,6 +5099,38 @@ var securitycenter_v1;
4970
5099
  constructor(context) {
4971
5100
  this.context = context;
4972
5101
  }
5102
+ create(paramsOrCallback, optionsOrCallback, callback) {
5103
+ let params = (paramsOrCallback ||
5104
+ {});
5105
+ let options = (optionsOrCallback || {});
5106
+ if (typeof paramsOrCallback === 'function') {
5107
+ callback = paramsOrCallback;
5108
+ params = {};
5109
+ options = {};
5110
+ }
5111
+ if (typeof optionsOrCallback === 'function') {
5112
+ callback = optionsOrCallback;
5113
+ options = {};
5114
+ }
5115
+ const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/';
5116
+ const parameters = {
5117
+ options: Object.assign({
5118
+ url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'),
5119
+ method: 'POST',
5120
+ apiVersion: '',
5121
+ }, options),
5122
+ params,
5123
+ requiredParams: ['parent'],
5124
+ pathParams: ['parent'],
5125
+ context: this.context,
5126
+ };
5127
+ if (callback) {
5128
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
5129
+ }
5130
+ else {
5131
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
5132
+ }
5133
+ }
4973
5134
  delete(paramsOrCallback, optionsOrCallback, callback) {
4974
5135
  let params = (paramsOrCallback ||
4975
5136
  {});
@@ -5034,6 +5195,38 @@ var securitycenter_v1;
5034
5195
  return (0, googleapis_common_1.createAPIRequest)(parameters);
5035
5196
  }
5036
5197
  }
5198
+ list(paramsOrCallback, optionsOrCallback, callback) {
5199
+ let params = (paramsOrCallback ||
5200
+ {});
5201
+ let options = (optionsOrCallback || {});
5202
+ if (typeof paramsOrCallback === 'function') {
5203
+ callback = paramsOrCallback;
5204
+ params = {};
5205
+ options = {};
5206
+ }
5207
+ if (typeof optionsOrCallback === 'function') {
5208
+ callback = optionsOrCallback;
5209
+ options = {};
5210
+ }
5211
+ const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/';
5212
+ const parameters = {
5213
+ options: Object.assign({
5214
+ url: (rootUrl + '/v1/{+parent}').replace(/([^:]\/)\/+/g, '$1'),
5215
+ method: 'GET',
5216
+ apiVersion: '',
5217
+ }, options),
5218
+ params,
5219
+ requiredParams: ['parent'],
5220
+ pathParams: ['parent'],
5221
+ context: this.context,
5222
+ };
5223
+ if (callback) {
5224
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
5225
+ }
5226
+ else {
5227
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
5228
+ }
5229
+ }
5037
5230
  patch(paramsOrCallback, optionsOrCallback, callback) {
5038
5231
  let params = (paramsOrCallback ||
5039
5232
  {});