diff --git a/packages/google-cloud-securitycenter/README.md b/packages/google-cloud-securitycenter/README.md index 85a1d4bc2b9..77a116da6de 100644 --- a/packages/google-cloud-securitycenter/README.md +++ b/packages/google-cloud-securitycenter/README.md @@ -90,23 +90,30 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Security_center.create_finding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_finding.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_finding.js,samples/README.md) | | Security_center.create_mute_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_mute_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_mute_config.js,samples/README.md) | | Security_center.create_notification_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_notification_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_notification_config.js,samples/README.md) | +| Security_center.create_security_health_analytics_custom_module | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_security_health_analytics_custom_module.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_security_health_analytics_custom_module.js,samples/README.md) | | Security_center.create_source | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_source.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_source.js,samples/README.md) | | Security_center.delete_big_query_export | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_big_query_export.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_big_query_export.js,samples/README.md) | | Security_center.delete_mute_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_mute_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_mute_config.js,samples/README.md) | | Security_center.delete_notification_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_notification_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_notification_config.js,samples/README.md) | +| Security_center.delete_security_health_analytics_custom_module | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_security_health_analytics_custom_module.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_security_health_analytics_custom_module.js,samples/README.md) | | Security_center.get_big_query_export | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_big_query_export.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_big_query_export.js,samples/README.md) | +| Security_center.get_effective_security_health_analytics_custom_module | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_effective_security_health_analytics_custom_module.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_effective_security_health_analytics_custom_module.js,samples/README.md) | | Security_center.get_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_iam_policy.js,samples/README.md) | | Security_center.get_mute_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_mute_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_mute_config.js,samples/README.md) | | Security_center.get_notification_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_notification_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_notification_config.js,samples/README.md) | | Security_center.get_organization_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_organization_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_organization_settings.js,samples/README.md) | +| Security_center.get_security_health_analytics_custom_module | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_security_health_analytics_custom_module.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_security_health_analytics_custom_module.js,samples/README.md) | | Security_center.get_source | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_source.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_source.js,samples/README.md) | | Security_center.group_assets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.group_assets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.group_assets.js,samples/README.md) | | Security_center.group_findings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.group_findings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.group_findings.js,samples/README.md) | | Security_center.list_assets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_assets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_assets.js,samples/README.md) | | Security_center.list_big_query_exports | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_big_query_exports.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_big_query_exports.js,samples/README.md) | +| Security_center.list_descendant_security_health_analytics_custom_modules | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_descendant_security_health_analytics_custom_modules.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_descendant_security_health_analytics_custom_modules.js,samples/README.md) | +| Security_center.list_effective_security_health_analytics_custom_modules | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_effective_security_health_analytics_custom_modules.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_effective_security_health_analytics_custom_modules.js,samples/README.md) | | Security_center.list_findings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_findings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_findings.js,samples/README.md) | | Security_center.list_mute_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_mute_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_mute_configs.js,samples/README.md) | | Security_center.list_notification_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_notification_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_notification_configs.js,samples/README.md) | +| Security_center.list_security_health_analytics_custom_modules | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_security_health_analytics_custom_modules.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_security_health_analytics_custom_modules.js,samples/README.md) | | Security_center.list_sources | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_sources.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_sources.js,samples/README.md) | | Security_center.run_asset_discovery | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.run_asset_discovery.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.run_asset_discovery.js,samples/README.md) | | Security_center.set_finding_state | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.set_finding_state.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.set_finding_state.js,samples/README.md) | @@ -119,6 +126,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Security_center.update_mute_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_mute_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_mute_config.js,samples/README.md) | | Security_center.update_notification_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_notification_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_notification_config.js,samples/README.md) | | Security_center.update_organization_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_organization_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_organization_settings.js,samples/README.md) | +| Security_center.update_security_health_analytics_custom_module | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_security_health_analytics_custom_module.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_security_health_analytics_custom_module.js,samples/README.md) | | Security_center.update_security_marks | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_security_marks.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_security_marks.js,samples/README.md) | | Security_center.update_source | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_source.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_source.js,samples/README.md) | | Security_center.create_finding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1beta1/security_center.create_finding.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1beta1/security_center.create_finding.js,samples/README.md) | diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/access.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/access.proto index b5d9d0d8368..55ff088de8b 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/access.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/access.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -106,4 +106,4 @@ message ServiceAccountDelegationInfo { message Geolocation { // A CLDR. string region_code = 1; -} \ No newline at end of file +} diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/asset.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/asset.proto index 8bfdbe9fd3f..01462175af3 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/asset.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/asset.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/bigquery_export.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/bigquery_export.proto index 6afd9b4f54f..8299f05e49f 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/bigquery_export.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/bigquery_export.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -78,22 +78,24 @@ message BigQueryExport { // (0-9), or underscores (_). string dataset = 4; - // Output only. The time at which the big query export was created. + // Output only. The time at which the BigQuery export was created. // This field is set by the server and will be ignored if provided on export // on creation. - google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The most recent time at which the big export was updated. + // Output only. The most recent time at which the BigQuery export was updated. // This field is set by the server and will be ignored if provided on export // creation or update. - google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Email address of the user who last edited the big query export. + // Output only. Email address of the user who last edited the BigQuery export. // This field is set by the server and will be ignored if provided on export // creation or update. string most_recent_editor = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The service account that needs permission to create table, upload data to - // the big query dataset. + // Output only. The service account that needs permission to create table and + // upload data to the BigQuery dataset. string principal = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/compliance.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/compliance.proto index 13edb396b9a..bc183bb5e37 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/compliance.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/compliance.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/connection.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/connection.proto index 6ac9c99e5e0..43a2115674c 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/connection.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/connection.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/contact_details.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/contact_details.proto index c0e7c2f761c..741ad8fae1d 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/contact_details.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/contact_details.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -30,8 +30,8 @@ message ContactDetails { repeated Contact contacts = 1; } -// Representa a single contact's email address +// The email address of a contact. message Contact { - // An email address e.g. "person123@company.com" + // An email address. For example, "`person123@company.com`". string email = 1; } diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/container.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/container.proto index 420356368cd..c90168991f6 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/container.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/container.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/database.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/database.proto index 39afb4e010d..70bf3516103 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/database.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/database.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ option ruby_package = "Google::Cloud::SecurityCenter::V1"; // instances or Cloud Spanner instances), or the database instance itself. // Some database resources may not have the full resource name populated // because these resource types are not yet supported by Cloud Asset Inventory -// (e.g. CloudSQL databases). In these cases only the display name will be +// (e.g. CloudSQL databases). In these cases only the display name will be // provided. message Database { // The full resource name of the database the user connected to, if it is diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.proto new file mode 100644 index 00000000000..3c5cc8af3b0 --- /dev/null +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.proto @@ -0,0 +1,81 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto"; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "EffectiveSecurityHealthAnalyticsCustomModuleProto"; +option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; +option ruby_package = "Google::Cloud::SecurityCenter::V1"; + +// An EffectiveSecurityHealthAnalyticsCustomModule is the representation of +// a Security Health Analytics custom module at a specified level of the +// resource hierarchy: organization, folder, or project. If a custom module is +// inherited from a parent organization or folder, the value of the +// `enablementState` property in EffectiveSecurityHealthAnalyticsCustomModule is +// set to the value that is effective in the parent, instead of `INHERITED`. +// For example, if the module is enabled in a parent organization or folder, the +// effective enablement_state for the module in all child folders or projects is +// also `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only. +message EffectiveSecurityHealthAnalyticsCustomModule { + option (google.api.resource) = { + type: "securitycenter.googleapis.com/EffectiveSecurityHealthAnalyticsCustomModule" + pattern: "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}" + pattern: "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}" + pattern: "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}" + }; + + // The enablement state of the module. + enum EnablementState { + // Unspecified enablement state. + ENABLEMENT_STATE_UNSPECIFIED = 0; + + // The module is enabled at the given level. + ENABLED = 1; + + // The module is disabled at the given level. + DISABLED = 2; + } + + // Output only. The resource name of the custom module. + // Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + // or + // "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + // or + // "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The user-specified configuration for the module. + CustomConfig custom_config = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The effective state of enablement for the module at the given + // level of the hierarchy. + EnablementState enablement_state = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The display name for the custom module. The name must be + // between 1 and 128 characters, start with a lowercase letter, and contain + // alphanumeric characters or underscores only. + string display_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/exfiltration.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/exfiltration.proto index 02620be69c2..4c3735dedf2 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/exfiltration.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/exfiltration.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; option ruby_package = "Google::Cloud::SecurityCenter::V1"; // Exfiltration represents a data exfiltration attempt of one or more -// sources to one or more targets. Sources represent the source +// sources to one or more targets. Sources represent the source // of data that is exfiltrated, and Targets represents the destination the // data was copied to. message Exfiltration { diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/external_system.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/external_system.proto index 5dd45724718..0e23d6a675f 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/external_system.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/external_system.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/file.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/file.proto index 99cfa07ad9d..4d7a459590c 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/file.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/file.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/finding.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/finding.proto index ade6cca0a60..5e2653c5e59 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/finding.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/finding.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -254,17 +254,19 @@ message Finding { // Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise Indicator indicator = 18; - // Represents vulnerability-specific fields like CVE and CVS scores. + // Represents vulnerability-specific fields like CVE and CVSS scores. // CVE stands for Common Vulnerabilities and Exposures // (https://cve.mitre.org/about/) Vulnerability vulnerability = 20; // Output only. The most recent time this finding was muted or unmuted. - google.protobuf.Timestamp mute_update_time = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp mute_update_time = 21 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Third party SIEM/SOAR fields within SCC, contains external system - // information and external system finding fields. - map external_systems = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Third party SIEM/SOAR fields within SCC, contains external + // system information and external system finding fields. + map external_systems = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; // MITRE ATT&CK tactics and techniques related to this finding. // See: https://attack.mitre.org @@ -286,9 +288,9 @@ message Finding { // Represents operating system processes associated with the Finding. repeated Process processes = 30; - // Output only. Map containing the points of contact for the given finding. The key - // represents the type of contact, while the value contains a list of all the - // contacts that pertain. Please refer to: + // Output only. Map containing the points of contact for the given finding. + // The key represents the type of contact, while the value contains a list of + // all the contacts that pertain. Please refer to: // https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories // // { @@ -303,7 +305,8 @@ message Finding { // ] // } // } - map contacts = 33 [(google.api.field_behavior) = OUTPUT_ONLY]; + map contacts = 33 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Contains compliance information for security standards associated to the // finding. @@ -325,6 +328,11 @@ message Finding { // Next steps associate to the finding. string next_steps = 40; + // Unique identifier of the module which generated the finding. + // Example: + // folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885 + string module_name = 41; + // Containers associated with the finding. containers provides information // for both Kubernetes and non-Kubernetes containers. repeated Container containers = 42; diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/folder.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/folder.proto index 2a1291daa78..e809154231c 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/folder.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/folder.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/iam_binding.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/iam_binding.proto index 9d68642df0a..533ac4bdadc 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/iam_binding.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/iam_binding.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/indicator.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/indicator.proto index 567bc384d59..f36e8b4872d 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/indicator.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/indicator.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -24,10 +24,11 @@ option java_package = "com.google.cloud.securitycenter.v1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; option ruby_package = "Google::Cloud::SecurityCenter::V1"; -// Represents what's commonly known as an Indicator of compromise (IoC) in +// Represents what's commonly known as an _indicator of compromise_ (IoC) in // computer forensics. This is an artifact observed on a network or in an // operating system that, with high confidence, indicates a computer intrusion. -// Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise +// For more information, see [Indicator of +// compromise](https://en.wikipedia.org/wiki/Indicator_of_compromise). message Indicator { // Indicates what signature matched this process. message ProcessSignature { @@ -67,7 +68,7 @@ message Indicator { } } - // List of ip addresses associated to the Finding. + // The list of IP addresses that are associated with the finding. repeated string ip_addresses = 1; // List of domains associated to the Finding. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/kernel_rootkit.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/kernel_rootkit.proto index f2178ad55f5..6af2840bf06 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/kernel_rootkit.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/kernel_rootkit.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,34 +29,34 @@ message KernelRootkit { // Rootkit name when available. string name = 1; - // True if unexpected modifications of kernel code memory are present. + // True when unexpected modifications of kernel code memory are present. bool unexpected_code_modification = 2; - // True if unexpected modifications of kernel read-only data memory are + // True when unexpected modifications of kernel read-only data memory are // present. bool unexpected_read_only_data_modification = 3; - // True if `ftrace` points are present with callbacks pointing to regions + // True when `ftrace` points are present with callbacks pointing to regions // that are not in the expected kernel or module code range. bool unexpected_ftrace_handler = 4; - // True if `kprobe` points are present with callbacks pointing to regions + // True when `kprobe` points are present with callbacks pointing to regions // that are not in the expected kernel or module code range. bool unexpected_kprobe_handler = 5; - // True if kernel code pages that are not in the expected kernel or module + // True when kernel code pages that are not in the expected kernel or module // code regions are present. bool unexpected_kernel_code_pages = 6; - // True if system call handlers that are are not in the expected kernel or + // True when system call handlers that are are not in the expected kernel or // module code regions are present. bool unexpected_system_call_handler = 7; - // True if interrupt handlers that are are not in the expected kernel or + // True when interrupt handlers that are are not in the expected kernel or // module code regions are present. bool unexpected_interrupt_handler = 8; - // True if unexpected processes in the scheduler run queue are present. Such + // True when unexpected processes in the scheduler run queue are present. Such // processes are in the run queue, but not in the process task list. bool unexpected_processes_in_runqueue = 9; } diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/kubernetes.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/kubernetes.proto index dfe24c04fab..ac1df835116 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/kubernetes.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/kubernetes.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ option java_package = "com.google.cloud.securitycenter.v1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; option ruby_package = "Google::Cloud::SecurityCenter::V1"; -// Kubernetes related attributes. +// Kubernetes-related attributes. message Kubernetes { // Kubernetes Pod. message Pod { @@ -96,8 +96,8 @@ message Kubernetes { // The Role or ClusterRole referenced by the binding. Role role = 3; - // Represents the subjects(s) bound to the role. Not always available - // for PATCH requests. + // Represents one or more subjects that are bound to the role. Not always + // available for PATCH requests. repeated Subject subjects = 4; } diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/label.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/label.proto index cc554342e6e..0760c82d840 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/label.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/label.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/mitre_attack.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/mitre_attack.proto index 708b10390c9..79425d2c60d 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/mitre_attack.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/mitre_attack.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/mute_config.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/mute_config.proto index 20d2cb059e0..d2a8db68499 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/mute_config.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/mute_config.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -50,11 +50,11 @@ message MuteConfig { // A description of the mute config. string description = 3; - // Required. An expression that defines the filter to apply across create/update events - // of findings. While creating a filter string, be mindful of the - // scope in which the mute configuration is being created. E.g., If a filter - // contains project = X but is created under the project = Y scope, it might - // not match any findings. + // Required. An expression that defines the filter to apply across + // create/update events of findings. While creating a filter string, be + // mindful of the scope in which the mute configuration is being created. + // E.g., If a filter contains project = X but is created under the project = Y + // scope, it might not match any findings. // // The following field and operator combinations are supported: // @@ -75,12 +75,14 @@ message MuteConfig { // Output only. The time at which the mute config was created. // This field is set by the server and will be ignored if provided on config // creation. - google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The most recent time at which the mute config was updated. // This field is set by the server and will be ignored if provided on config // creation or update. - google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Email address of the user who last edited the mute config. // This field is set by the server and will be ignored if provided on config diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/notification_config.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/notification_config.proto index 1bce1cfe771..de2a88b6bb1 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/notification_config.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/notification_config.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -83,9 +83,9 @@ message NotificationConfig { // The Pub/Sub topic to send notifications to. Its format is // "projects/[project_id]/topics/[topic]". - string pubsub_topic = 3 [(google.api.resource_reference) = { - type: "pubsub.googleapis.com/Topic" - }]; + string pubsub_topic = 3 [ + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } + ]; // Output only. The service account that needs "pubsub.topics.publish" // permission to publish to the Pub/Sub topic. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/notification_message.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/notification_message.proto index 80f98ea2da0..59841d92ede 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/notification_message.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/notification_message.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/organization_settings.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/organization_settings.proto index 460ee701fb5..66880a17c63 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/organization_settings.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/organization_settings.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/process.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/process.proto index c885f48ec96..3ec0a5c29f1 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/process.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/process.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/resource.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/resource.proto index 3adcda1fcee..626974ea962 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/resource.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/resource.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -51,8 +51,8 @@ message Resource { // The human readable name of resource's parent. string parent_display_name = 5; - // Output only. Contains a Folder message for each folder in the assets ancestry. - // The first folder is the deepest nested folder, and the last folder is the - // folder directly under the Organization. + // Output only. Contains a Folder message for each folder in the assets + // ancestry. The first folder is the deepest nested folder, and the last + // folder is the folder directly under the Organization. repeated Folder folders = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/run_asset_discovery_response.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/run_asset_discovery_response.proto index c2861883f57..f331fb9ec78 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/run_asset_discovery_response.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/run_asset_discovery_response.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto new file mode 100644 index 00000000000..337f0a3bb3f --- /dev/null +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto @@ -0,0 +1,101 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +import "google/type/expr.proto"; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "SecurityHealthAnalyticsCustomConfigProto"; +option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; +option ruby_package = "Google::Cloud::SecurityCenter::V1"; + +// Defines the properties in a custom module configuration for Security +// Health Analytics. Use the custom module configuration to create custom +// detectors that generate custom findings for resources that you specify. +message CustomConfig { + // A set of optional name-value pairs that define custom source properties to + // return with each finding that is generated by the custom module. The custom + // source properties that are defined here are included in the finding JSON + // under `sourceProperties`. + message CustomOutputSpec { + // An individual name-value pair that defines a custom source property. + message Property { + // Name of the property for the custom output. + string name = 1; + + // The CEL expression for the custom output. A resource property can be + // specified to return the value of the property or a text string enclosed + // in quotation marks. + google.type.Expr value_expression = 2; + } + + // A list of custom output properties to add to the finding. + repeated Property properties = 1; + } + + // Resource for selecting resource type. + message ResourceSelector { + // The resource types to run the detector on. + repeated string resource_types = 1; + } + + // Defines the valid value options for the severity of a finding. + enum Severity { + // Unspecified severity. + SEVERITY_UNSPECIFIED = 0; + + // Critical severity. + CRITICAL = 1; + + // High severity. + HIGH = 2; + + // Medium severity. + MEDIUM = 3; + + // Low severity. + LOW = 4; + } + + // The CEL expression to evaluate to produce findings. When the expression + // evaluates to true against a resource, a finding is generated. + google.type.Expr predicate = 1; + + // Custom output properties. + CustomOutputSpec custom_output = 2; + + // The resource types that the custom module operates on. Each custom module + // can specify up to 5 resource types. + ResourceSelector resource_selector = 3; + + // The severity to assign to findings generated by the module. + Severity severity = 4; + + // Text that describes the vulnerability or misconfiguration that the custom + // module detects. This explanation is returned with each finding instance to + // help investigators understand the detected issue. The text must be enclosed + // in quotation marks. + string description = 5; + + // An explanation of the recommended steps that security teams can take to + // resolve the detected issue. This explanation is returned with each finding + // generated by this module in the `nextSteps` property of the finding JSON. + string recommendation = 6; +} diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/security_health_analytics_custom_module.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/security_health_analytics_custom_module.proto new file mode 100644 index 00000000000..7e7343d064f --- /dev/null +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/security_health_analytics_custom_module.proto @@ -0,0 +1,110 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "SecurityHealthAnalyticsCustomModuleProto"; +option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; +option ruby_package = "Google::Cloud::SecurityCenter::V1"; +option (google.api.resource_definition) = { + type: "securitycenter.googleapis.com/SecurityHealthAnalyticsSettings" + pattern: "organizations/{organization}/securityHealthAnalyticsSettings" + pattern: "folders/{folder}/securityHealthAnalyticsSettings" + pattern: "projects/{project}/securityHealthAnalyticsSettings" +}; + +// Represents an instance of a Security Health Analytics custom module, +// including its full module name, display name, enablement state, and last +// updated time. You can create a custom module at the organization, folder, or +// project level. Custom modules that you create at the organization or folder +// level are inherited by the child folders and projects. +message SecurityHealthAnalyticsCustomModule { + option (google.api.resource) = { + type: "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + pattern: "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{custom_module}" + pattern: "folders/{folder}/securityHealthAnalyticsSettings/customModules/{custom_module}" + pattern: "projects/{project}/securityHealthAnalyticsSettings/customModules/{custom_module}" + }; + + // Possible enablement states of a custom module. + enum EnablementState { + // Unspecified enablement state. + ENABLEMENT_STATE_UNSPECIFIED = 0; + + // The module is enabled at the given CRM resource. + ENABLED = 1; + + // The module is disabled at the given CRM resource. + DISABLED = 2; + + // State is inherited from an ancestor module. The module will either + // be effectively ENABLED or DISABLED based on its closest non-inherited + // ancestor module in the CRM hierarchy. + INHERITED = 3; + } + + // Immutable. The resource name of the custom module. + // Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", + // or + // "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", + // or + // "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" + // + // The id {customModule} is server-generated and is not user settable. + // It will be a numeric id containing 1-20 digits. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // The display name of the Security Health Analytics custom module. This + // display name becomes the finding category for all findings that are + // returned by this custom module. The display name must be between 1 and + // 128 characters, start with a lowercase letter, and contain alphanumeric + // characters or underscores only. + string display_name = 2; + + // The enablement state of the custom module. + EnablementState enablement_state = 4; + + // Output only. The time at which the custom module was last updated. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The editor that last updated the custom module. + string last_editor = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If empty, indicates that the custom module was created in the + // organization, folder, or project in which you are viewing the custom + // module. Otherwise, `ancestor_module` specifies the organization or folder + // from which the custom module is inherited. + string ancestor_module = 7 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + ]; + + // The user specified custom configuration for the module. + CustomConfig custom_config = 8; +} diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/security_marks.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/security_marks.proto index c0118899b17..74c641dea83 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/security_marks.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/security_marks.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/securitycenter_service.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/securitycenter_service.proto index 94aef2df240..42db34f29a0 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/securitycenter_service.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/securitycenter_service.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,20 +16,21 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; -import public "google/cloud/securitycenter/v1/run_asset_discovery_response.proto"; - import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/securitycenter/v1/asset.proto"; import "google/cloud/securitycenter/v1/bigquery_export.proto"; +import "google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.proto"; import "google/cloud/securitycenter/v1/external_system.proto"; import "google/cloud/securitycenter/v1/finding.proto"; import "google/cloud/securitycenter/v1/folder.proto"; import "google/cloud/securitycenter/v1/mute_config.proto"; import "google/cloud/securitycenter/v1/notification_config.proto"; import "google/cloud/securitycenter/v1/organization_settings.proto"; +import "google/cloud/securitycenter/v1/run_asset_discovery_response.proto"; +import "google/cloud/securitycenter/v1/security_health_analytics_custom_module.proto"; import "google/cloud/securitycenter/v1/security_marks.proto"; import "google/cloud/securitycenter/v1/source.proto"; import "google/iam/v1/iam_policy.proto"; @@ -78,6 +79,29 @@ service SecurityCenter { }; } + // Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the + // given CRM parent, and also creates inherited + // SecurityHealthAnalyticsCustomModules for all CRM descendants of the given + // parent. These modules are enabled by default. + rpc CreateSecurityHealthAnalyticsCustomModule( + CreateSecurityHealthAnalyticsCustomModuleRequest) + returns (SecurityHealthAnalyticsCustomModule) { + option (google.api.http) = { + post: "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules" + body: "security_health_analytics_custom_module" + additional_bindings { + post: "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/customModules" + body: "security_health_analytics_custom_module" + } + additional_bindings { + post: "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/customModules" + body: "security_health_analytics_custom_module" + } + }; + option (google.api.method_signature) = + "parent,security_health_analytics_custom_module"; + } + // Creates a source. rpc CreateSource(CreateSourceRequest) returns (Source) { option (google.api.http) = { @@ -161,6 +185,24 @@ service SecurityCenter { option (google.api.method_signature) = "name"; } + // Deletes the specified SecurityHealthAnalyticsCustomModule and all of its + // descendants in the CRM hierarchy. This method is only supported for + // resident custom modules. + rpc DeleteSecurityHealthAnalyticsCustomModule( + DeleteSecurityHealthAnalyticsCustomModuleRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=organizations/*/securityHealthAnalyticsSettings/customModules/*}" + additional_bindings { + delete: "/v1/{name=folders/*/securityHealthAnalyticsSettings/customModules/*}" + } + additional_bindings { + delete: "/v1/{name=projects/*/securityHealthAnalyticsSettings/customModules/*}" + } + }; + option (google.api.method_signature) = "name"; + } + // Gets a BigQuery export. rpc GetBigQueryExport(GetBigQueryExportRequest) returns (BigQueryExport) { option (google.api.http) = { @@ -211,6 +253,38 @@ service SecurityCenter { option (google.api.method_signature) = "name"; } + // Retrieves an EffectiveSecurityHealthAnalyticsCustomModule. + rpc GetEffectiveSecurityHealthAnalyticsCustomModule( + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + returns (EffectiveSecurityHealthAnalyticsCustomModule) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/securityHealthAnalyticsSettings/effectiveCustomModules/*}" + additional_bindings { + get: "/v1/{name=folders/*/securityHealthAnalyticsSettings/effectiveCustomModules/*}" + } + additional_bindings { + get: "/v1/{name=projects/*/securityHealthAnalyticsSettings/effectiveCustomModules/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Retrieves a SecurityHealthAnalyticsCustomModule. + rpc GetSecurityHealthAnalyticsCustomModule( + GetSecurityHealthAnalyticsCustomModuleRequest) + returns (SecurityHealthAnalyticsCustomModule) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/securityHealthAnalyticsSettings/customModules/*}" + additional_bindings { + get: "/v1/{name=folders/*/securityHealthAnalyticsSettings/customModules/*}" + } + additional_bindings { + get: "/v1/{name=projects/*/securityHealthAnalyticsSettings/customModules/*}" + } + }; + option (google.api.method_signature) = "name"; + } + // Gets a source. rpc GetSource(GetSourceRequest) returns (Source) { option (google.api.http) = { @@ -268,6 +342,23 @@ service SecurityCenter { }; } + // Returns a list of all resident SecurityHealthAnalyticsCustomModules under + // the given CRM parent and all of the parent’s CRM descendants. + rpc ListDescendantSecurityHealthAnalyticsCustomModules( + ListDescendantSecurityHealthAnalyticsCustomModulesRequest) + returns (ListDescendantSecurityHealthAnalyticsCustomModulesResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules:listDescendant" + additional_bindings { + get: "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/customModules:listDescendant" + } + additional_bindings { + get: "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/customModules:listDescendant" + } + }; + option (google.api.method_signature) = "parent"; + } + // Lists an organization or source's findings. // // To list across all sources provide a `-` as the source id. @@ -302,6 +393,42 @@ service SecurityCenter { option (google.api.method_signature) = "parent"; } + // Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the + // given parent. This includes resident modules defined at the scope of the + // parent, and inherited modules, inherited from CRM ancestors. + rpc ListEffectiveSecurityHealthAnalyticsCustomModules( + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) + returns (ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/effectiveCustomModules" + additional_bindings { + get: "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/effectiveCustomModules" + } + additional_bindings { + get: "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/effectiveCustomModules" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Returns a list of all SecurityHealthAnalyticsCustomModules for the given + // parent. This includes resident modules defined at the scope of the parent, + // and inherited modules, inherited from CRM ancestors. + rpc ListSecurityHealthAnalyticsCustomModules( + ListSecurityHealthAnalyticsCustomModulesRequest) + returns (ListSecurityHealthAnalyticsCustomModulesResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules" + additional_bindings { + get: "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/customModules" + } + additional_bindings { + get: "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/customModules" + } + }; + option (google.api.method_signature) = "parent"; + } + // Lists all sources belonging to an organization. rpc ListSources(ListSourcesRequest) returns (ListSourcesResponse) { option (google.api.http) = { @@ -469,6 +596,30 @@ service SecurityCenter { option (google.api.method_signature) = "organization_settings"; } + // Updates the SecurityHealthAnalyticsCustomModule under the given name based + // on the given update mask. Updating the enablement state is supported on + // both resident and inherited modules (though resident modules cannot have an + // enablement state of “inherited”). Updating the display name and custom + // config of a module is supported on resident modules only. + rpc UpdateSecurityHealthAnalyticsCustomModule( + UpdateSecurityHealthAnalyticsCustomModuleRequest) + returns (SecurityHealthAnalyticsCustomModule) { + option (google.api.http) = { + patch: "/v1/{security_health_analytics_custom_module.name=organizations/*/securityHealthAnalyticsSettings/customModules/*}" + body: "security_health_analytics_custom_module" + additional_bindings { + patch: "/v1/{security_health_analytics_custom_module.name=folders/*/securityHealthAnalyticsSettings/customModules/*}" + body: "security_health_analytics_custom_module" + } + additional_bindings { + patch: "/v1/{security_health_analytics_custom_module.name=projects/*/securityHealthAnalyticsSettings/customModules/*}" + body: "security_health_analytics_custom_module" + } + }; + option (google.api.method_signature) = + "security_health_analytics_custom_module,update_mask"; + } + // Updates a source. rpc UpdateSource(UpdateSourceRequest) returns (Source) { option (google.api.http) = { @@ -684,6 +835,26 @@ message CreateNotificationConfigRequest { [(google.api.field_behavior) = REQUIRED]; } +// Request message for creating security health analytics custom modules. +message CreateSecurityHealthAnalyticsCustomModuleRequest { + // Required. Resource name of the new custom module's parent. Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings", + // "folders/{folder}/securityHealthAnalyticsSettings", or + // "projects/{project}/securityHealthAnalyticsSettings" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + ]; + + // Required. SecurityHealthAnalytics custom module to create. The provided + // name is ignored and reset with provided parent information and + // server-generated ID. + SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = + 2 [(google.api.field_behavior) = REQUIRED]; +} + // Request message for creating a source. message CreateSourceRequest { // Required. Resource name of the new source's parent. Its format should be @@ -728,6 +899,21 @@ message DeleteNotificationConfigRequest { ]; } +// Request message for deleting security health analytics custom modules. +message DeleteSecurityHealthAnalyticsCustomModuleRequest { + // Required. Name of the custom module to delete. Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", + // "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", + // or + // "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + ]; +} + // Request message for retrieving a BigQuery export. message GetBigQueryExportRequest { // Required. Name of the BigQuery export to retrieve. Its format is @@ -782,6 +968,37 @@ message GetOrganizationSettingsRequest { ]; } +// Request message for getting effective security health analytics custom +// modules. +message GetEffectiveSecurityHealthAnalyticsCustomModuleRequest { + // Required. Name of the effective custom module to get. Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + // "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + // or + // "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/EffectiveSecurityHealthAnalyticsCustomModule" + } + ]; +} + +// Request message for getting security health analytics custom modules. +message GetSecurityHealthAnalyticsCustomModuleRequest { + // Required. Name of the custom module to get. Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", + // "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", + // or + // "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + ]; +} + // Request message for getting a source. message GetSourceRequest { // Required. Relative resource name of the source. Its format is @@ -1124,6 +1341,40 @@ message GroupResult { int64 count = 2; } +// Request message for listing descendant security health analytics custom +// modules. +message ListDescendantSecurityHealthAnalyticsCustomModulesRequest { + // Required. Name of parent to list descendant custom modules. Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings", + // "folders/{folder}/securityHealthAnalyticsSettings", or + // "projects/{project}/securityHealthAnalyticsSettings" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + ]; + + // The maximum number of results to return in a single response. Default is + // 10, minimum is 1, maximum is 1000. + int32 page_size = 2; + + // The value returned by the last call indicating a continuation + string page_token = 3; +} + +// Response message for listing descendant security health analytics custom +// modules. +message ListDescendantSecurityHealthAnalyticsCustomModulesResponse { + // Custom modules belonging to the requested parent and its descendants. + repeated SecurityHealthAnalyticsCustomModule + security_health_analytics_custom_modules = 1; + + // If not empty, indicates that there may be more custom modules to be + // returned. + string next_page_token = 2; +} + // Request message for listing mute configs at a given scope e.g. organization, // folder or project. message ListMuteConfigsRequest { @@ -1193,6 +1444,72 @@ message ListNotificationConfigsResponse { string next_page_token = 2; } +// Request message for listing effective security health analytics custom +// modules. +message ListEffectiveSecurityHealthAnalyticsCustomModulesRequest { + // Required. Name of parent to list effective custom modules. Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings", + // "folders/{folder}/securityHealthAnalyticsSettings", or + // "projects/{project}/securityHealthAnalyticsSettings" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + ]; + + // The maximum number of results to return in a single response. Default is + // 10, minimum is 1, maximum is 1000. + int32 page_size = 2; + + // The value returned by the last call indicating a continuation + string page_token = 3; +} + +// Response message for listing effective security health analytics custom +// modules. +message ListEffectiveSecurityHealthAnalyticsCustomModulesResponse { + // Effective custom modules belonging to the requested parent. + repeated EffectiveSecurityHealthAnalyticsCustomModule + effective_security_health_analytics_custom_modules = 1; + + // If not empty, indicates that there may be more effective custom modules to + // be returned. + string next_page_token = 2; +} + +// Request message for listing security health analytics custom modules. +message ListSecurityHealthAnalyticsCustomModulesRequest { + // Required. Name of parent to list custom modules. Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings", + // "folders/{folder}/securityHealthAnalyticsSettings", or + // "projects/{project}/securityHealthAnalyticsSettings" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + ]; + + // The maximum number of results to return in a single response. Default is + // 10, minimum is 1, maximum is 1000. + int32 page_size = 2; + + // The value returned by the last call indicating a continuation + string page_token = 3; +} + +// Response message for listing security health analytics custom modules. +message ListSecurityHealthAnalyticsCustomModulesResponse { + // Custom modules belonging to the requested parent. + repeated SecurityHealthAnalyticsCustomModule + security_health_analytics_custom_modules = 1; + + // If not empty, indicates that there may be more custom modules to be + // returned. + string next_page_token = 2; +} + // Request message for listing sources. message ListSourcesRequest { // Required. Resource name of the parent of sources to list. Its format should @@ -1775,6 +2092,16 @@ message UpdateOrganizationSettingsRequest { google.protobuf.FieldMask update_mask = 2; } +// Request message for updating security health analytics custom modules. +message UpdateSecurityHealthAnalyticsCustomModuleRequest { + // Required. The SecurityHealthAnalytics custom module to update. + SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = + 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to update. + google.protobuf.FieldMask update_mask = 2; +} + // Request message for updating a source. message UpdateSourceRequest { // Required. The source resource to update. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/source.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/source.proto index daf7c3c601e..0aed0286225 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/source.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/source.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/vulnerability.proto b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/vulnerability.proto index eeff9563364..457e88c7319 100644 --- a/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/vulnerability.proto +++ b/packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/vulnerability.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-securitycenter/protos/protos.d.ts b/packages/google-cloud-securitycenter/protos/protos.d.ts index 398cbb041f2..5707e51983b 100644 --- a/packages/google-cloud-securitycenter/protos/protos.d.ts +++ b/packages/google-cloud-securitycenter/protos/protos.d.ts @@ -1888,7532 +1888,9444 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Exfiltration. */ - interface IExfiltration { + /** Properties of an EffectiveSecurityHealthAnalyticsCustomModule. */ + interface IEffectiveSecurityHealthAnalyticsCustomModule { - /** Exfiltration sources */ - sources?: (google.cloud.securitycenter.v1.IExfilResource[]|null); + /** EffectiveSecurityHealthAnalyticsCustomModule name */ + name?: (string|null); - /** Exfiltration targets */ - targets?: (google.cloud.securitycenter.v1.IExfilResource[]|null); + /** EffectiveSecurityHealthAnalyticsCustomModule customConfig */ + customConfig?: (google.cloud.securitycenter.v1.ICustomConfig|null); + + /** EffectiveSecurityHealthAnalyticsCustomModule enablementState */ + enablementState?: (google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState|keyof typeof google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState|null); + + /** EffectiveSecurityHealthAnalyticsCustomModule displayName */ + displayName?: (string|null); } - /** Represents an Exfiltration. */ - class Exfiltration implements IExfiltration { + /** Represents an EffectiveSecurityHealthAnalyticsCustomModule. */ + class EffectiveSecurityHealthAnalyticsCustomModule implements IEffectiveSecurityHealthAnalyticsCustomModule { /** - * Constructs a new Exfiltration. + * Constructs a new EffectiveSecurityHealthAnalyticsCustomModule. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IExfiltration); + constructor(properties?: google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule); - /** Exfiltration sources. */ - public sources: google.cloud.securitycenter.v1.IExfilResource[]; + /** EffectiveSecurityHealthAnalyticsCustomModule name. */ + public name: string; - /** Exfiltration targets. */ - public targets: google.cloud.securitycenter.v1.IExfilResource[]; + /** EffectiveSecurityHealthAnalyticsCustomModule customConfig. */ + public customConfig?: (google.cloud.securitycenter.v1.ICustomConfig|null); + + /** EffectiveSecurityHealthAnalyticsCustomModule enablementState. */ + public enablementState: (google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState|keyof typeof google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState); + + /** EffectiveSecurityHealthAnalyticsCustomModule displayName. */ + public displayName: string; /** - * Creates a new Exfiltration instance using the specified properties. + * Creates a new EffectiveSecurityHealthAnalyticsCustomModule instance using the specified properties. * @param [properties] Properties to set - * @returns Exfiltration instance + * @returns EffectiveSecurityHealthAnalyticsCustomModule instance */ - public static create(properties?: google.cloud.securitycenter.v1.IExfiltration): google.cloud.securitycenter.v1.Exfiltration; + public static create(properties?: google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule): google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; /** - * Encodes the specified Exfiltration message. Does not implicitly {@link google.cloud.securitycenter.v1.Exfiltration.verify|verify} messages. - * @param message Exfiltration message or plain object to encode + * Encodes the specified EffectiveSecurityHealthAnalyticsCustomModule message. Does not implicitly {@link google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.verify|verify} messages. + * @param message EffectiveSecurityHealthAnalyticsCustomModule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IExfiltration, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Exfiltration message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Exfiltration.verify|verify} messages. - * @param message Exfiltration message or plain object to encode + * Encodes the specified EffectiveSecurityHealthAnalyticsCustomModule message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.verify|verify} messages. + * @param message EffectiveSecurityHealthAnalyticsCustomModule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IExfiltration, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Exfiltration message from the specified reader or buffer. + * Decodes an EffectiveSecurityHealthAnalyticsCustomModule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Exfiltration + * @returns EffectiveSecurityHealthAnalyticsCustomModule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Exfiltration; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; /** - * Decodes an Exfiltration message from the specified reader or buffer, length delimited. + * Decodes an EffectiveSecurityHealthAnalyticsCustomModule message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Exfiltration + * @returns EffectiveSecurityHealthAnalyticsCustomModule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Exfiltration; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; /** - * Verifies an Exfiltration message. + * Verifies an EffectiveSecurityHealthAnalyticsCustomModule message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Exfiltration message from a plain object. Also converts values to their respective internal types. + * Creates an EffectiveSecurityHealthAnalyticsCustomModule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Exfiltration + * @returns EffectiveSecurityHealthAnalyticsCustomModule */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Exfiltration; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; /** - * Creates a plain object from an Exfiltration message. Also converts values to other types if specified. - * @param message Exfiltration + * Creates a plain object from an EffectiveSecurityHealthAnalyticsCustomModule message. Also converts values to other types if specified. + * @param message EffectiveSecurityHealthAnalyticsCustomModule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.Exfiltration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Exfiltration to JSON. + * Converts this EffectiveSecurityHealthAnalyticsCustomModule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Exfiltration + * Gets the default type url for EffectiveSecurityHealthAnalyticsCustomModule * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExfilResource. */ - interface IExfilResource { + namespace EffectiveSecurityHealthAnalyticsCustomModule { - /** ExfilResource name */ - name?: (string|null); + /** EnablementState enum. */ + enum EnablementState { + ENABLEMENT_STATE_UNSPECIFIED = 0, + ENABLED = 1, + DISABLED = 2 + } + } - /** ExfilResource components */ - components?: (string[]|null); + /** Properties of a CustomConfig. */ + interface ICustomConfig { + + /** CustomConfig predicate */ + predicate?: (google.type.IExpr|null); + + /** CustomConfig customOutput */ + customOutput?: (google.cloud.securitycenter.v1.CustomConfig.ICustomOutputSpec|null); + + /** CustomConfig resourceSelector */ + resourceSelector?: (google.cloud.securitycenter.v1.CustomConfig.IResourceSelector|null); + + /** CustomConfig severity */ + severity?: (google.cloud.securitycenter.v1.CustomConfig.Severity|keyof typeof google.cloud.securitycenter.v1.CustomConfig.Severity|null); + + /** CustomConfig description */ + description?: (string|null); + + /** CustomConfig recommendation */ + recommendation?: (string|null); } - /** Represents an ExfilResource. */ - class ExfilResource implements IExfilResource { + /** Represents a CustomConfig. */ + class CustomConfig implements ICustomConfig { /** - * Constructs a new ExfilResource. + * Constructs a new CustomConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IExfilResource); + constructor(properties?: google.cloud.securitycenter.v1.ICustomConfig); - /** ExfilResource name. */ - public name: string; + /** CustomConfig predicate. */ + public predicate?: (google.type.IExpr|null); - /** ExfilResource components. */ - public components: string[]; + /** CustomConfig customOutput. */ + public customOutput?: (google.cloud.securitycenter.v1.CustomConfig.ICustomOutputSpec|null); + + /** CustomConfig resourceSelector. */ + public resourceSelector?: (google.cloud.securitycenter.v1.CustomConfig.IResourceSelector|null); + + /** CustomConfig severity. */ + public severity: (google.cloud.securitycenter.v1.CustomConfig.Severity|keyof typeof google.cloud.securitycenter.v1.CustomConfig.Severity); + + /** CustomConfig description. */ + public description: string; + + /** CustomConfig recommendation. */ + public recommendation: string; /** - * Creates a new ExfilResource instance using the specified properties. + * Creates a new CustomConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ExfilResource instance + * @returns CustomConfig instance */ - public static create(properties?: google.cloud.securitycenter.v1.IExfilResource): google.cloud.securitycenter.v1.ExfilResource; + public static create(properties?: google.cloud.securitycenter.v1.ICustomConfig): google.cloud.securitycenter.v1.CustomConfig; /** - * Encodes the specified ExfilResource message. Does not implicitly {@link google.cloud.securitycenter.v1.ExfilResource.verify|verify} messages. - * @param message ExfilResource message or plain object to encode + * Encodes the specified CustomConfig message. Does not implicitly {@link google.cloud.securitycenter.v1.CustomConfig.verify|verify} messages. + * @param message CustomConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IExfilResource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.ICustomConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExfilResource message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ExfilResource.verify|verify} messages. - * @param message ExfilResource message or plain object to encode + * Encodes the specified CustomConfig message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CustomConfig.verify|verify} messages. + * @param message CustomConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IExfilResource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.ICustomConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExfilResource message from the specified reader or buffer. + * Decodes a CustomConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExfilResource + * @returns CustomConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ExfilResource; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.CustomConfig; /** - * Decodes an ExfilResource message from the specified reader or buffer, length delimited. + * Decodes a CustomConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExfilResource + * @returns CustomConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ExfilResource; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.CustomConfig; /** - * Verifies an ExfilResource message. + * Verifies a CustomConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExfilResource message from a plain object. Also converts values to their respective internal types. + * Creates a CustomConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExfilResource + * @returns CustomConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ExfilResource; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.CustomConfig; /** - * Creates a plain object from an ExfilResource message. Also converts values to other types if specified. - * @param message ExfilResource + * Creates a plain object from a CustomConfig message. Also converts values to other types if specified. + * @param message CustomConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.ExfilResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.CustomConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExfilResource to JSON. + * Converts this CustomConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExfilResource + * Gets the default type url for CustomConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExternalSystem. */ - interface IExternalSystem { - - /** ExternalSystem name */ - name?: (string|null); + namespace CustomConfig { - /** ExternalSystem assignees */ - assignees?: (string[]|null); + /** Properties of a CustomOutputSpec. */ + interface ICustomOutputSpec { - /** ExternalSystem externalUid */ - externalUid?: (string|null); + /** CustomOutputSpec properties */ + properties?: (google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.IProperty[]|null); + } - /** ExternalSystem status */ - status?: (string|null); + /** Represents a CustomOutputSpec. */ + class CustomOutputSpec implements ICustomOutputSpec { - /** ExternalSystem externalSystemUpdateTime */ - externalSystemUpdateTime?: (google.protobuf.ITimestamp|null); - } + /** + * Constructs a new CustomOutputSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.CustomConfig.ICustomOutputSpec); - /** Represents an ExternalSystem. */ - class ExternalSystem implements IExternalSystem { + /** CustomOutputSpec properties. */ + public properties: google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.IProperty[]; - /** - * Constructs a new ExternalSystem. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.securitycenter.v1.IExternalSystem); + /** + * Creates a new CustomOutputSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomOutputSpec instance + */ + public static create(properties?: google.cloud.securitycenter.v1.CustomConfig.ICustomOutputSpec): google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec; - /** ExternalSystem name. */ - public name: string; + /** + * Encodes the specified CustomOutputSpec message. Does not implicitly {@link google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.verify|verify} messages. + * @param message CustomOutputSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.CustomConfig.ICustomOutputSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** ExternalSystem assignees. */ - public assignees: string[]; + /** + * Encodes the specified CustomOutputSpec message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.verify|verify} messages. + * @param message CustomOutputSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.CustomConfig.ICustomOutputSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** ExternalSystem externalUid. */ - public externalUid: string; + /** + * Decodes a CustomOutputSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomOutputSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec; - /** ExternalSystem status. */ - public status: string; + /** + * Decodes a CustomOutputSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomOutputSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec; - /** ExternalSystem externalSystemUpdateTime. */ - public externalSystemUpdateTime?: (google.protobuf.ITimestamp|null); + /** + * Verifies a CustomOutputSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a new ExternalSystem instance using the specified properties. - * @param [properties] Properties to set - * @returns ExternalSystem instance - */ - public static create(properties?: google.cloud.securitycenter.v1.IExternalSystem): google.cloud.securitycenter.v1.ExternalSystem; + /** + * Creates a CustomOutputSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomOutputSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec; - /** - * Encodes the specified ExternalSystem message. Does not implicitly {@link google.cloud.securitycenter.v1.ExternalSystem.verify|verify} messages. - * @param message ExternalSystem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.securitycenter.v1.IExternalSystem, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a CustomOutputSpec message. Also converts values to other types if specified. + * @param message CustomOutputSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified ExternalSystem message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ExternalSystem.verify|verify} messages. - * @param message ExternalSystem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IExternalSystem, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this CustomOutputSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes an ExternalSystem message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExternalSystem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ExternalSystem; + /** + * Gets the default type url for CustomOutputSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes an ExternalSystem message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExternalSystem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ExternalSystem; + namespace CustomOutputSpec { - /** - * Verifies an ExternalSystem message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Properties of a Property. */ + interface IProperty { - /** - * Creates an ExternalSystem message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExternalSystem - */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ExternalSystem; + /** Property name */ + name?: (string|null); - /** - * Creates a plain object from an ExternalSystem message. Also converts values to other types if specified. - * @param message ExternalSystem - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.securitycenter.v1.ExternalSystem, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Property valueExpression */ + valueExpression?: (google.type.IExpr|null); + } - /** - * Converts this ExternalSystem to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a Property. */ + class Property implements IProperty { - /** - * Gets the default type url for ExternalSystem - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new Property. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.IProperty); - /** Properties of a File. */ - interface IFile { + /** Property name. */ + public name: string; - /** File path */ - path?: (string|null); + /** Property valueExpression. */ + public valueExpression?: (google.type.IExpr|null); - /** File size */ - size?: (number|Long|string|null); + /** + * Creates a new Property instance using the specified properties. + * @param [properties] Properties to set + * @returns Property instance + */ + public static create(properties?: google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.IProperty): google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property; - /** File sha256 */ - sha256?: (string|null); + /** + * Encodes the specified Property message. Does not implicitly {@link google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.verify|verify} messages. + * @param message Property message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; - /** File hashedSize */ - hashedSize?: (number|Long|string|null); + /** + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.verify|verify} messages. + * @param message Property message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.IProperty, writer?: $protobuf.Writer): $protobuf.Writer; - /** File partiallyHashed */ - partiallyHashed?: (boolean|null); + /** + * Decodes a Property message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property; - /** File contents */ - contents?: (string|null); - } + /** + * Decodes a Property message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property; - /** Represents a File. */ - class File implements IFile { + /** + * Verifies a Property message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Constructs a new File. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.securitycenter.v1.IFile); + /** + * Creates a Property message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Property + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property; - /** File path. */ - public path: string; + /** + * Creates a plain object from a Property message. Also converts values to other types if specified. + * @param message Property + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** File size. */ - public size: (number|Long|string); + /** + * Converts this Property to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** File sha256. */ - public sha256: string; + /** + * Gets the default type url for Property + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** File hashedSize. */ - public hashedSize: (number|Long|string); + /** Properties of a ResourceSelector. */ + interface IResourceSelector { - /** File partiallyHashed. */ - public partiallyHashed: boolean; + /** ResourceSelector resourceTypes */ + resourceTypes?: (string[]|null); + } - /** File contents. */ - public contents: string; + /** Represents a ResourceSelector. */ + class ResourceSelector implements IResourceSelector { + + /** + * Constructs a new ResourceSelector. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.CustomConfig.IResourceSelector); + + /** ResourceSelector resourceTypes. */ + public resourceTypes: string[]; + + /** + * Creates a new ResourceSelector instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceSelector instance + */ + public static create(properties?: google.cloud.securitycenter.v1.CustomConfig.IResourceSelector): google.cloud.securitycenter.v1.CustomConfig.ResourceSelector; + + /** + * Encodes the specified ResourceSelector message. Does not implicitly {@link google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.verify|verify} messages. + * @param message ResourceSelector message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.CustomConfig.IResourceSelector, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceSelector message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.verify|verify} messages. + * @param message ResourceSelector message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.CustomConfig.IResourceSelector, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceSelector message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.CustomConfig.ResourceSelector; + + /** + * Decodes a ResourceSelector message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.CustomConfig.ResourceSelector; + + /** + * Verifies a ResourceSelector message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ResourceSelector message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceSelector + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.CustomConfig.ResourceSelector; + + /** + * Creates a plain object from a ResourceSelector message. Also converts values to other types if specified. + * @param message ResourceSelector + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.CustomConfig.ResourceSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceSelector to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceSelector + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Severity enum. */ + enum Severity { + SEVERITY_UNSPECIFIED = 0, + CRITICAL = 1, + HIGH = 2, + MEDIUM = 3, + LOW = 4 + } + } + + /** Properties of an Exfiltration. */ + interface IExfiltration { + + /** Exfiltration sources */ + sources?: (google.cloud.securitycenter.v1.IExfilResource[]|null); + + /** Exfiltration targets */ + targets?: (google.cloud.securitycenter.v1.IExfilResource[]|null); + } + + /** Represents an Exfiltration. */ + class Exfiltration implements IExfiltration { /** - * Creates a new File instance using the specified properties. + * Constructs a new Exfiltration. * @param [properties] Properties to set - * @returns File instance */ - public static create(properties?: google.cloud.securitycenter.v1.IFile): google.cloud.securitycenter.v1.File; + constructor(properties?: google.cloud.securitycenter.v1.IExfiltration); + + /** Exfiltration sources. */ + public sources: google.cloud.securitycenter.v1.IExfilResource[]; + + /** Exfiltration targets. */ + public targets: google.cloud.securitycenter.v1.IExfilResource[]; /** - * Encodes the specified File message. Does not implicitly {@link google.cloud.securitycenter.v1.File.verify|verify} messages. - * @param message File message or plain object to encode + * Creates a new Exfiltration instance using the specified properties. + * @param [properties] Properties to set + * @returns Exfiltration instance + */ + public static create(properties?: google.cloud.securitycenter.v1.IExfiltration): google.cloud.securitycenter.v1.Exfiltration; + + /** + * Encodes the specified Exfiltration message. Does not implicitly {@link google.cloud.securitycenter.v1.Exfiltration.verify|verify} messages. + * @param message Exfiltration message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IFile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IExfiltration, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified File message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.File.verify|verify} messages. - * @param message File message or plain object to encode + * Encodes the specified Exfiltration message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Exfiltration.verify|verify} messages. + * @param message Exfiltration message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IFile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IExfiltration, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a File message from the specified reader or buffer. + * Decodes an Exfiltration message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns File + * @returns Exfiltration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.File; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Exfiltration; /** - * Decodes a File message from the specified reader or buffer, length delimited. + * Decodes an Exfiltration message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns File + * @returns Exfiltration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.File; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Exfiltration; /** - * Verifies a File message. + * Verifies an Exfiltration message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a File message from a plain object. Also converts values to their respective internal types. + * Creates an Exfiltration message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns File + * @returns Exfiltration */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.File; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Exfiltration; /** - * Creates a plain object from a File message. Also converts values to other types if specified. - * @param message File + * Creates a plain object from an Exfiltration message. Also converts values to other types if specified. + * @param message Exfiltration * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.File, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.Exfiltration, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this File to JSON. + * Converts this Exfiltration to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for File + * Gets the default type url for Exfiltration * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Finding. */ - interface IFinding { + /** Properties of an ExfilResource. */ + interface IExfilResource { - /** Finding name */ + /** ExfilResource name */ name?: (string|null); - /** Finding parent */ - parent?: (string|null); + /** ExfilResource components */ + components?: (string[]|null); + } - /** Finding resourceName */ - resourceName?: (string|null); + /** Represents an ExfilResource. */ + class ExfilResource implements IExfilResource { - /** Finding state */ - state?: (google.cloud.securitycenter.v1.Finding.State|keyof typeof google.cloud.securitycenter.v1.Finding.State|null); + /** + * Constructs a new ExfilResource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.IExfilResource); - /** Finding category */ - category?: (string|null); + /** ExfilResource name. */ + public name: string; - /** Finding externalUri */ - externalUri?: (string|null); + /** ExfilResource components. */ + public components: string[]; - /** Finding sourceProperties */ - sourceProperties?: ({ [k: string]: google.protobuf.IValue }|null); - - /** Finding securityMarks */ - securityMarks?: (google.cloud.securitycenter.v1.ISecurityMarks|null); - - /** Finding eventTime */ - eventTime?: (google.protobuf.ITimestamp|null); - - /** Finding createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Finding severity */ - severity?: (google.cloud.securitycenter.v1.Finding.Severity|keyof typeof google.cloud.securitycenter.v1.Finding.Severity|null); - - /** Finding canonicalName */ - canonicalName?: (string|null); - - /** Finding mute */ - mute?: (google.cloud.securitycenter.v1.Finding.Mute|keyof typeof google.cloud.securitycenter.v1.Finding.Mute|null); - - /** Finding findingClass */ - findingClass?: (google.cloud.securitycenter.v1.Finding.FindingClass|keyof typeof google.cloud.securitycenter.v1.Finding.FindingClass|null); - - /** Finding indicator */ - indicator?: (google.cloud.securitycenter.v1.IIndicator|null); - - /** Finding vulnerability */ - vulnerability?: (google.cloud.securitycenter.v1.IVulnerability|null); - - /** Finding muteUpdateTime */ - muteUpdateTime?: (google.protobuf.ITimestamp|null); - - /** Finding externalSystems */ - externalSystems?: ({ [k: string]: google.cloud.securitycenter.v1.IExternalSystem }|null); - - /** Finding mitreAttack */ - mitreAttack?: (google.cloud.securitycenter.v1.IMitreAttack|null); - - /** Finding access */ - access?: (google.cloud.securitycenter.v1.IAccess|null); - - /** Finding connections */ - connections?: (google.cloud.securitycenter.v1.IConnection[]|null); - - /** Finding muteInitiator */ - muteInitiator?: (string|null); - - /** Finding processes */ - processes?: (google.cloud.securitycenter.v1.IProcess[]|null); - - /** Finding contacts */ - contacts?: ({ [k: string]: google.cloud.securitycenter.v1.IContactDetails }|null); - - /** Finding compliances */ - compliances?: (google.cloud.securitycenter.v1.ICompliance[]|null); - - /** Finding parentDisplayName */ - parentDisplayName?: (string|null); - - /** Finding description */ - description?: (string|null); - - /** Finding exfiltration */ - exfiltration?: (google.cloud.securitycenter.v1.IExfiltration|null); - - /** Finding iamBindings */ - iamBindings?: (google.cloud.securitycenter.v1.IIamBinding[]|null); - - /** Finding nextSteps */ - nextSteps?: (string|null); - - /** Finding containers */ - containers?: (google.cloud.securitycenter.v1.IContainer[]|null); - - /** Finding kubernetes */ - kubernetes?: (google.cloud.securitycenter.v1.IKubernetes|null); - - /** Finding database */ - database?: (google.cloud.securitycenter.v1.IDatabase|null); - - /** Finding files */ - files?: (google.cloud.securitycenter.v1.IFile[]|null); - - /** Finding kernelRootkit */ - kernelRootkit?: (google.cloud.securitycenter.v1.IKernelRootkit|null); - } - - /** Represents a Finding. */ - class Finding implements IFinding { - - /** - * Constructs a new Finding. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.securitycenter.v1.IFinding); - - /** Finding name. */ - public name: string; - - /** Finding parent. */ - public parent: string; - - /** Finding resourceName. */ - public resourceName: string; - - /** Finding state. */ - public state: (google.cloud.securitycenter.v1.Finding.State|keyof typeof google.cloud.securitycenter.v1.Finding.State); - - /** Finding category. */ - public category: string; - - /** Finding externalUri. */ - public externalUri: string; - - /** Finding sourceProperties. */ - public sourceProperties: { [k: string]: google.protobuf.IValue }; - - /** Finding securityMarks. */ - public securityMarks?: (google.cloud.securitycenter.v1.ISecurityMarks|null); - - /** Finding eventTime. */ - public eventTime?: (google.protobuf.ITimestamp|null); - - /** Finding createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Finding severity. */ - public severity: (google.cloud.securitycenter.v1.Finding.Severity|keyof typeof google.cloud.securitycenter.v1.Finding.Severity); - - /** Finding canonicalName. */ - public canonicalName: string; - - /** Finding mute. */ - public mute: (google.cloud.securitycenter.v1.Finding.Mute|keyof typeof google.cloud.securitycenter.v1.Finding.Mute); - - /** Finding findingClass. */ - public findingClass: (google.cloud.securitycenter.v1.Finding.FindingClass|keyof typeof google.cloud.securitycenter.v1.Finding.FindingClass); - - /** Finding indicator. */ - public indicator?: (google.cloud.securitycenter.v1.IIndicator|null); - - /** Finding vulnerability. */ - public vulnerability?: (google.cloud.securitycenter.v1.IVulnerability|null); - - /** Finding muteUpdateTime. */ - public muteUpdateTime?: (google.protobuf.ITimestamp|null); - - /** Finding externalSystems. */ - public externalSystems: { [k: string]: google.cloud.securitycenter.v1.IExternalSystem }; - - /** Finding mitreAttack. */ - public mitreAttack?: (google.cloud.securitycenter.v1.IMitreAttack|null); - - /** Finding access. */ - public access?: (google.cloud.securitycenter.v1.IAccess|null); - - /** Finding connections. */ - public connections: google.cloud.securitycenter.v1.IConnection[]; - - /** Finding muteInitiator. */ - public muteInitiator: string; - - /** Finding processes. */ - public processes: google.cloud.securitycenter.v1.IProcess[]; - - /** Finding contacts. */ - public contacts: { [k: string]: google.cloud.securitycenter.v1.IContactDetails }; - - /** Finding compliances. */ - public compliances: google.cloud.securitycenter.v1.ICompliance[]; - - /** Finding parentDisplayName. */ - public parentDisplayName: string; - - /** Finding description. */ - public description: string; - - /** Finding exfiltration. */ - public exfiltration?: (google.cloud.securitycenter.v1.IExfiltration|null); - - /** Finding iamBindings. */ - public iamBindings: google.cloud.securitycenter.v1.IIamBinding[]; - - /** Finding nextSteps. */ - public nextSteps: string; - - /** Finding containers. */ - public containers: google.cloud.securitycenter.v1.IContainer[]; - - /** Finding kubernetes. */ - public kubernetes?: (google.cloud.securitycenter.v1.IKubernetes|null); - - /** Finding database. */ - public database?: (google.cloud.securitycenter.v1.IDatabase|null); - - /** Finding files. */ - public files: google.cloud.securitycenter.v1.IFile[]; - - /** Finding kernelRootkit. */ - public kernelRootkit?: (google.cloud.securitycenter.v1.IKernelRootkit|null); - - /** - * Creates a new Finding instance using the specified properties. - * @param [properties] Properties to set - * @returns Finding instance - */ - public static create(properties?: google.cloud.securitycenter.v1.IFinding): google.cloud.securitycenter.v1.Finding; + /** + * Creates a new ExfilResource instance using the specified properties. + * @param [properties] Properties to set + * @returns ExfilResource instance + */ + public static create(properties?: google.cloud.securitycenter.v1.IExfilResource): google.cloud.securitycenter.v1.ExfilResource; /** - * Encodes the specified Finding message. Does not implicitly {@link google.cloud.securitycenter.v1.Finding.verify|verify} messages. - * @param message Finding message or plain object to encode + * Encodes the specified ExfilResource message. Does not implicitly {@link google.cloud.securitycenter.v1.ExfilResource.verify|verify} messages. + * @param message ExfilResource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IFinding, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IExfilResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Finding message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Finding.verify|verify} messages. - * @param message Finding message or plain object to encode + * Encodes the specified ExfilResource message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ExfilResource.verify|verify} messages. + * @param message ExfilResource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IFinding, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IExfilResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Finding message from the specified reader or buffer. + * Decodes an ExfilResource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Finding + * @returns ExfilResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Finding; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ExfilResource; /** - * Decodes a Finding message from the specified reader or buffer, length delimited. + * Decodes an ExfilResource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Finding + * @returns ExfilResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Finding; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ExfilResource; /** - * Verifies a Finding message. + * Verifies an ExfilResource message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Finding message from a plain object. Also converts values to their respective internal types. + * Creates an ExfilResource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Finding + * @returns ExfilResource */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Finding; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ExfilResource; /** - * Creates a plain object from a Finding message. Also converts values to other types if specified. - * @param message Finding + * Creates a plain object from an ExfilResource message. Also converts values to other types if specified. + * @param message ExfilResource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.Finding, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.ExfilResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Finding to JSON. + * Converts this ExfilResource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Finding + * Gets the default type url for ExfilResource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Finding { + /** Properties of an ExternalSystem. */ + interface IExternalSystem { - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - INACTIVE = 2 - } - - /** Severity enum. */ - enum Severity { - SEVERITY_UNSPECIFIED = 0, - CRITICAL = 1, - HIGH = 2, - MEDIUM = 3, - LOW = 4 - } - - /** Mute enum. */ - enum Mute { - MUTE_UNSPECIFIED = 0, - MUTED = 1, - UNMUTED = 2, - UNDEFINED = 4 - } - - /** FindingClass enum. */ - enum FindingClass { - FINDING_CLASS_UNSPECIFIED = 0, - THREAT = 1, - VULNERABILITY = 2, - MISCONFIGURATION = 3, - OBSERVATION = 4, - SCC_ERROR = 5 - } - } + /** ExternalSystem name */ + name?: (string|null); - /** Properties of an IamBinding. */ - interface IIamBinding { + /** ExternalSystem assignees */ + assignees?: (string[]|null); - /** IamBinding action */ - action?: (google.cloud.securitycenter.v1.IamBinding.Action|keyof typeof google.cloud.securitycenter.v1.IamBinding.Action|null); + /** ExternalSystem externalUid */ + externalUid?: (string|null); - /** IamBinding role */ - role?: (string|null); + /** ExternalSystem status */ + status?: (string|null); - /** IamBinding member */ - member?: (string|null); + /** ExternalSystem externalSystemUpdateTime */ + externalSystemUpdateTime?: (google.protobuf.ITimestamp|null); } - /** Represents an IamBinding. */ - class IamBinding implements IIamBinding { + /** Represents an ExternalSystem. */ + class ExternalSystem implements IExternalSystem { /** - * Constructs a new IamBinding. + * Constructs a new ExternalSystem. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IIamBinding); + constructor(properties?: google.cloud.securitycenter.v1.IExternalSystem); - /** IamBinding action. */ - public action: (google.cloud.securitycenter.v1.IamBinding.Action|keyof typeof google.cloud.securitycenter.v1.IamBinding.Action); + /** ExternalSystem name. */ + public name: string; - /** IamBinding role. */ - public role: string; + /** ExternalSystem assignees. */ + public assignees: string[]; - /** IamBinding member. */ - public member: string; + /** ExternalSystem externalUid. */ + public externalUid: string; + + /** ExternalSystem status. */ + public status: string; + + /** ExternalSystem externalSystemUpdateTime. */ + public externalSystemUpdateTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new IamBinding instance using the specified properties. + * Creates a new ExternalSystem instance using the specified properties. * @param [properties] Properties to set - * @returns IamBinding instance + * @returns ExternalSystem instance */ - public static create(properties?: google.cloud.securitycenter.v1.IIamBinding): google.cloud.securitycenter.v1.IamBinding; + public static create(properties?: google.cloud.securitycenter.v1.IExternalSystem): google.cloud.securitycenter.v1.ExternalSystem; /** - * Encodes the specified IamBinding message. Does not implicitly {@link google.cloud.securitycenter.v1.IamBinding.verify|verify} messages. - * @param message IamBinding message or plain object to encode + * Encodes the specified ExternalSystem message. Does not implicitly {@link google.cloud.securitycenter.v1.ExternalSystem.verify|verify} messages. + * @param message ExternalSystem message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IIamBinding, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IExternalSystem, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IamBinding message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.IamBinding.verify|verify} messages. - * @param message IamBinding message or plain object to encode + * Encodes the specified ExternalSystem message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ExternalSystem.verify|verify} messages. + * @param message ExternalSystem message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IIamBinding, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IExternalSystem, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IamBinding message from the specified reader or buffer. + * Decodes an ExternalSystem message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IamBinding + * @returns ExternalSystem * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.IamBinding; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ExternalSystem; /** - * Decodes an IamBinding message from the specified reader or buffer, length delimited. + * Decodes an ExternalSystem message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IamBinding + * @returns ExternalSystem * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.IamBinding; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ExternalSystem; /** - * Verifies an IamBinding message. + * Verifies an ExternalSystem message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an IamBinding message from a plain object. Also converts values to their respective internal types. + * Creates an ExternalSystem message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IamBinding + * @returns ExternalSystem */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.IamBinding; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ExternalSystem; /** - * Creates a plain object from an IamBinding message. Also converts values to other types if specified. - * @param message IamBinding + * Creates a plain object from an ExternalSystem message. Also converts values to other types if specified. + * @param message ExternalSystem * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.IamBinding, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.ExternalSystem, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IamBinding to JSON. + * Converts this ExternalSystem to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IamBinding + * Gets the default type url for ExternalSystem * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace IamBinding { + /** Properties of a File. */ + interface IFile { - /** Action enum. */ - enum Action { - ACTION_UNSPECIFIED = 0, - ADD = 1, - REMOVE = 2 - } - } + /** File path */ + path?: (string|null); - /** Properties of an Indicator. */ - interface IIndicator { + /** File size */ + size?: (number|Long|string|null); - /** Indicator ipAddresses */ - ipAddresses?: (string[]|null); + /** File sha256 */ + sha256?: (string|null); - /** Indicator domains */ - domains?: (string[]|null); + /** File hashedSize */ + hashedSize?: (number|Long|string|null); - /** Indicator signatures */ - signatures?: (google.cloud.securitycenter.v1.Indicator.IProcessSignature[]|null); + /** File partiallyHashed */ + partiallyHashed?: (boolean|null); - /** Indicator uris */ - uris?: (string[]|null); + /** File contents */ + contents?: (string|null); } - /** Represents an Indicator. */ - class Indicator implements IIndicator { + /** Represents a File. */ + class File implements IFile { /** - * Constructs a new Indicator. + * Constructs a new File. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IIndicator); + constructor(properties?: google.cloud.securitycenter.v1.IFile); - /** Indicator ipAddresses. */ - public ipAddresses: string[]; + /** File path. */ + public path: string; - /** Indicator domains. */ - public domains: string[]; + /** File size. */ + public size: (number|Long|string); - /** Indicator signatures. */ - public signatures: google.cloud.securitycenter.v1.Indicator.IProcessSignature[]; + /** File sha256. */ + public sha256: string; - /** Indicator uris. */ - public uris: string[]; + /** File hashedSize. */ + public hashedSize: (number|Long|string); + + /** File partiallyHashed. */ + public partiallyHashed: boolean; + + /** File contents. */ + public contents: string; /** - * Creates a new Indicator instance using the specified properties. + * Creates a new File instance using the specified properties. * @param [properties] Properties to set - * @returns Indicator instance + * @returns File instance */ - public static create(properties?: google.cloud.securitycenter.v1.IIndicator): google.cloud.securitycenter.v1.Indicator; + public static create(properties?: google.cloud.securitycenter.v1.IFile): google.cloud.securitycenter.v1.File; /** - * Encodes the specified Indicator message. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.verify|verify} messages. - * @param message Indicator message or plain object to encode + * Encodes the specified File message. Does not implicitly {@link google.cloud.securitycenter.v1.File.verify|verify} messages. + * @param message File message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IIndicator, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IFile, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Indicator message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.verify|verify} messages. - * @param message Indicator message or plain object to encode + * Encodes the specified File message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.File.verify|verify} messages. + * @param message File message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IIndicator, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IFile, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Indicator message from the specified reader or buffer. + * Decodes a File message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Indicator + * @returns File * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Indicator; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.File; /** - * Decodes an Indicator message from the specified reader or buffer, length delimited. + * Decodes a File message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Indicator + * @returns File * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Indicator; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.File; /** - * Verifies an Indicator message. + * Verifies a File message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Indicator message from a plain object. Also converts values to their respective internal types. + * Creates a File message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Indicator + * @returns File */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Indicator; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.File; /** - * Creates a plain object from an Indicator message. Also converts values to other types if specified. - * @param message Indicator + * Creates a plain object from a File message. Also converts values to other types if specified. + * @param message File * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.Indicator, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.File, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Indicator to JSON. + * Converts this File to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Indicator + * Gets the default type url for File * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Indicator { - - /** Properties of a ProcessSignature. */ - interface IProcessSignature { + /** Properties of a Finding. */ + interface IFinding { - /** ProcessSignature memoryHashSignature */ - memoryHashSignature?: (google.cloud.securitycenter.v1.Indicator.ProcessSignature.IMemoryHashSignature|null); + /** Finding name */ + name?: (string|null); - /** ProcessSignature yaraRuleSignature */ - yaraRuleSignature?: (google.cloud.securitycenter.v1.Indicator.ProcessSignature.IYaraRuleSignature|null); - } + /** Finding parent */ + parent?: (string|null); - /** Represents a ProcessSignature. */ - class ProcessSignature implements IProcessSignature { + /** Finding resourceName */ + resourceName?: (string|null); - /** - * Constructs a new ProcessSignature. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.securitycenter.v1.Indicator.IProcessSignature); + /** Finding state */ + state?: (google.cloud.securitycenter.v1.Finding.State|keyof typeof google.cloud.securitycenter.v1.Finding.State|null); - /** ProcessSignature memoryHashSignature. */ - public memoryHashSignature?: (google.cloud.securitycenter.v1.Indicator.ProcessSignature.IMemoryHashSignature|null); + /** Finding category */ + category?: (string|null); - /** ProcessSignature yaraRuleSignature. */ - public yaraRuleSignature?: (google.cloud.securitycenter.v1.Indicator.ProcessSignature.IYaraRuleSignature|null); + /** Finding externalUri */ + externalUri?: (string|null); - /** ProcessSignature signature. */ - public signature?: ("memoryHashSignature"|"yaraRuleSignature"); + /** Finding sourceProperties */ + sourceProperties?: ({ [k: string]: google.protobuf.IValue }|null); - /** - * Creates a new ProcessSignature instance using the specified properties. - * @param [properties] Properties to set - * @returns ProcessSignature instance - */ - public static create(properties?: google.cloud.securitycenter.v1.Indicator.IProcessSignature): google.cloud.securitycenter.v1.Indicator.ProcessSignature; + /** Finding securityMarks */ + securityMarks?: (google.cloud.securitycenter.v1.ISecurityMarks|null); - /** - * Encodes the specified ProcessSignature message. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.ProcessSignature.verify|verify} messages. - * @param message ProcessSignature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.securitycenter.v1.Indicator.IProcessSignature, writer?: $protobuf.Writer): $protobuf.Writer; + /** Finding eventTime */ + eventTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified ProcessSignature message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.ProcessSignature.verify|verify} messages. - * @param message ProcessSignature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.Indicator.IProcessSignature, writer?: $protobuf.Writer): $protobuf.Writer; + /** Finding createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes a ProcessSignature message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProcessSignature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Indicator.ProcessSignature; + /** Finding severity */ + severity?: (google.cloud.securitycenter.v1.Finding.Severity|keyof typeof google.cloud.securitycenter.v1.Finding.Severity|null); - /** - * Decodes a ProcessSignature message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProcessSignature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Indicator.ProcessSignature; + /** Finding canonicalName */ + canonicalName?: (string|null); - /** - * Verifies a ProcessSignature message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Finding mute */ + mute?: (google.cloud.securitycenter.v1.Finding.Mute|keyof typeof google.cloud.securitycenter.v1.Finding.Mute|null); - /** - * Creates a ProcessSignature message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProcessSignature - */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Indicator.ProcessSignature; + /** Finding findingClass */ + findingClass?: (google.cloud.securitycenter.v1.Finding.FindingClass|keyof typeof google.cloud.securitycenter.v1.Finding.FindingClass|null); - /** - * Creates a plain object from a ProcessSignature message. Also converts values to other types if specified. - * @param message ProcessSignature - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Finding indicator */ + indicator?: (google.cloud.securitycenter.v1.IIndicator|null); - /** - * Converts this ProcessSignature to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Finding vulnerability */ + vulnerability?: (google.cloud.securitycenter.v1.IVulnerability|null); - /** - * Gets the default type url for ProcessSignature - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Finding muteUpdateTime */ + muteUpdateTime?: (google.protobuf.ITimestamp|null); - namespace ProcessSignature { + /** Finding externalSystems */ + externalSystems?: ({ [k: string]: google.cloud.securitycenter.v1.IExternalSystem }|null); - /** Properties of a MemoryHashSignature. */ - interface IMemoryHashSignature { + /** Finding mitreAttack */ + mitreAttack?: (google.cloud.securitycenter.v1.IMitreAttack|null); - /** MemoryHashSignature binaryFamily */ - binaryFamily?: (string|null); + /** Finding access */ + access?: (google.cloud.securitycenter.v1.IAccess|null); - /** MemoryHashSignature detections */ - detections?: (google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.IDetection[]|null); - } + /** Finding connections */ + connections?: (google.cloud.securitycenter.v1.IConnection[]|null); - /** Represents a MemoryHashSignature. */ - class MemoryHashSignature implements IMemoryHashSignature { + /** Finding muteInitiator */ + muteInitiator?: (string|null); - /** - * Constructs a new MemoryHashSignature. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.securitycenter.v1.Indicator.ProcessSignature.IMemoryHashSignature); + /** Finding processes */ + processes?: (google.cloud.securitycenter.v1.IProcess[]|null); - /** MemoryHashSignature binaryFamily. */ - public binaryFamily: string; + /** Finding contacts */ + contacts?: ({ [k: string]: google.cloud.securitycenter.v1.IContactDetails }|null); - /** MemoryHashSignature detections. */ - public detections: google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.IDetection[]; + /** Finding compliances */ + compliances?: (google.cloud.securitycenter.v1.ICompliance[]|null); - /** - * Creates a new MemoryHashSignature instance using the specified properties. - * @param [properties] Properties to set - * @returns MemoryHashSignature instance - */ - public static create(properties?: google.cloud.securitycenter.v1.Indicator.ProcessSignature.IMemoryHashSignature): google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature; + /** Finding parentDisplayName */ + parentDisplayName?: (string|null); - /** - * Encodes the specified MemoryHashSignature message. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.verify|verify} messages. - * @param message MemoryHashSignature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.IMemoryHashSignature, writer?: $protobuf.Writer): $protobuf.Writer; + /** Finding description */ + description?: (string|null); - /** - * Encodes the specified MemoryHashSignature message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.verify|verify} messages. - * @param message MemoryHashSignature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.IMemoryHashSignature, writer?: $protobuf.Writer): $protobuf.Writer; + /** Finding exfiltration */ + exfiltration?: (google.cloud.securitycenter.v1.IExfiltration|null); - /** - * Decodes a MemoryHashSignature message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MemoryHashSignature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature; + /** Finding iamBindings */ + iamBindings?: (google.cloud.securitycenter.v1.IIamBinding[]|null); - /** - * Decodes a MemoryHashSignature message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MemoryHashSignature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature; + /** Finding nextSteps */ + nextSteps?: (string|null); - /** - * Verifies a MemoryHashSignature message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Finding moduleName */ + moduleName?: (string|null); - /** - * Creates a MemoryHashSignature message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MemoryHashSignature - */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature; + /** Finding containers */ + containers?: (google.cloud.securitycenter.v1.IContainer[]|null); - /** - * Creates a plain object from a MemoryHashSignature message. Also converts values to other types if specified. - * @param message MemoryHashSignature - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Finding kubernetes */ + kubernetes?: (google.cloud.securitycenter.v1.IKubernetes|null); - /** - * Converts this MemoryHashSignature to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Finding database */ + database?: (google.cloud.securitycenter.v1.IDatabase|null); - /** - * Gets the default type url for MemoryHashSignature - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Finding files */ + files?: (google.cloud.securitycenter.v1.IFile[]|null); - namespace MemoryHashSignature { + /** Finding kernelRootkit */ + kernelRootkit?: (google.cloud.securitycenter.v1.IKernelRootkit|null); + } - /** Properties of a Detection. */ - interface IDetection { + /** Represents a Finding. */ + class Finding implements IFinding { - /** Detection binary */ - binary?: (string|null); + /** + * Constructs a new Finding. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.IFinding); - /** Detection percentPagesMatched */ - percentPagesMatched?: (number|null); - } + /** Finding name. */ + public name: string; - /** Represents a Detection. */ - class Detection implements IDetection { + /** Finding parent. */ + public parent: string; - /** - * Constructs a new Detection. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.IDetection); + /** Finding resourceName. */ + public resourceName: string; - /** Detection binary. */ - public binary: string; + /** Finding state. */ + public state: (google.cloud.securitycenter.v1.Finding.State|keyof typeof google.cloud.securitycenter.v1.Finding.State); - /** Detection percentPagesMatched. */ - public percentPagesMatched: number; - - /** - * Creates a new Detection instance using the specified properties. - * @param [properties] Properties to set - * @returns Detection instance - */ - public static create(properties?: google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.IDetection): google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection; - - /** - * Encodes the specified Detection message. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection.verify|verify} messages. - * @param message Detection message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.IDetection, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Detection message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection.verify|verify} messages. - * @param message Detection message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.IDetection, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Detection message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Detection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection; - - /** - * Decodes a Detection message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Detection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection; + /** Finding category. */ + public category: string; - /** - * Verifies a Detection message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Finding externalUri. */ + public externalUri: string; - /** - * Creates a Detection message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Detection - */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection; + /** Finding sourceProperties. */ + public sourceProperties: { [k: string]: google.protobuf.IValue }; - /** - * Creates a plain object from a Detection message. Also converts values to other types if specified. - * @param message Detection - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Finding securityMarks. */ + public securityMarks?: (google.cloud.securitycenter.v1.ISecurityMarks|null); - /** - * Converts this Detection to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Finding eventTime. */ + public eventTime?: (google.protobuf.ITimestamp|null); - /** - * Gets the default type url for Detection - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** Finding createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** Properties of a YaraRuleSignature. */ - interface IYaraRuleSignature { + /** Finding severity. */ + public severity: (google.cloud.securitycenter.v1.Finding.Severity|keyof typeof google.cloud.securitycenter.v1.Finding.Severity); - /** YaraRuleSignature yaraRule */ - yaraRule?: (string|null); - } + /** Finding canonicalName. */ + public canonicalName: string; - /** Represents a YaraRuleSignature. */ - class YaraRuleSignature implements IYaraRuleSignature { + /** Finding mute. */ + public mute: (google.cloud.securitycenter.v1.Finding.Mute|keyof typeof google.cloud.securitycenter.v1.Finding.Mute); - /** - * Constructs a new YaraRuleSignature. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.securitycenter.v1.Indicator.ProcessSignature.IYaraRuleSignature); + /** Finding findingClass. */ + public findingClass: (google.cloud.securitycenter.v1.Finding.FindingClass|keyof typeof google.cloud.securitycenter.v1.Finding.FindingClass); - /** YaraRuleSignature yaraRule. */ - public yaraRule: string; + /** Finding indicator. */ + public indicator?: (google.cloud.securitycenter.v1.IIndicator|null); - /** - * Creates a new YaraRuleSignature instance using the specified properties. - * @param [properties] Properties to set - * @returns YaraRuleSignature instance - */ - public static create(properties?: google.cloud.securitycenter.v1.Indicator.ProcessSignature.IYaraRuleSignature): google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature; + /** Finding vulnerability. */ + public vulnerability?: (google.cloud.securitycenter.v1.IVulnerability|null); - /** - * Encodes the specified YaraRuleSignature message. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature.verify|verify} messages. - * @param message YaraRuleSignature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.IYaraRuleSignature, writer?: $protobuf.Writer): $protobuf.Writer; + /** Finding muteUpdateTime. */ + public muteUpdateTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified YaraRuleSignature message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature.verify|verify} messages. - * @param message YaraRuleSignature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.IYaraRuleSignature, writer?: $protobuf.Writer): $protobuf.Writer; + /** Finding externalSystems. */ + public externalSystems: { [k: string]: google.cloud.securitycenter.v1.IExternalSystem }; - /** - * Decodes a YaraRuleSignature message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns YaraRuleSignature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature; + /** Finding mitreAttack. */ + public mitreAttack?: (google.cloud.securitycenter.v1.IMitreAttack|null); - /** - * Decodes a YaraRuleSignature message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns YaraRuleSignature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature; + /** Finding access. */ + public access?: (google.cloud.securitycenter.v1.IAccess|null); - /** - * Verifies a YaraRuleSignature message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Finding connections. */ + public connections: google.cloud.securitycenter.v1.IConnection[]; - /** - * Creates a YaraRuleSignature message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns YaraRuleSignature - */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature; + /** Finding muteInitiator. */ + public muteInitiator: string; - /** - * Creates a plain object from a YaraRuleSignature message. Also converts values to other types if specified. - * @param message YaraRuleSignature - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Finding processes. */ + public processes: google.cloud.securitycenter.v1.IProcess[]; - /** - * Converts this YaraRuleSignature to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Finding contacts. */ + public contacts: { [k: string]: google.cloud.securitycenter.v1.IContactDetails }; - /** - * Gets the default type url for YaraRuleSignature - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } + /** Finding compliances. */ + public compliances: google.cloud.securitycenter.v1.ICompliance[]; - /** Properties of a KernelRootkit. */ - interface IKernelRootkit { + /** Finding parentDisplayName. */ + public parentDisplayName: string; - /** KernelRootkit name */ - name?: (string|null); + /** Finding description. */ + public description: string; - /** KernelRootkit unexpectedCodeModification */ - unexpectedCodeModification?: (boolean|null); + /** Finding exfiltration. */ + public exfiltration?: (google.cloud.securitycenter.v1.IExfiltration|null); - /** KernelRootkit unexpectedReadOnlyDataModification */ - unexpectedReadOnlyDataModification?: (boolean|null); + /** Finding iamBindings. */ + public iamBindings: google.cloud.securitycenter.v1.IIamBinding[]; - /** KernelRootkit unexpectedFtraceHandler */ - unexpectedFtraceHandler?: (boolean|null); + /** Finding nextSteps. */ + public nextSteps: string; - /** KernelRootkit unexpectedKprobeHandler */ - unexpectedKprobeHandler?: (boolean|null); + /** Finding moduleName. */ + public moduleName: string; - /** KernelRootkit unexpectedKernelCodePages */ - unexpectedKernelCodePages?: (boolean|null); + /** Finding containers. */ + public containers: google.cloud.securitycenter.v1.IContainer[]; - /** KernelRootkit unexpectedSystemCallHandler */ - unexpectedSystemCallHandler?: (boolean|null); + /** Finding kubernetes. */ + public kubernetes?: (google.cloud.securitycenter.v1.IKubernetes|null); - /** KernelRootkit unexpectedInterruptHandler */ - unexpectedInterruptHandler?: (boolean|null); + /** Finding database. */ + public database?: (google.cloud.securitycenter.v1.IDatabase|null); - /** KernelRootkit unexpectedProcessesInRunqueue */ - unexpectedProcessesInRunqueue?: (boolean|null); - } + /** Finding files. */ + public files: google.cloud.securitycenter.v1.IFile[]; - /** Represents a KernelRootkit. */ - class KernelRootkit implements IKernelRootkit { + /** Finding kernelRootkit. */ + public kernelRootkit?: (google.cloud.securitycenter.v1.IKernelRootkit|null); /** - * Constructs a new KernelRootkit. + * Creates a new Finding instance using the specified properties. * @param [properties] Properties to set + * @returns Finding instance */ - constructor(properties?: google.cloud.securitycenter.v1.IKernelRootkit); - - /** KernelRootkit name. */ - public name: string; - - /** KernelRootkit unexpectedCodeModification. */ - public unexpectedCodeModification: boolean; - - /** KernelRootkit unexpectedReadOnlyDataModification. */ - public unexpectedReadOnlyDataModification: boolean; - - /** KernelRootkit unexpectedFtraceHandler. */ - public unexpectedFtraceHandler: boolean; - - /** KernelRootkit unexpectedKprobeHandler. */ - public unexpectedKprobeHandler: boolean; - - /** KernelRootkit unexpectedKernelCodePages. */ - public unexpectedKernelCodePages: boolean; - - /** KernelRootkit unexpectedSystemCallHandler. */ - public unexpectedSystemCallHandler: boolean; - - /** KernelRootkit unexpectedInterruptHandler. */ - public unexpectedInterruptHandler: boolean; - - /** KernelRootkit unexpectedProcessesInRunqueue. */ - public unexpectedProcessesInRunqueue: boolean; - - /** - * Creates a new KernelRootkit instance using the specified properties. - * @param [properties] Properties to set - * @returns KernelRootkit instance - */ - public static create(properties?: google.cloud.securitycenter.v1.IKernelRootkit): google.cloud.securitycenter.v1.KernelRootkit; + public static create(properties?: google.cloud.securitycenter.v1.IFinding): google.cloud.securitycenter.v1.Finding; /** - * Encodes the specified KernelRootkit message. Does not implicitly {@link google.cloud.securitycenter.v1.KernelRootkit.verify|verify} messages. - * @param message KernelRootkit message or plain object to encode + * Encodes the specified Finding message. Does not implicitly {@link google.cloud.securitycenter.v1.Finding.verify|verify} messages. + * @param message Finding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IKernelRootkit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IFinding, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified KernelRootkit message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.KernelRootkit.verify|verify} messages. - * @param message KernelRootkit message or plain object to encode + * Encodes the specified Finding message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Finding.verify|verify} messages. + * @param message Finding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IKernelRootkit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IFinding, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KernelRootkit message from the specified reader or buffer. + * Decodes a Finding message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns KernelRootkit + * @returns Finding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.KernelRootkit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Finding; /** - * Decodes a KernelRootkit message from the specified reader or buffer, length delimited. + * Decodes a Finding message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns KernelRootkit + * @returns Finding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.KernelRootkit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Finding; /** - * Verifies a KernelRootkit message. + * Verifies a Finding message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a KernelRootkit message from a plain object. Also converts values to their respective internal types. + * Creates a Finding message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns KernelRootkit + * @returns Finding */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.KernelRootkit; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Finding; /** - * Creates a plain object from a KernelRootkit message. Also converts values to other types if specified. - * @param message KernelRootkit + * Creates a plain object from a Finding message. Also converts values to other types if specified. + * @param message Finding * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.KernelRootkit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.Finding, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this KernelRootkit to JSON. + * Converts this Finding to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for KernelRootkit + * Gets the default type url for Finding * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Kubernetes. */ - interface IKubernetes { + namespace Finding { - /** Kubernetes pods */ - pods?: (google.cloud.securitycenter.v1.Kubernetes.IPod[]|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + INACTIVE = 2 + } - /** Kubernetes nodes */ - nodes?: (google.cloud.securitycenter.v1.Kubernetes.INode[]|null); + /** Severity enum. */ + enum Severity { + SEVERITY_UNSPECIFIED = 0, + CRITICAL = 1, + HIGH = 2, + MEDIUM = 3, + LOW = 4 + } - /** Kubernetes nodePools */ - nodePools?: (google.cloud.securitycenter.v1.Kubernetes.INodePool[]|null); + /** Mute enum. */ + enum Mute { + MUTE_UNSPECIFIED = 0, + MUTED = 1, + UNMUTED = 2, + UNDEFINED = 4 + } - /** Kubernetes roles */ - roles?: (google.cloud.securitycenter.v1.Kubernetes.IRole[]|null); + /** FindingClass enum. */ + enum FindingClass { + FINDING_CLASS_UNSPECIFIED = 0, + THREAT = 1, + VULNERABILITY = 2, + MISCONFIGURATION = 3, + OBSERVATION = 4, + SCC_ERROR = 5 + } + } - /** Kubernetes bindings */ - bindings?: (google.cloud.securitycenter.v1.Kubernetes.IBinding[]|null); + /** Properties of an IamBinding. */ + interface IIamBinding { - /** Kubernetes accessReviews */ - accessReviews?: (google.cloud.securitycenter.v1.Kubernetes.IAccessReview[]|null); + /** IamBinding action */ + action?: (google.cloud.securitycenter.v1.IamBinding.Action|keyof typeof google.cloud.securitycenter.v1.IamBinding.Action|null); + + /** IamBinding role */ + role?: (string|null); + + /** IamBinding member */ + member?: (string|null); } - /** Represents a Kubernetes. */ - class Kubernetes implements IKubernetes { + /** Represents an IamBinding. */ + class IamBinding implements IIamBinding { /** - * Constructs a new Kubernetes. + * Constructs a new IamBinding. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IKubernetes); - - /** Kubernetes pods. */ - public pods: google.cloud.securitycenter.v1.Kubernetes.IPod[]; - - /** Kubernetes nodes. */ - public nodes: google.cloud.securitycenter.v1.Kubernetes.INode[]; - - /** Kubernetes nodePools. */ - public nodePools: google.cloud.securitycenter.v1.Kubernetes.INodePool[]; + constructor(properties?: google.cloud.securitycenter.v1.IIamBinding); - /** Kubernetes roles. */ - public roles: google.cloud.securitycenter.v1.Kubernetes.IRole[]; + /** IamBinding action. */ + public action: (google.cloud.securitycenter.v1.IamBinding.Action|keyof typeof google.cloud.securitycenter.v1.IamBinding.Action); - /** Kubernetes bindings. */ - public bindings: google.cloud.securitycenter.v1.Kubernetes.IBinding[]; + /** IamBinding role. */ + public role: string; - /** Kubernetes accessReviews. */ - public accessReviews: google.cloud.securitycenter.v1.Kubernetes.IAccessReview[]; + /** IamBinding member. */ + public member: string; /** - * Creates a new Kubernetes instance using the specified properties. + * Creates a new IamBinding instance using the specified properties. * @param [properties] Properties to set - * @returns Kubernetes instance + * @returns IamBinding instance */ - public static create(properties?: google.cloud.securitycenter.v1.IKubernetes): google.cloud.securitycenter.v1.Kubernetes; + public static create(properties?: google.cloud.securitycenter.v1.IIamBinding): google.cloud.securitycenter.v1.IamBinding; /** - * Encodes the specified Kubernetes message. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.verify|verify} messages. - * @param message Kubernetes message or plain object to encode + * Encodes the specified IamBinding message. Does not implicitly {@link google.cloud.securitycenter.v1.IamBinding.verify|verify} messages. + * @param message IamBinding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IKubernetes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IIamBinding, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Kubernetes message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.verify|verify} messages. - * @param message Kubernetes message or plain object to encode + * Encodes the specified IamBinding message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.IamBinding.verify|verify} messages. + * @param message IamBinding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IKubernetes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IIamBinding, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Kubernetes message from the specified reader or buffer. + * Decodes an IamBinding message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Kubernetes + * @returns IamBinding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Kubernetes; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.IamBinding; /** - * Decodes a Kubernetes message from the specified reader or buffer, length delimited. + * Decodes an IamBinding message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Kubernetes + * @returns IamBinding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Kubernetes; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.IamBinding; /** - * Verifies a Kubernetes message. + * Verifies an IamBinding message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Kubernetes message from a plain object. Also converts values to their respective internal types. + * Creates an IamBinding message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Kubernetes + * @returns IamBinding */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Kubernetes; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.IamBinding; /** - * Creates a plain object from a Kubernetes message. Also converts values to other types if specified. - * @param message Kubernetes + * Creates a plain object from an IamBinding message. Also converts values to other types if specified. + * @param message IamBinding * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.Kubernetes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.IamBinding, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Kubernetes to JSON. + * Converts this IamBinding to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Kubernetes + * Gets the default type url for IamBinding * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Kubernetes { + namespace IamBinding { - /** Properties of a Pod. */ - interface IPod { + /** Action enum. */ + enum Action { + ACTION_UNSPECIFIED = 0, + ADD = 1, + REMOVE = 2 + } + } - /** Pod ns */ - ns?: (string|null); + /** Properties of an Indicator. */ + interface IIndicator { - /** Pod name */ - name?: (string|null); + /** Indicator ipAddresses */ + ipAddresses?: (string[]|null); - /** Pod labels */ - labels?: (google.cloud.securitycenter.v1.ILabel[]|null); + /** Indicator domains */ + domains?: (string[]|null); - /** Pod containers */ - containers?: (google.cloud.securitycenter.v1.IContainer[]|null); - } + /** Indicator signatures */ + signatures?: (google.cloud.securitycenter.v1.Indicator.IProcessSignature[]|null); - /** Represents a Pod. */ - class Pod implements IPod { + /** Indicator uris */ + uris?: (string[]|null); + } - /** - * Constructs a new Pod. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.securitycenter.v1.Kubernetes.IPod); + /** Represents an Indicator. */ + class Indicator implements IIndicator { - /** Pod ns. */ - public ns: string; + /** + * Constructs a new Indicator. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.IIndicator); - /** Pod name. */ - public name: string; + /** Indicator ipAddresses. */ + public ipAddresses: string[]; - /** Pod labels. */ - public labels: google.cloud.securitycenter.v1.ILabel[]; + /** Indicator domains. */ + public domains: string[]; - /** Pod containers. */ - public containers: google.cloud.securitycenter.v1.IContainer[]; + /** Indicator signatures. */ + public signatures: google.cloud.securitycenter.v1.Indicator.IProcessSignature[]; - /** - * Creates a new Pod instance using the specified properties. - * @param [properties] Properties to set - * @returns Pod instance - */ - public static create(properties?: google.cloud.securitycenter.v1.Kubernetes.IPod): google.cloud.securitycenter.v1.Kubernetes.Pod; + /** Indicator uris. */ + public uris: string[]; - /** - * Encodes the specified Pod message. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Pod.verify|verify} messages. - * @param message Pod message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.securitycenter.v1.Kubernetes.IPod, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new Indicator instance using the specified properties. + * @param [properties] Properties to set + * @returns Indicator instance + */ + public static create(properties?: google.cloud.securitycenter.v1.IIndicator): google.cloud.securitycenter.v1.Indicator; - /** - * Encodes the specified Pod message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Pod.verify|verify} messages. - * @param message Pod message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.Kubernetes.IPod, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Indicator message. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.verify|verify} messages. + * @param message Indicator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.IIndicator, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Pod message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Pod - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Kubernetes.Pod; + /** + * Encodes the specified Indicator message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.verify|verify} messages. + * @param message Indicator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.IIndicator, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Pod message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Pod - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Kubernetes.Pod; + /** + * Decodes an Indicator message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Indicator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Indicator; - /** - * Verifies a Pod message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes an Indicator message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Indicator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Indicator; - /** - * Creates a Pod message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Pod - */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Kubernetes.Pod; + /** + * Verifies an Indicator message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a Pod message. Also converts values to other types if specified. - * @param message Pod - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.securitycenter.v1.Kubernetes.Pod, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates an Indicator message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Indicator + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Indicator; - /** - * Converts this Pod to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from an Indicator message. Also converts values to other types if specified. + * @param message Indicator + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Indicator, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for Pod - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this Indicator to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a Node. */ - interface INode { + /** + * Gets the default type url for Indicator + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Node name */ - name?: (string|null); + namespace Indicator { + + /** Properties of a ProcessSignature. */ + interface IProcessSignature { + + /** ProcessSignature memoryHashSignature */ + memoryHashSignature?: (google.cloud.securitycenter.v1.Indicator.ProcessSignature.IMemoryHashSignature|null); + + /** ProcessSignature yaraRuleSignature */ + yaraRuleSignature?: (google.cloud.securitycenter.v1.Indicator.ProcessSignature.IYaraRuleSignature|null); } - /** Represents a Node. */ - class Node implements INode { + /** Represents a ProcessSignature. */ + class ProcessSignature implements IProcessSignature { /** - * Constructs a new Node. + * Constructs a new ProcessSignature. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.Kubernetes.INode); + constructor(properties?: google.cloud.securitycenter.v1.Indicator.IProcessSignature); - /** Node name. */ - public name: string; + /** ProcessSignature memoryHashSignature. */ + public memoryHashSignature?: (google.cloud.securitycenter.v1.Indicator.ProcessSignature.IMemoryHashSignature|null); + + /** ProcessSignature yaraRuleSignature. */ + public yaraRuleSignature?: (google.cloud.securitycenter.v1.Indicator.ProcessSignature.IYaraRuleSignature|null); + + /** ProcessSignature signature. */ + public signature?: ("memoryHashSignature"|"yaraRuleSignature"); /** - * Creates a new Node instance using the specified properties. + * Creates a new ProcessSignature instance using the specified properties. * @param [properties] Properties to set - * @returns Node instance + * @returns ProcessSignature instance */ - public static create(properties?: google.cloud.securitycenter.v1.Kubernetes.INode): google.cloud.securitycenter.v1.Kubernetes.Node; + public static create(properties?: google.cloud.securitycenter.v1.Indicator.IProcessSignature): google.cloud.securitycenter.v1.Indicator.ProcessSignature; /** - * Encodes the specified Node message. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Node.verify|verify} messages. - * @param message Node message or plain object to encode + * Encodes the specified ProcessSignature message. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.ProcessSignature.verify|verify} messages. + * @param message ProcessSignature message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.Kubernetes.INode, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.Indicator.IProcessSignature, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Node message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Node.verify|verify} messages. - * @param message Node message or plain object to encode + * Encodes the specified ProcessSignature message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.ProcessSignature.verify|verify} messages. + * @param message ProcessSignature message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.Kubernetes.INode, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.Indicator.IProcessSignature, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Node message from the specified reader or buffer. + * Decodes a ProcessSignature message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Node + * @returns ProcessSignature * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Kubernetes.Node; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Indicator.ProcessSignature; /** - * Decodes a Node message from the specified reader or buffer, length delimited. + * Decodes a ProcessSignature message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Node + * @returns ProcessSignature * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Kubernetes.Node; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Indicator.ProcessSignature; /** - * Verifies a Node message. + * Verifies a ProcessSignature message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Node message from a plain object. Also converts values to their respective internal types. + * Creates a ProcessSignature message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Node + * @returns ProcessSignature */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Kubernetes.Node; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Indicator.ProcessSignature; /** - * Creates a plain object from a Node message. Also converts values to other types if specified. - * @param message Node + * Creates a plain object from a ProcessSignature message. Also converts values to other types if specified. + * @param message ProcessSignature * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.Kubernetes.Node, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Node to JSON. + * Converts this ProcessSignature to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Node + * Gets the default type url for ProcessSignature * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NodePool. */ - interface INodePool { + namespace ProcessSignature { - /** NodePool name */ - name?: (string|null); + /** Properties of a MemoryHashSignature. */ + interface IMemoryHashSignature { - /** NodePool nodes */ - nodes?: (google.cloud.securitycenter.v1.Kubernetes.INode[]|null); - } + /** MemoryHashSignature binaryFamily */ + binaryFamily?: (string|null); - /** Represents a NodePool. */ - class NodePool implements INodePool { + /** MemoryHashSignature detections */ + detections?: (google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.IDetection[]|null); + } - /** - * Constructs a new NodePool. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.securitycenter.v1.Kubernetes.INodePool); + /** Represents a MemoryHashSignature. */ + class MemoryHashSignature implements IMemoryHashSignature { - /** NodePool name. */ - public name: string; + /** + * Constructs a new MemoryHashSignature. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.Indicator.ProcessSignature.IMemoryHashSignature); - /** NodePool nodes. */ + /** MemoryHashSignature binaryFamily. */ + public binaryFamily: string; + + /** MemoryHashSignature detections. */ + public detections: google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.IDetection[]; + + /** + * Creates a new MemoryHashSignature instance using the specified properties. + * @param [properties] Properties to set + * @returns MemoryHashSignature instance + */ + public static create(properties?: google.cloud.securitycenter.v1.Indicator.ProcessSignature.IMemoryHashSignature): google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature; + + /** + * Encodes the specified MemoryHashSignature message. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.verify|verify} messages. + * @param message MemoryHashSignature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.IMemoryHashSignature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MemoryHashSignature message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.verify|verify} messages. + * @param message MemoryHashSignature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.IMemoryHashSignature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MemoryHashSignature message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MemoryHashSignature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature; + + /** + * Decodes a MemoryHashSignature message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MemoryHashSignature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature; + + /** + * Verifies a MemoryHashSignature message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MemoryHashSignature message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MemoryHashSignature + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature; + + /** + * Creates a plain object from a MemoryHashSignature message. Also converts values to other types if specified. + * @param message MemoryHashSignature + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MemoryHashSignature to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MemoryHashSignature + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MemoryHashSignature { + + /** Properties of a Detection. */ + interface IDetection { + + /** Detection binary */ + binary?: (string|null); + + /** Detection percentPagesMatched */ + percentPagesMatched?: (number|null); + } + + /** Represents a Detection. */ + class Detection implements IDetection { + + /** + * Constructs a new Detection. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.IDetection); + + /** Detection binary. */ + public binary: string; + + /** Detection percentPagesMatched. */ + public percentPagesMatched: number; + + /** + * Creates a new Detection instance using the specified properties. + * @param [properties] Properties to set + * @returns Detection instance + */ + public static create(properties?: google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.IDetection): google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection; + + /** + * Encodes the specified Detection message. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection.verify|verify} messages. + * @param message Detection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.IDetection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Detection message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection.verify|verify} messages. + * @param message Detection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.IDetection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Detection message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Detection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection; + + /** + * Decodes a Detection message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Detection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection; + + /** + * Verifies a Detection message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Detection message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Detection + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection; + + /** + * Creates a plain object from a Detection message. Also converts values to other types if specified. + * @param message Detection + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.MemoryHashSignature.Detection, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Detection to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Detection + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a YaraRuleSignature. */ + interface IYaraRuleSignature { + + /** YaraRuleSignature yaraRule */ + yaraRule?: (string|null); + } + + /** Represents a YaraRuleSignature. */ + class YaraRuleSignature implements IYaraRuleSignature { + + /** + * Constructs a new YaraRuleSignature. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.Indicator.ProcessSignature.IYaraRuleSignature); + + /** YaraRuleSignature yaraRule. */ + public yaraRule: string; + + /** + * Creates a new YaraRuleSignature instance using the specified properties. + * @param [properties] Properties to set + * @returns YaraRuleSignature instance + */ + public static create(properties?: google.cloud.securitycenter.v1.Indicator.ProcessSignature.IYaraRuleSignature): google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature; + + /** + * Encodes the specified YaraRuleSignature message. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature.verify|verify} messages. + * @param message YaraRuleSignature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.IYaraRuleSignature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified YaraRuleSignature message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature.verify|verify} messages. + * @param message YaraRuleSignature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.IYaraRuleSignature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a YaraRuleSignature message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns YaraRuleSignature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature; + + /** + * Decodes a YaraRuleSignature message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns YaraRuleSignature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature; + + /** + * Verifies a YaraRuleSignature message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a YaraRuleSignature message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns YaraRuleSignature + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature; + + /** + * Creates a plain object from a YaraRuleSignature message. Also converts values to other types if specified. + * @param message YaraRuleSignature + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Indicator.ProcessSignature.YaraRuleSignature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this YaraRuleSignature to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for YaraRuleSignature + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + + /** Properties of a KernelRootkit. */ + interface IKernelRootkit { + + /** KernelRootkit name */ + name?: (string|null); + + /** KernelRootkit unexpectedCodeModification */ + unexpectedCodeModification?: (boolean|null); + + /** KernelRootkit unexpectedReadOnlyDataModification */ + unexpectedReadOnlyDataModification?: (boolean|null); + + /** KernelRootkit unexpectedFtraceHandler */ + unexpectedFtraceHandler?: (boolean|null); + + /** KernelRootkit unexpectedKprobeHandler */ + unexpectedKprobeHandler?: (boolean|null); + + /** KernelRootkit unexpectedKernelCodePages */ + unexpectedKernelCodePages?: (boolean|null); + + /** KernelRootkit unexpectedSystemCallHandler */ + unexpectedSystemCallHandler?: (boolean|null); + + /** KernelRootkit unexpectedInterruptHandler */ + unexpectedInterruptHandler?: (boolean|null); + + /** KernelRootkit unexpectedProcessesInRunqueue */ + unexpectedProcessesInRunqueue?: (boolean|null); + } + + /** Represents a KernelRootkit. */ + class KernelRootkit implements IKernelRootkit { + + /** + * Constructs a new KernelRootkit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.IKernelRootkit); + + /** KernelRootkit name. */ + public name: string; + + /** KernelRootkit unexpectedCodeModification. */ + public unexpectedCodeModification: boolean; + + /** KernelRootkit unexpectedReadOnlyDataModification. */ + public unexpectedReadOnlyDataModification: boolean; + + /** KernelRootkit unexpectedFtraceHandler. */ + public unexpectedFtraceHandler: boolean; + + /** KernelRootkit unexpectedKprobeHandler. */ + public unexpectedKprobeHandler: boolean; + + /** KernelRootkit unexpectedKernelCodePages. */ + public unexpectedKernelCodePages: boolean; + + /** KernelRootkit unexpectedSystemCallHandler. */ + public unexpectedSystemCallHandler: boolean; + + /** KernelRootkit unexpectedInterruptHandler. */ + public unexpectedInterruptHandler: boolean; + + /** KernelRootkit unexpectedProcessesInRunqueue. */ + public unexpectedProcessesInRunqueue: boolean; + + /** + * Creates a new KernelRootkit instance using the specified properties. + * @param [properties] Properties to set + * @returns KernelRootkit instance + */ + public static create(properties?: google.cloud.securitycenter.v1.IKernelRootkit): google.cloud.securitycenter.v1.KernelRootkit; + + /** + * Encodes the specified KernelRootkit message. Does not implicitly {@link google.cloud.securitycenter.v1.KernelRootkit.verify|verify} messages. + * @param message KernelRootkit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.IKernelRootkit, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified KernelRootkit message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.KernelRootkit.verify|verify} messages. + * @param message KernelRootkit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.IKernelRootkit, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a KernelRootkit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KernelRootkit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.KernelRootkit; + + /** + * Decodes a KernelRootkit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns KernelRootkit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.KernelRootkit; + + /** + * Verifies a KernelRootkit message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a KernelRootkit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns KernelRootkit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.KernelRootkit; + + /** + * Creates a plain object from a KernelRootkit message. Also converts values to other types if specified. + * @param message KernelRootkit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.KernelRootkit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this KernelRootkit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for KernelRootkit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Kubernetes. */ + interface IKubernetes { + + /** Kubernetes pods */ + pods?: (google.cloud.securitycenter.v1.Kubernetes.IPod[]|null); + + /** Kubernetes nodes */ + nodes?: (google.cloud.securitycenter.v1.Kubernetes.INode[]|null); + + /** Kubernetes nodePools */ + nodePools?: (google.cloud.securitycenter.v1.Kubernetes.INodePool[]|null); + + /** Kubernetes roles */ + roles?: (google.cloud.securitycenter.v1.Kubernetes.IRole[]|null); + + /** Kubernetes bindings */ + bindings?: (google.cloud.securitycenter.v1.Kubernetes.IBinding[]|null); + + /** Kubernetes accessReviews */ + accessReviews?: (google.cloud.securitycenter.v1.Kubernetes.IAccessReview[]|null); + } + + /** Represents a Kubernetes. */ + class Kubernetes implements IKubernetes { + + /** + * Constructs a new Kubernetes. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.IKubernetes); + + /** Kubernetes pods. */ + public pods: google.cloud.securitycenter.v1.Kubernetes.IPod[]; + + /** Kubernetes nodes. */ + public nodes: google.cloud.securitycenter.v1.Kubernetes.INode[]; + + /** Kubernetes nodePools. */ + public nodePools: google.cloud.securitycenter.v1.Kubernetes.INodePool[]; + + /** Kubernetes roles. */ + public roles: google.cloud.securitycenter.v1.Kubernetes.IRole[]; + + /** Kubernetes bindings. */ + public bindings: google.cloud.securitycenter.v1.Kubernetes.IBinding[]; + + /** Kubernetes accessReviews. */ + public accessReviews: google.cloud.securitycenter.v1.Kubernetes.IAccessReview[]; + + /** + * Creates a new Kubernetes instance using the specified properties. + * @param [properties] Properties to set + * @returns Kubernetes instance + */ + public static create(properties?: google.cloud.securitycenter.v1.IKubernetes): google.cloud.securitycenter.v1.Kubernetes; + + /** + * Encodes the specified Kubernetes message. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.verify|verify} messages. + * @param message Kubernetes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.IKubernetes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Kubernetes message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.verify|verify} messages. + * @param message Kubernetes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.IKubernetes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Kubernetes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Kubernetes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Kubernetes; + + /** + * Decodes a Kubernetes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Kubernetes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Kubernetes; + + /** + * Verifies a Kubernetes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Kubernetes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Kubernetes + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Kubernetes; + + /** + * Creates a plain object from a Kubernetes message. Also converts values to other types if specified. + * @param message Kubernetes + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Kubernetes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Kubernetes to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Kubernetes + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Kubernetes { + + /** Properties of a Pod. */ + interface IPod { + + /** Pod ns */ + ns?: (string|null); + + /** Pod name */ + name?: (string|null); + + /** Pod labels */ + labels?: (google.cloud.securitycenter.v1.ILabel[]|null); + + /** Pod containers */ + containers?: (google.cloud.securitycenter.v1.IContainer[]|null); + } + + /** Represents a Pod. */ + class Pod implements IPod { + + /** + * Constructs a new Pod. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.Kubernetes.IPod); + + /** Pod ns. */ + public ns: string; + + /** Pod name. */ + public name: string; + + /** Pod labels. */ + public labels: google.cloud.securitycenter.v1.ILabel[]; + + /** Pod containers. */ + public containers: google.cloud.securitycenter.v1.IContainer[]; + + /** + * Creates a new Pod instance using the specified properties. + * @param [properties] Properties to set + * @returns Pod instance + */ + public static create(properties?: google.cloud.securitycenter.v1.Kubernetes.IPod): google.cloud.securitycenter.v1.Kubernetes.Pod; + + /** + * Encodes the specified Pod message. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Pod.verify|verify} messages. + * @param message Pod message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.Kubernetes.IPod, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Pod message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Pod.verify|verify} messages. + * @param message Pod message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.Kubernetes.IPod, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Pod message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Pod + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Kubernetes.Pod; + + /** + * Decodes a Pod message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Pod + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Kubernetes.Pod; + + /** + * Verifies a Pod message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Pod message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Pod + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Kubernetes.Pod; + + /** + * Creates a plain object from a Pod message. Also converts values to other types if specified. + * @param message Pod + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Kubernetes.Pod, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Pod to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Pod + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Node. */ + interface INode { + + /** Node name */ + name?: (string|null); + } + + /** Represents a Node. */ + class Node implements INode { + + /** + * Constructs a new Node. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.Kubernetes.INode); + + /** Node name. */ + public name: string; + + /** + * Creates a new Node instance using the specified properties. + * @param [properties] Properties to set + * @returns Node instance + */ + public static create(properties?: google.cloud.securitycenter.v1.Kubernetes.INode): google.cloud.securitycenter.v1.Kubernetes.Node; + + /** + * Encodes the specified Node message. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Node.verify|verify} messages. + * @param message Node message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.Kubernetes.INode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Node message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Node.verify|verify} messages. + * @param message Node message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.Kubernetes.INode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Node message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Node + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Kubernetes.Node; + + /** + * Decodes a Node message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Node + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Kubernetes.Node; + + /** + * Verifies a Node message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Node message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Node + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Kubernetes.Node; + + /** + * Creates a plain object from a Node message. Also converts values to other types if specified. + * @param message Node + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Kubernetes.Node, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Node to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Node + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a NodePool. */ + interface INodePool { + + /** NodePool name */ + name?: (string|null); + + /** NodePool nodes */ + nodes?: (google.cloud.securitycenter.v1.Kubernetes.INode[]|null); + } + + /** Represents a NodePool. */ + class NodePool implements INodePool { + + /** + * Constructs a new NodePool. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.Kubernetes.INodePool); + + /** NodePool name. */ + public name: string; + + /** NodePool nodes. */ public nodes: google.cloud.securitycenter.v1.Kubernetes.INode[]; - /** - * Creates a new NodePool instance using the specified properties. - * @param [properties] Properties to set - * @returns NodePool instance - */ - public static create(properties?: google.cloud.securitycenter.v1.Kubernetes.INodePool): google.cloud.securitycenter.v1.Kubernetes.NodePool; + /** + * Creates a new NodePool instance using the specified properties. + * @param [properties] Properties to set + * @returns NodePool instance + */ + public static create(properties?: google.cloud.securitycenter.v1.Kubernetes.INodePool): google.cloud.securitycenter.v1.Kubernetes.NodePool; + + /** + * Encodes the specified NodePool message. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.NodePool.verify|verify} messages. + * @param message NodePool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.Kubernetes.INodePool, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NodePool message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.NodePool.verify|verify} messages. + * @param message NodePool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.Kubernetes.INodePool, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodePool message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodePool + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Kubernetes.NodePool; + + /** + * Decodes a NodePool message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodePool + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Kubernetes.NodePool; + + /** + * Verifies a NodePool message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NodePool message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodePool + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Kubernetes.NodePool; + + /** + * Creates a plain object from a NodePool message. Also converts values to other types if specified. + * @param message NodePool + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Kubernetes.NodePool, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodePool to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodePool + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Role. */ + interface IRole { + + /** Role kind */ + kind?: (google.cloud.securitycenter.v1.Kubernetes.Role.Kind|keyof typeof google.cloud.securitycenter.v1.Kubernetes.Role.Kind|null); + + /** Role ns */ + ns?: (string|null); + + /** Role name */ + name?: (string|null); + } + + /** Represents a Role. */ + class Role implements IRole { + + /** + * Constructs a new Role. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.Kubernetes.IRole); + + /** Role kind. */ + public kind: (google.cloud.securitycenter.v1.Kubernetes.Role.Kind|keyof typeof google.cloud.securitycenter.v1.Kubernetes.Role.Kind); + + /** Role ns. */ + public ns: string; + + /** Role name. */ + public name: string; + + /** + * Creates a new Role instance using the specified properties. + * @param [properties] Properties to set + * @returns Role instance + */ + public static create(properties?: google.cloud.securitycenter.v1.Kubernetes.IRole): google.cloud.securitycenter.v1.Kubernetes.Role; + + /** + * Encodes the specified Role message. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Role.verify|verify} messages. + * @param message Role message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.Kubernetes.IRole, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Role message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Role.verify|verify} messages. + * @param message Role message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.Kubernetes.IRole, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Role message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Role + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Kubernetes.Role; + + /** + * Decodes a Role message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Role + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Kubernetes.Role; + + /** + * Verifies a Role message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Role message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Role + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Kubernetes.Role; + + /** + * Creates a plain object from a Role message. Also converts values to other types if specified. + * @param message Role + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Kubernetes.Role, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Role to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Role + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Role { + + /** Kind enum. */ + enum Kind { + KIND_UNSPECIFIED = 0, + ROLE = 1, + CLUSTER_ROLE = 2 + } + } + + /** Properties of a Binding. */ + interface IBinding { + + /** Binding ns */ + ns?: (string|null); + + /** Binding name */ + name?: (string|null); + + /** Binding role */ + role?: (google.cloud.securitycenter.v1.Kubernetes.IRole|null); + + /** Binding subjects */ + subjects?: (google.cloud.securitycenter.v1.Kubernetes.ISubject[]|null); + } + + /** Represents a Binding. */ + class Binding implements IBinding { + + /** + * Constructs a new Binding. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.Kubernetes.IBinding); + + /** Binding ns. */ + public ns: string; + + /** Binding name. */ + public name: string; + + /** Binding role. */ + public role?: (google.cloud.securitycenter.v1.Kubernetes.IRole|null); + + /** Binding subjects. */ + public subjects: google.cloud.securitycenter.v1.Kubernetes.ISubject[]; + + /** + * Creates a new Binding instance using the specified properties. + * @param [properties] Properties to set + * @returns Binding instance + */ + public static create(properties?: google.cloud.securitycenter.v1.Kubernetes.IBinding): google.cloud.securitycenter.v1.Kubernetes.Binding; + + /** + * Encodes the specified Binding message. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Binding.verify|verify} messages. + * @param message Binding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.Kubernetes.IBinding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Binding message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Binding.verify|verify} messages. + * @param message Binding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.Kubernetes.IBinding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Binding message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Binding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Kubernetes.Binding; + + /** + * Decodes a Binding message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Binding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Kubernetes.Binding; + + /** + * Verifies a Binding message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Binding message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Binding + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Kubernetes.Binding; + + /** + * Creates a plain object from a Binding message. Also converts values to other types if specified. + * @param message Binding + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Kubernetes.Binding, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Binding to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Binding + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Subject. */ + interface ISubject { + + /** Subject kind */ + kind?: (google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType|keyof typeof google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType|null); + + /** Subject ns */ + ns?: (string|null); + + /** Subject name */ + name?: (string|null); + } + + /** Represents a Subject. */ + class Subject implements ISubject { + + /** + * Constructs a new Subject. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.Kubernetes.ISubject); + + /** Subject kind. */ + public kind: (google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType|keyof typeof google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType); + + /** Subject ns. */ + public ns: string; + + /** Subject name. */ + public name: string; + + /** + * Creates a new Subject instance using the specified properties. + * @param [properties] Properties to set + * @returns Subject instance + */ + public static create(properties?: google.cloud.securitycenter.v1.Kubernetes.ISubject): google.cloud.securitycenter.v1.Kubernetes.Subject; + + /** + * Encodes the specified Subject message. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Subject.verify|verify} messages. + * @param message Subject message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.Kubernetes.ISubject, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Subject message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Subject.verify|verify} messages. + * @param message Subject message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.Kubernetes.ISubject, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Subject message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Subject + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Kubernetes.Subject; + + /** + * Decodes a Subject message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Subject + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Kubernetes.Subject; + + /** + * Verifies a Subject message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Subject message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Subject + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Kubernetes.Subject; + + /** + * Creates a plain object from a Subject message. Also converts values to other types if specified. + * @param message Subject + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Kubernetes.Subject, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Subject to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Subject + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Subject { + + /** AuthType enum. */ + enum AuthType { + AUTH_TYPE_UNSPECIFIED = 0, + USER = 1, + SERVICEACCOUNT = 2, + GROUP = 3 + } + } + + /** Properties of an AccessReview. */ + interface IAccessReview { + + /** AccessReview group */ + group?: (string|null); + + /** AccessReview ns */ + ns?: (string|null); + + /** AccessReview name */ + name?: (string|null); + + /** AccessReview resource */ + resource?: (string|null); + + /** AccessReview subresource */ + subresource?: (string|null); + + /** AccessReview verb */ + verb?: (string|null); + + /** AccessReview version */ + version?: (string|null); + } + + /** Represents an AccessReview. */ + class AccessReview implements IAccessReview { + + /** + * Constructs a new AccessReview. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.Kubernetes.IAccessReview); + + /** AccessReview group. */ + public group: string; + + /** AccessReview ns. */ + public ns: string; + + /** AccessReview name. */ + public name: string; + + /** AccessReview resource. */ + public resource: string; + + /** AccessReview subresource. */ + public subresource: string; + + /** AccessReview verb. */ + public verb: string; + + /** AccessReview version. */ + public version: string; + + /** + * Creates a new AccessReview instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessReview instance + */ + public static create(properties?: google.cloud.securitycenter.v1.Kubernetes.IAccessReview): google.cloud.securitycenter.v1.Kubernetes.AccessReview; + + /** + * Encodes the specified AccessReview message. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.AccessReview.verify|verify} messages. + * @param message AccessReview message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.Kubernetes.IAccessReview, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AccessReview message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.AccessReview.verify|verify} messages. + * @param message AccessReview message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.Kubernetes.IAccessReview, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AccessReview message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessReview + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Kubernetes.AccessReview; + + /** + * Decodes an AccessReview message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AccessReview + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Kubernetes.AccessReview; + + /** + * Verifies an AccessReview message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AccessReview message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessReview + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Kubernetes.AccessReview; + + /** + * Creates a plain object from an AccessReview message. Also converts values to other types if specified. + * @param message AccessReview + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Kubernetes.AccessReview, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AccessReview to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AccessReview + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a MitreAttack. */ + interface IMitreAttack { + + /** MitreAttack primaryTactic */ + primaryTactic?: (google.cloud.securitycenter.v1.MitreAttack.Tactic|keyof typeof google.cloud.securitycenter.v1.MitreAttack.Tactic|null); + + /** MitreAttack primaryTechniques */ + primaryTechniques?: (google.cloud.securitycenter.v1.MitreAttack.Technique[]|null); + + /** MitreAttack additionalTactics */ + additionalTactics?: (google.cloud.securitycenter.v1.MitreAttack.Tactic[]|null); + + /** MitreAttack additionalTechniques */ + additionalTechniques?: (google.cloud.securitycenter.v1.MitreAttack.Technique[]|null); + + /** MitreAttack version */ + version?: (string|null); + } + + /** Represents a MitreAttack. */ + class MitreAttack implements IMitreAttack { + + /** + * Constructs a new MitreAttack. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.IMitreAttack); + + /** MitreAttack primaryTactic. */ + public primaryTactic: (google.cloud.securitycenter.v1.MitreAttack.Tactic|keyof typeof google.cloud.securitycenter.v1.MitreAttack.Tactic); + + /** MitreAttack primaryTechniques. */ + public primaryTechniques: google.cloud.securitycenter.v1.MitreAttack.Technique[]; + + /** MitreAttack additionalTactics. */ + public additionalTactics: google.cloud.securitycenter.v1.MitreAttack.Tactic[]; + + /** MitreAttack additionalTechniques. */ + public additionalTechniques: google.cloud.securitycenter.v1.MitreAttack.Technique[]; + + /** MitreAttack version. */ + public version: string; + + /** + * Creates a new MitreAttack instance using the specified properties. + * @param [properties] Properties to set + * @returns MitreAttack instance + */ + public static create(properties?: google.cloud.securitycenter.v1.IMitreAttack): google.cloud.securitycenter.v1.MitreAttack; + + /** + * Encodes the specified MitreAttack message. Does not implicitly {@link google.cloud.securitycenter.v1.MitreAttack.verify|verify} messages. + * @param message MitreAttack message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.IMitreAttack, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MitreAttack message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.MitreAttack.verify|verify} messages. + * @param message MitreAttack message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.IMitreAttack, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MitreAttack message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MitreAttack + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.MitreAttack; + + /** + * Decodes a MitreAttack message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MitreAttack + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.MitreAttack; + + /** + * Verifies a MitreAttack message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MitreAttack message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MitreAttack + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.MitreAttack; + + /** + * Creates a plain object from a MitreAttack message. Also converts values to other types if specified. + * @param message MitreAttack + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.MitreAttack, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MitreAttack to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MitreAttack + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MitreAttack { + + /** Tactic enum. */ + enum Tactic { + TACTIC_UNSPECIFIED = 0, + RECONNAISSANCE = 1, + RESOURCE_DEVELOPMENT = 2, + INITIAL_ACCESS = 5, + EXECUTION = 3, + PERSISTENCE = 6, + PRIVILEGE_ESCALATION = 8, + DEFENSE_EVASION = 7, + CREDENTIAL_ACCESS = 9, + DISCOVERY = 10, + LATERAL_MOVEMENT = 11, + COLLECTION = 12, + COMMAND_AND_CONTROL = 4, + EXFILTRATION = 13, + IMPACT = 14 + } + + /** Technique enum. */ + enum Technique { + TECHNIQUE_UNSPECIFIED = 0, + ACTIVE_SCANNING = 1, + SCANNING_IP_BLOCKS = 2, + INGRESS_TOOL_TRANSFER = 3, + NATIVE_API = 4, + SHARED_MODULES = 5, + COMMAND_AND_SCRIPTING_INTERPRETER = 6, + UNIX_SHELL = 7, + RESOURCE_HIJACKING = 8, + PROXY = 9, + EXTERNAL_PROXY = 10, + MULTI_HOP_PROXY = 11, + DYNAMIC_RESOLUTION = 12, + UNSECURED_CREDENTIALS = 13, + VALID_ACCOUNTS = 14, + LOCAL_ACCOUNTS = 15, + CLOUD_ACCOUNTS = 16, + NETWORK_DENIAL_OF_SERVICE = 17, + PERMISSION_GROUPS_DISCOVERY = 18, + CLOUD_GROUPS = 19, + EXFILTRATION_OVER_WEB_SERVICE = 20, + EXFILTRATION_TO_CLOUD_STORAGE = 21, + ACCOUNT_MANIPULATION = 22, + SSH_AUTHORIZED_KEYS = 23, + CREATE_OR_MODIFY_SYSTEM_PROCESS = 24, + STEAL_WEB_SESSION_COOKIE = 25, + MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE = 26, + EXPLOIT_PUBLIC_FACING_APPLICATION = 27, + MODIFY_AUTHENTICATION_PROCESS = 28, + DATA_DESTRUCTION = 29, + DOMAIN_POLICY_MODIFICATION = 30, + IMPAIR_DEFENSES = 31, + NETWORK_SERVICE_DISCOVERY = 32, + ACCESS_TOKEN_MANIPULATION = 33, + ABUSE_ELEVATION_CONTROL_MECHANISM = 34, + DEFAULT_ACCOUNTS = 35 + } + } - /** - * Encodes the specified NodePool message. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.NodePool.verify|verify} messages. - * @param message NodePool message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.securitycenter.v1.Kubernetes.INodePool, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a Process. */ + interface IProcess { - /** - * Encodes the specified NodePool message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.NodePool.verify|verify} messages. - * @param message NodePool message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.Kubernetes.INodePool, writer?: $protobuf.Writer): $protobuf.Writer; + /** Process name */ + name?: (string|null); - /** - * Decodes a NodePool message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodePool - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Kubernetes.NodePool; + /** Process binary */ + binary?: (google.cloud.securitycenter.v1.IFile|null); - /** - * Decodes a NodePool message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NodePool - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Kubernetes.NodePool; + /** Process libraries */ + libraries?: (google.cloud.securitycenter.v1.IFile[]|null); - /** - * Verifies a NodePool message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Process script */ + script?: (google.cloud.securitycenter.v1.IFile|null); - /** - * Creates a NodePool message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NodePool - */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Kubernetes.NodePool; + /** Process args */ + args?: (string[]|null); - /** - * Creates a plain object from a NodePool message. Also converts values to other types if specified. - * @param message NodePool - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.securitycenter.v1.Kubernetes.NodePool, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Process argumentsTruncated */ + argumentsTruncated?: (boolean|null); - /** - * Converts this NodePool to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Process envVariables */ + envVariables?: (google.cloud.securitycenter.v1.IEnvironmentVariable[]|null); - /** - * Gets the default type url for NodePool - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Process envVariablesTruncated */ + envVariablesTruncated?: (boolean|null); - /** Properties of a Role. */ - interface IRole { + /** Process pid */ + pid?: (number|Long|string|null); - /** Role kind */ - kind?: (google.cloud.securitycenter.v1.Kubernetes.Role.Kind|keyof typeof google.cloud.securitycenter.v1.Kubernetes.Role.Kind|null); + /** Process parentPid */ + parentPid?: (number|Long|string|null); + } - /** Role ns */ - ns?: (string|null); + /** Represents a Process. */ + class Process implements IProcess { - /** Role name */ - name?: (string|null); - } + /** + * Constructs a new Process. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.IProcess); - /** Represents a Role. */ - class Role implements IRole { + /** Process name. */ + public name: string; - /** - * Constructs a new Role. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.securitycenter.v1.Kubernetes.IRole); + /** Process binary. */ + public binary?: (google.cloud.securitycenter.v1.IFile|null); - /** Role kind. */ - public kind: (google.cloud.securitycenter.v1.Kubernetes.Role.Kind|keyof typeof google.cloud.securitycenter.v1.Kubernetes.Role.Kind); + /** Process libraries. */ + public libraries: google.cloud.securitycenter.v1.IFile[]; - /** Role ns. */ - public ns: string; + /** Process script. */ + public script?: (google.cloud.securitycenter.v1.IFile|null); - /** Role name. */ - public name: string; + /** Process args. */ + public args: string[]; - /** - * Creates a new Role instance using the specified properties. - * @param [properties] Properties to set - * @returns Role instance - */ - public static create(properties?: google.cloud.securitycenter.v1.Kubernetes.IRole): google.cloud.securitycenter.v1.Kubernetes.Role; + /** Process argumentsTruncated. */ + public argumentsTruncated: boolean; - /** - * Encodes the specified Role message. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Role.verify|verify} messages. - * @param message Role message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.securitycenter.v1.Kubernetes.IRole, writer?: $protobuf.Writer): $protobuf.Writer; + /** Process envVariables. */ + public envVariables: google.cloud.securitycenter.v1.IEnvironmentVariable[]; - /** - * Encodes the specified Role message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Role.verify|verify} messages. - * @param message Role message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.Kubernetes.IRole, writer?: $protobuf.Writer): $protobuf.Writer; + /** Process envVariablesTruncated. */ + public envVariablesTruncated: boolean; - /** - * Decodes a Role message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Role - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Kubernetes.Role; + /** Process pid. */ + public pid: (number|Long|string); + + /** Process parentPid. */ + public parentPid: (number|Long|string); + + /** + * Creates a new Process instance using the specified properties. + * @param [properties] Properties to set + * @returns Process instance + */ + public static create(properties?: google.cloud.securitycenter.v1.IProcess): google.cloud.securitycenter.v1.Process; + + /** + * Encodes the specified Process message. Does not implicitly {@link google.cloud.securitycenter.v1.Process.verify|verify} messages. + * @param message Process message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.IProcess, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Process message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Process.verify|verify} messages. + * @param message Process message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.IProcess, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Process message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Process + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Process; + + /** + * Decodes a Process message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Process + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Process; - /** - * Decodes a Role message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Role - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Kubernetes.Role; + /** + * Verifies a Process message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a Role message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a Process message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Process + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Process; - /** - * Creates a Role message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Role - */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Kubernetes.Role; + /** + * Creates a plain object from a Process message. Also converts values to other types if specified. + * @param message Process + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Process, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a Role message. Also converts values to other types if specified. - * @param message Role - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.securitycenter.v1.Kubernetes.Role, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this Process to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this Role to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for Process + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for Role - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of an EnvironmentVariable. */ + interface IEnvironmentVariable { - namespace Role { + /** EnvironmentVariable name */ + name?: (string|null); - /** Kind enum. */ - enum Kind { - KIND_UNSPECIFIED = 0, - ROLE = 1, - CLUSTER_ROLE = 2 - } - } + /** EnvironmentVariable val */ + val?: (string|null); + } - /** Properties of a Binding. */ - interface IBinding { + /** Represents an EnvironmentVariable. */ + class EnvironmentVariable implements IEnvironmentVariable { - /** Binding ns */ - ns?: (string|null); + /** + * Constructs a new EnvironmentVariable. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.IEnvironmentVariable); - /** Binding name */ - name?: (string|null); + /** EnvironmentVariable name. */ + public name: string; - /** Binding role */ - role?: (google.cloud.securitycenter.v1.Kubernetes.IRole|null); + /** EnvironmentVariable val. */ + public val: string; - /** Binding subjects */ - subjects?: (google.cloud.securitycenter.v1.Kubernetes.ISubject[]|null); - } + /** + * Creates a new EnvironmentVariable instance using the specified properties. + * @param [properties] Properties to set + * @returns EnvironmentVariable instance + */ + public static create(properties?: google.cloud.securitycenter.v1.IEnvironmentVariable): google.cloud.securitycenter.v1.EnvironmentVariable; - /** Represents a Binding. */ - class Binding implements IBinding { + /** + * Encodes the specified EnvironmentVariable message. Does not implicitly {@link google.cloud.securitycenter.v1.EnvironmentVariable.verify|verify} messages. + * @param message EnvironmentVariable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.IEnvironmentVariable, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new Binding. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.securitycenter.v1.Kubernetes.IBinding); + /** + * Encodes the specified EnvironmentVariable message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.EnvironmentVariable.verify|verify} messages. + * @param message EnvironmentVariable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.IEnvironmentVariable, writer?: $protobuf.Writer): $protobuf.Writer; - /** Binding ns. */ - public ns: string; + /** + * Decodes an EnvironmentVariable message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnvironmentVariable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.EnvironmentVariable; - /** Binding name. */ - public name: string; + /** + * Decodes an EnvironmentVariable message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnvironmentVariable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.EnvironmentVariable; - /** Binding role. */ - public role?: (google.cloud.securitycenter.v1.Kubernetes.IRole|null); + /** + * Verifies an EnvironmentVariable message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Binding subjects. */ - public subjects: google.cloud.securitycenter.v1.Kubernetes.ISubject[]; + /** + * Creates an EnvironmentVariable message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnvironmentVariable + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.EnvironmentVariable; - /** - * Creates a new Binding instance using the specified properties. - * @param [properties] Properties to set - * @returns Binding instance - */ - public static create(properties?: google.cloud.securitycenter.v1.Kubernetes.IBinding): google.cloud.securitycenter.v1.Kubernetes.Binding; + /** + * Creates a plain object from an EnvironmentVariable message. Also converts values to other types if specified. + * @param message EnvironmentVariable + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.EnvironmentVariable, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified Binding message. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Binding.verify|verify} messages. - * @param message Binding message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.securitycenter.v1.Kubernetes.IBinding, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this EnvironmentVariable to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified Binding message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Binding.verify|verify} messages. - * @param message Binding message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.Kubernetes.IBinding, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for EnvironmentVariable + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a Binding message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Binding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Kubernetes.Binding; + /** Properties of a Vulnerability. */ + interface IVulnerability { - /** - * Decodes a Binding message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Binding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Kubernetes.Binding; + /** Vulnerability cve */ + cve?: (google.cloud.securitycenter.v1.ICve|null); + } - /** - * Verifies a Binding message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Represents a Vulnerability. */ + class Vulnerability implements IVulnerability { - /** - * Creates a Binding message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Binding - */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Kubernetes.Binding; + /** + * Constructs a new Vulnerability. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.IVulnerability); + + /** Vulnerability cve. */ + public cve?: (google.cloud.securitycenter.v1.ICve|null); - /** - * Creates a plain object from a Binding message. Also converts values to other types if specified. - * @param message Binding - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.securitycenter.v1.Kubernetes.Binding, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new Vulnerability instance using the specified properties. + * @param [properties] Properties to set + * @returns Vulnerability instance + */ + public static create(properties?: google.cloud.securitycenter.v1.IVulnerability): google.cloud.securitycenter.v1.Vulnerability; - /** - * Converts this Binding to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified Vulnerability message. Does not implicitly {@link google.cloud.securitycenter.v1.Vulnerability.verify|verify} messages. + * @param message Vulnerability message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.IVulnerability, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for Binding - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified Vulnerability message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Vulnerability.verify|verify} messages. + * @param message Vulnerability message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.IVulnerability, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a Subject. */ - interface ISubject { + /** + * Decodes a Vulnerability message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Vulnerability + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Vulnerability; - /** Subject kind */ - kind?: (google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType|keyof typeof google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType|null); + /** + * Decodes a Vulnerability message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Vulnerability + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Vulnerability; - /** Subject ns */ - ns?: (string|null); + /** + * Verifies a Vulnerability message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Subject name */ - name?: (string|null); - } + /** + * Creates a Vulnerability message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Vulnerability + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Vulnerability; - /** Represents a Subject. */ - class Subject implements ISubject { + /** + * Creates a plain object from a Vulnerability message. Also converts values to other types if specified. + * @param message Vulnerability + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Vulnerability, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new Subject. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.securitycenter.v1.Kubernetes.ISubject); + /** + * Converts this Vulnerability to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Subject kind. */ - public kind: (google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType|keyof typeof google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType); + /** + * Gets the default type url for Vulnerability + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Subject ns. */ - public ns: string; + /** Properties of a Cve. */ + interface ICve { - /** Subject name. */ - public name: string; + /** Cve id */ + id?: (string|null); - /** - * Creates a new Subject instance using the specified properties. - * @param [properties] Properties to set - * @returns Subject instance - */ - public static create(properties?: google.cloud.securitycenter.v1.Kubernetes.ISubject): google.cloud.securitycenter.v1.Kubernetes.Subject; + /** Cve references */ + references?: (google.cloud.securitycenter.v1.IReference[]|null); - /** - * Encodes the specified Subject message. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Subject.verify|verify} messages. - * @param message Subject message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.securitycenter.v1.Kubernetes.ISubject, writer?: $protobuf.Writer): $protobuf.Writer; + /** Cve cvssv3 */ + cvssv3?: (google.cloud.securitycenter.v1.ICvssv3|null); - /** - * Encodes the specified Subject message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.Subject.verify|verify} messages. - * @param message Subject message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.Kubernetes.ISubject, writer?: $protobuf.Writer): $protobuf.Writer; + /** Cve upstreamFixAvailable */ + upstreamFixAvailable?: (boolean|null); + } - /** - * Decodes a Subject message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Subject - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Kubernetes.Subject; + /** Represents a Cve. */ + class Cve implements ICve { - /** - * Decodes a Subject message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Subject - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Kubernetes.Subject; + /** + * Constructs a new Cve. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.ICve); - /** - * Verifies a Subject message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Cve id. */ + public id: string; - /** - * Creates a Subject message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Subject - */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Kubernetes.Subject; + /** Cve references. */ + public references: google.cloud.securitycenter.v1.IReference[]; - /** - * Creates a plain object from a Subject message. Also converts values to other types if specified. - * @param message Subject - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.securitycenter.v1.Kubernetes.Subject, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Cve cvssv3. */ + public cvssv3?: (google.cloud.securitycenter.v1.ICvssv3|null); - /** - * Converts this Subject to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Cve upstreamFixAvailable. */ + public upstreamFixAvailable: boolean; - /** - * Gets the default type url for Subject - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a new Cve instance using the specified properties. + * @param [properties] Properties to set + * @returns Cve instance + */ + public static create(properties?: google.cloud.securitycenter.v1.ICve): google.cloud.securitycenter.v1.Cve; - namespace Subject { + /** + * Encodes the specified Cve message. Does not implicitly {@link google.cloud.securitycenter.v1.Cve.verify|verify} messages. + * @param message Cve message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.ICve, writer?: $protobuf.Writer): $protobuf.Writer; - /** AuthType enum. */ - enum AuthType { - AUTH_TYPE_UNSPECIFIED = 0, - USER = 1, - SERVICEACCOUNT = 2, - GROUP = 3 - } - } + /** + * Encodes the specified Cve message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Cve.verify|verify} messages. + * @param message Cve message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.ICve, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of an AccessReview. */ - interface IAccessReview { + /** + * Decodes a Cve message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Cve + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Cve; - /** AccessReview group */ - group?: (string|null); + /** + * Decodes a Cve message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Cve + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Cve; + + /** + * Verifies a Cve message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** AccessReview ns */ - ns?: (string|null); + /** + * Creates a Cve message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Cve + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Cve; - /** AccessReview name */ - name?: (string|null); + /** + * Creates a plain object from a Cve message. Also converts values to other types if specified. + * @param message Cve + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Cve, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** AccessReview resource */ - resource?: (string|null); + /** + * Converts this Cve to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** AccessReview subresource */ - subresource?: (string|null); + /** + * Gets the default type url for Cve + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** AccessReview verb */ - verb?: (string|null); + /** Properties of a Reference. */ + interface IReference { - /** AccessReview version */ - version?: (string|null); - } + /** Reference source */ + source?: (string|null); - /** Represents an AccessReview. */ - class AccessReview implements IAccessReview { + /** Reference uri */ + uri?: (string|null); + } - /** - * Constructs a new AccessReview. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.securitycenter.v1.Kubernetes.IAccessReview); + /** Represents a Reference. */ + class Reference implements IReference { - /** AccessReview group. */ - public group: string; + /** + * Constructs a new Reference. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.IReference); - /** AccessReview ns. */ - public ns: string; + /** Reference source. */ + public source: string; - /** AccessReview name. */ - public name: string; + /** Reference uri. */ + public uri: string; - /** AccessReview resource. */ - public resource: string; + /** + * Creates a new Reference instance using the specified properties. + * @param [properties] Properties to set + * @returns Reference instance + */ + public static create(properties?: google.cloud.securitycenter.v1.IReference): google.cloud.securitycenter.v1.Reference; - /** AccessReview subresource. */ - public subresource: string; + /** + * Encodes the specified Reference message. Does not implicitly {@link google.cloud.securitycenter.v1.Reference.verify|verify} messages. + * @param message Reference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.IReference, writer?: $protobuf.Writer): $protobuf.Writer; - /** AccessReview verb. */ - public verb: string; + /** + * Encodes the specified Reference message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Reference.verify|verify} messages. + * @param message Reference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.IReference, writer?: $protobuf.Writer): $protobuf.Writer; - /** AccessReview version. */ - public version: string; + /** + * Decodes a Reference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Reference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Reference; - /** - * Creates a new AccessReview instance using the specified properties. - * @param [properties] Properties to set - * @returns AccessReview instance - */ - public static create(properties?: google.cloud.securitycenter.v1.Kubernetes.IAccessReview): google.cloud.securitycenter.v1.Kubernetes.AccessReview; + /** + * Decodes a Reference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Reference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Reference; - /** - * Encodes the specified AccessReview message. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.AccessReview.verify|verify} messages. - * @param message AccessReview message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.securitycenter.v1.Kubernetes.IAccessReview, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a Reference message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Encodes the specified AccessReview message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Kubernetes.AccessReview.verify|verify} messages. - * @param message AccessReview message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.Kubernetes.IAccessReview, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a Reference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Reference + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Reference; - /** - * Decodes an AccessReview message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AccessReview - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Kubernetes.AccessReview; + /** + * Creates a plain object from a Reference message. Also converts values to other types if specified. + * @param message Reference + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.Reference, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes an AccessReview message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AccessReview - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Kubernetes.AccessReview; + /** + * Converts this Reference to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Verifies an AccessReview message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Gets the default type url for Reference + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates an AccessReview message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AccessReview - */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Kubernetes.AccessReview; + /** Properties of a Cvssv3. */ + interface ICvssv3 { - /** - * Creates a plain object from an AccessReview message. Also converts values to other types if specified. - * @param message AccessReview - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.securitycenter.v1.Kubernetes.AccessReview, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Cvssv3 baseScore */ + baseScore?: (number|null); - /** - * Converts this AccessReview to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Cvssv3 attackVector */ + attackVector?: (google.cloud.securitycenter.v1.Cvssv3.AttackVector|keyof typeof google.cloud.securitycenter.v1.Cvssv3.AttackVector|null); - /** - * Gets the default type url for AccessReview - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** Cvssv3 attackComplexity */ + attackComplexity?: (google.cloud.securitycenter.v1.Cvssv3.AttackComplexity|keyof typeof google.cloud.securitycenter.v1.Cvssv3.AttackComplexity|null); - /** Properties of a MitreAttack. */ - interface IMitreAttack { + /** Cvssv3 privilegesRequired */ + privilegesRequired?: (google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired|keyof typeof google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired|null); - /** MitreAttack primaryTactic */ - primaryTactic?: (google.cloud.securitycenter.v1.MitreAttack.Tactic|keyof typeof google.cloud.securitycenter.v1.MitreAttack.Tactic|null); + /** Cvssv3 userInteraction */ + userInteraction?: (google.cloud.securitycenter.v1.Cvssv3.UserInteraction|keyof typeof google.cloud.securitycenter.v1.Cvssv3.UserInteraction|null); - /** MitreAttack primaryTechniques */ - primaryTechniques?: (google.cloud.securitycenter.v1.MitreAttack.Technique[]|null); + /** Cvssv3 scope */ + scope?: (google.cloud.securitycenter.v1.Cvssv3.Scope|keyof typeof google.cloud.securitycenter.v1.Cvssv3.Scope|null); - /** MitreAttack additionalTactics */ - additionalTactics?: (google.cloud.securitycenter.v1.MitreAttack.Tactic[]|null); + /** Cvssv3 confidentialityImpact */ + confidentialityImpact?: (google.cloud.securitycenter.v1.Cvssv3.Impact|keyof typeof google.cloud.securitycenter.v1.Cvssv3.Impact|null); - /** MitreAttack additionalTechniques */ - additionalTechniques?: (google.cloud.securitycenter.v1.MitreAttack.Technique[]|null); + /** Cvssv3 integrityImpact */ + integrityImpact?: (google.cloud.securitycenter.v1.Cvssv3.Impact|keyof typeof google.cloud.securitycenter.v1.Cvssv3.Impact|null); - /** MitreAttack version */ - version?: (string|null); + /** Cvssv3 availabilityImpact */ + availabilityImpact?: (google.cloud.securitycenter.v1.Cvssv3.Impact|keyof typeof google.cloud.securitycenter.v1.Cvssv3.Impact|null); } - /** Represents a MitreAttack. */ - class MitreAttack implements IMitreAttack { + /** Represents a Cvssv3. */ + class Cvssv3 implements ICvssv3 { /** - * Constructs a new MitreAttack. + * Constructs a new Cvssv3. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IMitreAttack); + constructor(properties?: google.cloud.securitycenter.v1.ICvssv3); - /** MitreAttack primaryTactic. */ - public primaryTactic: (google.cloud.securitycenter.v1.MitreAttack.Tactic|keyof typeof google.cloud.securitycenter.v1.MitreAttack.Tactic); + /** Cvssv3 baseScore. */ + public baseScore: number; - /** MitreAttack primaryTechniques. */ - public primaryTechniques: google.cloud.securitycenter.v1.MitreAttack.Technique[]; + /** Cvssv3 attackVector. */ + public attackVector: (google.cloud.securitycenter.v1.Cvssv3.AttackVector|keyof typeof google.cloud.securitycenter.v1.Cvssv3.AttackVector); - /** MitreAttack additionalTactics. */ - public additionalTactics: google.cloud.securitycenter.v1.MitreAttack.Tactic[]; + /** Cvssv3 attackComplexity. */ + public attackComplexity: (google.cloud.securitycenter.v1.Cvssv3.AttackComplexity|keyof typeof google.cloud.securitycenter.v1.Cvssv3.AttackComplexity); - /** MitreAttack additionalTechniques. */ - public additionalTechniques: google.cloud.securitycenter.v1.MitreAttack.Technique[]; + /** Cvssv3 privilegesRequired. */ + public privilegesRequired: (google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired|keyof typeof google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired); - /** MitreAttack version. */ - public version: string; + /** Cvssv3 userInteraction. */ + public userInteraction: (google.cloud.securitycenter.v1.Cvssv3.UserInteraction|keyof typeof google.cloud.securitycenter.v1.Cvssv3.UserInteraction); + + /** Cvssv3 scope. */ + public scope: (google.cloud.securitycenter.v1.Cvssv3.Scope|keyof typeof google.cloud.securitycenter.v1.Cvssv3.Scope); + + /** Cvssv3 confidentialityImpact. */ + public confidentialityImpact: (google.cloud.securitycenter.v1.Cvssv3.Impact|keyof typeof google.cloud.securitycenter.v1.Cvssv3.Impact); + + /** Cvssv3 integrityImpact. */ + public integrityImpact: (google.cloud.securitycenter.v1.Cvssv3.Impact|keyof typeof google.cloud.securitycenter.v1.Cvssv3.Impact); + + /** Cvssv3 availabilityImpact. */ + public availabilityImpact: (google.cloud.securitycenter.v1.Cvssv3.Impact|keyof typeof google.cloud.securitycenter.v1.Cvssv3.Impact); /** - * Creates a new MitreAttack instance using the specified properties. + * Creates a new Cvssv3 instance using the specified properties. * @param [properties] Properties to set - * @returns MitreAttack instance + * @returns Cvssv3 instance */ - public static create(properties?: google.cloud.securitycenter.v1.IMitreAttack): google.cloud.securitycenter.v1.MitreAttack; + public static create(properties?: google.cloud.securitycenter.v1.ICvssv3): google.cloud.securitycenter.v1.Cvssv3; /** - * Encodes the specified MitreAttack message. Does not implicitly {@link google.cloud.securitycenter.v1.MitreAttack.verify|verify} messages. - * @param message MitreAttack message or plain object to encode + * Encodes the specified Cvssv3 message. Does not implicitly {@link google.cloud.securitycenter.v1.Cvssv3.verify|verify} messages. + * @param message Cvssv3 message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IMitreAttack, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.ICvssv3, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MitreAttack message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.MitreAttack.verify|verify} messages. - * @param message MitreAttack message or plain object to encode + * Encodes the specified Cvssv3 message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Cvssv3.verify|verify} messages. + * @param message Cvssv3 message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IMitreAttack, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.ICvssv3, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MitreAttack message from the specified reader or buffer. + * Decodes a Cvssv3 message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MitreAttack + * @returns Cvssv3 * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.MitreAttack; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Cvssv3; /** - * Decodes a MitreAttack message from the specified reader or buffer, length delimited. + * Decodes a Cvssv3 message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MitreAttack + * @returns Cvssv3 * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.MitreAttack; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Cvssv3; /** - * Verifies a MitreAttack message. + * Verifies a Cvssv3 message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MitreAttack message from a plain object. Also converts values to their respective internal types. + * Creates a Cvssv3 message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MitreAttack + * @returns Cvssv3 */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.MitreAttack; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Cvssv3; /** - * Creates a plain object from a MitreAttack message. Also converts values to other types if specified. - * @param message MitreAttack + * Creates a plain object from a Cvssv3 message. Also converts values to other types if specified. + * @param message Cvssv3 * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.MitreAttack, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.Cvssv3, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MitreAttack to JSON. + * Converts this Cvssv3 to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MitreAttack + * Gets the default type url for Cvssv3 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MitreAttack { + namespace Cvssv3 { - /** Tactic enum. */ - enum Tactic { - TACTIC_UNSPECIFIED = 0, - RECONNAISSANCE = 1, - RESOURCE_DEVELOPMENT = 2, - INITIAL_ACCESS = 5, - EXECUTION = 3, - PERSISTENCE = 6, - PRIVILEGE_ESCALATION = 8, - DEFENSE_EVASION = 7, - CREDENTIAL_ACCESS = 9, - DISCOVERY = 10, - LATERAL_MOVEMENT = 11, - COLLECTION = 12, - COMMAND_AND_CONTROL = 4, - EXFILTRATION = 13, - IMPACT = 14 + /** AttackVector enum. */ + enum AttackVector { + ATTACK_VECTOR_UNSPECIFIED = 0, + ATTACK_VECTOR_NETWORK = 1, + ATTACK_VECTOR_ADJACENT = 2, + ATTACK_VECTOR_LOCAL = 3, + ATTACK_VECTOR_PHYSICAL = 4 } - /** Technique enum. */ - enum Technique { - TECHNIQUE_UNSPECIFIED = 0, - ACTIVE_SCANNING = 1, - SCANNING_IP_BLOCKS = 2, - INGRESS_TOOL_TRANSFER = 3, - NATIVE_API = 4, - SHARED_MODULES = 5, - COMMAND_AND_SCRIPTING_INTERPRETER = 6, - UNIX_SHELL = 7, - RESOURCE_HIJACKING = 8, - PROXY = 9, - EXTERNAL_PROXY = 10, - MULTI_HOP_PROXY = 11, - DYNAMIC_RESOLUTION = 12, - UNSECURED_CREDENTIALS = 13, - VALID_ACCOUNTS = 14, - LOCAL_ACCOUNTS = 15, - CLOUD_ACCOUNTS = 16, - NETWORK_DENIAL_OF_SERVICE = 17, - PERMISSION_GROUPS_DISCOVERY = 18, - CLOUD_GROUPS = 19, - EXFILTRATION_OVER_WEB_SERVICE = 20, - EXFILTRATION_TO_CLOUD_STORAGE = 21, - ACCOUNT_MANIPULATION = 22, - SSH_AUTHORIZED_KEYS = 23, - CREATE_OR_MODIFY_SYSTEM_PROCESS = 24, - STEAL_WEB_SESSION_COOKIE = 25, - MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE = 26, - EXPLOIT_PUBLIC_FACING_APPLICATION = 27, - MODIFY_AUTHENTICATION_PROCESS = 28, - DATA_DESTRUCTION = 29, - DOMAIN_POLICY_MODIFICATION = 30, - IMPAIR_DEFENSES = 31, - NETWORK_SERVICE_DISCOVERY = 32, - ACCESS_TOKEN_MANIPULATION = 33, - ABUSE_ELEVATION_CONTROL_MECHANISM = 34, - DEFAULT_ACCOUNTS = 35 + /** AttackComplexity enum. */ + enum AttackComplexity { + ATTACK_COMPLEXITY_UNSPECIFIED = 0, + ATTACK_COMPLEXITY_LOW = 1, + ATTACK_COMPLEXITY_HIGH = 2 + } + + /** PrivilegesRequired enum. */ + enum PrivilegesRequired { + PRIVILEGES_REQUIRED_UNSPECIFIED = 0, + PRIVILEGES_REQUIRED_NONE = 1, + PRIVILEGES_REQUIRED_LOW = 2, + PRIVILEGES_REQUIRED_HIGH = 3 + } + + /** UserInteraction enum. */ + enum UserInteraction { + USER_INTERACTION_UNSPECIFIED = 0, + USER_INTERACTION_NONE = 1, + USER_INTERACTION_REQUIRED = 2 + } + + /** Scope enum. */ + enum Scope { + SCOPE_UNSPECIFIED = 0, + SCOPE_UNCHANGED = 1, + SCOPE_CHANGED = 2 + } + + /** Impact enum. */ + enum Impact { + IMPACT_UNSPECIFIED = 0, + IMPACT_HIGH = 1, + IMPACT_LOW = 2, + IMPACT_NONE = 3 } } - /** Properties of a Process. */ - interface IProcess { + /** Properties of a MuteConfig. */ + interface IMuteConfig { + + /** MuteConfig name */ + name?: (string|null); + + /** MuteConfig displayName */ + displayName?: (string|null); + + /** MuteConfig description */ + description?: (string|null); + + /** MuteConfig filter */ + filter?: (string|null); + + /** MuteConfig createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** MuteConfig updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** MuteConfig mostRecentEditor */ + mostRecentEditor?: (string|null); + } + + /** Represents a MuteConfig. */ + class MuteConfig implements IMuteConfig { + + /** + * Constructs a new MuteConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.IMuteConfig); + + /** MuteConfig name. */ + public name: string; + + /** MuteConfig displayName. */ + public displayName: string; + + /** MuteConfig description. */ + public description: string; + + /** MuteConfig filter. */ + public filter: string; + + /** MuteConfig createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** MuteConfig updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** MuteConfig mostRecentEditor. */ + public mostRecentEditor: string; + + /** + * Creates a new MuteConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MuteConfig instance + */ + public static create(properties?: google.cloud.securitycenter.v1.IMuteConfig): google.cloud.securitycenter.v1.MuteConfig; + + /** + * Encodes the specified MuteConfig message. Does not implicitly {@link google.cloud.securitycenter.v1.MuteConfig.verify|verify} messages. + * @param message MuteConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.IMuteConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MuteConfig message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.MuteConfig.verify|verify} messages. + * @param message MuteConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.IMuteConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MuteConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MuteConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.MuteConfig; - /** Process name */ - name?: (string|null); + /** + * Decodes a MuteConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MuteConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.MuteConfig; - /** Process binary */ - binary?: (google.cloud.securitycenter.v1.IFile|null); + /** + * Verifies a MuteConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Process libraries */ - libraries?: (google.cloud.securitycenter.v1.IFile[]|null); + /** + * Creates a MuteConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MuteConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.MuteConfig; - /** Process script */ - script?: (google.cloud.securitycenter.v1.IFile|null); + /** + * Creates a plain object from a MuteConfig message. Also converts values to other types if specified. + * @param message MuteConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.MuteConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Process args */ - args?: (string[]|null); + /** + * Converts this MuteConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Process argumentsTruncated */ - argumentsTruncated?: (boolean|null); + /** + * Gets the default type url for MuteConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Process envVariables */ - envVariables?: (google.cloud.securitycenter.v1.IEnvironmentVariable[]|null); + /** Properties of a NotificationConfig. */ + interface INotificationConfig { - /** Process envVariablesTruncated */ - envVariablesTruncated?: (boolean|null); + /** NotificationConfig name */ + name?: (string|null); - /** Process pid */ - pid?: (number|Long|string|null); + /** NotificationConfig description */ + description?: (string|null); - /** Process parentPid */ - parentPid?: (number|Long|string|null); + /** NotificationConfig pubsubTopic */ + pubsubTopic?: (string|null); + + /** NotificationConfig serviceAccount */ + serviceAccount?: (string|null); + + /** NotificationConfig streamingConfig */ + streamingConfig?: (google.cloud.securitycenter.v1.NotificationConfig.IStreamingConfig|null); } - /** Represents a Process. */ - class Process implements IProcess { + /** Represents a NotificationConfig. */ + class NotificationConfig implements INotificationConfig { /** - * Constructs a new Process. + * Constructs a new NotificationConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IProcess); + constructor(properties?: google.cloud.securitycenter.v1.INotificationConfig); - /** Process name. */ + /** NotificationConfig name. */ public name: string; - /** Process binary. */ - public binary?: (google.cloud.securitycenter.v1.IFile|null); - - /** Process libraries. */ - public libraries: google.cloud.securitycenter.v1.IFile[]; - - /** Process script. */ - public script?: (google.cloud.securitycenter.v1.IFile|null); - - /** Process args. */ - public args: string[]; - - /** Process argumentsTruncated. */ - public argumentsTruncated: boolean; + /** NotificationConfig description. */ + public description: string; - /** Process envVariables. */ - public envVariables: google.cloud.securitycenter.v1.IEnvironmentVariable[]; + /** NotificationConfig pubsubTopic. */ + public pubsubTopic: string; - /** Process envVariablesTruncated. */ - public envVariablesTruncated: boolean; + /** NotificationConfig serviceAccount. */ + public serviceAccount: string; - /** Process pid. */ - public pid: (number|Long|string); + /** NotificationConfig streamingConfig. */ + public streamingConfig?: (google.cloud.securitycenter.v1.NotificationConfig.IStreamingConfig|null); - /** Process parentPid. */ - public parentPid: (number|Long|string); + /** NotificationConfig notifyConfig. */ + public notifyConfig?: "streamingConfig"; /** - * Creates a new Process instance using the specified properties. + * Creates a new NotificationConfig instance using the specified properties. * @param [properties] Properties to set - * @returns Process instance + * @returns NotificationConfig instance */ - public static create(properties?: google.cloud.securitycenter.v1.IProcess): google.cloud.securitycenter.v1.Process; + public static create(properties?: google.cloud.securitycenter.v1.INotificationConfig): google.cloud.securitycenter.v1.NotificationConfig; /** - * Encodes the specified Process message. Does not implicitly {@link google.cloud.securitycenter.v1.Process.verify|verify} messages. - * @param message Process message or plain object to encode + * Encodes the specified NotificationConfig message. Does not implicitly {@link google.cloud.securitycenter.v1.NotificationConfig.verify|verify} messages. + * @param message NotificationConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IProcess, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.INotificationConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Process message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Process.verify|verify} messages. - * @param message Process message or plain object to encode + * Encodes the specified NotificationConfig message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.NotificationConfig.verify|verify} messages. + * @param message NotificationConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IProcess, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.INotificationConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Process message from the specified reader or buffer. + * Decodes a NotificationConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Process + * @returns NotificationConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Process; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.NotificationConfig; /** - * Decodes a Process message from the specified reader or buffer, length delimited. + * Decodes a NotificationConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Process + * @returns NotificationConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Process; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.NotificationConfig; /** - * Verifies a Process message. + * Verifies a NotificationConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Process message from a plain object. Also converts values to their respective internal types. + * Creates a NotificationConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Process + * @returns NotificationConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Process; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.NotificationConfig; + + /** + * Creates a plain object from a NotificationConfig message. Also converts values to other types if specified. + * @param message NotificationConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.NotificationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NotificationConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NotificationConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NotificationConfig { + + /** Properties of a StreamingConfig. */ + interface IStreamingConfig { + + /** StreamingConfig filter */ + filter?: (string|null); + } + + /** Represents a StreamingConfig. */ + class StreamingConfig implements IStreamingConfig { + + /** + * Constructs a new StreamingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.NotificationConfig.IStreamingConfig); + + /** StreamingConfig filter. */ + public filter: string; + + /** + * Creates a new StreamingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamingConfig instance + */ + public static create(properties?: google.cloud.securitycenter.v1.NotificationConfig.IStreamingConfig): google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig; + + /** + * Encodes the specified StreamingConfig message. Does not implicitly {@link google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.verify|verify} messages. + * @param message StreamingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.NotificationConfig.IStreamingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StreamingConfig message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.verify|verify} messages. + * @param message StreamingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.NotificationConfig.IStreamingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StreamingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StreamingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig; + + /** + * Decodes a StreamingConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StreamingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig; + + /** + * Verifies a StreamingConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a Process message. Also converts values to other types if specified. - * @param message Process - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.securitycenter.v1.Process, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a StreamingConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StreamingConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig; - /** - * Converts this Process to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a StreamingConfig message. Also converts values to other types if specified. + * @param message StreamingConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for Process - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Converts this StreamingConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StreamingConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of an EnvironmentVariable. */ - interface IEnvironmentVariable { + /** Properties of a NotificationMessage. */ + interface INotificationMessage { - /** EnvironmentVariable name */ - name?: (string|null); + /** NotificationMessage notificationConfigName */ + notificationConfigName?: (string|null); - /** EnvironmentVariable val */ - val?: (string|null); + /** NotificationMessage finding */ + finding?: (google.cloud.securitycenter.v1.IFinding|null); + + /** NotificationMessage resource */ + resource?: (google.cloud.securitycenter.v1.IResource|null); } - /** Represents an EnvironmentVariable. */ - class EnvironmentVariable implements IEnvironmentVariable { + /** Represents a NotificationMessage. */ + class NotificationMessage implements INotificationMessage { /** - * Constructs a new EnvironmentVariable. + * Constructs a new NotificationMessage. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IEnvironmentVariable); + constructor(properties?: google.cloud.securitycenter.v1.INotificationMessage); - /** EnvironmentVariable name. */ - public name: string; + /** NotificationMessage notificationConfigName. */ + public notificationConfigName: string; - /** EnvironmentVariable val. */ - public val: string; + /** NotificationMessage finding. */ + public finding?: (google.cloud.securitycenter.v1.IFinding|null); + + /** NotificationMessage resource. */ + public resource?: (google.cloud.securitycenter.v1.IResource|null); + + /** NotificationMessage event. */ + public event?: "finding"; /** - * Creates a new EnvironmentVariable instance using the specified properties. + * Creates a new NotificationMessage instance using the specified properties. * @param [properties] Properties to set - * @returns EnvironmentVariable instance + * @returns NotificationMessage instance */ - public static create(properties?: google.cloud.securitycenter.v1.IEnvironmentVariable): google.cloud.securitycenter.v1.EnvironmentVariable; + public static create(properties?: google.cloud.securitycenter.v1.INotificationMessage): google.cloud.securitycenter.v1.NotificationMessage; /** - * Encodes the specified EnvironmentVariable message. Does not implicitly {@link google.cloud.securitycenter.v1.EnvironmentVariable.verify|verify} messages. - * @param message EnvironmentVariable message or plain object to encode + * Encodes the specified NotificationMessage message. Does not implicitly {@link google.cloud.securitycenter.v1.NotificationMessage.verify|verify} messages. + * @param message NotificationMessage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IEnvironmentVariable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.INotificationMessage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnvironmentVariable message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.EnvironmentVariable.verify|verify} messages. - * @param message EnvironmentVariable message or plain object to encode + * Encodes the specified NotificationMessage message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.NotificationMessage.verify|verify} messages. + * @param message NotificationMessage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IEnvironmentVariable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.INotificationMessage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnvironmentVariable message from the specified reader or buffer. + * Decodes a NotificationMessage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnvironmentVariable + * @returns NotificationMessage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.EnvironmentVariable; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.NotificationMessage; /** - * Decodes an EnvironmentVariable message from the specified reader or buffer, length delimited. + * Decodes a NotificationMessage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnvironmentVariable + * @returns NotificationMessage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.EnvironmentVariable; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.NotificationMessage; /** - * Verifies an EnvironmentVariable message. + * Verifies a NotificationMessage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an EnvironmentVariable message from a plain object. Also converts values to their respective internal types. + * Creates a NotificationMessage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnvironmentVariable + * @returns NotificationMessage */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.EnvironmentVariable; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.NotificationMessage; /** - * Creates a plain object from an EnvironmentVariable message. Also converts values to other types if specified. - * @param message EnvironmentVariable + * Creates a plain object from a NotificationMessage message. Also converts values to other types if specified. + * @param message NotificationMessage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.EnvironmentVariable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.NotificationMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnvironmentVariable to JSON. + * Converts this NotificationMessage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EnvironmentVariable + * Gets the default type url for NotificationMessage * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Vulnerability. */ - interface IVulnerability { + /** Properties of a Resource. */ + interface IResource { - /** Vulnerability cve */ - cve?: (google.cloud.securitycenter.v1.ICve|null); + /** Resource name */ + name?: (string|null); + + /** Resource displayName */ + displayName?: (string|null); + + /** Resource type */ + type?: (string|null); + + /** Resource project */ + project?: (string|null); + + /** Resource projectDisplayName */ + projectDisplayName?: (string|null); + + /** Resource parent */ + parent?: (string|null); + + /** Resource parentDisplayName */ + parentDisplayName?: (string|null); + + /** Resource folders */ + folders?: (google.cloud.securitycenter.v1.IFolder[]|null); } - /** Represents a Vulnerability. */ - class Vulnerability implements IVulnerability { + /** Represents a Resource. */ + class Resource implements IResource { /** - * Constructs a new Vulnerability. + * Constructs a new Resource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IVulnerability); + constructor(properties?: google.cloud.securitycenter.v1.IResource); - /** Vulnerability cve. */ - public cve?: (google.cloud.securitycenter.v1.ICve|null); + /** Resource name. */ + public name: string; + + /** Resource displayName. */ + public displayName: string; + + /** Resource type. */ + public type: string; + + /** Resource project. */ + public project: string; + + /** Resource projectDisplayName. */ + public projectDisplayName: string; + + /** Resource parent. */ + public parent: string; + + /** Resource parentDisplayName. */ + public parentDisplayName: string; + + /** Resource folders. */ + public folders: google.cloud.securitycenter.v1.IFolder[]; /** - * Creates a new Vulnerability instance using the specified properties. + * Creates a new Resource instance using the specified properties. * @param [properties] Properties to set - * @returns Vulnerability instance + * @returns Resource instance */ - public static create(properties?: google.cloud.securitycenter.v1.IVulnerability): google.cloud.securitycenter.v1.Vulnerability; + public static create(properties?: google.cloud.securitycenter.v1.IResource): google.cloud.securitycenter.v1.Resource; /** - * Encodes the specified Vulnerability message. Does not implicitly {@link google.cloud.securitycenter.v1.Vulnerability.verify|verify} messages. - * @param message Vulnerability message or plain object to encode + * Encodes the specified Resource message. Does not implicitly {@link google.cloud.securitycenter.v1.Resource.verify|verify} messages. + * @param message Resource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IVulnerability, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Vulnerability message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Vulnerability.verify|verify} messages. - * @param message Vulnerability message or plain object to encode + * Encodes the specified Resource message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Resource.verify|verify} messages. + * @param message Resource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IVulnerability, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Vulnerability message from the specified reader or buffer. + * Decodes a Resource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Vulnerability + * @returns Resource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Vulnerability; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Resource; /** - * Decodes a Vulnerability message from the specified reader or buffer, length delimited. + * Decodes a Resource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Vulnerability + * @returns Resource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Vulnerability; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Resource; /** - * Verifies a Vulnerability message. + * Verifies a Resource message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Vulnerability message from a plain object. Also converts values to their respective internal types. + * Creates a Resource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Vulnerability + * @returns Resource */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Vulnerability; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Resource; /** - * Creates a plain object from a Vulnerability message. Also converts values to other types if specified. - * @param message Vulnerability + * Creates a plain object from a Resource message. Also converts values to other types if specified. + * @param message Resource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.Vulnerability, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.Resource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Vulnerability to JSON. + * Converts this Resource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Vulnerability + * Gets the default type url for Resource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Cve. */ - interface ICve { - - /** Cve id */ - id?: (string|null); + /** Properties of an OrganizationSettings. */ + interface IOrganizationSettings { - /** Cve references */ - references?: (google.cloud.securitycenter.v1.IReference[]|null); + /** OrganizationSettings name */ + name?: (string|null); - /** Cve cvssv3 */ - cvssv3?: (google.cloud.securitycenter.v1.ICvssv3|null); + /** OrganizationSettings enableAssetDiscovery */ + enableAssetDiscovery?: (boolean|null); - /** Cve upstreamFixAvailable */ - upstreamFixAvailable?: (boolean|null); + /** OrganizationSettings assetDiscoveryConfig */ + assetDiscoveryConfig?: (google.cloud.securitycenter.v1.OrganizationSettings.IAssetDiscoveryConfig|null); } - /** Represents a Cve. */ - class Cve implements ICve { + /** Represents an OrganizationSettings. */ + class OrganizationSettings implements IOrganizationSettings { /** - * Constructs a new Cve. + * Constructs a new OrganizationSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.ICve); - - /** Cve id. */ - public id: string; + constructor(properties?: google.cloud.securitycenter.v1.IOrganizationSettings); - /** Cve references. */ - public references: google.cloud.securitycenter.v1.IReference[]; + /** OrganizationSettings name. */ + public name: string; - /** Cve cvssv3. */ - public cvssv3?: (google.cloud.securitycenter.v1.ICvssv3|null); + /** OrganizationSettings enableAssetDiscovery. */ + public enableAssetDiscovery: boolean; - /** Cve upstreamFixAvailable. */ - public upstreamFixAvailable: boolean; + /** OrganizationSettings assetDiscoveryConfig. */ + public assetDiscoveryConfig?: (google.cloud.securitycenter.v1.OrganizationSettings.IAssetDiscoveryConfig|null); /** - * Creates a new Cve instance using the specified properties. + * Creates a new OrganizationSettings instance using the specified properties. * @param [properties] Properties to set - * @returns Cve instance + * @returns OrganizationSettings instance */ - public static create(properties?: google.cloud.securitycenter.v1.ICve): google.cloud.securitycenter.v1.Cve; + public static create(properties?: google.cloud.securitycenter.v1.IOrganizationSettings): google.cloud.securitycenter.v1.OrganizationSettings; /** - * Encodes the specified Cve message. Does not implicitly {@link google.cloud.securitycenter.v1.Cve.verify|verify} messages. - * @param message Cve message or plain object to encode + * Encodes the specified OrganizationSettings message. Does not implicitly {@link google.cloud.securitycenter.v1.OrganizationSettings.verify|verify} messages. + * @param message OrganizationSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.ICve, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IOrganizationSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Cve message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Cve.verify|verify} messages. - * @param message Cve message or plain object to encode + * Encodes the specified OrganizationSettings message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.OrganizationSettings.verify|verify} messages. + * @param message OrganizationSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.ICve, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IOrganizationSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Cve message from the specified reader or buffer. + * Decodes an OrganizationSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Cve + * @returns OrganizationSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Cve; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.OrganizationSettings; /** - * Decodes a Cve message from the specified reader or buffer, length delimited. + * Decodes an OrganizationSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Cve + * @returns OrganizationSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Cve; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.OrganizationSettings; /** - * Verifies a Cve message. + * Verifies an OrganizationSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Cve message from a plain object. Also converts values to their respective internal types. + * Creates an OrganizationSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Cve + * @returns OrganizationSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Cve; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.OrganizationSettings; /** - * Creates a plain object from a Cve message. Also converts values to other types if specified. - * @param message Cve + * Creates a plain object from an OrganizationSettings message. Also converts values to other types if specified. + * @param message OrganizationSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.Cve, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.OrganizationSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Cve to JSON. + * Converts this OrganizationSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Cve + * Gets the default type url for OrganizationSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Reference. */ - interface IReference { + namespace OrganizationSettings { - /** Reference source */ - source?: (string|null); + /** Properties of an AssetDiscoveryConfig. */ + interface IAssetDiscoveryConfig { - /** Reference uri */ - uri?: (string|null); + /** AssetDiscoveryConfig projectIds */ + projectIds?: (string[]|null); + + /** AssetDiscoveryConfig inclusionMode */ + inclusionMode?: (google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode|keyof typeof google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode|null); + + /** AssetDiscoveryConfig folderIds */ + folderIds?: (string[]|null); + } + + /** Represents an AssetDiscoveryConfig. */ + class AssetDiscoveryConfig implements IAssetDiscoveryConfig { + + /** + * Constructs a new AssetDiscoveryConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.OrganizationSettings.IAssetDiscoveryConfig); + + /** AssetDiscoveryConfig projectIds. */ + public projectIds: string[]; + + /** AssetDiscoveryConfig inclusionMode. */ + public inclusionMode: (google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode|keyof typeof google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode); + + /** AssetDiscoveryConfig folderIds. */ + public folderIds: string[]; + + /** + * Creates a new AssetDiscoveryConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns AssetDiscoveryConfig instance + */ + public static create(properties?: google.cloud.securitycenter.v1.OrganizationSettings.IAssetDiscoveryConfig): google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig; + + /** + * Encodes the specified AssetDiscoveryConfig message. Does not implicitly {@link google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.verify|verify} messages. + * @param message AssetDiscoveryConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.OrganizationSettings.IAssetDiscoveryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AssetDiscoveryConfig message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.verify|verify} messages. + * @param message AssetDiscoveryConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.OrganizationSettings.IAssetDiscoveryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AssetDiscoveryConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AssetDiscoveryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig; + + /** + * Decodes an AssetDiscoveryConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AssetDiscoveryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig; + + /** + * Verifies an AssetDiscoveryConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AssetDiscoveryConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AssetDiscoveryConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig; + + /** + * Creates a plain object from an AssetDiscoveryConfig message. Also converts values to other types if specified. + * @param message AssetDiscoveryConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AssetDiscoveryConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AssetDiscoveryConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AssetDiscoveryConfig { + + /** InclusionMode enum. */ + enum InclusionMode { + INCLUSION_MODE_UNSPECIFIED = 0, + INCLUDE_ONLY = 1, + EXCLUDE = 2 + } + } } - /** Represents a Reference. */ - class Reference implements IReference { + /** Properties of a RunAssetDiscoveryResponse. */ + interface IRunAssetDiscoveryResponse { + + /** RunAssetDiscoveryResponse state */ + state?: (google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State|keyof typeof google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State|null); + + /** RunAssetDiscoveryResponse duration */ + duration?: (google.protobuf.IDuration|null); + } + + /** Represents a RunAssetDiscoveryResponse. */ + class RunAssetDiscoveryResponse implements IRunAssetDiscoveryResponse { /** - * Constructs a new Reference. + * Constructs a new RunAssetDiscoveryResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IReference); + constructor(properties?: google.cloud.securitycenter.v1.IRunAssetDiscoveryResponse); - /** Reference source. */ - public source: string; + /** RunAssetDiscoveryResponse state. */ + public state: (google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State|keyof typeof google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State); - /** Reference uri. */ - public uri: string; + /** RunAssetDiscoveryResponse duration. */ + public duration?: (google.protobuf.IDuration|null); /** - * Creates a new Reference instance using the specified properties. + * Creates a new RunAssetDiscoveryResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Reference instance + * @returns RunAssetDiscoveryResponse instance */ - public static create(properties?: google.cloud.securitycenter.v1.IReference): google.cloud.securitycenter.v1.Reference; + public static create(properties?: google.cloud.securitycenter.v1.IRunAssetDiscoveryResponse): google.cloud.securitycenter.v1.RunAssetDiscoveryResponse; /** - * Encodes the specified Reference message. Does not implicitly {@link google.cloud.securitycenter.v1.Reference.verify|verify} messages. - * @param message Reference message or plain object to encode + * Encodes the specified RunAssetDiscoveryResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.verify|verify} messages. + * @param message RunAssetDiscoveryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IReference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IRunAssetDiscoveryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Reference message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Reference.verify|verify} messages. - * @param message Reference message or plain object to encode + * Encodes the specified RunAssetDiscoveryResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.verify|verify} messages. + * @param message RunAssetDiscoveryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IReference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IRunAssetDiscoveryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Reference message from the specified reader or buffer. + * Decodes a RunAssetDiscoveryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Reference + * @returns RunAssetDiscoveryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Reference; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.RunAssetDiscoveryResponse; /** - * Decodes a Reference message from the specified reader or buffer, length delimited. + * Decodes a RunAssetDiscoveryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Reference + * @returns RunAssetDiscoveryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Reference; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.RunAssetDiscoveryResponse; /** - * Verifies a Reference message. + * Verifies a RunAssetDiscoveryResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Reference message from a plain object. Also converts values to their respective internal types. + * Creates a RunAssetDiscoveryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Reference + * @returns RunAssetDiscoveryResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Reference; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.RunAssetDiscoveryResponse; /** - * Creates a plain object from a Reference message. Also converts values to other types if specified. - * @param message Reference + * Creates a plain object from a RunAssetDiscoveryResponse message. Also converts values to other types if specified. + * @param message RunAssetDiscoveryResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.Reference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.RunAssetDiscoveryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Reference to JSON. + * Converts this RunAssetDiscoveryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Reference + * Gets the default type url for RunAssetDiscoveryResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Cvssv3. */ - interface ICvssv3 { + namespace RunAssetDiscoveryResponse { - /** Cvssv3 baseScore */ - baseScore?: (number|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + COMPLETED = 1, + SUPERSEDED = 2, + TERMINATED = 3 + } + } - /** Cvssv3 attackVector */ - attackVector?: (google.cloud.securitycenter.v1.Cvssv3.AttackVector|keyof typeof google.cloud.securitycenter.v1.Cvssv3.AttackVector|null); + /** Properties of a SecurityHealthAnalyticsCustomModule. */ + interface ISecurityHealthAnalyticsCustomModule { - /** Cvssv3 attackComplexity */ - attackComplexity?: (google.cloud.securitycenter.v1.Cvssv3.AttackComplexity|keyof typeof google.cloud.securitycenter.v1.Cvssv3.AttackComplexity|null); + /** SecurityHealthAnalyticsCustomModule name */ + name?: (string|null); - /** Cvssv3 privilegesRequired */ - privilegesRequired?: (google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired|keyof typeof google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired|null); + /** SecurityHealthAnalyticsCustomModule displayName */ + displayName?: (string|null); - /** Cvssv3 userInteraction */ - userInteraction?: (google.cloud.securitycenter.v1.Cvssv3.UserInteraction|keyof typeof google.cloud.securitycenter.v1.Cvssv3.UserInteraction|null); + /** SecurityHealthAnalyticsCustomModule enablementState */ + enablementState?: (google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState|keyof typeof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState|null); - /** Cvssv3 scope */ - scope?: (google.cloud.securitycenter.v1.Cvssv3.Scope|keyof typeof google.cloud.securitycenter.v1.Cvssv3.Scope|null); + /** SecurityHealthAnalyticsCustomModule updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** Cvssv3 confidentialityImpact */ - confidentialityImpact?: (google.cloud.securitycenter.v1.Cvssv3.Impact|keyof typeof google.cloud.securitycenter.v1.Cvssv3.Impact|null); + /** SecurityHealthAnalyticsCustomModule lastEditor */ + lastEditor?: (string|null); - /** Cvssv3 integrityImpact */ - integrityImpact?: (google.cloud.securitycenter.v1.Cvssv3.Impact|keyof typeof google.cloud.securitycenter.v1.Cvssv3.Impact|null); + /** SecurityHealthAnalyticsCustomModule ancestorModule */ + ancestorModule?: (string|null); - /** Cvssv3 availabilityImpact */ - availabilityImpact?: (google.cloud.securitycenter.v1.Cvssv3.Impact|keyof typeof google.cloud.securitycenter.v1.Cvssv3.Impact|null); + /** SecurityHealthAnalyticsCustomModule customConfig */ + customConfig?: (google.cloud.securitycenter.v1.ICustomConfig|null); } - /** Represents a Cvssv3. */ - class Cvssv3 implements ICvssv3 { + /** Represents a SecurityHealthAnalyticsCustomModule. */ + class SecurityHealthAnalyticsCustomModule implements ISecurityHealthAnalyticsCustomModule { /** - * Constructs a new Cvssv3. + * Constructs a new SecurityHealthAnalyticsCustomModule. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.ICvssv3); - - /** Cvssv3 baseScore. */ - public baseScore: number; - - /** Cvssv3 attackVector. */ - public attackVector: (google.cloud.securitycenter.v1.Cvssv3.AttackVector|keyof typeof google.cloud.securitycenter.v1.Cvssv3.AttackVector); + constructor(properties?: google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule); - /** Cvssv3 attackComplexity. */ - public attackComplexity: (google.cloud.securitycenter.v1.Cvssv3.AttackComplexity|keyof typeof google.cloud.securitycenter.v1.Cvssv3.AttackComplexity); + /** SecurityHealthAnalyticsCustomModule name. */ + public name: string; - /** Cvssv3 privilegesRequired. */ - public privilegesRequired: (google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired|keyof typeof google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired); + /** SecurityHealthAnalyticsCustomModule displayName. */ + public displayName: string; - /** Cvssv3 userInteraction. */ - public userInteraction: (google.cloud.securitycenter.v1.Cvssv3.UserInteraction|keyof typeof google.cloud.securitycenter.v1.Cvssv3.UserInteraction); + /** SecurityHealthAnalyticsCustomModule enablementState. */ + public enablementState: (google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState|keyof typeof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState); - /** Cvssv3 scope. */ - public scope: (google.cloud.securitycenter.v1.Cvssv3.Scope|keyof typeof google.cloud.securitycenter.v1.Cvssv3.Scope); + /** SecurityHealthAnalyticsCustomModule updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** Cvssv3 confidentialityImpact. */ - public confidentialityImpact: (google.cloud.securitycenter.v1.Cvssv3.Impact|keyof typeof google.cloud.securitycenter.v1.Cvssv3.Impact); + /** SecurityHealthAnalyticsCustomModule lastEditor. */ + public lastEditor: string; - /** Cvssv3 integrityImpact. */ - public integrityImpact: (google.cloud.securitycenter.v1.Cvssv3.Impact|keyof typeof google.cloud.securitycenter.v1.Cvssv3.Impact); + /** SecurityHealthAnalyticsCustomModule ancestorModule. */ + public ancestorModule: string; - /** Cvssv3 availabilityImpact. */ - public availabilityImpact: (google.cloud.securitycenter.v1.Cvssv3.Impact|keyof typeof google.cloud.securitycenter.v1.Cvssv3.Impact); + /** SecurityHealthAnalyticsCustomModule customConfig. */ + public customConfig?: (google.cloud.securitycenter.v1.ICustomConfig|null); /** - * Creates a new Cvssv3 instance using the specified properties. + * Creates a new SecurityHealthAnalyticsCustomModule instance using the specified properties. * @param [properties] Properties to set - * @returns Cvssv3 instance + * @returns SecurityHealthAnalyticsCustomModule instance */ - public static create(properties?: google.cloud.securitycenter.v1.ICvssv3): google.cloud.securitycenter.v1.Cvssv3; + public static create(properties?: google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule): google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; /** - * Encodes the specified Cvssv3 message. Does not implicitly {@link google.cloud.securitycenter.v1.Cvssv3.verify|verify} messages. - * @param message Cvssv3 message or plain object to encode + * Encodes the specified SecurityHealthAnalyticsCustomModule message. Does not implicitly {@link google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.verify|verify} messages. + * @param message SecurityHealthAnalyticsCustomModule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.ICvssv3, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Cvssv3 message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Cvssv3.verify|verify} messages. - * @param message Cvssv3 message or plain object to encode + * Encodes the specified SecurityHealthAnalyticsCustomModule message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.verify|verify} messages. + * @param message SecurityHealthAnalyticsCustomModule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.ICvssv3, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Cvssv3 message from the specified reader or buffer. + * Decodes a SecurityHealthAnalyticsCustomModule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Cvssv3 + * @returns SecurityHealthAnalyticsCustomModule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Cvssv3; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; /** - * Decodes a Cvssv3 message from the specified reader or buffer, length delimited. + * Decodes a SecurityHealthAnalyticsCustomModule message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Cvssv3 + * @returns SecurityHealthAnalyticsCustomModule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Cvssv3; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; /** - * Verifies a Cvssv3 message. + * Verifies a SecurityHealthAnalyticsCustomModule message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Cvssv3 message from a plain object. Also converts values to their respective internal types. + * Creates a SecurityHealthAnalyticsCustomModule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Cvssv3 + * @returns SecurityHealthAnalyticsCustomModule */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Cvssv3; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; /** - * Creates a plain object from a Cvssv3 message. Also converts values to other types if specified. - * @param message Cvssv3 + * Creates a plain object from a SecurityHealthAnalyticsCustomModule message. Also converts values to other types if specified. + * @param message SecurityHealthAnalyticsCustomModule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.Cvssv3, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Cvssv3 to JSON. + * Converts this SecurityHealthAnalyticsCustomModule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Cvssv3 + * Gets the default type url for SecurityHealthAnalyticsCustomModule * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Cvssv3 { + namespace SecurityHealthAnalyticsCustomModule { - /** AttackVector enum. */ - enum AttackVector { - ATTACK_VECTOR_UNSPECIFIED = 0, - ATTACK_VECTOR_NETWORK = 1, - ATTACK_VECTOR_ADJACENT = 2, - ATTACK_VECTOR_LOCAL = 3, - ATTACK_VECTOR_PHYSICAL = 4 + /** EnablementState enum. */ + enum EnablementState { + ENABLEMENT_STATE_UNSPECIFIED = 0, + ENABLED = 1, + DISABLED = 2, + INHERITED = 3 } + } - /** AttackComplexity enum. */ - enum AttackComplexity { - ATTACK_COMPLEXITY_UNSPECIFIED = 0, - ATTACK_COMPLEXITY_LOW = 1, - ATTACK_COMPLEXITY_HIGH = 2 - } + /** Represents a SecurityCenter */ + class SecurityCenter extends $protobuf.rpc.Service { - /** PrivilegesRequired enum. */ - enum PrivilegesRequired { - PRIVILEGES_REQUIRED_UNSPECIFIED = 0, - PRIVILEGES_REQUIRED_NONE = 1, - PRIVILEGES_REQUIRED_LOW = 2, - PRIVILEGES_REQUIRED_HIGH = 3 - } + /** + * Constructs a new SecurityCenter service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** UserInteraction enum. */ - enum UserInteraction { - USER_INTERACTION_UNSPECIFIED = 0, - USER_INTERACTION_NONE = 1, - USER_INTERACTION_REQUIRED = 2 - } + /** + * Creates new SecurityCenter service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SecurityCenter; - /** Scope enum. */ - enum Scope { - SCOPE_UNSPECIFIED = 0, - SCOPE_UNCHANGED = 1, - SCOPE_CHANGED = 2 - } + /** + * Calls BulkMuteFindings. + * @param request BulkMuteFindingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public bulkMuteFindings(request: google.cloud.securitycenter.v1.IBulkMuteFindingsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.BulkMuteFindingsCallback): void; - /** Impact enum. */ - enum Impact { - IMPACT_UNSPECIFIED = 0, - IMPACT_HIGH = 1, - IMPACT_LOW = 2, - IMPACT_NONE = 3 - } - } + /** + * Calls BulkMuteFindings. + * @param request BulkMuteFindingsRequest message or plain object + * @returns Promise + */ + public bulkMuteFindings(request: google.cloud.securitycenter.v1.IBulkMuteFindingsRequest): Promise; - /** Properties of a MuteConfig. */ - interface IMuteConfig { + /** + * Calls CreateSecurityHealthAnalyticsCustomModule. + * @param request CreateSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SecurityHealthAnalyticsCustomModule + */ + public createSecurityHealthAnalyticsCustomModule(request: google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.CreateSecurityHealthAnalyticsCustomModuleCallback): void; - /** MuteConfig name */ - name?: (string|null); + /** + * Calls CreateSecurityHealthAnalyticsCustomModule. + * @param request CreateSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @returns Promise + */ + public createSecurityHealthAnalyticsCustomModule(request: google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest): Promise; - /** MuteConfig displayName */ - displayName?: (string|null); + /** + * Calls CreateSource. + * @param request CreateSourceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Source + */ + public createSource(request: google.cloud.securitycenter.v1.ICreateSourceRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.CreateSourceCallback): void; - /** MuteConfig description */ - description?: (string|null); + /** + * Calls CreateSource. + * @param request CreateSourceRequest message or plain object + * @returns Promise + */ + public createSource(request: google.cloud.securitycenter.v1.ICreateSourceRequest): Promise; - /** MuteConfig filter */ - filter?: (string|null); + /** + * Calls CreateFinding. + * @param request CreateFindingRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Finding + */ + public createFinding(request: google.cloud.securitycenter.v1.ICreateFindingRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.CreateFindingCallback): void; - /** MuteConfig createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Calls CreateFinding. + * @param request CreateFindingRequest message or plain object + * @returns Promise + */ + public createFinding(request: google.cloud.securitycenter.v1.ICreateFindingRequest): Promise; - /** MuteConfig updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Calls CreateMuteConfig. + * @param request CreateMuteConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MuteConfig + */ + public createMuteConfig(request: google.cloud.securitycenter.v1.ICreateMuteConfigRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfigCallback): void; - /** MuteConfig mostRecentEditor */ - mostRecentEditor?: (string|null); - } + /** + * Calls CreateMuteConfig. + * @param request CreateMuteConfigRequest message or plain object + * @returns Promise + */ + public createMuteConfig(request: google.cloud.securitycenter.v1.ICreateMuteConfigRequest): Promise; - /** Represents a MuteConfig. */ - class MuteConfig implements IMuteConfig { + /** + * Calls CreateNotificationConfig. + * @param request CreateNotificationConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NotificationConfig + */ + public createNotificationConfig(request: google.cloud.securitycenter.v1.ICreateNotificationConfigRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfigCallback): void; + + /** + * Calls CreateNotificationConfig. + * @param request CreateNotificationConfigRequest message or plain object + * @returns Promise + */ + public createNotificationConfig(request: google.cloud.securitycenter.v1.ICreateNotificationConfigRequest): Promise; + + /** + * Calls DeleteMuteConfig. + * @param request DeleteMuteConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteMuteConfig(request: google.cloud.securitycenter.v1.IDeleteMuteConfigRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.DeleteMuteConfigCallback): void; + + /** + * Calls DeleteMuteConfig. + * @param request DeleteMuteConfigRequest message or plain object + * @returns Promise + */ + public deleteMuteConfig(request: google.cloud.securitycenter.v1.IDeleteMuteConfigRequest): Promise; /** - * Constructs a new MuteConfig. - * @param [properties] Properties to set + * Calls DeleteNotificationConfig. + * @param request DeleteNotificationConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - constructor(properties?: google.cloud.securitycenter.v1.IMuteConfig); + public deleteNotificationConfig(request: google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.DeleteNotificationConfigCallback): void; - /** MuteConfig name. */ - public name: string; + /** + * Calls DeleteNotificationConfig. + * @param request DeleteNotificationConfigRequest message or plain object + * @returns Promise + */ + public deleteNotificationConfig(request: google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest): Promise; - /** MuteConfig displayName. */ - public displayName: string; + /** + * Calls DeleteSecurityHealthAnalyticsCustomModule. + * @param request DeleteSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteSecurityHealthAnalyticsCustomModule(request: google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.DeleteSecurityHealthAnalyticsCustomModuleCallback): void; - /** MuteConfig description. */ - public description: string; + /** + * Calls DeleteSecurityHealthAnalyticsCustomModule. + * @param request DeleteSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @returns Promise + */ + public deleteSecurityHealthAnalyticsCustomModule(request: google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest): Promise; - /** MuteConfig filter. */ - public filter: string; + /** + * Calls GetBigQueryExport. + * @param request GetBigQueryExportRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BigQueryExport + */ + public getBigQueryExport(request: google.cloud.securitycenter.v1.IGetBigQueryExportRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GetBigQueryExportCallback): void; - /** MuteConfig createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Calls GetBigQueryExport. + * @param request GetBigQueryExportRequest message or plain object + * @returns Promise + */ + public getBigQueryExport(request: google.cloud.securitycenter.v1.IGetBigQueryExportRequest): Promise; - /** MuteConfig updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GetIamPolicyCallback): void; - /** MuteConfig mostRecentEditor. */ - public mostRecentEditor: string; + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise; /** - * Creates a new MuteConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns MuteConfig instance + * Calls GetMuteConfig. + * @param request GetMuteConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MuteConfig */ - public static create(properties?: google.cloud.securitycenter.v1.IMuteConfig): google.cloud.securitycenter.v1.MuteConfig; + public getMuteConfig(request: google.cloud.securitycenter.v1.IGetMuteConfigRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GetMuteConfigCallback): void; /** - * Encodes the specified MuteConfig message. Does not implicitly {@link google.cloud.securitycenter.v1.MuteConfig.verify|verify} messages. - * @param message MuteConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetMuteConfig. + * @param request GetMuteConfigRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.securitycenter.v1.IMuteConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public getMuteConfig(request: google.cloud.securitycenter.v1.IGetMuteConfigRequest): Promise; /** - * Encodes the specified MuteConfig message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.MuteConfig.verify|verify} messages. - * @param message MuteConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetNotificationConfig. + * @param request GetNotificationConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NotificationConfig */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IMuteConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public getNotificationConfig(request: google.cloud.securitycenter.v1.IGetNotificationConfigRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GetNotificationConfigCallback): void; /** - * Decodes a MuteConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MuteConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetNotificationConfig. + * @param request GetNotificationConfigRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.MuteConfig; + public getNotificationConfig(request: google.cloud.securitycenter.v1.IGetNotificationConfigRequest): Promise; /** - * Decodes a MuteConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MuteConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetOrganizationSettings. + * @param request GetOrganizationSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and OrganizationSettings */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.MuteConfig; + public getOrganizationSettings(request: google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GetOrganizationSettingsCallback): void; /** - * Verifies a MuteConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetOrganizationSettings. + * @param request GetOrganizationSettingsRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public getOrganizationSettings(request: google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest): Promise; /** - * Creates a MuteConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MuteConfig + * Calls GetEffectiveSecurityHealthAnalyticsCustomModule. + * @param request GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EffectiveSecurityHealthAnalyticsCustomModule */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.MuteConfig; + public getEffectiveSecurityHealthAnalyticsCustomModule(request: google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveSecurityHealthAnalyticsCustomModuleCallback): void; /** - * Creates a plain object from a MuteConfig message. Also converts values to other types if specified. - * @param message MuteConfig - * @param [options] Conversion options - * @returns Plain object + * Calls GetEffectiveSecurityHealthAnalyticsCustomModule. + * @param request GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.securitycenter.v1.MuteConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public getEffectiveSecurityHealthAnalyticsCustomModule(request: google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest): Promise; /** - * Converts this MuteConfig to JSON. - * @returns JSON object + * Calls GetSecurityHealthAnalyticsCustomModule. + * @param request GetSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SecurityHealthAnalyticsCustomModule */ - public toJSON(): { [k: string]: any }; + public getSecurityHealthAnalyticsCustomModule(request: google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GetSecurityHealthAnalyticsCustomModuleCallback): void; /** - * Gets the default type url for MuteConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls GetSecurityHealthAnalyticsCustomModule. + * @param request GetSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + public getSecurityHealthAnalyticsCustomModule(request: google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest): Promise; - /** Properties of a NotificationConfig. */ - interface INotificationConfig { + /** + * Calls GetSource. + * @param request GetSourceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Source + */ + public getSource(request: google.cloud.securitycenter.v1.IGetSourceRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GetSourceCallback): void; - /** NotificationConfig name */ - name?: (string|null); + /** + * Calls GetSource. + * @param request GetSourceRequest message or plain object + * @returns Promise + */ + public getSource(request: google.cloud.securitycenter.v1.IGetSourceRequest): Promise; - /** NotificationConfig description */ - description?: (string|null); + /** + * Calls GroupAssets. + * @param request GroupAssetsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GroupAssetsResponse + */ + public groupAssets(request: google.cloud.securitycenter.v1.IGroupAssetsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GroupAssetsCallback): void; - /** NotificationConfig pubsubTopic */ - pubsubTopic?: (string|null); + /** + * Calls GroupAssets. + * @param request GroupAssetsRequest message or plain object + * @returns Promise + */ + public groupAssets(request: google.cloud.securitycenter.v1.IGroupAssetsRequest): Promise; - /** NotificationConfig serviceAccount */ - serviceAccount?: (string|null); + /** + * Calls GroupFindings. + * @param request GroupFindingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GroupFindingsResponse + */ + public groupFindings(request: google.cloud.securitycenter.v1.IGroupFindingsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GroupFindingsCallback): void; - /** NotificationConfig streamingConfig */ - streamingConfig?: (google.cloud.securitycenter.v1.NotificationConfig.IStreamingConfig|null); - } + /** + * Calls GroupFindings. + * @param request GroupFindingsRequest message or plain object + * @returns Promise + */ + public groupFindings(request: google.cloud.securitycenter.v1.IGroupFindingsRequest): Promise; - /** Represents a NotificationConfig. */ - class NotificationConfig implements INotificationConfig { + /** + * Calls ListAssets. + * @param request ListAssetsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListAssetsResponse + */ + public listAssets(request: google.cloud.securitycenter.v1.IListAssetsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.ListAssetsCallback): void; /** - * Constructs a new NotificationConfig. - * @param [properties] Properties to set + * Calls ListAssets. + * @param request ListAssetsRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.securitycenter.v1.INotificationConfig); + public listAssets(request: google.cloud.securitycenter.v1.IListAssetsRequest): Promise; - /** NotificationConfig name. */ - public name: string; + /** + * Calls ListDescendantSecurityHealthAnalyticsCustomModules. + * @param request ListDescendantSecurityHealthAnalyticsCustomModulesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDescendantSecurityHealthAnalyticsCustomModulesResponse + */ + public listDescendantSecurityHealthAnalyticsCustomModules(request: google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.ListDescendantSecurityHealthAnalyticsCustomModulesCallback): void; - /** NotificationConfig description. */ - public description: string; + /** + * Calls ListDescendantSecurityHealthAnalyticsCustomModules. + * @param request ListDescendantSecurityHealthAnalyticsCustomModulesRequest message or plain object + * @returns Promise + */ + public listDescendantSecurityHealthAnalyticsCustomModules(request: google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest): Promise; - /** NotificationConfig pubsubTopic. */ - public pubsubTopic: string; + /** + * Calls ListFindings. + * @param request ListFindingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFindingsResponse + */ + public listFindings(request: google.cloud.securitycenter.v1.IListFindingsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.ListFindingsCallback): void; - /** NotificationConfig serviceAccount. */ - public serviceAccount: string; + /** + * Calls ListFindings. + * @param request ListFindingsRequest message or plain object + * @returns Promise + */ + public listFindings(request: google.cloud.securitycenter.v1.IListFindingsRequest): Promise; - /** NotificationConfig streamingConfig. */ - public streamingConfig?: (google.cloud.securitycenter.v1.NotificationConfig.IStreamingConfig|null); + /** + * Calls ListMuteConfigs. + * @param request ListMuteConfigsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListMuteConfigsResponse + */ + public listMuteConfigs(request: google.cloud.securitycenter.v1.IListMuteConfigsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigsCallback): void; - /** NotificationConfig notifyConfig. */ - public notifyConfig?: "streamingConfig"; + /** + * Calls ListMuteConfigs. + * @param request ListMuteConfigsRequest message or plain object + * @returns Promise + */ + public listMuteConfigs(request: google.cloud.securitycenter.v1.IListMuteConfigsRequest): Promise; /** - * Creates a new NotificationConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns NotificationConfig instance + * Calls ListNotificationConfigs. + * @param request ListNotificationConfigsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListNotificationConfigsResponse */ - public static create(properties?: google.cloud.securitycenter.v1.INotificationConfig): google.cloud.securitycenter.v1.NotificationConfig; + public listNotificationConfigs(request: google.cloud.securitycenter.v1.IListNotificationConfigsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigsCallback): void; /** - * Encodes the specified NotificationConfig message. Does not implicitly {@link google.cloud.securitycenter.v1.NotificationConfig.verify|verify} messages. - * @param message NotificationConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListNotificationConfigs. + * @param request ListNotificationConfigsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.securitycenter.v1.INotificationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public listNotificationConfigs(request: google.cloud.securitycenter.v1.IListNotificationConfigsRequest): Promise; /** - * Encodes the specified NotificationConfig message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.NotificationConfig.verify|verify} messages. - * @param message NotificationConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListEffectiveSecurityHealthAnalyticsCustomModules. + * @param request ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEffectiveSecurityHealthAnalyticsCustomModulesResponse */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.INotificationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public listEffectiveSecurityHealthAnalyticsCustomModules(request: google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveSecurityHealthAnalyticsCustomModulesCallback): void; /** - * Decodes a NotificationConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NotificationConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListEffectiveSecurityHealthAnalyticsCustomModules. + * @param request ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.NotificationConfig; + public listEffectiveSecurityHealthAnalyticsCustomModules(request: google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest): Promise; /** - * Decodes a NotificationConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NotificationConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListSecurityHealthAnalyticsCustomModules. + * @param request ListSecurityHealthAnalyticsCustomModulesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSecurityHealthAnalyticsCustomModulesResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.NotificationConfig; + public listSecurityHealthAnalyticsCustomModules(request: google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.ListSecurityHealthAnalyticsCustomModulesCallback): void; /** - * Verifies a NotificationConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListSecurityHealthAnalyticsCustomModules. + * @param request ListSecurityHealthAnalyticsCustomModulesRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public listSecurityHealthAnalyticsCustomModules(request: google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest): Promise; /** - * Creates a NotificationConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NotificationConfig + * Calls ListSources. + * @param request ListSourcesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSourcesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.NotificationConfig; + public listSources(request: google.cloud.securitycenter.v1.IListSourcesRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.ListSourcesCallback): void; /** - * Creates a plain object from a NotificationConfig message. Also converts values to other types if specified. - * @param message NotificationConfig - * @param [options] Conversion options - * @returns Plain object + * Calls ListSources. + * @param request ListSourcesRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.securitycenter.v1.NotificationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listSources(request: google.cloud.securitycenter.v1.IListSourcesRequest): Promise; /** - * Converts this NotificationConfig to JSON. - * @returns JSON object + * Calls RunAssetDiscovery. + * @param request RunAssetDiscoveryRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public toJSON(): { [k: string]: any }; + public runAssetDiscovery(request: google.cloud.securitycenter.v1.IRunAssetDiscoveryRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.RunAssetDiscoveryCallback): void; /** - * Gets the default type url for NotificationConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls RunAssetDiscovery. + * @param request RunAssetDiscoveryRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace NotificationConfig { - - /** Properties of a StreamingConfig. */ - interface IStreamingConfig { - - /** StreamingConfig filter */ - filter?: (string|null); - } - - /** Represents a StreamingConfig. */ - class StreamingConfig implements IStreamingConfig { + public runAssetDiscovery(request: google.cloud.securitycenter.v1.IRunAssetDiscoveryRequest): Promise; - /** - * Constructs a new StreamingConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.securitycenter.v1.NotificationConfig.IStreamingConfig); + /** + * Calls SetFindingState. + * @param request SetFindingStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Finding + */ + public setFindingState(request: google.cloud.securitycenter.v1.ISetFindingStateRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.SetFindingStateCallback): void; - /** StreamingConfig filter. */ - public filter: string; + /** + * Calls SetFindingState. + * @param request SetFindingStateRequest message or plain object + * @returns Promise + */ + public setFindingState(request: google.cloud.securitycenter.v1.ISetFindingStateRequest): Promise; - /** - * Creates a new StreamingConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamingConfig instance - */ - public static create(properties?: google.cloud.securitycenter.v1.NotificationConfig.IStreamingConfig): google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig; + /** + * Calls SetMute. + * @param request SetMuteRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Finding + */ + public setMute(request: google.cloud.securitycenter.v1.ISetMuteRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.SetMuteCallback): void; - /** - * Encodes the specified StreamingConfig message. Does not implicitly {@link google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.verify|verify} messages. - * @param message StreamingConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.securitycenter.v1.NotificationConfig.IStreamingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls SetMute. + * @param request SetMuteRequest message or plain object + * @returns Promise + */ + public setMute(request: google.cloud.securitycenter.v1.ISetMuteRequest): Promise; - /** - * Encodes the specified StreamingConfig message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.verify|verify} messages. - * @param message StreamingConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.NotificationConfig.IStreamingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.SetIamPolicyCallback): void; - /** - * Decodes a StreamingConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamingConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig; + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise; - /** - * Decodes a StreamingConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamingConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig; + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestIamPermissionsResponse + */ + public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.TestIamPermissionsCallback): void; - /** - * Verifies a StreamingConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise; - /** - * Creates a StreamingConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamingConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig; + /** + * Calls UpdateExternalSystem. + * @param request UpdateExternalSystemRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExternalSystem + */ + public updateExternalSystem(request: google.cloud.securitycenter.v1.IUpdateExternalSystemRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateExternalSystemCallback): void; - /** - * Creates a plain object from a StreamingConfig message. Also converts values to other types if specified. - * @param message StreamingConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Calls UpdateExternalSystem. + * @param request UpdateExternalSystemRequest message or plain object + * @returns Promise + */ + public updateExternalSystem(request: google.cloud.securitycenter.v1.IUpdateExternalSystemRequest): Promise; - /** - * Converts this StreamingConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Calls UpdateFinding. + * @param request UpdateFindingRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Finding + */ + public updateFinding(request: google.cloud.securitycenter.v1.IUpdateFindingRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateFindingCallback): void; - /** - * Gets the default type url for StreamingConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Calls UpdateFinding. + * @param request UpdateFindingRequest message or plain object + * @returns Promise + */ + public updateFinding(request: google.cloud.securitycenter.v1.IUpdateFindingRequest): Promise; - /** Properties of a NotificationMessage. */ - interface INotificationMessage { + /** + * Calls UpdateMuteConfig. + * @param request UpdateMuteConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MuteConfig + */ + public updateMuteConfig(request: google.cloud.securitycenter.v1.IUpdateMuteConfigRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateMuteConfigCallback): void; - /** NotificationMessage notificationConfigName */ - notificationConfigName?: (string|null); + /** + * Calls UpdateMuteConfig. + * @param request UpdateMuteConfigRequest message or plain object + * @returns Promise + */ + public updateMuteConfig(request: google.cloud.securitycenter.v1.IUpdateMuteConfigRequest): Promise; - /** NotificationMessage finding */ - finding?: (google.cloud.securitycenter.v1.IFinding|null); + /** + * Calls UpdateNotificationConfig. + * @param request UpdateNotificationConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NotificationConfig + */ + public updateNotificationConfig(request: google.cloud.securitycenter.v1.IUpdateNotificationConfigRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateNotificationConfigCallback): void; - /** NotificationMessage resource */ - resource?: (google.cloud.securitycenter.v1.IResource|null); - } + /** + * Calls UpdateNotificationConfig. + * @param request UpdateNotificationConfigRequest message or plain object + * @returns Promise + */ + public updateNotificationConfig(request: google.cloud.securitycenter.v1.IUpdateNotificationConfigRequest): Promise; - /** Represents a NotificationMessage. */ - class NotificationMessage implements INotificationMessage { + /** + * Calls UpdateOrganizationSettings. + * @param request UpdateOrganizationSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and OrganizationSettings + */ + public updateOrganizationSettings(request: google.cloud.securitycenter.v1.IUpdateOrganizationSettingsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateOrganizationSettingsCallback): void; /** - * Constructs a new NotificationMessage. - * @param [properties] Properties to set + * Calls UpdateOrganizationSettings. + * @param request UpdateOrganizationSettingsRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.securitycenter.v1.INotificationMessage); + public updateOrganizationSettings(request: google.cloud.securitycenter.v1.IUpdateOrganizationSettingsRequest): Promise; - /** NotificationMessage notificationConfigName. */ - public notificationConfigName: string; + /** + * Calls UpdateSecurityHealthAnalyticsCustomModule. + * @param request UpdateSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SecurityHealthAnalyticsCustomModule + */ + public updateSecurityHealthAnalyticsCustomModule(request: google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityHealthAnalyticsCustomModuleCallback): void; - /** NotificationMessage finding. */ - public finding?: (google.cloud.securitycenter.v1.IFinding|null); + /** + * Calls UpdateSecurityHealthAnalyticsCustomModule. + * @param request UpdateSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @returns Promise + */ + public updateSecurityHealthAnalyticsCustomModule(request: google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest): Promise; - /** NotificationMessage resource. */ - public resource?: (google.cloud.securitycenter.v1.IResource|null); + /** + * Calls UpdateSource. + * @param request UpdateSourceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Source + */ + public updateSource(request: google.cloud.securitycenter.v1.IUpdateSourceRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateSourceCallback): void; - /** NotificationMessage event. */ - public event?: "finding"; + /** + * Calls UpdateSource. + * @param request UpdateSourceRequest message or plain object + * @returns Promise + */ + public updateSource(request: google.cloud.securitycenter.v1.IUpdateSourceRequest): Promise; /** - * Creates a new NotificationMessage instance using the specified properties. - * @param [properties] Properties to set - * @returns NotificationMessage instance + * Calls UpdateSecurityMarks. + * @param request UpdateSecurityMarksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SecurityMarks */ - public static create(properties?: google.cloud.securitycenter.v1.INotificationMessage): google.cloud.securitycenter.v1.NotificationMessage; + public updateSecurityMarks(request: google.cloud.securitycenter.v1.IUpdateSecurityMarksRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityMarksCallback): void; /** - * Encodes the specified NotificationMessage message. Does not implicitly {@link google.cloud.securitycenter.v1.NotificationMessage.verify|verify} messages. - * @param message NotificationMessage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpdateSecurityMarks. + * @param request UpdateSecurityMarksRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.securitycenter.v1.INotificationMessage, writer?: $protobuf.Writer): $protobuf.Writer; + public updateSecurityMarks(request: google.cloud.securitycenter.v1.IUpdateSecurityMarksRequest): Promise; /** - * Encodes the specified NotificationMessage message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.NotificationMessage.verify|verify} messages. - * @param message NotificationMessage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateBigQueryExport. + * @param request CreateBigQueryExportRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BigQueryExport */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.INotificationMessage, writer?: $protobuf.Writer): $protobuf.Writer; + public createBigQueryExport(request: google.cloud.securitycenter.v1.ICreateBigQueryExportRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExportCallback): void; /** - * Decodes a NotificationMessage message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NotificationMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateBigQueryExport. + * @param request CreateBigQueryExportRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.NotificationMessage; + public createBigQueryExport(request: google.cloud.securitycenter.v1.ICreateBigQueryExportRequest): Promise; /** - * Decodes a NotificationMessage message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NotificationMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteBigQueryExport. + * @param request DeleteBigQueryExportRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.NotificationMessage; + public deleteBigQueryExport(request: google.cloud.securitycenter.v1.IDeleteBigQueryExportRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.DeleteBigQueryExportCallback): void; /** - * Verifies a NotificationMessage message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DeleteBigQueryExport. + * @param request DeleteBigQueryExportRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public deleteBigQueryExport(request: google.cloud.securitycenter.v1.IDeleteBigQueryExportRequest): Promise; /** - * Creates a NotificationMessage message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NotificationMessage + * Calls UpdateBigQueryExport. + * @param request UpdateBigQueryExportRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BigQueryExport */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.NotificationMessage; + public updateBigQueryExport(request: google.cloud.securitycenter.v1.IUpdateBigQueryExportRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateBigQueryExportCallback): void; /** - * Creates a plain object from a NotificationMessage message. Also converts values to other types if specified. - * @param message NotificationMessage - * @param [options] Conversion options - * @returns Plain object + * Calls UpdateBigQueryExport. + * @param request UpdateBigQueryExportRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.securitycenter.v1.NotificationMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public updateBigQueryExport(request: google.cloud.securitycenter.v1.IUpdateBigQueryExportRequest): Promise; /** - * Converts this NotificationMessage to JSON. - * @returns JSON object + * Calls ListBigQueryExports. + * @param request ListBigQueryExportsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListBigQueryExportsResponse */ - public toJSON(): { [k: string]: any }; + public listBigQueryExports(request: google.cloud.securitycenter.v1.IListBigQueryExportsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExportsCallback): void; /** - * Gets the default type url for NotificationMessage - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls ListBigQueryExports. + * @param request ListBigQueryExportsRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; + public listBigQueryExports(request: google.cloud.securitycenter.v1.IListBigQueryExportsRequest): Promise; } - /** Properties of a Resource. */ - interface IResource { - - /** Resource name */ - name?: (string|null); - - /** Resource displayName */ - displayName?: (string|null); - - /** Resource type */ - type?: (string|null); - - /** Resource project */ - project?: (string|null); - - /** Resource projectDisplayName */ - projectDisplayName?: (string|null); - - /** Resource parent */ - parent?: (string|null); - - /** Resource parentDisplayName */ - parentDisplayName?: (string|null); - - /** Resource folders */ - folders?: (google.cloud.securitycenter.v1.IFolder[]|null); - } + namespace SecurityCenter { - /** Represents a Resource. */ - class Resource implements IResource { + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|bulkMuteFindings}. + * @param error Error, if any + * @param [response] Operation + */ + type BulkMuteFindingsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Constructs a new Resource. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|createSecurityHealthAnalyticsCustomModule}. + * @param error Error, if any + * @param [response] SecurityHealthAnalyticsCustomModule */ - constructor(properties?: google.cloud.securitycenter.v1.IResource); + type CreateSecurityHealthAnalyticsCustomModuleCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule) => void; - /** Resource name. */ - public name: string; + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|createSource}. + * @param error Error, if any + * @param [response] Source + */ + type CreateSourceCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.Source) => void; - /** Resource displayName. */ - public displayName: string; + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|createFinding}. + * @param error Error, if any + * @param [response] Finding + */ + type CreateFindingCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.Finding) => void; - /** Resource type. */ - public type: string; + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|createMuteConfig}. + * @param error Error, if any + * @param [response] MuteConfig + */ + type CreateMuteConfigCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.MuteConfig) => void; - /** Resource project. */ - public project: string; + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|createNotificationConfig}. + * @param error Error, if any + * @param [response] NotificationConfig + */ + type CreateNotificationConfigCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.NotificationConfig) => void; - /** Resource projectDisplayName. */ - public projectDisplayName: string; + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|deleteMuteConfig}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteMuteConfigCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** Resource parent. */ - public parent: string; + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|deleteNotificationConfig}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteNotificationConfigCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** Resource parentDisplayName. */ - public parentDisplayName: string; + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|deleteSecurityHealthAnalyticsCustomModule}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteSecurityHealthAnalyticsCustomModuleCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** Resource folders. */ - public folders: google.cloud.securitycenter.v1.IFolder[]; + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getBigQueryExport}. + * @param error Error, if any + * @param [response] BigQueryExport + */ + type GetBigQueryExportCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.BigQueryExport) => void; /** - * Creates a new Resource instance using the specified properties. - * @param [properties] Properties to set - * @returns Resource instance + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getIamPolicy}. + * @param error Error, if any + * @param [response] Policy */ - public static create(properties?: google.cloud.securitycenter.v1.IResource): google.cloud.securitycenter.v1.Resource; + type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Encodes the specified Resource message. Does not implicitly {@link google.cloud.securitycenter.v1.Resource.verify|verify} messages. - * @param message Resource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getMuteConfig}. + * @param error Error, if any + * @param [response] MuteConfig */ - public static encode(message: google.cloud.securitycenter.v1.IResource, writer?: $protobuf.Writer): $protobuf.Writer; + type GetMuteConfigCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.MuteConfig) => void; /** - * Encodes the specified Resource message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Resource.verify|verify} messages. - * @param message Resource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getNotificationConfig}. + * @param error Error, if any + * @param [response] NotificationConfig */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IResource, writer?: $protobuf.Writer): $protobuf.Writer; + type GetNotificationConfigCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.NotificationConfig) => void; /** - * Decodes a Resource message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Resource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getOrganizationSettings}. + * @param error Error, if any + * @param [response] OrganizationSettings */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.Resource; + type GetOrganizationSettingsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.OrganizationSettings) => void; /** - * Decodes a Resource message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Resource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getEffectiveSecurityHealthAnalyticsCustomModule}. + * @param error Error, if any + * @param [response] EffectiveSecurityHealthAnalyticsCustomModule */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.Resource; + type GetEffectiveSecurityHealthAnalyticsCustomModuleCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule) => void; /** - * Verifies a Resource message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getSecurityHealthAnalyticsCustomModule}. + * @param error Error, if any + * @param [response] SecurityHealthAnalyticsCustomModule */ - public static verify(message: { [k: string]: any }): (string|null); + type GetSecurityHealthAnalyticsCustomModuleCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule) => void; /** - * Creates a Resource message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Resource + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getSource}. + * @param error Error, if any + * @param [response] Source */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.Resource; + type GetSourceCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.Source) => void; /** - * Creates a plain object from a Resource message. Also converts values to other types if specified. - * @param message Resource - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|groupAssets}. + * @param error Error, if any + * @param [response] GroupAssetsResponse */ - public static toObject(message: google.cloud.securitycenter.v1.Resource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type GroupAssetsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.GroupAssetsResponse) => void; /** - * Converts this Resource to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|groupFindings}. + * @param error Error, if any + * @param [response] GroupFindingsResponse */ - public toJSON(): { [k: string]: any }; + type GroupFindingsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.GroupFindingsResponse) => void; /** - * Gets the default type url for Resource - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listAssets}. + * @param error Error, if any + * @param [response] ListAssetsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an OrganizationSettings. */ - interface IOrganizationSettings { - - /** OrganizationSettings name */ - name?: (string|null); - - /** OrganizationSettings enableAssetDiscovery */ - enableAssetDiscovery?: (boolean|null); - - /** OrganizationSettings assetDiscoveryConfig */ - assetDiscoveryConfig?: (google.cloud.securitycenter.v1.OrganizationSettings.IAssetDiscoveryConfig|null); - } - - /** Represents an OrganizationSettings. */ - class OrganizationSettings implements IOrganizationSettings { + type ListAssetsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ListAssetsResponse) => void; /** - * Constructs a new OrganizationSettings. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listDescendantSecurityHealthAnalyticsCustomModules}. + * @param error Error, if any + * @param [response] ListDescendantSecurityHealthAnalyticsCustomModulesResponse */ - constructor(properties?: google.cloud.securitycenter.v1.IOrganizationSettings); - - /** OrganizationSettings name. */ - public name: string; - - /** OrganizationSettings enableAssetDiscovery. */ - public enableAssetDiscovery: boolean; - - /** OrganizationSettings assetDiscoveryConfig. */ - public assetDiscoveryConfig?: (google.cloud.securitycenter.v1.OrganizationSettings.IAssetDiscoveryConfig|null); + type ListDescendantSecurityHealthAnalyticsCustomModulesCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) => void; /** - * Creates a new OrganizationSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns OrganizationSettings instance + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listFindings}. + * @param error Error, if any + * @param [response] ListFindingsResponse */ - public static create(properties?: google.cloud.securitycenter.v1.IOrganizationSettings): google.cloud.securitycenter.v1.OrganizationSettings; + type ListFindingsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ListFindingsResponse) => void; /** - * Encodes the specified OrganizationSettings message. Does not implicitly {@link google.cloud.securitycenter.v1.OrganizationSettings.verify|verify} messages. - * @param message OrganizationSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listMuteConfigs}. + * @param error Error, if any + * @param [response] ListMuteConfigsResponse */ - public static encode(message: google.cloud.securitycenter.v1.IOrganizationSettings, writer?: $protobuf.Writer): $protobuf.Writer; + type ListMuteConfigsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ListMuteConfigsResponse) => void; /** - * Encodes the specified OrganizationSettings message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.OrganizationSettings.verify|verify} messages. - * @param message OrganizationSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listNotificationConfigs}. + * @param error Error, if any + * @param [response] ListNotificationConfigsResponse */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IOrganizationSettings, writer?: $protobuf.Writer): $protobuf.Writer; + type ListNotificationConfigsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ListNotificationConfigsResponse) => void; /** - * Decodes an OrganizationSettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OrganizationSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listEffectiveSecurityHealthAnalyticsCustomModules}. + * @param error Error, if any + * @param [response] ListEffectiveSecurityHealthAnalyticsCustomModulesResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.OrganizationSettings; + type ListEffectiveSecurityHealthAnalyticsCustomModulesCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) => void; /** - * Decodes an OrganizationSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OrganizationSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listSecurityHealthAnalyticsCustomModules}. + * @param error Error, if any + * @param [response] ListSecurityHealthAnalyticsCustomModulesResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.OrganizationSettings; + type ListSecurityHealthAnalyticsCustomModulesCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse) => void; /** - * Verifies an OrganizationSettings message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listSources}. + * @param error Error, if any + * @param [response] ListSourcesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListSourcesCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ListSourcesResponse) => void; /** - * Creates an OrganizationSettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OrganizationSettings + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|runAssetDiscovery}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.OrganizationSettings; + type RunAssetDiscoveryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from an OrganizationSettings message. Also converts values to other types if specified. - * @param message OrganizationSettings - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|setFindingState}. + * @param error Error, if any + * @param [response] Finding */ - public static toObject(message: google.cloud.securitycenter.v1.OrganizationSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type SetFindingStateCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.Finding) => void; /** - * Converts this OrganizationSettings to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|setMute}. + * @param error Error, if any + * @param [response] Finding */ - public toJSON(): { [k: string]: any }; + type SetMuteCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.Finding) => void; /** - * Gets the default type url for OrganizationSettings - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|setIamPolicy}. + * @param error Error, if any + * @param [response] Policy */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace OrganizationSettings { - - /** Properties of an AssetDiscoveryConfig. */ - interface IAssetDiscoveryConfig { - - /** AssetDiscoveryConfig projectIds */ - projectIds?: (string[]|null); - - /** AssetDiscoveryConfig inclusionMode */ - inclusionMode?: (google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode|keyof typeof google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode|null); - - /** AssetDiscoveryConfig folderIds */ - folderIds?: (string[]|null); - } - - /** Represents an AssetDiscoveryConfig. */ - class AssetDiscoveryConfig implements IAssetDiscoveryConfig { - - /** - * Constructs a new AssetDiscoveryConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.securitycenter.v1.OrganizationSettings.IAssetDiscoveryConfig); - - /** AssetDiscoveryConfig projectIds. */ - public projectIds: string[]; - - /** AssetDiscoveryConfig inclusionMode. */ - public inclusionMode: (google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode|keyof typeof google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode); - - /** AssetDiscoveryConfig folderIds. */ - public folderIds: string[]; + type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; - /** - * Creates a new AssetDiscoveryConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns AssetDiscoveryConfig instance - */ - public static create(properties?: google.cloud.securitycenter.v1.OrganizationSettings.IAssetDiscoveryConfig): google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig; + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|testIamPermissions}. + * @param error Error, if any + * @param [response] TestIamPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void; - /** - * Encodes the specified AssetDiscoveryConfig message. Does not implicitly {@link google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.verify|verify} messages. - * @param message AssetDiscoveryConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.securitycenter.v1.OrganizationSettings.IAssetDiscoveryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateExternalSystem}. + * @param error Error, if any + * @param [response] ExternalSystem + */ + type UpdateExternalSystemCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ExternalSystem) => void; - /** - * Encodes the specified AssetDiscoveryConfig message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.verify|verify} messages. - * @param message AssetDiscoveryConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.OrganizationSettings.IAssetDiscoveryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateFinding}. + * @param error Error, if any + * @param [response] Finding + */ + type UpdateFindingCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.Finding) => void; - /** - * Decodes an AssetDiscoveryConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AssetDiscoveryConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig; + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateMuteConfig}. + * @param error Error, if any + * @param [response] MuteConfig + */ + type UpdateMuteConfigCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.MuteConfig) => void; - /** - * Decodes an AssetDiscoveryConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AssetDiscoveryConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig; + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateNotificationConfig}. + * @param error Error, if any + * @param [response] NotificationConfig + */ + type UpdateNotificationConfigCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.NotificationConfig) => void; - /** - * Verifies an AssetDiscoveryConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateOrganizationSettings}. + * @param error Error, if any + * @param [response] OrganizationSettings + */ + type UpdateOrganizationSettingsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.OrganizationSettings) => void; - /** - * Creates an AssetDiscoveryConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AssetDiscoveryConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig; + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateSecurityHealthAnalyticsCustomModule}. + * @param error Error, if any + * @param [response] SecurityHealthAnalyticsCustomModule + */ + type UpdateSecurityHealthAnalyticsCustomModuleCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule) => void; - /** - * Creates a plain object from an AssetDiscoveryConfig message. Also converts values to other types if specified. - * @param message AssetDiscoveryConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateSource}. + * @param error Error, if any + * @param [response] Source + */ + type UpdateSourceCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.Source) => void; - /** - * Converts this AssetDiscoveryConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateSecurityMarks}. + * @param error Error, if any + * @param [response] SecurityMarks + */ + type UpdateSecurityMarksCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.SecurityMarks) => void; - /** - * Gets the default type url for AssetDiscoveryConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|createBigQueryExport}. + * @param error Error, if any + * @param [response] BigQueryExport + */ + type CreateBigQueryExportCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.BigQueryExport) => void; - namespace AssetDiscoveryConfig { + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|deleteBigQueryExport}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteBigQueryExportCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** InclusionMode enum. */ - enum InclusionMode { - INCLUSION_MODE_UNSPECIFIED = 0, - INCLUDE_ONLY = 1, - EXCLUDE = 2 - } - } + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateBigQueryExport}. + * @param error Error, if any + * @param [response] BigQueryExport + */ + type UpdateBigQueryExportCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.BigQueryExport) => void; + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listBigQueryExports}. + * @param error Error, if any + * @param [response] ListBigQueryExportsResponse + */ + type ListBigQueryExportsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ListBigQueryExportsResponse) => void; } - /** Properties of a RunAssetDiscoveryResponse. */ - interface IRunAssetDiscoveryResponse { + /** Properties of a BulkMuteFindingsRequest. */ + interface IBulkMuteFindingsRequest { - /** RunAssetDiscoveryResponse state */ - state?: (google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State|keyof typeof google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State|null); + /** BulkMuteFindingsRequest parent */ + parent?: (string|null); - /** RunAssetDiscoveryResponse duration */ - duration?: (google.protobuf.IDuration|null); + /** BulkMuteFindingsRequest filter */ + filter?: (string|null); + + /** BulkMuteFindingsRequest muteAnnotation */ + muteAnnotation?: (string|null); } - /** Represents a RunAssetDiscoveryResponse. */ - class RunAssetDiscoveryResponse implements IRunAssetDiscoveryResponse { + /** Represents a BulkMuteFindingsRequest. */ + class BulkMuteFindingsRequest implements IBulkMuteFindingsRequest { /** - * Constructs a new RunAssetDiscoveryResponse. + * Constructs a new BulkMuteFindingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IRunAssetDiscoveryResponse); + constructor(properties?: google.cloud.securitycenter.v1.IBulkMuteFindingsRequest); - /** RunAssetDiscoveryResponse state. */ - public state: (google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State|keyof typeof google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State); + /** BulkMuteFindingsRequest parent. */ + public parent: string; - /** RunAssetDiscoveryResponse duration. */ - public duration?: (google.protobuf.IDuration|null); + /** BulkMuteFindingsRequest filter. */ + public filter: string; + + /** BulkMuteFindingsRequest muteAnnotation. */ + public muteAnnotation: string; /** - * Creates a new RunAssetDiscoveryResponse instance using the specified properties. + * Creates a new BulkMuteFindingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RunAssetDiscoveryResponse instance + * @returns BulkMuteFindingsRequest instance */ - public static create(properties?: google.cloud.securitycenter.v1.IRunAssetDiscoveryResponse): google.cloud.securitycenter.v1.RunAssetDiscoveryResponse; + public static create(properties?: google.cloud.securitycenter.v1.IBulkMuteFindingsRequest): google.cloud.securitycenter.v1.BulkMuteFindingsRequest; /** - * Encodes the specified RunAssetDiscoveryResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.verify|verify} messages. - * @param message RunAssetDiscoveryResponse message or plain object to encode + * Encodes the specified BulkMuteFindingsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.BulkMuteFindingsRequest.verify|verify} messages. + * @param message BulkMuteFindingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IRunAssetDiscoveryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IBulkMuteFindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunAssetDiscoveryResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.verify|verify} messages. - * @param message RunAssetDiscoveryResponse message or plain object to encode + * Encodes the specified BulkMuteFindingsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.BulkMuteFindingsRequest.verify|verify} messages. + * @param message BulkMuteFindingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IRunAssetDiscoveryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IBulkMuteFindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunAssetDiscoveryResponse message from the specified reader or buffer. + * Decodes a BulkMuteFindingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunAssetDiscoveryResponse + * @returns BulkMuteFindingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.RunAssetDiscoveryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.BulkMuteFindingsRequest; /** - * Decodes a RunAssetDiscoveryResponse message from the specified reader or buffer, length delimited. + * Decodes a BulkMuteFindingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunAssetDiscoveryResponse + * @returns BulkMuteFindingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.RunAssetDiscoveryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.BulkMuteFindingsRequest; /** - * Verifies a RunAssetDiscoveryResponse message. + * Verifies a BulkMuteFindingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunAssetDiscoveryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BulkMuteFindingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunAssetDiscoveryResponse + * @returns BulkMuteFindingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.RunAssetDiscoveryResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.BulkMuteFindingsRequest; /** - * Creates a plain object from a RunAssetDiscoveryResponse message. Also converts values to other types if specified. - * @param message RunAssetDiscoveryResponse + * Creates a plain object from a BulkMuteFindingsRequest message. Also converts values to other types if specified. + * @param message BulkMuteFindingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.RunAssetDiscoveryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.BulkMuteFindingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunAssetDiscoveryResponse to JSON. + * Converts this BulkMuteFindingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RunAssetDiscoveryResponse + * Gets the default type url for BulkMuteFindingsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace RunAssetDiscoveryResponse { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - COMPLETED = 1, - SUPERSEDED = 2, - TERMINATED = 3 - } + /** Properties of a BulkMuteFindingsResponse. */ + interface IBulkMuteFindingsResponse { } - /** Represents a SecurityCenter */ - class SecurityCenter extends $protobuf.rpc.Service { - - /** - * Constructs a new SecurityCenter service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new SecurityCenter service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SecurityCenter; - - /** - * Calls BulkMuteFindings. - * @param request BulkMuteFindingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public bulkMuteFindings(request: google.cloud.securitycenter.v1.IBulkMuteFindingsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.BulkMuteFindingsCallback): void; - - /** - * Calls BulkMuteFindings. - * @param request BulkMuteFindingsRequest message or plain object - * @returns Promise - */ - public bulkMuteFindings(request: google.cloud.securitycenter.v1.IBulkMuteFindingsRequest): Promise; + /** Represents a BulkMuteFindingsResponse. */ + class BulkMuteFindingsResponse implements IBulkMuteFindingsResponse { /** - * Calls CreateSource. - * @param request CreateSourceRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Source + * Constructs a new BulkMuteFindingsResponse. + * @param [properties] Properties to set */ - public createSource(request: google.cloud.securitycenter.v1.ICreateSourceRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.CreateSourceCallback): void; + constructor(properties?: google.cloud.securitycenter.v1.IBulkMuteFindingsResponse); /** - * Calls CreateSource. - * @param request CreateSourceRequest message or plain object - * @returns Promise + * Creates a new BulkMuteFindingsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BulkMuteFindingsResponse instance */ - public createSource(request: google.cloud.securitycenter.v1.ICreateSourceRequest): Promise; + public static create(properties?: google.cloud.securitycenter.v1.IBulkMuteFindingsResponse): google.cloud.securitycenter.v1.BulkMuteFindingsResponse; /** - * Calls CreateFinding. - * @param request CreateFindingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Finding + * Encodes the specified BulkMuteFindingsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.BulkMuteFindingsResponse.verify|verify} messages. + * @param message BulkMuteFindingsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createFinding(request: google.cloud.securitycenter.v1.ICreateFindingRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.CreateFindingCallback): void; + public static encode(message: google.cloud.securitycenter.v1.IBulkMuteFindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateFinding. - * @param request CreateFindingRequest message or plain object - * @returns Promise + * Encodes the specified BulkMuteFindingsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.BulkMuteFindingsResponse.verify|verify} messages. + * @param message BulkMuteFindingsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createFinding(request: google.cloud.securitycenter.v1.ICreateFindingRequest): Promise; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IBulkMuteFindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateMuteConfig. - * @param request CreateMuteConfigRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MuteConfig + * Decodes a BulkMuteFindingsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BulkMuteFindingsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createMuteConfig(request: google.cloud.securitycenter.v1.ICreateMuteConfigRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfigCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.BulkMuteFindingsResponse; /** - * Calls CreateMuteConfig. - * @param request CreateMuteConfigRequest message or plain object - * @returns Promise + * Decodes a BulkMuteFindingsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BulkMuteFindingsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createMuteConfig(request: google.cloud.securitycenter.v1.ICreateMuteConfigRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.BulkMuteFindingsResponse; /** - * Calls CreateNotificationConfig. - * @param request CreateNotificationConfigRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NotificationConfig + * Verifies a BulkMuteFindingsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createNotificationConfig(request: google.cloud.securitycenter.v1.ICreateNotificationConfigRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfigCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateNotificationConfig. - * @param request CreateNotificationConfigRequest message or plain object - * @returns Promise + * Creates a BulkMuteFindingsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BulkMuteFindingsResponse */ - public createNotificationConfig(request: google.cloud.securitycenter.v1.ICreateNotificationConfigRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.BulkMuteFindingsResponse; /** - * Calls DeleteMuteConfig. - * @param request DeleteMuteConfigRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Creates a plain object from a BulkMuteFindingsResponse message. Also converts values to other types if specified. + * @param message BulkMuteFindingsResponse + * @param [options] Conversion options + * @returns Plain object */ - public deleteMuteConfig(request: google.cloud.securitycenter.v1.IDeleteMuteConfigRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.DeleteMuteConfigCallback): void; + public static toObject(message: google.cloud.securitycenter.v1.BulkMuteFindingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteMuteConfig. - * @param request DeleteMuteConfigRequest message or plain object - * @returns Promise + * Converts this BulkMuteFindingsResponse to JSON. + * @returns JSON object */ - public deleteMuteConfig(request: google.cloud.securitycenter.v1.IDeleteMuteConfigRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls DeleteNotificationConfig. - * @param request DeleteNotificationConfigRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Gets the default type url for BulkMuteFindingsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public deleteNotificationConfig(request: google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.DeleteNotificationConfigCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls DeleteNotificationConfig. - * @param request DeleteNotificationConfigRequest message or plain object - * @returns Promise - */ - public deleteNotificationConfig(request: google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest): Promise; + /** Properties of a CreateFindingRequest. */ + interface ICreateFindingRequest { + + /** CreateFindingRequest parent */ + parent?: (string|null); + + /** CreateFindingRequest findingId */ + findingId?: (string|null); + + /** CreateFindingRequest finding */ + finding?: (google.cloud.securitycenter.v1.IFinding|null); + } + + /** Represents a CreateFindingRequest. */ + class CreateFindingRequest implements ICreateFindingRequest { /** - * Calls GetBigQueryExport. - * @param request GetBigQueryExportRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BigQueryExport + * Constructs a new CreateFindingRequest. + * @param [properties] Properties to set */ - public getBigQueryExport(request: google.cloud.securitycenter.v1.IGetBigQueryExportRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GetBigQueryExportCallback): void; + constructor(properties?: google.cloud.securitycenter.v1.ICreateFindingRequest); + + /** CreateFindingRequest parent. */ + public parent: string; + + /** CreateFindingRequest findingId. */ + public findingId: string; + + /** CreateFindingRequest finding. */ + public finding?: (google.cloud.securitycenter.v1.IFinding|null); /** - * Calls GetBigQueryExport. - * @param request GetBigQueryExportRequest message or plain object - * @returns Promise + * Creates a new CreateFindingRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateFindingRequest instance */ - public getBigQueryExport(request: google.cloud.securitycenter.v1.IGetBigQueryExportRequest): Promise; + public static create(properties?: google.cloud.securitycenter.v1.ICreateFindingRequest): google.cloud.securitycenter.v1.CreateFindingRequest; /** - * Calls GetIamPolicy. - * @param request GetIamPolicyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Policy + * Encodes the specified CreateFindingRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateFindingRequest.verify|verify} messages. + * @param message CreateFindingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GetIamPolicyCallback): void; + public static encode(message: google.cloud.securitycenter.v1.ICreateFindingRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetIamPolicy. - * @param request GetIamPolicyRequest message or plain object - * @returns Promise + * Encodes the specified CreateFindingRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateFindingRequest.verify|verify} messages. + * @param message CreateFindingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise; + public static encodeDelimited(message: google.cloud.securitycenter.v1.ICreateFindingRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetMuteConfig. - * @param request GetMuteConfigRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MuteConfig + * Decodes a CreateFindingRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateFindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getMuteConfig(request: google.cloud.securitycenter.v1.IGetMuteConfigRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GetMuteConfigCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.CreateFindingRequest; /** - * Calls GetMuteConfig. - * @param request GetMuteConfigRequest message or plain object - * @returns Promise + * Decodes a CreateFindingRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateFindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getMuteConfig(request: google.cloud.securitycenter.v1.IGetMuteConfigRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.CreateFindingRequest; /** - * Calls GetNotificationConfig. - * @param request GetNotificationConfigRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NotificationConfig + * Verifies a CreateFindingRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getNotificationConfig(request: google.cloud.securitycenter.v1.IGetNotificationConfigRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GetNotificationConfigCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetNotificationConfig. - * @param request GetNotificationConfigRequest message or plain object - * @returns Promise + * Creates a CreateFindingRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateFindingRequest */ - public getNotificationConfig(request: google.cloud.securitycenter.v1.IGetNotificationConfigRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.CreateFindingRequest; /** - * Calls GetOrganizationSettings. - * @param request GetOrganizationSettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and OrganizationSettings + * Creates a plain object from a CreateFindingRequest message. Also converts values to other types if specified. + * @param message CreateFindingRequest + * @param [options] Conversion options + * @returns Plain object */ - public getOrganizationSettings(request: google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GetOrganizationSettingsCallback): void; + public static toObject(message: google.cloud.securitycenter.v1.CreateFindingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetOrganizationSettings. - * @param request GetOrganizationSettingsRequest message or plain object - * @returns Promise + * Converts this CreateFindingRequest to JSON. + * @returns JSON object */ - public getOrganizationSettings(request: google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls GetSource. - * @param request GetSourceRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Source + * Gets the default type url for CreateFindingRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public getSource(request: google.cloud.securitycenter.v1.IGetSourceRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GetSourceCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateMuteConfigRequest. */ + interface ICreateMuteConfigRequest { + + /** CreateMuteConfigRequest parent */ + parent?: (string|null); + + /** CreateMuteConfigRequest muteConfig */ + muteConfig?: (google.cloud.securitycenter.v1.IMuteConfig|null); + + /** CreateMuteConfigRequest muteConfigId */ + muteConfigId?: (string|null); + } + + /** Represents a CreateMuteConfigRequest. */ + class CreateMuteConfigRequest implements ICreateMuteConfigRequest { /** - * Calls GetSource. - * @param request GetSourceRequest message or plain object - * @returns Promise + * Constructs a new CreateMuteConfigRequest. + * @param [properties] Properties to set */ - public getSource(request: google.cloud.securitycenter.v1.IGetSourceRequest): Promise; + constructor(properties?: google.cloud.securitycenter.v1.ICreateMuteConfigRequest); + + /** CreateMuteConfigRequest parent. */ + public parent: string; + + /** CreateMuteConfigRequest muteConfig. */ + public muteConfig?: (google.cloud.securitycenter.v1.IMuteConfig|null); + + /** CreateMuteConfigRequest muteConfigId. */ + public muteConfigId: string; /** - * Calls GroupAssets. - * @param request GroupAssetsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GroupAssetsResponse + * Creates a new CreateMuteConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateMuteConfigRequest instance */ - public groupAssets(request: google.cloud.securitycenter.v1.IGroupAssetsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GroupAssetsCallback): void; + public static create(properties?: google.cloud.securitycenter.v1.ICreateMuteConfigRequest): google.cloud.securitycenter.v1.CreateMuteConfigRequest; /** - * Calls GroupAssets. - * @param request GroupAssetsRequest message or plain object - * @returns Promise + * Encodes the specified CreateMuteConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateMuteConfigRequest.verify|verify} messages. + * @param message CreateMuteConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public groupAssets(request: google.cloud.securitycenter.v1.IGroupAssetsRequest): Promise; + public static encode(message: google.cloud.securitycenter.v1.ICreateMuteConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GroupFindings. - * @param request GroupFindingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GroupFindingsResponse + * Encodes the specified CreateMuteConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateMuteConfigRequest.verify|verify} messages. + * @param message CreateMuteConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public groupFindings(request: google.cloud.securitycenter.v1.IGroupFindingsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.GroupFindingsCallback): void; + public static encodeDelimited(message: google.cloud.securitycenter.v1.ICreateMuteConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GroupFindings. - * @param request GroupFindingsRequest message or plain object - * @returns Promise + * Decodes a CreateMuteConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateMuteConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public groupFindings(request: google.cloud.securitycenter.v1.IGroupFindingsRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.CreateMuteConfigRequest; /** - * Calls ListAssets. - * @param request ListAssetsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListAssetsResponse + * Decodes a CreateMuteConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateMuteConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listAssets(request: google.cloud.securitycenter.v1.IListAssetsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.ListAssetsCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.CreateMuteConfigRequest; /** - * Calls ListAssets. - * @param request ListAssetsRequest message or plain object - * @returns Promise + * Verifies a CreateMuteConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listAssets(request: google.cloud.securitycenter.v1.IListAssetsRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListFindings. - * @param request ListFindingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListFindingsResponse + * Creates a CreateMuteConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateMuteConfigRequest */ - public listFindings(request: google.cloud.securitycenter.v1.IListFindingsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.ListFindingsCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.CreateMuteConfigRequest; /** - * Calls ListFindings. - * @param request ListFindingsRequest message or plain object - * @returns Promise + * Creates a plain object from a CreateMuteConfigRequest message. Also converts values to other types if specified. + * @param message CreateMuteConfigRequest + * @param [options] Conversion options + * @returns Plain object */ - public listFindings(request: google.cloud.securitycenter.v1.IListFindingsRequest): Promise; + public static toObject(message: google.cloud.securitycenter.v1.CreateMuteConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListMuteConfigs. - * @param request ListMuteConfigsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListMuteConfigsResponse + * Converts this CreateMuteConfigRequest to JSON. + * @returns JSON object */ - public listMuteConfigs(request: google.cloud.securitycenter.v1.IListMuteConfigsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigsCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls ListMuteConfigs. - * @param request ListMuteConfigsRequest message or plain object - * @returns Promise + * Gets the default type url for CreateMuteConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public listMuteConfigs(request: google.cloud.securitycenter.v1.IListMuteConfigsRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateNotificationConfigRequest. */ + interface ICreateNotificationConfigRequest { + + /** CreateNotificationConfigRequest parent */ + parent?: (string|null); + + /** CreateNotificationConfigRequest configId */ + configId?: (string|null); + + /** CreateNotificationConfigRequest notificationConfig */ + notificationConfig?: (google.cloud.securitycenter.v1.INotificationConfig|null); + } + + /** Represents a CreateNotificationConfigRequest. */ + class CreateNotificationConfigRequest implements ICreateNotificationConfigRequest { /** - * Calls ListNotificationConfigs. - * @param request ListNotificationConfigsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListNotificationConfigsResponse + * Constructs a new CreateNotificationConfigRequest. + * @param [properties] Properties to set */ - public listNotificationConfigs(request: google.cloud.securitycenter.v1.IListNotificationConfigsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigsCallback): void; + constructor(properties?: google.cloud.securitycenter.v1.ICreateNotificationConfigRequest); + + /** CreateNotificationConfigRequest parent. */ + public parent: string; + + /** CreateNotificationConfigRequest configId. */ + public configId: string; + + /** CreateNotificationConfigRequest notificationConfig. */ + public notificationConfig?: (google.cloud.securitycenter.v1.INotificationConfig|null); /** - * Calls ListNotificationConfigs. - * @param request ListNotificationConfigsRequest message or plain object - * @returns Promise + * Creates a new CreateNotificationConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateNotificationConfigRequest instance */ - public listNotificationConfigs(request: google.cloud.securitycenter.v1.IListNotificationConfigsRequest): Promise; + public static create(properties?: google.cloud.securitycenter.v1.ICreateNotificationConfigRequest): google.cloud.securitycenter.v1.CreateNotificationConfigRequest; /** - * Calls ListSources. - * @param request ListSourcesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListSourcesResponse + * Encodes the specified CreateNotificationConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateNotificationConfigRequest.verify|verify} messages. + * @param message CreateNotificationConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listSources(request: google.cloud.securitycenter.v1.IListSourcesRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.ListSourcesCallback): void; + public static encode(message: google.cloud.securitycenter.v1.ICreateNotificationConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListSources. - * @param request ListSourcesRequest message or plain object - * @returns Promise + * Encodes the specified CreateNotificationConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateNotificationConfigRequest.verify|verify} messages. + * @param message CreateNotificationConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listSources(request: google.cloud.securitycenter.v1.IListSourcesRequest): Promise; + public static encodeDelimited(message: google.cloud.securitycenter.v1.ICreateNotificationConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls RunAssetDiscovery. - * @param request RunAssetDiscoveryRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes a CreateNotificationConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateNotificationConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public runAssetDiscovery(request: google.cloud.securitycenter.v1.IRunAssetDiscoveryRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.RunAssetDiscoveryCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.CreateNotificationConfigRequest; /** - * Calls RunAssetDiscovery. - * @param request RunAssetDiscoveryRequest message or plain object - * @returns Promise + * Decodes a CreateNotificationConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateNotificationConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public runAssetDiscovery(request: google.cloud.securitycenter.v1.IRunAssetDiscoveryRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.CreateNotificationConfigRequest; /** - * Calls SetFindingState. - * @param request SetFindingStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Finding + * Verifies a CreateNotificationConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public setFindingState(request: google.cloud.securitycenter.v1.ISetFindingStateRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.SetFindingStateCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls SetFindingState. - * @param request SetFindingStateRequest message or plain object - * @returns Promise + * Creates a CreateNotificationConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateNotificationConfigRequest */ - public setFindingState(request: google.cloud.securitycenter.v1.ISetFindingStateRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.CreateNotificationConfigRequest; /** - * Calls SetMute. - * @param request SetMuteRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Finding + * Creates a plain object from a CreateNotificationConfigRequest message. Also converts values to other types if specified. + * @param message CreateNotificationConfigRequest + * @param [options] Conversion options + * @returns Plain object */ - public setMute(request: google.cloud.securitycenter.v1.ISetMuteRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.SetMuteCallback): void; + public static toObject(message: google.cloud.securitycenter.v1.CreateNotificationConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls SetMute. - * @param request SetMuteRequest message or plain object - * @returns Promise + * Converts this CreateNotificationConfigRequest to JSON. + * @returns JSON object */ - public setMute(request: google.cloud.securitycenter.v1.ISetMuteRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls SetIamPolicy. - * @param request SetIamPolicyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Policy + * Gets the default type url for CreateNotificationConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.SetIamPolicyCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateSecurityHealthAnalyticsCustomModuleRequest. */ + interface ICreateSecurityHealthAnalyticsCustomModuleRequest { + + /** CreateSecurityHealthAnalyticsCustomModuleRequest parent */ + parent?: (string|null); + + /** CreateSecurityHealthAnalyticsCustomModuleRequest securityHealthAnalyticsCustomModule */ + securityHealthAnalyticsCustomModule?: (google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule|null); + } + + /** Represents a CreateSecurityHealthAnalyticsCustomModuleRequest. */ + class CreateSecurityHealthAnalyticsCustomModuleRequest implements ICreateSecurityHealthAnalyticsCustomModuleRequest { /** - * Calls SetIamPolicy. - * @param request SetIamPolicyRequest message or plain object - * @returns Promise + * Constructs a new CreateSecurityHealthAnalyticsCustomModuleRequest. + * @param [properties] Properties to set */ - public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise; + constructor(properties?: google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest); + + /** CreateSecurityHealthAnalyticsCustomModuleRequest parent. */ + public parent: string; + + /** CreateSecurityHealthAnalyticsCustomModuleRequest securityHealthAnalyticsCustomModule. */ + public securityHealthAnalyticsCustomModule?: (google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule|null); /** - * Calls TestIamPermissions. - * @param request TestIamPermissionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestIamPermissionsResponse + * Creates a new CreateSecurityHealthAnalyticsCustomModuleRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateSecurityHealthAnalyticsCustomModuleRequest instance */ - public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.TestIamPermissionsCallback): void; + public static create(properties?: google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest): google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest; /** - * Calls TestIamPermissions. - * @param request TestIamPermissionsRequest message or plain object - * @returns Promise + * Encodes the specified CreateSecurityHealthAnalyticsCustomModuleRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. + * @param message CreateSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise; + public static encode(message: google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateExternalSystem. - * @param request UpdateExternalSystemRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExternalSystem + * Encodes the specified CreateSecurityHealthAnalyticsCustomModuleRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. + * @param message CreateSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateExternalSystem(request: google.cloud.securitycenter.v1.IUpdateExternalSystemRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateExternalSystemCallback): void; + public static encodeDelimited(message: google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateExternalSystem. - * @param request UpdateExternalSystemRequest message or plain object - * @returns Promise + * Decodes a CreateSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateSecurityHealthAnalyticsCustomModuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateExternalSystem(request: google.cloud.securitycenter.v1.IUpdateExternalSystemRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest; /** - * Calls UpdateFinding. - * @param request UpdateFindingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Finding + * Decodes a CreateSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateSecurityHealthAnalyticsCustomModuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateFinding(request: google.cloud.securitycenter.v1.IUpdateFindingRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateFindingCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest; /** - * Calls UpdateFinding. - * @param request UpdateFindingRequest message or plain object - * @returns Promise + * Verifies a CreateSecurityHealthAnalyticsCustomModuleRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public updateFinding(request: google.cloud.securitycenter.v1.IUpdateFindingRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdateMuteConfig. - * @param request UpdateMuteConfigRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MuteConfig + * Creates a CreateSecurityHealthAnalyticsCustomModuleRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateSecurityHealthAnalyticsCustomModuleRequest */ - public updateMuteConfig(request: google.cloud.securitycenter.v1.IUpdateMuteConfigRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateMuteConfigCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest; /** - * Calls UpdateMuteConfig. - * @param request UpdateMuteConfigRequest message or plain object - * @returns Promise + * Creates a plain object from a CreateSecurityHealthAnalyticsCustomModuleRequest message. Also converts values to other types if specified. + * @param message CreateSecurityHealthAnalyticsCustomModuleRequest + * @param [options] Conversion options + * @returns Plain object */ - public updateMuteConfig(request: google.cloud.securitycenter.v1.IUpdateMuteConfigRequest): Promise; + public static toObject(message: google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpdateNotificationConfig. - * @param request UpdateNotificationConfigRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NotificationConfig + * Converts this CreateSecurityHealthAnalyticsCustomModuleRequest to JSON. + * @returns JSON object */ - public updateNotificationConfig(request: google.cloud.securitycenter.v1.IUpdateNotificationConfigRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateNotificationConfigCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls UpdateNotificationConfig. - * @param request UpdateNotificationConfigRequest message or plain object - * @returns Promise + * Gets the default type url for CreateSecurityHealthAnalyticsCustomModuleRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public updateNotificationConfig(request: google.cloud.securitycenter.v1.IUpdateNotificationConfigRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateSourceRequest. */ + interface ICreateSourceRequest { + + /** CreateSourceRequest parent */ + parent?: (string|null); + + /** CreateSourceRequest source */ + source?: (google.cloud.securitycenter.v1.ISource|null); + } + + /** Represents a CreateSourceRequest. */ + class CreateSourceRequest implements ICreateSourceRequest { /** - * Calls UpdateOrganizationSettings. - * @param request UpdateOrganizationSettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and OrganizationSettings + * Constructs a new CreateSourceRequest. + * @param [properties] Properties to set */ - public updateOrganizationSettings(request: google.cloud.securitycenter.v1.IUpdateOrganizationSettingsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateOrganizationSettingsCallback): void; + constructor(properties?: google.cloud.securitycenter.v1.ICreateSourceRequest); - /** - * Calls UpdateOrganizationSettings. - * @param request UpdateOrganizationSettingsRequest message or plain object - * @returns Promise - */ - public updateOrganizationSettings(request: google.cloud.securitycenter.v1.IUpdateOrganizationSettingsRequest): Promise; + /** CreateSourceRequest parent. */ + public parent: string; - /** - * Calls UpdateSource. - * @param request UpdateSourceRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Source - */ - public updateSource(request: google.cloud.securitycenter.v1.IUpdateSourceRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateSourceCallback): void; + /** CreateSourceRequest source. */ + public source?: (google.cloud.securitycenter.v1.ISource|null); /** - * Calls UpdateSource. - * @param request UpdateSourceRequest message or plain object - * @returns Promise + * Creates a new CreateSourceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateSourceRequest instance */ - public updateSource(request: google.cloud.securitycenter.v1.IUpdateSourceRequest): Promise; + public static create(properties?: google.cloud.securitycenter.v1.ICreateSourceRequest): google.cloud.securitycenter.v1.CreateSourceRequest; /** - * Calls UpdateSecurityMarks. - * @param request UpdateSecurityMarksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SecurityMarks + * Encodes the specified CreateSourceRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateSourceRequest.verify|verify} messages. + * @param message CreateSourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateSecurityMarks(request: google.cloud.securitycenter.v1.IUpdateSecurityMarksRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityMarksCallback): void; + public static encode(message: google.cloud.securitycenter.v1.ICreateSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateSecurityMarks. - * @param request UpdateSecurityMarksRequest message or plain object - * @returns Promise + * Encodes the specified CreateSourceRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateSourceRequest.verify|verify} messages. + * @param message CreateSourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateSecurityMarks(request: google.cloud.securitycenter.v1.IUpdateSecurityMarksRequest): Promise; + public static encodeDelimited(message: google.cloud.securitycenter.v1.ICreateSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateBigQueryExport. - * @param request CreateBigQueryExportRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BigQueryExport + * Decodes a CreateSourceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createBigQueryExport(request: google.cloud.securitycenter.v1.ICreateBigQueryExportRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExportCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.CreateSourceRequest; /** - * Calls CreateBigQueryExport. - * @param request CreateBigQueryExportRequest message or plain object - * @returns Promise + * Decodes a CreateSourceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createBigQueryExport(request: google.cloud.securitycenter.v1.ICreateBigQueryExportRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.CreateSourceRequest; /** - * Calls DeleteBigQueryExport. - * @param request DeleteBigQueryExportRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Verifies a CreateSourceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteBigQueryExport(request: google.cloud.securitycenter.v1.IDeleteBigQueryExportRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.DeleteBigQueryExportCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteBigQueryExport. - * @param request DeleteBigQueryExportRequest message or plain object - * @returns Promise + * Creates a CreateSourceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateSourceRequest */ - public deleteBigQueryExport(request: google.cloud.securitycenter.v1.IDeleteBigQueryExportRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.CreateSourceRequest; /** - * Calls UpdateBigQueryExport. - * @param request UpdateBigQueryExportRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BigQueryExport + * Creates a plain object from a CreateSourceRequest message. Also converts values to other types if specified. + * @param message CreateSourceRequest + * @param [options] Conversion options + * @returns Plain object */ - public updateBigQueryExport(request: google.cloud.securitycenter.v1.IUpdateBigQueryExportRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.UpdateBigQueryExportCallback): void; + public static toObject(message: google.cloud.securitycenter.v1.CreateSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpdateBigQueryExport. - * @param request UpdateBigQueryExportRequest message or plain object - * @returns Promise + * Converts this CreateSourceRequest to JSON. + * @returns JSON object */ - public updateBigQueryExport(request: google.cloud.securitycenter.v1.IUpdateBigQueryExportRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls ListBigQueryExports. - * @param request ListBigQueryExportsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListBigQueryExportsResponse + * Gets the default type url for CreateSourceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public listBigQueryExports(request: google.cloud.securitycenter.v1.IListBigQueryExportsRequest, callback: google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExportsCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls ListBigQueryExports. - * @param request ListBigQueryExportsRequest message or plain object - * @returns Promise - */ - public listBigQueryExports(request: google.cloud.securitycenter.v1.IListBigQueryExportsRequest): Promise; + /** Properties of a DeleteMuteConfigRequest. */ + interface IDeleteMuteConfigRequest { + + /** DeleteMuteConfigRequest name */ + name?: (string|null); } - namespace SecurityCenter { + /** Represents a DeleteMuteConfigRequest. */ + class DeleteMuteConfigRequest implements IDeleteMuteConfigRequest { /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|bulkMuteFindings}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new DeleteMuteConfigRequest. + * @param [properties] Properties to set */ - type BulkMuteFindingsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.securitycenter.v1.IDeleteMuteConfigRequest); - /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|createSource}. - * @param error Error, if any - * @param [response] Source - */ - type CreateSourceCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.Source) => void; + /** DeleteMuteConfigRequest name. */ + public name: string; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|createFinding}. - * @param error Error, if any - * @param [response] Finding + * Creates a new DeleteMuteConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteMuteConfigRequest instance */ - type CreateFindingCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.Finding) => void; + public static create(properties?: google.cloud.securitycenter.v1.IDeleteMuteConfigRequest): google.cloud.securitycenter.v1.DeleteMuteConfigRequest; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|createMuteConfig}. - * @param error Error, if any - * @param [response] MuteConfig + * Encodes the specified DeleteMuteConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteMuteConfigRequest.verify|verify} messages. + * @param message DeleteMuteConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateMuteConfigCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.MuteConfig) => void; + public static encode(message: google.cloud.securitycenter.v1.IDeleteMuteConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|createNotificationConfig}. - * @param error Error, if any - * @param [response] NotificationConfig + * Encodes the specified DeleteMuteConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteMuteConfigRequest.verify|verify} messages. + * @param message DeleteMuteConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateNotificationConfigCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.NotificationConfig) => void; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IDeleteMuteConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|deleteMuteConfig}. - * @param error Error, if any - * @param [response] Empty + * Decodes a DeleteMuteConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteMuteConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteMuteConfigCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.DeleteMuteConfigRequest; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|deleteNotificationConfig}. - * @param error Error, if any - * @param [response] Empty + * Decodes a DeleteMuteConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteMuteConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteNotificationConfigCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.DeleteMuteConfigRequest; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getBigQueryExport}. - * @param error Error, if any - * @param [response] BigQueryExport + * Verifies a DeleteMuteConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type GetBigQueryExportCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.BigQueryExport) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getIamPolicy}. - * @param error Error, if any - * @param [response] Policy + * Creates a DeleteMuteConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteMuteConfigRequest */ - type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.DeleteMuteConfigRequest; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getMuteConfig}. - * @param error Error, if any - * @param [response] MuteConfig + * Creates a plain object from a DeleteMuteConfigRequest message. Also converts values to other types if specified. + * @param message DeleteMuteConfigRequest + * @param [options] Conversion options + * @returns Plain object */ - type GetMuteConfigCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.MuteConfig) => void; + public static toObject(message: google.cloud.securitycenter.v1.DeleteMuteConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getNotificationConfig}. - * @param error Error, if any - * @param [response] NotificationConfig + * Converts this DeleteMuteConfigRequest to JSON. + * @returns JSON object */ - type GetNotificationConfigCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.NotificationConfig) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getOrganizationSettings}. - * @param error Error, if any - * @param [response] OrganizationSettings + * Gets the default type url for DeleteMuteConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type GetOrganizationSettingsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.OrganizationSettings) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getSource}. - * @param error Error, if any - * @param [response] Source - */ - type GetSourceCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.Source) => void; + /** Properties of a DeleteNotificationConfigRequest. */ + interface IDeleteNotificationConfigRequest { - /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|groupAssets}. - * @param error Error, if any - * @param [response] GroupAssetsResponse - */ - type GroupAssetsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.GroupAssetsResponse) => void; + /** DeleteNotificationConfigRequest name */ + name?: (string|null); + } + + /** Represents a DeleteNotificationConfigRequest. */ + class DeleteNotificationConfigRequest implements IDeleteNotificationConfigRequest { /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|groupFindings}. - * @param error Error, if any - * @param [response] GroupFindingsResponse + * Constructs a new DeleteNotificationConfigRequest. + * @param [properties] Properties to set */ - type GroupFindingsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.GroupFindingsResponse) => void; + constructor(properties?: google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest); + + /** DeleteNotificationConfigRequest name. */ + public name: string; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listAssets}. - * @param error Error, if any - * @param [response] ListAssetsResponse + * Creates a new DeleteNotificationConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteNotificationConfigRequest instance */ - type ListAssetsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ListAssetsResponse) => void; + public static create(properties?: google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest): google.cloud.securitycenter.v1.DeleteNotificationConfigRequest; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listFindings}. - * @param error Error, if any - * @param [response] ListFindingsResponse + * Encodes the specified DeleteNotificationConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.verify|verify} messages. + * @param message DeleteNotificationConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListFindingsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ListFindingsResponse) => void; + public static encode(message: google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listMuteConfigs}. - * @param error Error, if any - * @param [response] ListMuteConfigsResponse + * Encodes the specified DeleteNotificationConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.verify|verify} messages. + * @param message DeleteNotificationConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListMuteConfigsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ListMuteConfigsResponse) => void; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listNotificationConfigs}. - * @param error Error, if any - * @param [response] ListNotificationConfigsResponse + * Decodes a DeleteNotificationConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteNotificationConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListNotificationConfigsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ListNotificationConfigsResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.DeleteNotificationConfigRequest; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listSources}. - * @param error Error, if any - * @param [response] ListSourcesResponse + * Decodes a DeleteNotificationConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteNotificationConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListSourcesCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ListSourcesResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.DeleteNotificationConfigRequest; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|runAssetDiscovery}. - * @param error Error, if any - * @param [response] Operation + * Verifies a DeleteNotificationConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type RunAssetDiscoveryCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|setFindingState}. - * @param error Error, if any - * @param [response] Finding + * Creates a DeleteNotificationConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteNotificationConfigRequest */ - type SetFindingStateCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.Finding) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.DeleteNotificationConfigRequest; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|setMute}. - * @param error Error, if any - * @param [response] Finding + * Creates a plain object from a DeleteNotificationConfigRequest message. Also converts values to other types if specified. + * @param message DeleteNotificationConfigRequest + * @param [options] Conversion options + * @returns Plain object */ - type SetMuteCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.Finding) => void; + public static toObject(message: google.cloud.securitycenter.v1.DeleteNotificationConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|setIamPolicy}. - * @param error Error, if any - * @param [response] Policy + * Converts this DeleteNotificationConfigRequest to JSON. + * @returns JSON object */ - type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|testIamPermissions}. - * @param error Error, if any - * @param [response] TestIamPermissionsResponse + * Gets the default type url for DeleteNotificationConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteSecurityHealthAnalyticsCustomModuleRequest. */ + interface IDeleteSecurityHealthAnalyticsCustomModuleRequest { + + /** DeleteSecurityHealthAnalyticsCustomModuleRequest name */ + name?: (string|null); + } + + /** Represents a DeleteSecurityHealthAnalyticsCustomModuleRequest. */ + class DeleteSecurityHealthAnalyticsCustomModuleRequest implements IDeleteSecurityHealthAnalyticsCustomModuleRequest { /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateExternalSystem}. - * @param error Error, if any - * @param [response] ExternalSystem + * Constructs a new DeleteSecurityHealthAnalyticsCustomModuleRequest. + * @param [properties] Properties to set */ - type UpdateExternalSystemCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ExternalSystem) => void; + constructor(properties?: google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest); + + /** DeleteSecurityHealthAnalyticsCustomModuleRequest name. */ + public name: string; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateFinding}. - * @param error Error, if any - * @param [response] Finding + * Creates a new DeleteSecurityHealthAnalyticsCustomModuleRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteSecurityHealthAnalyticsCustomModuleRequest instance */ - type UpdateFindingCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.Finding) => void; + public static create(properties?: google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest): google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateMuteConfig}. - * @param error Error, if any - * @param [response] MuteConfig + * Encodes the specified DeleteSecurityHealthAnalyticsCustomModuleRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. + * @param message DeleteSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type UpdateMuteConfigCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.MuteConfig) => void; + public static encode(message: google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateNotificationConfig}. - * @param error Error, if any - * @param [response] NotificationConfig + * Encodes the specified DeleteSecurityHealthAnalyticsCustomModuleRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. + * @param message DeleteSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type UpdateNotificationConfigCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.NotificationConfig) => void; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateOrganizationSettings}. - * @param error Error, if any - * @param [response] OrganizationSettings + * Decodes a DeleteSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteSecurityHealthAnalyticsCustomModuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateOrganizationSettingsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.OrganizationSettings) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateSource}. - * @param error Error, if any - * @param [response] Source + * Decodes a DeleteSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteSecurityHealthAnalyticsCustomModuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateSourceCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.Source) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateSecurityMarks}. - * @param error Error, if any - * @param [response] SecurityMarks + * Verifies a DeleteSecurityHealthAnalyticsCustomModuleRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type UpdateSecurityMarksCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.SecurityMarks) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|createBigQueryExport}. - * @param error Error, if any - * @param [response] BigQueryExport + * Creates a DeleteSecurityHealthAnalyticsCustomModuleRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteSecurityHealthAnalyticsCustomModuleRequest */ - type CreateBigQueryExportCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.BigQueryExport) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|deleteBigQueryExport}. - * @param error Error, if any - * @param [response] Empty + * Creates a plain object from a DeleteSecurityHealthAnalyticsCustomModuleRequest message. Also converts values to other types if specified. + * @param message DeleteSecurityHealthAnalyticsCustomModuleRequest + * @param [options] Conversion options + * @returns Plain object */ - type DeleteBigQueryExportCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static toObject(message: google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateBigQueryExport}. - * @param error Error, if any - * @param [response] BigQueryExport + * Converts this DeleteSecurityHealthAnalyticsCustomModuleRequest to JSON. + * @returns JSON object */ - type UpdateBigQueryExportCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.BigQueryExport) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listBigQueryExports}. - * @param error Error, if any - * @param [response] ListBigQueryExportsResponse + * Gets the default type url for DeleteSecurityHealthAnalyticsCustomModuleRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ListBigQueryExportsCallback = (error: (Error|null), response?: google.cloud.securitycenter.v1.ListBigQueryExportsResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BulkMuteFindingsRequest. */ - interface IBulkMuteFindingsRequest { - - /** BulkMuteFindingsRequest parent */ - parent?: (string|null); - - /** BulkMuteFindingsRequest filter */ - filter?: (string|null); + /** Properties of a GetBigQueryExportRequest. */ + interface IGetBigQueryExportRequest { - /** BulkMuteFindingsRequest muteAnnotation */ - muteAnnotation?: (string|null); + /** GetBigQueryExportRequest name */ + name?: (string|null); } - /** Represents a BulkMuteFindingsRequest. */ - class BulkMuteFindingsRequest implements IBulkMuteFindingsRequest { + /** Represents a GetBigQueryExportRequest. */ + class GetBigQueryExportRequest implements IGetBigQueryExportRequest { /** - * Constructs a new BulkMuteFindingsRequest. + * Constructs a new GetBigQueryExportRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IBulkMuteFindingsRequest); - - /** BulkMuteFindingsRequest parent. */ - public parent: string; - - /** BulkMuteFindingsRequest filter. */ - public filter: string; + constructor(properties?: google.cloud.securitycenter.v1.IGetBigQueryExportRequest); - /** BulkMuteFindingsRequest muteAnnotation. */ - public muteAnnotation: string; + /** GetBigQueryExportRequest name. */ + public name: string; /** - * Creates a new BulkMuteFindingsRequest instance using the specified properties. + * Creates a new GetBigQueryExportRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BulkMuteFindingsRequest instance + * @returns GetBigQueryExportRequest instance */ - public static create(properties?: google.cloud.securitycenter.v1.IBulkMuteFindingsRequest): google.cloud.securitycenter.v1.BulkMuteFindingsRequest; + public static create(properties?: google.cloud.securitycenter.v1.IGetBigQueryExportRequest): google.cloud.securitycenter.v1.GetBigQueryExportRequest; /** - * Encodes the specified BulkMuteFindingsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.BulkMuteFindingsRequest.verify|verify} messages. - * @param message BulkMuteFindingsRequest message or plain object to encode + * Encodes the specified GetBigQueryExportRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetBigQueryExportRequest.verify|verify} messages. + * @param message GetBigQueryExportRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IBulkMuteFindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IGetBigQueryExportRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BulkMuteFindingsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.BulkMuteFindingsRequest.verify|verify} messages. - * @param message BulkMuteFindingsRequest message or plain object to encode + * Encodes the specified GetBigQueryExportRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetBigQueryExportRequest.verify|verify} messages. + * @param message GetBigQueryExportRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IBulkMuteFindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IGetBigQueryExportRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BulkMuteFindingsRequest message from the specified reader or buffer. + * Decodes a GetBigQueryExportRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BulkMuteFindingsRequest + * @returns GetBigQueryExportRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.BulkMuteFindingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GetBigQueryExportRequest; /** - * Decodes a BulkMuteFindingsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBigQueryExportRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BulkMuteFindingsRequest + * @returns GetBigQueryExportRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.BulkMuteFindingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GetBigQueryExportRequest; /** - * Verifies a BulkMuteFindingsRequest message. + * Verifies a GetBigQueryExportRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BulkMuteFindingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBigQueryExportRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BulkMuteFindingsRequest + * @returns GetBigQueryExportRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.BulkMuteFindingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GetBigQueryExportRequest; /** - * Creates a plain object from a BulkMuteFindingsRequest message. Also converts values to other types if specified. - * @param message BulkMuteFindingsRequest + * Creates a plain object from a GetBigQueryExportRequest message. Also converts values to other types if specified. + * @param message GetBigQueryExportRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.BulkMuteFindingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.GetBigQueryExportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BulkMuteFindingsRequest to JSON. + * Converts this GetBigQueryExportRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BulkMuteFindingsRequest + * Gets the default type url for GetBigQueryExportRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BulkMuteFindingsResponse. */ - interface IBulkMuteFindingsResponse { + /** Properties of a GetMuteConfigRequest. */ + interface IGetMuteConfigRequest { + + /** GetMuteConfigRequest name */ + name?: (string|null); } - /** Represents a BulkMuteFindingsResponse. */ - class BulkMuteFindingsResponse implements IBulkMuteFindingsResponse { + /** Represents a GetMuteConfigRequest. */ + class GetMuteConfigRequest implements IGetMuteConfigRequest { /** - * Constructs a new BulkMuteFindingsResponse. + * Constructs a new GetMuteConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IBulkMuteFindingsResponse); + constructor(properties?: google.cloud.securitycenter.v1.IGetMuteConfigRequest); + + /** GetMuteConfigRequest name. */ + public name: string; /** - * Creates a new BulkMuteFindingsResponse instance using the specified properties. + * Creates a new GetMuteConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BulkMuteFindingsResponse instance + * @returns GetMuteConfigRequest instance */ - public static create(properties?: google.cloud.securitycenter.v1.IBulkMuteFindingsResponse): google.cloud.securitycenter.v1.BulkMuteFindingsResponse; + public static create(properties?: google.cloud.securitycenter.v1.IGetMuteConfigRequest): google.cloud.securitycenter.v1.GetMuteConfigRequest; /** - * Encodes the specified BulkMuteFindingsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.BulkMuteFindingsResponse.verify|verify} messages. - * @param message BulkMuteFindingsResponse message or plain object to encode + * Encodes the specified GetMuteConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetMuteConfigRequest.verify|verify} messages. + * @param message GetMuteConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IBulkMuteFindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IGetMuteConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BulkMuteFindingsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.BulkMuteFindingsResponse.verify|verify} messages. - * @param message BulkMuteFindingsResponse message or plain object to encode + * Encodes the specified GetMuteConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetMuteConfigRequest.verify|verify} messages. + * @param message GetMuteConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IBulkMuteFindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IGetMuteConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BulkMuteFindingsResponse message from the specified reader or buffer. + * Decodes a GetMuteConfigRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BulkMuteFindingsResponse + * @returns GetMuteConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.BulkMuteFindingsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GetMuteConfigRequest; /** - * Decodes a BulkMuteFindingsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetMuteConfigRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BulkMuteFindingsResponse + * @returns GetMuteConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.BulkMuteFindingsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GetMuteConfigRequest; /** - * Verifies a BulkMuteFindingsResponse message. + * Verifies a GetMuteConfigRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BulkMuteFindingsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetMuteConfigRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BulkMuteFindingsResponse + * @returns GetMuteConfigRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.BulkMuteFindingsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GetMuteConfigRequest; /** - * Creates a plain object from a BulkMuteFindingsResponse message. Also converts values to other types if specified. - * @param message BulkMuteFindingsResponse + * Creates a plain object from a GetMuteConfigRequest message. Also converts values to other types if specified. + * @param message GetMuteConfigRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.BulkMuteFindingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.GetMuteConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BulkMuteFindingsResponse to JSON. + * Converts this GetMuteConfigRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BulkMuteFindingsResponse + * Gets the default type url for GetMuteConfigRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateFindingRequest. */ - interface ICreateFindingRequest { - - /** CreateFindingRequest parent */ - parent?: (string|null); - - /** CreateFindingRequest findingId */ - findingId?: (string|null); + /** Properties of a GetNotificationConfigRequest. */ + interface IGetNotificationConfigRequest { - /** CreateFindingRequest finding */ - finding?: (google.cloud.securitycenter.v1.IFinding|null); + /** GetNotificationConfigRequest name */ + name?: (string|null); } - /** Represents a CreateFindingRequest. */ - class CreateFindingRequest implements ICreateFindingRequest { + /** Represents a GetNotificationConfigRequest. */ + class GetNotificationConfigRequest implements IGetNotificationConfigRequest { /** - * Constructs a new CreateFindingRequest. + * Constructs a new GetNotificationConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.ICreateFindingRequest); - - /** CreateFindingRequest parent. */ - public parent: string; - - /** CreateFindingRequest findingId. */ - public findingId: string; + constructor(properties?: google.cloud.securitycenter.v1.IGetNotificationConfigRequest); - /** CreateFindingRequest finding. */ - public finding?: (google.cloud.securitycenter.v1.IFinding|null); + /** GetNotificationConfigRequest name. */ + public name: string; /** - * Creates a new CreateFindingRequest instance using the specified properties. + * Creates a new GetNotificationConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFindingRequest instance + * @returns GetNotificationConfigRequest instance */ - public static create(properties?: google.cloud.securitycenter.v1.ICreateFindingRequest): google.cloud.securitycenter.v1.CreateFindingRequest; + public static create(properties?: google.cloud.securitycenter.v1.IGetNotificationConfigRequest): google.cloud.securitycenter.v1.GetNotificationConfigRequest; /** - * Encodes the specified CreateFindingRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateFindingRequest.verify|verify} messages. - * @param message CreateFindingRequest message or plain object to encode + * Encodes the specified GetNotificationConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetNotificationConfigRequest.verify|verify} messages. + * @param message GetNotificationConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.ICreateFindingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IGetNotificationConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFindingRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateFindingRequest.verify|verify} messages. - * @param message CreateFindingRequest message or plain object to encode + * Encodes the specified GetNotificationConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetNotificationConfigRequest.verify|verify} messages. + * @param message GetNotificationConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.ICreateFindingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IGetNotificationConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFindingRequest message from the specified reader or buffer. + * Decodes a GetNotificationConfigRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateFindingRequest + * @returns GetNotificationConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.CreateFindingRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GetNotificationConfigRequest; /** - * Decodes a CreateFindingRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNotificationConfigRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateFindingRequest + * @returns GetNotificationConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.CreateFindingRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GetNotificationConfigRequest; /** - * Verifies a CreateFindingRequest message. + * Verifies a GetNotificationConfigRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateFindingRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNotificationConfigRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateFindingRequest + * @returns GetNotificationConfigRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.CreateFindingRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GetNotificationConfigRequest; /** - * Creates a plain object from a CreateFindingRequest message. Also converts values to other types if specified. - * @param message CreateFindingRequest + * Creates a plain object from a GetNotificationConfigRequest message. Also converts values to other types if specified. + * @param message GetNotificationConfigRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.CreateFindingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.GetNotificationConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFindingRequest to JSON. + * Converts this GetNotificationConfigRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateFindingRequest + * Gets the default type url for GetNotificationConfigRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateMuteConfigRequest. */ - interface ICreateMuteConfigRequest { - - /** CreateMuteConfigRequest parent */ - parent?: (string|null); - - /** CreateMuteConfigRequest muteConfig */ - muteConfig?: (google.cloud.securitycenter.v1.IMuteConfig|null); + /** Properties of a GetOrganizationSettingsRequest. */ + interface IGetOrganizationSettingsRequest { - /** CreateMuteConfigRequest muteConfigId */ - muteConfigId?: (string|null); + /** GetOrganizationSettingsRequest name */ + name?: (string|null); } - /** Represents a CreateMuteConfigRequest. */ - class CreateMuteConfigRequest implements ICreateMuteConfigRequest { + /** Represents a GetOrganizationSettingsRequest. */ + class GetOrganizationSettingsRequest implements IGetOrganizationSettingsRequest { /** - * Constructs a new CreateMuteConfigRequest. + * Constructs a new GetOrganizationSettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.ICreateMuteConfigRequest); - - /** CreateMuteConfigRequest parent. */ - public parent: string; - - /** CreateMuteConfigRequest muteConfig. */ - public muteConfig?: (google.cloud.securitycenter.v1.IMuteConfig|null); + constructor(properties?: google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest); - /** CreateMuteConfigRequest muteConfigId. */ - public muteConfigId: string; + /** GetOrganizationSettingsRequest name. */ + public name: string; /** - * Creates a new CreateMuteConfigRequest instance using the specified properties. + * Creates a new GetOrganizationSettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateMuteConfigRequest instance + * @returns GetOrganizationSettingsRequest instance */ - public static create(properties?: google.cloud.securitycenter.v1.ICreateMuteConfigRequest): google.cloud.securitycenter.v1.CreateMuteConfigRequest; + public static create(properties?: google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest): google.cloud.securitycenter.v1.GetOrganizationSettingsRequest; /** - * Encodes the specified CreateMuteConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateMuteConfigRequest.verify|verify} messages. - * @param message CreateMuteConfigRequest message or plain object to encode + * Encodes the specified GetOrganizationSettingsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.verify|verify} messages. + * @param message GetOrganizationSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.ICreateMuteConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateMuteConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateMuteConfigRequest.verify|verify} messages. - * @param message CreateMuteConfigRequest message or plain object to encode + * Encodes the specified GetOrganizationSettingsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.verify|verify} messages. + * @param message GetOrganizationSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.ICreateMuteConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateMuteConfigRequest message from the specified reader or buffer. + * Decodes a GetOrganizationSettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateMuteConfigRequest + * @returns GetOrganizationSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.CreateMuteConfigRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GetOrganizationSettingsRequest; /** - * Decodes a CreateMuteConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a GetOrganizationSettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateMuteConfigRequest + * @returns GetOrganizationSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.CreateMuteConfigRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GetOrganizationSettingsRequest; /** - * Verifies a CreateMuteConfigRequest message. + * Verifies a GetOrganizationSettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateMuteConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetOrganizationSettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateMuteConfigRequest + * @returns GetOrganizationSettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.CreateMuteConfigRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GetOrganizationSettingsRequest; /** - * Creates a plain object from a CreateMuteConfigRequest message. Also converts values to other types if specified. - * @param message CreateMuteConfigRequest + * Creates a plain object from a GetOrganizationSettingsRequest message. Also converts values to other types if specified. + * @param message GetOrganizationSettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.CreateMuteConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateMuteConfigRequest to JSON. + * Converts this GetOrganizationSettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateMuteConfigRequest + * Gets the default type url for GetOrganizationSettingsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateNotificationConfigRequest. */ - interface ICreateNotificationConfigRequest { - - /** CreateNotificationConfigRequest parent */ - parent?: (string|null); - - /** CreateNotificationConfigRequest configId */ - configId?: (string|null); + /** Properties of a GetEffectiveSecurityHealthAnalyticsCustomModuleRequest. */ + interface IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest { - /** CreateNotificationConfigRequest notificationConfig */ - notificationConfig?: (google.cloud.securitycenter.v1.INotificationConfig|null); + /** GetEffectiveSecurityHealthAnalyticsCustomModuleRequest name */ + name?: (string|null); } - /** Represents a CreateNotificationConfigRequest. */ - class CreateNotificationConfigRequest implements ICreateNotificationConfigRequest { + /** Represents a GetEffectiveSecurityHealthAnalyticsCustomModuleRequest. */ + class GetEffectiveSecurityHealthAnalyticsCustomModuleRequest implements IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest { /** - * Constructs a new CreateNotificationConfigRequest. + * Constructs a new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.ICreateNotificationConfigRequest); - - /** CreateNotificationConfigRequest parent. */ - public parent: string; - - /** CreateNotificationConfigRequest configId. */ - public configId: string; + constructor(properties?: google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest); - /** CreateNotificationConfigRequest notificationConfig. */ - public notificationConfig?: (google.cloud.securitycenter.v1.INotificationConfig|null); + /** GetEffectiveSecurityHealthAnalyticsCustomModuleRequest name. */ + public name: string; /** - * Creates a new CreateNotificationConfigRequest instance using the specified properties. + * Creates a new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateNotificationConfigRequest instance + * @returns GetEffectiveSecurityHealthAnalyticsCustomModuleRequest instance */ - public static create(properties?: google.cloud.securitycenter.v1.ICreateNotificationConfigRequest): google.cloud.securitycenter.v1.CreateNotificationConfigRequest; + public static create(properties?: google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest): google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest; /** - * Encodes the specified CreateNotificationConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateNotificationConfigRequest.verify|verify} messages. - * @param message CreateNotificationConfigRequest message or plain object to encode + * Encodes the specified GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. + * @param message GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.ICreateNotificationConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateNotificationConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateNotificationConfigRequest.verify|verify} messages. - * @param message CreateNotificationConfigRequest message or plain object to encode + * Encodes the specified GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. + * @param message GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.ICreateNotificationConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateNotificationConfigRequest message from the specified reader or buffer. + * Decodes a GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateNotificationConfigRequest + * @returns GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.CreateNotificationConfigRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest; /** - * Decodes a CreateNotificationConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateNotificationConfigRequest + * @returns GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.CreateNotificationConfigRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest; /** - * Verifies a CreateNotificationConfigRequest message. + * Verifies a GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateNotificationConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateNotificationConfigRequest + * @returns GetEffectiveSecurityHealthAnalyticsCustomModuleRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.CreateNotificationConfigRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest; /** - * Creates a plain object from a CreateNotificationConfigRequest message. Also converts values to other types if specified. - * @param message CreateNotificationConfigRequest + * Creates a plain object from a GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message. Also converts values to other types if specified. + * @param message GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.CreateNotificationConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateNotificationConfigRequest to JSON. + * Converts this GetEffectiveSecurityHealthAnalyticsCustomModuleRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateNotificationConfigRequest + * Gets the default type url for GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateSourceRequest. */ - interface ICreateSourceRequest { - - /** CreateSourceRequest parent */ - parent?: (string|null); + /** Properties of a GetSecurityHealthAnalyticsCustomModuleRequest. */ + interface IGetSecurityHealthAnalyticsCustomModuleRequest { - /** CreateSourceRequest source */ - source?: (google.cloud.securitycenter.v1.ISource|null); + /** GetSecurityHealthAnalyticsCustomModuleRequest name */ + name?: (string|null); } - /** Represents a CreateSourceRequest. */ - class CreateSourceRequest implements ICreateSourceRequest { + /** Represents a GetSecurityHealthAnalyticsCustomModuleRequest. */ + class GetSecurityHealthAnalyticsCustomModuleRequest implements IGetSecurityHealthAnalyticsCustomModuleRequest { /** - * Constructs a new CreateSourceRequest. + * Constructs a new GetSecurityHealthAnalyticsCustomModuleRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.ICreateSourceRequest); - - /** CreateSourceRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest); - /** CreateSourceRequest source. */ - public source?: (google.cloud.securitycenter.v1.ISource|null); + /** GetSecurityHealthAnalyticsCustomModuleRequest name. */ + public name: string; /** - * Creates a new CreateSourceRequest instance using the specified properties. + * Creates a new GetSecurityHealthAnalyticsCustomModuleRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateSourceRequest instance + * @returns GetSecurityHealthAnalyticsCustomModuleRequest instance */ - public static create(properties?: google.cloud.securitycenter.v1.ICreateSourceRequest): google.cloud.securitycenter.v1.CreateSourceRequest; + public static create(properties?: google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest): google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest; /** - * Encodes the specified CreateSourceRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateSourceRequest.verify|verify} messages. - * @param message CreateSourceRequest message or plain object to encode + * Encodes the specified GetSecurityHealthAnalyticsCustomModuleRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. + * @param message GetSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.ICreateSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateSourceRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateSourceRequest.verify|verify} messages. - * @param message CreateSourceRequest message or plain object to encode + * Encodes the specified GetSecurityHealthAnalyticsCustomModuleRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. + * @param message GetSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.ICreateSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateSourceRequest message from the specified reader or buffer. + * Decodes a GetSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateSourceRequest + * @returns GetSecurityHealthAnalyticsCustomModuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.CreateSourceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest; /** - * Decodes a CreateSourceRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateSourceRequest + * @returns GetSecurityHealthAnalyticsCustomModuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.CreateSourceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest; /** - * Verifies a CreateSourceRequest message. + * Verifies a GetSecurityHealthAnalyticsCustomModuleRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateSourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSecurityHealthAnalyticsCustomModuleRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateSourceRequest + * @returns GetSecurityHealthAnalyticsCustomModuleRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.CreateSourceRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest; /** - * Creates a plain object from a CreateSourceRequest message. Also converts values to other types if specified. - * @param message CreateSourceRequest + * Creates a plain object from a GetSecurityHealthAnalyticsCustomModuleRequest message. Also converts values to other types if specified. + * @param message GetSecurityHealthAnalyticsCustomModuleRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.CreateSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateSourceRequest to JSON. + * Converts this GetSecurityHealthAnalyticsCustomModuleRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateSourceRequest + * Gets the default type url for GetSecurityHealthAnalyticsCustomModuleRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteMuteConfigRequest. */ - interface IDeleteMuteConfigRequest { + /** Properties of a GetSourceRequest. */ + interface IGetSourceRequest { - /** DeleteMuteConfigRequest name */ + /** GetSourceRequest name */ name?: (string|null); } - /** Represents a DeleteMuteConfigRequest. */ - class DeleteMuteConfigRequest implements IDeleteMuteConfigRequest { + /** Represents a GetSourceRequest. */ + class GetSourceRequest implements IGetSourceRequest { /** - * Constructs a new DeleteMuteConfigRequest. + * Constructs a new GetSourceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IDeleteMuteConfigRequest); + constructor(properties?: google.cloud.securitycenter.v1.IGetSourceRequest); - /** DeleteMuteConfigRequest name. */ + /** GetSourceRequest name. */ public name: string; /** - * Creates a new DeleteMuteConfigRequest instance using the specified properties. + * Creates a new GetSourceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteMuteConfigRequest instance + * @returns GetSourceRequest instance */ - public static create(properties?: google.cloud.securitycenter.v1.IDeleteMuteConfigRequest): google.cloud.securitycenter.v1.DeleteMuteConfigRequest; + public static create(properties?: google.cloud.securitycenter.v1.IGetSourceRequest): google.cloud.securitycenter.v1.GetSourceRequest; /** - * Encodes the specified DeleteMuteConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteMuteConfigRequest.verify|verify} messages. - * @param message DeleteMuteConfigRequest message or plain object to encode + * Encodes the specified GetSourceRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetSourceRequest.verify|verify} messages. + * @param message GetSourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IDeleteMuteConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IGetSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteMuteConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteMuteConfigRequest.verify|verify} messages. - * @param message DeleteMuteConfigRequest message or plain object to encode + * Encodes the specified GetSourceRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetSourceRequest.verify|verify} messages. + * @param message GetSourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IDeleteMuteConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IGetSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteMuteConfigRequest message from the specified reader or buffer. + * Decodes a GetSourceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteMuteConfigRequest + * @returns GetSourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.DeleteMuteConfigRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GetSourceRequest; /** - * Decodes a DeleteMuteConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSourceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteMuteConfigRequest + * @returns GetSourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.DeleteMuteConfigRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GetSourceRequest; /** - * Verifies a DeleteMuteConfigRequest message. + * Verifies a GetSourceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteMuteConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSourceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteMuteConfigRequest + * @returns GetSourceRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.DeleteMuteConfigRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GetSourceRequest; /** - * Creates a plain object from a DeleteMuteConfigRequest message. Also converts values to other types if specified. - * @param message DeleteMuteConfigRequest + * Creates a plain object from a GetSourceRequest message. Also converts values to other types if specified. + * @param message GetSourceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.DeleteMuteConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.GetSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteMuteConfigRequest to JSON. + * Converts this GetSourceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteMuteConfigRequest + * Gets the default type url for GetSourceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteNotificationConfigRequest. */ - interface IDeleteNotificationConfigRequest { + /** Properties of a GroupAssetsRequest. */ + interface IGroupAssetsRequest { - /** DeleteNotificationConfigRequest name */ - name?: (string|null); + /** GroupAssetsRequest parent */ + parent?: (string|null); + + /** GroupAssetsRequest filter */ + filter?: (string|null); + + /** GroupAssetsRequest groupBy */ + groupBy?: (string|null); + + /** GroupAssetsRequest compareDuration */ + compareDuration?: (google.protobuf.IDuration|null); + + /** GroupAssetsRequest readTime */ + readTime?: (google.protobuf.ITimestamp|null); + + /** GroupAssetsRequest pageToken */ + pageToken?: (string|null); + + /** GroupAssetsRequest pageSize */ + pageSize?: (number|null); } - /** Represents a DeleteNotificationConfigRequest. */ - class DeleteNotificationConfigRequest implements IDeleteNotificationConfigRequest { + /** Represents a GroupAssetsRequest. */ + class GroupAssetsRequest implements IGroupAssetsRequest { /** - * Constructs a new DeleteNotificationConfigRequest. + * Constructs a new GroupAssetsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest); + constructor(properties?: google.cloud.securitycenter.v1.IGroupAssetsRequest); - /** DeleteNotificationConfigRequest name. */ - public name: string; + /** GroupAssetsRequest parent. */ + public parent: string; + + /** GroupAssetsRequest filter. */ + public filter: string; + + /** GroupAssetsRequest groupBy. */ + public groupBy: string; + + /** GroupAssetsRequest compareDuration. */ + public compareDuration?: (google.protobuf.IDuration|null); + + /** GroupAssetsRequest readTime. */ + public readTime?: (google.protobuf.ITimestamp|null); + + /** GroupAssetsRequest pageToken. */ + public pageToken: string; + + /** GroupAssetsRequest pageSize. */ + public pageSize: number; /** - * Creates a new DeleteNotificationConfigRequest instance using the specified properties. + * Creates a new GroupAssetsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteNotificationConfigRequest instance + * @returns GroupAssetsRequest instance */ - public static create(properties?: google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest): google.cloud.securitycenter.v1.DeleteNotificationConfigRequest; + public static create(properties?: google.cloud.securitycenter.v1.IGroupAssetsRequest): google.cloud.securitycenter.v1.GroupAssetsRequest; /** - * Encodes the specified DeleteNotificationConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.verify|verify} messages. - * @param message DeleteNotificationConfigRequest message or plain object to encode + * Encodes the specified GroupAssetsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupAssetsRequest.verify|verify} messages. + * @param message GroupAssetsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IGroupAssetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteNotificationConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.verify|verify} messages. - * @param message DeleteNotificationConfigRequest message or plain object to encode + * Encodes the specified GroupAssetsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupAssetsRequest.verify|verify} messages. + * @param message GroupAssetsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IGroupAssetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteNotificationConfigRequest message from the specified reader or buffer. + * Decodes a GroupAssetsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteNotificationConfigRequest + * @returns GroupAssetsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.DeleteNotificationConfigRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GroupAssetsRequest; /** - * Decodes a DeleteNotificationConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a GroupAssetsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteNotificationConfigRequest + * @returns GroupAssetsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.DeleteNotificationConfigRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GroupAssetsRequest; /** - * Verifies a DeleteNotificationConfigRequest message. + * Verifies a GroupAssetsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteNotificationConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GroupAssetsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteNotificationConfigRequest + * @returns GroupAssetsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.DeleteNotificationConfigRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GroupAssetsRequest; /** - * Creates a plain object from a DeleteNotificationConfigRequest message. Also converts values to other types if specified. - * @param message DeleteNotificationConfigRequest + * Creates a plain object from a GroupAssetsRequest message. Also converts values to other types if specified. + * @param message GroupAssetsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.DeleteNotificationConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.GroupAssetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteNotificationConfigRequest to JSON. + * Converts this GroupAssetsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteNotificationConfigRequest + * Gets the default type url for GroupAssetsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetBigQueryExportRequest. */ - interface IGetBigQueryExportRequest { + /** Properties of a GroupAssetsResponse. */ + interface IGroupAssetsResponse { - /** GetBigQueryExportRequest name */ - name?: (string|null); + /** GroupAssetsResponse groupByResults */ + groupByResults?: (google.cloud.securitycenter.v1.IGroupResult[]|null); + + /** GroupAssetsResponse readTime */ + readTime?: (google.protobuf.ITimestamp|null); + + /** GroupAssetsResponse nextPageToken */ + nextPageToken?: (string|null); + + /** GroupAssetsResponse totalSize */ + totalSize?: (number|null); } - /** Represents a GetBigQueryExportRequest. */ - class GetBigQueryExportRequest implements IGetBigQueryExportRequest { + /** Represents a GroupAssetsResponse. */ + class GroupAssetsResponse implements IGroupAssetsResponse { /** - * Constructs a new GetBigQueryExportRequest. + * Constructs a new GroupAssetsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IGetBigQueryExportRequest); + constructor(properties?: google.cloud.securitycenter.v1.IGroupAssetsResponse); - /** GetBigQueryExportRequest name. */ - public name: string; + /** GroupAssetsResponse groupByResults. */ + public groupByResults: google.cloud.securitycenter.v1.IGroupResult[]; + + /** GroupAssetsResponse readTime. */ + public readTime?: (google.protobuf.ITimestamp|null); + + /** GroupAssetsResponse nextPageToken. */ + public nextPageToken: string; + + /** GroupAssetsResponse totalSize. */ + public totalSize: number; /** - * Creates a new GetBigQueryExportRequest instance using the specified properties. + * Creates a new GroupAssetsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetBigQueryExportRequest instance + * @returns GroupAssetsResponse instance */ - public static create(properties?: google.cloud.securitycenter.v1.IGetBigQueryExportRequest): google.cloud.securitycenter.v1.GetBigQueryExportRequest; + public static create(properties?: google.cloud.securitycenter.v1.IGroupAssetsResponse): google.cloud.securitycenter.v1.GroupAssetsResponse; /** - * Encodes the specified GetBigQueryExportRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetBigQueryExportRequest.verify|verify} messages. - * @param message GetBigQueryExportRequest message or plain object to encode + * Encodes the specified GroupAssetsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupAssetsResponse.verify|verify} messages. + * @param message GroupAssetsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IGetBigQueryExportRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IGroupAssetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetBigQueryExportRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetBigQueryExportRequest.verify|verify} messages. - * @param message GetBigQueryExportRequest message or plain object to encode + * Encodes the specified GroupAssetsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupAssetsResponse.verify|verify} messages. + * @param message GroupAssetsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IGetBigQueryExportRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IGroupAssetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetBigQueryExportRequest message from the specified reader or buffer. + * Decodes a GroupAssetsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetBigQueryExportRequest + * @returns GroupAssetsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GetBigQueryExportRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GroupAssetsResponse; /** - * Decodes a GetBigQueryExportRequest message from the specified reader or buffer, length delimited. + * Decodes a GroupAssetsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetBigQueryExportRequest + * @returns GroupAssetsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GetBigQueryExportRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GroupAssetsResponse; /** - * Verifies a GetBigQueryExportRequest message. + * Verifies a GroupAssetsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetBigQueryExportRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GroupAssetsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetBigQueryExportRequest + * @returns GroupAssetsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GetBigQueryExportRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GroupAssetsResponse; /** - * Creates a plain object from a GetBigQueryExportRequest message. Also converts values to other types if specified. - * @param message GetBigQueryExportRequest + * Creates a plain object from a GroupAssetsResponse message. Also converts values to other types if specified. + * @param message GroupAssetsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.GetBigQueryExportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.GroupAssetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetBigQueryExportRequest to JSON. + * Converts this GroupAssetsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetBigQueryExportRequest + * Gets the default type url for GroupAssetsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetMuteConfigRequest. */ - interface IGetMuteConfigRequest { + /** Properties of a GroupFindingsRequest. */ + interface IGroupFindingsRequest { - /** GetMuteConfigRequest name */ - name?: (string|null); + /** GroupFindingsRequest parent */ + parent?: (string|null); + + /** GroupFindingsRequest filter */ + filter?: (string|null); + + /** GroupFindingsRequest groupBy */ + groupBy?: (string|null); + + /** GroupFindingsRequest readTime */ + readTime?: (google.protobuf.ITimestamp|null); + + /** GroupFindingsRequest compareDuration */ + compareDuration?: (google.protobuf.IDuration|null); + + /** GroupFindingsRequest pageToken */ + pageToken?: (string|null); + + /** GroupFindingsRequest pageSize */ + pageSize?: (number|null); } - /** Represents a GetMuteConfigRequest. */ - class GetMuteConfigRequest implements IGetMuteConfigRequest { + /** Represents a GroupFindingsRequest. */ + class GroupFindingsRequest implements IGroupFindingsRequest { /** - * Constructs a new GetMuteConfigRequest. + * Constructs a new GroupFindingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IGetMuteConfigRequest); + constructor(properties?: google.cloud.securitycenter.v1.IGroupFindingsRequest); - /** GetMuteConfigRequest name. */ - public name: string; + /** GroupFindingsRequest parent. */ + public parent: string; + + /** GroupFindingsRequest filter. */ + public filter: string; + + /** GroupFindingsRequest groupBy. */ + public groupBy: string; + + /** GroupFindingsRequest readTime. */ + public readTime?: (google.protobuf.ITimestamp|null); + + /** GroupFindingsRequest compareDuration. */ + public compareDuration?: (google.protobuf.IDuration|null); + + /** GroupFindingsRequest pageToken. */ + public pageToken: string; + + /** GroupFindingsRequest pageSize. */ + public pageSize: number; /** - * Creates a new GetMuteConfigRequest instance using the specified properties. + * Creates a new GroupFindingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetMuteConfigRequest instance + * @returns GroupFindingsRequest instance */ - public static create(properties?: google.cloud.securitycenter.v1.IGetMuteConfigRequest): google.cloud.securitycenter.v1.GetMuteConfigRequest; + public static create(properties?: google.cloud.securitycenter.v1.IGroupFindingsRequest): google.cloud.securitycenter.v1.GroupFindingsRequest; /** - * Encodes the specified GetMuteConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetMuteConfigRequest.verify|verify} messages. - * @param message GetMuteConfigRequest message or plain object to encode + * Encodes the specified GroupFindingsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupFindingsRequest.verify|verify} messages. + * @param message GroupFindingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IGetMuteConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IGroupFindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetMuteConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetMuteConfigRequest.verify|verify} messages. - * @param message GetMuteConfigRequest message or plain object to encode + * Encodes the specified GroupFindingsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupFindingsRequest.verify|verify} messages. + * @param message GroupFindingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IGetMuteConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IGroupFindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetMuteConfigRequest message from the specified reader or buffer. + * Decodes a GroupFindingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetMuteConfigRequest + * @returns GroupFindingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GetMuteConfigRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GroupFindingsRequest; /** - * Decodes a GetMuteConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a GroupFindingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetMuteConfigRequest + * @returns GroupFindingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GetMuteConfigRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GroupFindingsRequest; /** - * Verifies a GetMuteConfigRequest message. + * Verifies a GroupFindingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetMuteConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GroupFindingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetMuteConfigRequest + * @returns GroupFindingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GetMuteConfigRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GroupFindingsRequest; /** - * Creates a plain object from a GetMuteConfigRequest message. Also converts values to other types if specified. - * @param message GetMuteConfigRequest + * Creates a plain object from a GroupFindingsRequest message. Also converts values to other types if specified. + * @param message GroupFindingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.GetMuteConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.GroupFindingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetMuteConfigRequest to JSON. + * Converts this GroupFindingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetMuteConfigRequest + * Gets the default type url for GroupFindingsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetNotificationConfigRequest. */ - interface IGetNotificationConfigRequest { + /** Properties of a GroupFindingsResponse. */ + interface IGroupFindingsResponse { - /** GetNotificationConfigRequest name */ - name?: (string|null); + /** GroupFindingsResponse groupByResults */ + groupByResults?: (google.cloud.securitycenter.v1.IGroupResult[]|null); + + /** GroupFindingsResponse readTime */ + readTime?: (google.protobuf.ITimestamp|null); + + /** GroupFindingsResponse nextPageToken */ + nextPageToken?: (string|null); + + /** GroupFindingsResponse totalSize */ + totalSize?: (number|null); } - /** Represents a GetNotificationConfigRequest. */ - class GetNotificationConfigRequest implements IGetNotificationConfigRequest { + /** Represents a GroupFindingsResponse. */ + class GroupFindingsResponse implements IGroupFindingsResponse { /** - * Constructs a new GetNotificationConfigRequest. + * Constructs a new GroupFindingsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IGetNotificationConfigRequest); + constructor(properties?: google.cloud.securitycenter.v1.IGroupFindingsResponse); - /** GetNotificationConfigRequest name. */ - public name: string; + /** GroupFindingsResponse groupByResults. */ + public groupByResults: google.cloud.securitycenter.v1.IGroupResult[]; + + /** GroupFindingsResponse readTime. */ + public readTime?: (google.protobuf.ITimestamp|null); + + /** GroupFindingsResponse nextPageToken. */ + public nextPageToken: string; + + /** GroupFindingsResponse totalSize. */ + public totalSize: number; /** - * Creates a new GetNotificationConfigRequest instance using the specified properties. + * Creates a new GroupFindingsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetNotificationConfigRequest instance + * @returns GroupFindingsResponse instance */ - public static create(properties?: google.cloud.securitycenter.v1.IGetNotificationConfigRequest): google.cloud.securitycenter.v1.GetNotificationConfigRequest; + public static create(properties?: google.cloud.securitycenter.v1.IGroupFindingsResponse): google.cloud.securitycenter.v1.GroupFindingsResponse; /** - * Encodes the specified GetNotificationConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetNotificationConfigRequest.verify|verify} messages. - * @param message GetNotificationConfigRequest message or plain object to encode + * Encodes the specified GroupFindingsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupFindingsResponse.verify|verify} messages. + * @param message GroupFindingsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IGetNotificationConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IGroupFindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetNotificationConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetNotificationConfigRequest.verify|verify} messages. - * @param message GetNotificationConfigRequest message or plain object to encode + * Encodes the specified GroupFindingsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupFindingsResponse.verify|verify} messages. + * @param message GroupFindingsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IGetNotificationConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IGroupFindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetNotificationConfigRequest message from the specified reader or buffer. + * Decodes a GroupFindingsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetNotificationConfigRequest + * @returns GroupFindingsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GetNotificationConfigRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GroupFindingsResponse; /** - * Decodes a GetNotificationConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a GroupFindingsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetNotificationConfigRequest + * @returns GroupFindingsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GetNotificationConfigRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GroupFindingsResponse; /** - * Verifies a GetNotificationConfigRequest message. + * Verifies a GroupFindingsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetNotificationConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GroupFindingsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetNotificationConfigRequest + * @returns GroupFindingsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GetNotificationConfigRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GroupFindingsResponse; /** - * Creates a plain object from a GetNotificationConfigRequest message. Also converts values to other types if specified. - * @param message GetNotificationConfigRequest + * Creates a plain object from a GroupFindingsResponse message. Also converts values to other types if specified. + * @param message GroupFindingsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.GetNotificationConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.GroupFindingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetNotificationConfigRequest to JSON. + * Converts this GroupFindingsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetNotificationConfigRequest + * Gets the default type url for GroupFindingsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetOrganizationSettingsRequest. */ - interface IGetOrganizationSettingsRequest { + /** Properties of a GroupResult. */ + interface IGroupResult { - /** GetOrganizationSettingsRequest name */ - name?: (string|null); + /** GroupResult properties */ + properties?: ({ [k: string]: google.protobuf.IValue }|null); + + /** GroupResult count */ + count?: (number|Long|string|null); } - /** Represents a GetOrganizationSettingsRequest. */ - class GetOrganizationSettingsRequest implements IGetOrganizationSettingsRequest { + /** Represents a GroupResult. */ + class GroupResult implements IGroupResult { /** - * Constructs a new GetOrganizationSettingsRequest. + * Constructs a new GroupResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest); + constructor(properties?: google.cloud.securitycenter.v1.IGroupResult); - /** GetOrganizationSettingsRequest name. */ - public name: string; + /** GroupResult properties. */ + public properties: { [k: string]: google.protobuf.IValue }; + + /** GroupResult count. */ + public count: (number|Long|string); /** - * Creates a new GetOrganizationSettingsRequest instance using the specified properties. + * Creates a new GroupResult instance using the specified properties. * @param [properties] Properties to set - * @returns GetOrganizationSettingsRequest instance + * @returns GroupResult instance */ - public static create(properties?: google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest): google.cloud.securitycenter.v1.GetOrganizationSettingsRequest; + public static create(properties?: google.cloud.securitycenter.v1.IGroupResult): google.cloud.securitycenter.v1.GroupResult; /** - * Encodes the specified GetOrganizationSettingsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.verify|verify} messages. - * @param message GetOrganizationSettingsRequest message or plain object to encode + * Encodes the specified GroupResult message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupResult.verify|verify} messages. + * @param message GroupResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IGroupResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetOrganizationSettingsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.verify|verify} messages. - * @param message GetOrganizationSettingsRequest message or plain object to encode + * Encodes the specified GroupResult message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupResult.verify|verify} messages. + * @param message GroupResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IGroupResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetOrganizationSettingsRequest message from the specified reader or buffer. + * Decodes a GroupResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetOrganizationSettingsRequest + * @returns GroupResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GetOrganizationSettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GroupResult; /** - * Decodes a GetOrganizationSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a GroupResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetOrganizationSettingsRequest + * @returns GroupResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GetOrganizationSettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GroupResult; /** - * Verifies a GetOrganizationSettingsRequest message. + * Verifies a GroupResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetOrganizationSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GroupResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetOrganizationSettingsRequest + * @returns GroupResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GetOrganizationSettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GroupResult; /** - * Creates a plain object from a GetOrganizationSettingsRequest message. Also converts values to other types if specified. - * @param message GetOrganizationSettingsRequest + * Creates a plain object from a GroupResult message. Also converts values to other types if specified. + * @param message GroupResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.GroupResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetOrganizationSettingsRequest to JSON. + * Converts this GroupResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetOrganizationSettingsRequest + * Gets the default type url for GroupResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetSourceRequest. */ - interface IGetSourceRequest { + /** Properties of a ListDescendantSecurityHealthAnalyticsCustomModulesRequest. */ + interface IListDescendantSecurityHealthAnalyticsCustomModulesRequest { - /** GetSourceRequest name */ - name?: (string|null); + /** ListDescendantSecurityHealthAnalyticsCustomModulesRequest parent */ + parent?: (string|null); + + /** ListDescendantSecurityHealthAnalyticsCustomModulesRequest pageSize */ + pageSize?: (number|null); + + /** ListDescendantSecurityHealthAnalyticsCustomModulesRequest pageToken */ + pageToken?: (string|null); } - /** Represents a GetSourceRequest. */ - class GetSourceRequest implements IGetSourceRequest { + /** Represents a ListDescendantSecurityHealthAnalyticsCustomModulesRequest. */ + class ListDescendantSecurityHealthAnalyticsCustomModulesRequest implements IListDescendantSecurityHealthAnalyticsCustomModulesRequest { /** - * Constructs a new GetSourceRequest. + * Constructs a new ListDescendantSecurityHealthAnalyticsCustomModulesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IGetSourceRequest); + constructor(properties?: google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest); - /** GetSourceRequest name. */ - public name: string; + /** ListDescendantSecurityHealthAnalyticsCustomModulesRequest parent. */ + public parent: string; + + /** ListDescendantSecurityHealthAnalyticsCustomModulesRequest pageSize. */ + public pageSize: number; + + /** ListDescendantSecurityHealthAnalyticsCustomModulesRequest pageToken. */ + public pageToken: string; /** - * Creates a new GetSourceRequest instance using the specified properties. + * Creates a new ListDescendantSecurityHealthAnalyticsCustomModulesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetSourceRequest instance + * @returns ListDescendantSecurityHealthAnalyticsCustomModulesRequest instance */ - public static create(properties?: google.cloud.securitycenter.v1.IGetSourceRequest): google.cloud.securitycenter.v1.GetSourceRequest; + public static create(properties?: google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest): google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest; /** - * Encodes the specified GetSourceRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetSourceRequest.verify|verify} messages. - * @param message GetSourceRequest message or plain object to encode + * Encodes the specified ListDescendantSecurityHealthAnalyticsCustomModulesRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.verify|verify} messages. + * @param message ListDescendantSecurityHealthAnalyticsCustomModulesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IGetSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSourceRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetSourceRequest.verify|verify} messages. - * @param message GetSourceRequest message or plain object to encode + * Encodes the specified ListDescendantSecurityHealthAnalyticsCustomModulesRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.verify|verify} messages. + * @param message ListDescendantSecurityHealthAnalyticsCustomModulesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IGetSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSourceRequest message from the specified reader or buffer. + * Decodes a ListDescendantSecurityHealthAnalyticsCustomModulesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSourceRequest + * @returns ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GetSourceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest; /** - * Decodes a GetSourceRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDescendantSecurityHealthAnalyticsCustomModulesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSourceRequest + * @returns ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GetSourceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest; /** - * Verifies a GetSourceRequest message. + * Verifies a ListDescendantSecurityHealthAnalyticsCustomModulesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetSourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDescendantSecurityHealthAnalyticsCustomModulesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSourceRequest + * @returns ListDescendantSecurityHealthAnalyticsCustomModulesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GetSourceRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest; /** - * Creates a plain object from a GetSourceRequest message. Also converts values to other types if specified. - * @param message GetSourceRequest + * Creates a plain object from a ListDescendantSecurityHealthAnalyticsCustomModulesRequest message. Also converts values to other types if specified. + * @param message ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.GetSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSourceRequest to JSON. + * Converts this ListDescendantSecurityHealthAnalyticsCustomModulesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSourceRequest + * Gets the default type url for ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GroupAssetsRequest. */ - interface IGroupAssetsRequest { - - /** GroupAssetsRequest parent */ - parent?: (string|null); - - /** GroupAssetsRequest filter */ - filter?: (string|null); - - /** GroupAssetsRequest groupBy */ - groupBy?: (string|null); - - /** GroupAssetsRequest compareDuration */ - compareDuration?: (google.protobuf.IDuration|null); - - /** GroupAssetsRequest readTime */ - readTime?: (google.protobuf.ITimestamp|null); + /** Properties of a ListDescendantSecurityHealthAnalyticsCustomModulesResponse. */ + interface IListDescendantSecurityHealthAnalyticsCustomModulesResponse { - /** GroupAssetsRequest pageToken */ - pageToken?: (string|null); + /** ListDescendantSecurityHealthAnalyticsCustomModulesResponse securityHealthAnalyticsCustomModules */ + securityHealthAnalyticsCustomModules?: (google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule[]|null); - /** GroupAssetsRequest pageSize */ - pageSize?: (number|null); + /** ListDescendantSecurityHealthAnalyticsCustomModulesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GroupAssetsRequest. */ - class GroupAssetsRequest implements IGroupAssetsRequest { + /** Represents a ListDescendantSecurityHealthAnalyticsCustomModulesResponse. */ + class ListDescendantSecurityHealthAnalyticsCustomModulesResponse implements IListDescendantSecurityHealthAnalyticsCustomModulesResponse { /** - * Constructs a new GroupAssetsRequest. + * Constructs a new ListDescendantSecurityHealthAnalyticsCustomModulesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IGroupAssetsRequest); - - /** GroupAssetsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesResponse); - /** GroupAssetsRequest filter. */ - public filter: string; - - /** GroupAssetsRequest groupBy. */ - public groupBy: string; - - /** GroupAssetsRequest compareDuration. */ - public compareDuration?: (google.protobuf.IDuration|null); + /** ListDescendantSecurityHealthAnalyticsCustomModulesResponse securityHealthAnalyticsCustomModules. */ + public securityHealthAnalyticsCustomModules: google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule[]; - /** GroupAssetsRequest readTime. */ - public readTime?: (google.protobuf.ITimestamp|null); - - /** GroupAssetsRequest pageToken. */ - public pageToken: string; - - /** GroupAssetsRequest pageSize. */ - public pageSize: number; + /** ListDescendantSecurityHealthAnalyticsCustomModulesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GroupAssetsRequest instance using the specified properties. + * Creates a new ListDescendantSecurityHealthAnalyticsCustomModulesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GroupAssetsRequest instance + * @returns ListDescendantSecurityHealthAnalyticsCustomModulesResponse instance */ - public static create(properties?: google.cloud.securitycenter.v1.IGroupAssetsRequest): google.cloud.securitycenter.v1.GroupAssetsRequest; + public static create(properties?: google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesResponse): google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse; /** - * Encodes the specified GroupAssetsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupAssetsRequest.verify|verify} messages. - * @param message GroupAssetsRequest message or plain object to encode + * Encodes the specified ListDescendantSecurityHealthAnalyticsCustomModulesResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.verify|verify} messages. + * @param message ListDescendantSecurityHealthAnalyticsCustomModulesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IGroupAssetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GroupAssetsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupAssetsRequest.verify|verify} messages. - * @param message GroupAssetsRequest message or plain object to encode + * Encodes the specified ListDescendantSecurityHealthAnalyticsCustomModulesResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.verify|verify} messages. + * @param message ListDescendantSecurityHealthAnalyticsCustomModulesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IGroupAssetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GroupAssetsRequest message from the specified reader or buffer. + * Decodes a ListDescendantSecurityHealthAnalyticsCustomModulesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GroupAssetsRequest + * @returns ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GroupAssetsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse; /** - * Decodes a GroupAssetsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDescendantSecurityHealthAnalyticsCustomModulesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GroupAssetsRequest + * @returns ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GroupAssetsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse; /** - * Verifies a GroupAssetsRequest message. + * Verifies a ListDescendantSecurityHealthAnalyticsCustomModulesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GroupAssetsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDescendantSecurityHealthAnalyticsCustomModulesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GroupAssetsRequest + * @returns ListDescendantSecurityHealthAnalyticsCustomModulesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GroupAssetsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse; /** - * Creates a plain object from a GroupAssetsRequest message. Also converts values to other types if specified. - * @param message GroupAssetsRequest + * Creates a plain object from a ListDescendantSecurityHealthAnalyticsCustomModulesResponse message. Also converts values to other types if specified. + * @param message ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.GroupAssetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GroupAssetsRequest to JSON. + * Converts this ListDescendantSecurityHealthAnalyticsCustomModulesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GroupAssetsRequest + * Gets the default type url for ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GroupAssetsResponse. */ - interface IGroupAssetsResponse { - - /** GroupAssetsResponse groupByResults */ - groupByResults?: (google.cloud.securitycenter.v1.IGroupResult[]|null); + /** Properties of a ListMuteConfigsRequest. */ + interface IListMuteConfigsRequest { - /** GroupAssetsResponse readTime */ - readTime?: (google.protobuf.ITimestamp|null); + /** ListMuteConfigsRequest parent */ + parent?: (string|null); - /** GroupAssetsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListMuteConfigsRequest pageSize */ + pageSize?: (number|null); - /** GroupAssetsResponse totalSize */ - totalSize?: (number|null); + /** ListMuteConfigsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a GroupAssetsResponse. */ - class GroupAssetsResponse implements IGroupAssetsResponse { + /** Represents a ListMuteConfigsRequest. */ + class ListMuteConfigsRequest implements IListMuteConfigsRequest { /** - * Constructs a new GroupAssetsResponse. + * Constructs a new ListMuteConfigsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IGroupAssetsResponse); - - /** GroupAssetsResponse groupByResults. */ - public groupByResults: google.cloud.securitycenter.v1.IGroupResult[]; + constructor(properties?: google.cloud.securitycenter.v1.IListMuteConfigsRequest); - /** GroupAssetsResponse readTime. */ - public readTime?: (google.protobuf.ITimestamp|null); + /** ListMuteConfigsRequest parent. */ + public parent: string; - /** GroupAssetsResponse nextPageToken. */ - public nextPageToken: string; + /** ListMuteConfigsRequest pageSize. */ + public pageSize: number; - /** GroupAssetsResponse totalSize. */ - public totalSize: number; + /** ListMuteConfigsRequest pageToken. */ + public pageToken: string; /** - * Creates a new GroupAssetsResponse instance using the specified properties. + * Creates a new ListMuteConfigsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GroupAssetsResponse instance + * @returns ListMuteConfigsRequest instance */ - public static create(properties?: google.cloud.securitycenter.v1.IGroupAssetsResponse): google.cloud.securitycenter.v1.GroupAssetsResponse; + public static create(properties?: google.cloud.securitycenter.v1.IListMuteConfigsRequest): google.cloud.securitycenter.v1.ListMuteConfigsRequest; /** - * Encodes the specified GroupAssetsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupAssetsResponse.verify|verify} messages. - * @param message GroupAssetsResponse message or plain object to encode + * Encodes the specified ListMuteConfigsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.ListMuteConfigsRequest.verify|verify} messages. + * @param message ListMuteConfigsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IGroupAssetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IListMuteConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GroupAssetsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupAssetsResponse.verify|verify} messages. - * @param message GroupAssetsResponse message or plain object to encode + * Encodes the specified ListMuteConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListMuteConfigsRequest.verify|verify} messages. + * @param message ListMuteConfigsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IGroupAssetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IListMuteConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GroupAssetsResponse message from the specified reader or buffer. + * Decodes a ListMuteConfigsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GroupAssetsResponse + * @returns ListMuteConfigsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GroupAssetsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ListMuteConfigsRequest; /** - * Decodes a GroupAssetsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListMuteConfigsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GroupAssetsResponse + * @returns ListMuteConfigsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GroupAssetsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ListMuteConfigsRequest; /** - * Verifies a GroupAssetsResponse message. + * Verifies a ListMuteConfigsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GroupAssetsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListMuteConfigsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GroupAssetsResponse + * @returns ListMuteConfigsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GroupAssetsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ListMuteConfigsRequest; /** - * Creates a plain object from a GroupAssetsResponse message. Also converts values to other types if specified. - * @param message GroupAssetsResponse + * Creates a plain object from a ListMuteConfigsRequest message. Also converts values to other types if specified. + * @param message ListMuteConfigsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.GroupAssetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.ListMuteConfigsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GroupAssetsResponse to JSON. + * Converts this ListMuteConfigsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GroupAssetsResponse + * Gets the default type url for ListMuteConfigsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GroupFindingsRequest. */ - interface IGroupFindingsRequest { - - /** GroupFindingsRequest parent */ - parent?: (string|null); - - /** GroupFindingsRequest filter */ - filter?: (string|null); - - /** GroupFindingsRequest groupBy */ - groupBy?: (string|null); - - /** GroupFindingsRequest readTime */ - readTime?: (google.protobuf.ITimestamp|null); - - /** GroupFindingsRequest compareDuration */ - compareDuration?: (google.protobuf.IDuration|null); + /** Properties of a ListMuteConfigsResponse. */ + interface IListMuteConfigsResponse { - /** GroupFindingsRequest pageToken */ - pageToken?: (string|null); + /** ListMuteConfigsResponse muteConfigs */ + muteConfigs?: (google.cloud.securitycenter.v1.IMuteConfig[]|null); - /** GroupFindingsRequest pageSize */ - pageSize?: (number|null); + /** ListMuteConfigsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GroupFindingsRequest. */ - class GroupFindingsRequest implements IGroupFindingsRequest { + /** Represents a ListMuteConfigsResponse. */ + class ListMuteConfigsResponse implements IListMuteConfigsResponse { /** - * Constructs a new GroupFindingsRequest. + * Constructs a new ListMuteConfigsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IGroupFindingsRequest); - - /** GroupFindingsRequest parent. */ - public parent: string; - - /** GroupFindingsRequest filter. */ - public filter: string; - - /** GroupFindingsRequest groupBy. */ - public groupBy: string; - - /** GroupFindingsRequest readTime. */ - public readTime?: (google.protobuf.ITimestamp|null); - - /** GroupFindingsRequest compareDuration. */ - public compareDuration?: (google.protobuf.IDuration|null); + constructor(properties?: google.cloud.securitycenter.v1.IListMuteConfigsResponse); - /** GroupFindingsRequest pageToken. */ - public pageToken: string; + /** ListMuteConfigsResponse muteConfigs. */ + public muteConfigs: google.cloud.securitycenter.v1.IMuteConfig[]; - /** GroupFindingsRequest pageSize. */ - public pageSize: number; + /** ListMuteConfigsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GroupFindingsRequest instance using the specified properties. + * Creates a new ListMuteConfigsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GroupFindingsRequest instance + * @returns ListMuteConfigsResponse instance */ - public static create(properties?: google.cloud.securitycenter.v1.IGroupFindingsRequest): google.cloud.securitycenter.v1.GroupFindingsRequest; + public static create(properties?: google.cloud.securitycenter.v1.IListMuteConfigsResponse): google.cloud.securitycenter.v1.ListMuteConfigsResponse; /** - * Encodes the specified GroupFindingsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupFindingsRequest.verify|verify} messages. - * @param message GroupFindingsRequest message or plain object to encode + * Encodes the specified ListMuteConfigsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.ListMuteConfigsResponse.verify|verify} messages. + * @param message ListMuteConfigsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IGroupFindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IListMuteConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GroupFindingsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupFindingsRequest.verify|verify} messages. - * @param message GroupFindingsRequest message or plain object to encode + * Encodes the specified ListMuteConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListMuteConfigsResponse.verify|verify} messages. + * @param message ListMuteConfigsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IGroupFindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IListMuteConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GroupFindingsRequest message from the specified reader or buffer. + * Decodes a ListMuteConfigsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GroupFindingsRequest + * @returns ListMuteConfigsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GroupFindingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ListMuteConfigsResponse; /** - * Decodes a GroupFindingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMuteConfigsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GroupFindingsRequest + * @returns ListMuteConfigsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GroupFindingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ListMuteConfigsResponse; /** - * Verifies a GroupFindingsRequest message. + * Verifies a ListMuteConfigsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GroupFindingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMuteConfigsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GroupFindingsRequest + * @returns ListMuteConfigsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GroupFindingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ListMuteConfigsResponse; /** - * Creates a plain object from a GroupFindingsRequest message. Also converts values to other types if specified. - * @param message GroupFindingsRequest + * Creates a plain object from a ListMuteConfigsResponse message. Also converts values to other types if specified. + * @param message ListMuteConfigsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.GroupFindingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.ListMuteConfigsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GroupFindingsRequest to JSON. + * Converts this ListMuteConfigsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GroupFindingsRequest + * Gets the default type url for ListMuteConfigsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GroupFindingsResponse. */ - interface IGroupFindingsResponse { - - /** GroupFindingsResponse groupByResults */ - groupByResults?: (google.cloud.securitycenter.v1.IGroupResult[]|null); + /** Properties of a ListNotificationConfigsRequest. */ + interface IListNotificationConfigsRequest { - /** GroupFindingsResponse readTime */ - readTime?: (google.protobuf.ITimestamp|null); + /** ListNotificationConfigsRequest parent */ + parent?: (string|null); - /** GroupFindingsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListNotificationConfigsRequest pageToken */ + pageToken?: (string|null); - /** GroupFindingsResponse totalSize */ - totalSize?: (number|null); + /** ListNotificationConfigsRequest pageSize */ + pageSize?: (number|null); } - /** Represents a GroupFindingsResponse. */ - class GroupFindingsResponse implements IGroupFindingsResponse { + /** Represents a ListNotificationConfigsRequest. */ + class ListNotificationConfigsRequest implements IListNotificationConfigsRequest { /** - * Constructs a new GroupFindingsResponse. + * Constructs a new ListNotificationConfigsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IGroupFindingsResponse); - - /** GroupFindingsResponse groupByResults. */ - public groupByResults: google.cloud.securitycenter.v1.IGroupResult[]; + constructor(properties?: google.cloud.securitycenter.v1.IListNotificationConfigsRequest); - /** GroupFindingsResponse readTime. */ - public readTime?: (google.protobuf.ITimestamp|null); + /** ListNotificationConfigsRequest parent. */ + public parent: string; - /** GroupFindingsResponse nextPageToken. */ - public nextPageToken: string; + /** ListNotificationConfigsRequest pageToken. */ + public pageToken: string; - /** GroupFindingsResponse totalSize. */ - public totalSize: number; + /** ListNotificationConfigsRequest pageSize. */ + public pageSize: number; /** - * Creates a new GroupFindingsResponse instance using the specified properties. + * Creates a new ListNotificationConfigsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GroupFindingsResponse instance + * @returns ListNotificationConfigsRequest instance */ - public static create(properties?: google.cloud.securitycenter.v1.IGroupFindingsResponse): google.cloud.securitycenter.v1.GroupFindingsResponse; + public static create(properties?: google.cloud.securitycenter.v1.IListNotificationConfigsRequest): google.cloud.securitycenter.v1.ListNotificationConfigsRequest; /** - * Encodes the specified GroupFindingsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupFindingsResponse.verify|verify} messages. - * @param message GroupFindingsResponse message or plain object to encode + * Encodes the specified ListNotificationConfigsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.ListNotificationConfigsRequest.verify|verify} messages. + * @param message ListNotificationConfigsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IGroupFindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IListNotificationConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GroupFindingsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupFindingsResponse.verify|verify} messages. - * @param message GroupFindingsResponse message or plain object to encode + * Encodes the specified ListNotificationConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListNotificationConfigsRequest.verify|verify} messages. + * @param message ListNotificationConfigsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IGroupFindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IListNotificationConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GroupFindingsResponse message from the specified reader or buffer. + * Decodes a ListNotificationConfigsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GroupFindingsResponse + * @returns ListNotificationConfigsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GroupFindingsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ListNotificationConfigsRequest; /** - * Decodes a GroupFindingsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListNotificationConfigsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GroupFindingsResponse + * @returns ListNotificationConfigsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GroupFindingsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ListNotificationConfigsRequest; /** - * Verifies a GroupFindingsResponse message. + * Verifies a ListNotificationConfigsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GroupFindingsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListNotificationConfigsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GroupFindingsResponse + * @returns ListNotificationConfigsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GroupFindingsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ListNotificationConfigsRequest; /** - * Creates a plain object from a GroupFindingsResponse message. Also converts values to other types if specified. - * @param message GroupFindingsResponse + * Creates a plain object from a ListNotificationConfigsRequest message. Also converts values to other types if specified. + * @param message ListNotificationConfigsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.GroupFindingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.ListNotificationConfigsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GroupFindingsResponse to JSON. + * Converts this ListNotificationConfigsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GroupFindingsResponse + * Gets the default type url for ListNotificationConfigsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GroupResult. */ - interface IGroupResult { + /** Properties of a ListNotificationConfigsResponse. */ + interface IListNotificationConfigsResponse { - /** GroupResult properties */ - properties?: ({ [k: string]: google.protobuf.IValue }|null); + /** ListNotificationConfigsResponse notificationConfigs */ + notificationConfigs?: (google.cloud.securitycenter.v1.INotificationConfig[]|null); - /** GroupResult count */ - count?: (number|Long|string|null); + /** ListNotificationConfigsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GroupResult. */ - class GroupResult implements IGroupResult { + /** Represents a ListNotificationConfigsResponse. */ + class ListNotificationConfigsResponse implements IListNotificationConfigsResponse { /** - * Constructs a new GroupResult. + * Constructs a new ListNotificationConfigsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IGroupResult); + constructor(properties?: google.cloud.securitycenter.v1.IListNotificationConfigsResponse); - /** GroupResult properties. */ - public properties: { [k: string]: google.protobuf.IValue }; + /** ListNotificationConfigsResponse notificationConfigs. */ + public notificationConfigs: google.cloud.securitycenter.v1.INotificationConfig[]; - /** GroupResult count. */ - public count: (number|Long|string); + /** ListNotificationConfigsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GroupResult instance using the specified properties. + * Creates a new ListNotificationConfigsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GroupResult instance + * @returns ListNotificationConfigsResponse instance */ - public static create(properties?: google.cloud.securitycenter.v1.IGroupResult): google.cloud.securitycenter.v1.GroupResult; + public static create(properties?: google.cloud.securitycenter.v1.IListNotificationConfigsResponse): google.cloud.securitycenter.v1.ListNotificationConfigsResponse; /** - * Encodes the specified GroupResult message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupResult.verify|verify} messages. - * @param message GroupResult message or plain object to encode + * Encodes the specified ListNotificationConfigsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.ListNotificationConfigsResponse.verify|verify} messages. + * @param message ListNotificationConfigsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IGroupResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IListNotificationConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GroupResult message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupResult.verify|verify} messages. - * @param message GroupResult message or plain object to encode + * Encodes the specified ListNotificationConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListNotificationConfigsResponse.verify|verify} messages. + * @param message ListNotificationConfigsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IGroupResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IListNotificationConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GroupResult message from the specified reader or buffer. + * Decodes a ListNotificationConfigsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GroupResult + * @returns ListNotificationConfigsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.GroupResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ListNotificationConfigsResponse; /** - * Decodes a GroupResult message from the specified reader or buffer, length delimited. + * Decodes a ListNotificationConfigsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GroupResult + * @returns ListNotificationConfigsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.GroupResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ListNotificationConfigsResponse; /** - * Verifies a GroupResult message. + * Verifies a ListNotificationConfigsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GroupResult message from a plain object. Also converts values to their respective internal types. + * Creates a ListNotificationConfigsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GroupResult + * @returns ListNotificationConfigsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.GroupResult; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ListNotificationConfigsResponse; /** - * Creates a plain object from a GroupResult message. Also converts values to other types if specified. - * @param message GroupResult + * Creates a plain object from a ListNotificationConfigsResponse message. Also converts values to other types if specified. + * @param message ListNotificationConfigsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.GroupResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.ListNotificationConfigsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GroupResult to JSON. + * Converts this ListNotificationConfigsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GroupResult + * Gets the default type url for ListNotificationConfigsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListMuteConfigsRequest. */ - interface IListMuteConfigsRequest { + /** Properties of a ListEffectiveSecurityHealthAnalyticsCustomModulesRequest. */ + interface IListEffectiveSecurityHealthAnalyticsCustomModulesRequest { - /** ListMuteConfigsRequest parent */ + /** ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parent */ parent?: (string|null); - /** ListMuteConfigsRequest pageSize */ + /** ListEffectiveSecurityHealthAnalyticsCustomModulesRequest pageSize */ pageSize?: (number|null); - /** ListMuteConfigsRequest pageToken */ + /** ListEffectiveSecurityHealthAnalyticsCustomModulesRequest pageToken */ pageToken?: (string|null); } - /** Represents a ListMuteConfigsRequest. */ - class ListMuteConfigsRequest implements IListMuteConfigsRequest { + /** Represents a ListEffectiveSecurityHealthAnalyticsCustomModulesRequest. */ + class ListEffectiveSecurityHealthAnalyticsCustomModulesRequest implements IListEffectiveSecurityHealthAnalyticsCustomModulesRequest { /** - * Constructs a new ListMuteConfigsRequest. + * Constructs a new ListEffectiveSecurityHealthAnalyticsCustomModulesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IListMuteConfigsRequest); + constructor(properties?: google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest); - /** ListMuteConfigsRequest parent. */ + /** ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parent. */ public parent: string; - /** ListMuteConfigsRequest pageSize. */ + /** ListEffectiveSecurityHealthAnalyticsCustomModulesRequest pageSize. */ public pageSize: number; - /** ListMuteConfigsRequest pageToken. */ + /** ListEffectiveSecurityHealthAnalyticsCustomModulesRequest pageToken. */ public pageToken: string; /** - * Creates a new ListMuteConfigsRequest instance using the specified properties. + * Creates a new ListEffectiveSecurityHealthAnalyticsCustomModulesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListMuteConfigsRequest instance + * @returns ListEffectiveSecurityHealthAnalyticsCustomModulesRequest instance */ - public static create(properties?: google.cloud.securitycenter.v1.IListMuteConfigsRequest): google.cloud.securitycenter.v1.ListMuteConfigsRequest; + public static create(properties?: google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest): google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest; /** - * Encodes the specified ListMuteConfigsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.ListMuteConfigsRequest.verify|verify} messages. - * @param message ListMuteConfigsRequest message or plain object to encode + * Encodes the specified ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.verify|verify} messages. + * @param message ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IListMuteConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListMuteConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListMuteConfigsRequest.verify|verify} messages. - * @param message ListMuteConfigsRequest message or plain object to encode + * Encodes the specified ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.verify|verify} messages. + * @param message ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IListMuteConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListMuteConfigsRequest message from the specified reader or buffer. + * Decodes a ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListMuteConfigsRequest + * @returns ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ListMuteConfigsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest; /** - * Decodes a ListMuteConfigsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListMuteConfigsRequest + * @returns ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ListMuteConfigsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest; /** - * Verifies a ListMuteConfigsRequest message. + * Verifies a ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListMuteConfigsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListMuteConfigsRequest + * @returns ListEffectiveSecurityHealthAnalyticsCustomModulesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ListMuteConfigsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest; /** - * Creates a plain object from a ListMuteConfigsRequest message. Also converts values to other types if specified. - * @param message ListMuteConfigsRequest + * Creates a plain object from a ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message. Also converts values to other types if specified. + * @param message ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.ListMuteConfigsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListMuteConfigsRequest to JSON. + * Converts this ListEffectiveSecurityHealthAnalyticsCustomModulesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListMuteConfigsRequest + * Gets the default type url for ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListMuteConfigsResponse. */ - interface IListMuteConfigsResponse { + /** Properties of a ListEffectiveSecurityHealthAnalyticsCustomModulesResponse. */ + interface IListEffectiveSecurityHealthAnalyticsCustomModulesResponse { - /** ListMuteConfigsResponse muteConfigs */ - muteConfigs?: (google.cloud.securitycenter.v1.IMuteConfig[]|null); + /** ListEffectiveSecurityHealthAnalyticsCustomModulesResponse effectiveSecurityHealthAnalyticsCustomModules */ + effectiveSecurityHealthAnalyticsCustomModules?: (google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule[]|null); - /** ListMuteConfigsResponse nextPageToken */ + /** ListEffectiveSecurityHealthAnalyticsCustomModulesResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListMuteConfigsResponse. */ - class ListMuteConfigsResponse implements IListMuteConfigsResponse { + /** Represents a ListEffectiveSecurityHealthAnalyticsCustomModulesResponse. */ + class ListEffectiveSecurityHealthAnalyticsCustomModulesResponse implements IListEffectiveSecurityHealthAnalyticsCustomModulesResponse { /** - * Constructs a new ListMuteConfigsResponse. + * Constructs a new ListEffectiveSecurityHealthAnalyticsCustomModulesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IListMuteConfigsResponse); + constructor(properties?: google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesResponse); - /** ListMuteConfigsResponse muteConfigs. */ - public muteConfigs: google.cloud.securitycenter.v1.IMuteConfig[]; + /** ListEffectiveSecurityHealthAnalyticsCustomModulesResponse effectiveSecurityHealthAnalyticsCustomModules. */ + public effectiveSecurityHealthAnalyticsCustomModules: google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule[]; - /** ListMuteConfigsResponse nextPageToken. */ + /** ListEffectiveSecurityHealthAnalyticsCustomModulesResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListMuteConfigsResponse instance using the specified properties. + * Creates a new ListEffectiveSecurityHealthAnalyticsCustomModulesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListMuteConfigsResponse instance + * @returns ListEffectiveSecurityHealthAnalyticsCustomModulesResponse instance */ - public static create(properties?: google.cloud.securitycenter.v1.IListMuteConfigsResponse): google.cloud.securitycenter.v1.ListMuteConfigsResponse; + public static create(properties?: google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesResponse): google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse; /** - * Encodes the specified ListMuteConfigsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.ListMuteConfigsResponse.verify|verify} messages. - * @param message ListMuteConfigsResponse message or plain object to encode + * Encodes the specified ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.verify|verify} messages. + * @param message ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IListMuteConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListMuteConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListMuteConfigsResponse.verify|verify} messages. - * @param message ListMuteConfigsResponse message or plain object to encode + * Encodes the specified ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.verify|verify} messages. + * @param message ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IListMuteConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListMuteConfigsResponse message from the specified reader or buffer. + * Decodes a ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListMuteConfigsResponse + * @returns ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ListMuteConfigsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse; /** - * Decodes a ListMuteConfigsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListMuteConfigsResponse + * @returns ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ListMuteConfigsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse; /** - * Verifies a ListMuteConfigsResponse message. + * Verifies a ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListMuteConfigsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListMuteConfigsResponse + * @returns ListEffectiveSecurityHealthAnalyticsCustomModulesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ListMuteConfigsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse; /** - * Creates a plain object from a ListMuteConfigsResponse message. Also converts values to other types if specified. - * @param message ListMuteConfigsResponse + * Creates a plain object from a ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message. Also converts values to other types if specified. + * @param message ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.ListMuteConfigsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListMuteConfigsResponse to JSON. + * Converts this ListEffectiveSecurityHealthAnalyticsCustomModulesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListMuteConfigsResponse + * Gets the default type url for ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListNotificationConfigsRequest. */ - interface IListNotificationConfigsRequest { + /** Properties of a ListSecurityHealthAnalyticsCustomModulesRequest. */ + interface IListSecurityHealthAnalyticsCustomModulesRequest { - /** ListNotificationConfigsRequest parent */ + /** ListSecurityHealthAnalyticsCustomModulesRequest parent */ parent?: (string|null); - /** ListNotificationConfigsRequest pageToken */ - pageToken?: (string|null); - - /** ListNotificationConfigsRequest pageSize */ + /** ListSecurityHealthAnalyticsCustomModulesRequest pageSize */ pageSize?: (number|null); + + /** ListSecurityHealthAnalyticsCustomModulesRequest pageToken */ + pageToken?: (string|null); } - /** Represents a ListNotificationConfigsRequest. */ - class ListNotificationConfigsRequest implements IListNotificationConfigsRequest { + /** Represents a ListSecurityHealthAnalyticsCustomModulesRequest. */ + class ListSecurityHealthAnalyticsCustomModulesRequest implements IListSecurityHealthAnalyticsCustomModulesRequest { /** - * Constructs a new ListNotificationConfigsRequest. + * Constructs a new ListSecurityHealthAnalyticsCustomModulesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IListNotificationConfigsRequest); + constructor(properties?: google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest); - /** ListNotificationConfigsRequest parent. */ + /** ListSecurityHealthAnalyticsCustomModulesRequest parent. */ public parent: string; - /** ListNotificationConfigsRequest pageToken. */ - public pageToken: string; - - /** ListNotificationConfigsRequest pageSize. */ + /** ListSecurityHealthAnalyticsCustomModulesRequest pageSize. */ public pageSize: number; + /** ListSecurityHealthAnalyticsCustomModulesRequest pageToken. */ + public pageToken: string; + /** - * Creates a new ListNotificationConfigsRequest instance using the specified properties. + * Creates a new ListSecurityHealthAnalyticsCustomModulesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListNotificationConfigsRequest instance + * @returns ListSecurityHealthAnalyticsCustomModulesRequest instance */ - public static create(properties?: google.cloud.securitycenter.v1.IListNotificationConfigsRequest): google.cloud.securitycenter.v1.ListNotificationConfigsRequest; + public static create(properties?: google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest): google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest; /** - * Encodes the specified ListNotificationConfigsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.ListNotificationConfigsRequest.verify|verify} messages. - * @param message ListNotificationConfigsRequest message or plain object to encode + * Encodes the specified ListSecurityHealthAnalyticsCustomModulesRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest.verify|verify} messages. + * @param message ListSecurityHealthAnalyticsCustomModulesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IListNotificationConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListNotificationConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListNotificationConfigsRequest.verify|verify} messages. - * @param message ListNotificationConfigsRequest message or plain object to encode + * Encodes the specified ListSecurityHealthAnalyticsCustomModulesRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest.verify|verify} messages. + * @param message ListSecurityHealthAnalyticsCustomModulesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IListNotificationConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListNotificationConfigsRequest message from the specified reader or buffer. + * Decodes a ListSecurityHealthAnalyticsCustomModulesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListNotificationConfigsRequest + * @returns ListSecurityHealthAnalyticsCustomModulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ListNotificationConfigsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest; /** - * Decodes a ListNotificationConfigsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSecurityHealthAnalyticsCustomModulesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListNotificationConfigsRequest + * @returns ListSecurityHealthAnalyticsCustomModulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ListNotificationConfigsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest; /** - * Verifies a ListNotificationConfigsRequest message. + * Verifies a ListSecurityHealthAnalyticsCustomModulesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListNotificationConfigsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSecurityHealthAnalyticsCustomModulesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListNotificationConfigsRequest + * @returns ListSecurityHealthAnalyticsCustomModulesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ListNotificationConfigsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest; /** - * Creates a plain object from a ListNotificationConfigsRequest message. Also converts values to other types if specified. - * @param message ListNotificationConfigsRequest + * Creates a plain object from a ListSecurityHealthAnalyticsCustomModulesRequest message. Also converts values to other types if specified. + * @param message ListSecurityHealthAnalyticsCustomModulesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.ListNotificationConfigsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListNotificationConfigsRequest to JSON. + * Converts this ListSecurityHealthAnalyticsCustomModulesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListNotificationConfigsRequest + * Gets the default type url for ListSecurityHealthAnalyticsCustomModulesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListNotificationConfigsResponse. */ - interface IListNotificationConfigsResponse { + /** Properties of a ListSecurityHealthAnalyticsCustomModulesResponse. */ + interface IListSecurityHealthAnalyticsCustomModulesResponse { - /** ListNotificationConfigsResponse notificationConfigs */ - notificationConfigs?: (google.cloud.securitycenter.v1.INotificationConfig[]|null); + /** ListSecurityHealthAnalyticsCustomModulesResponse securityHealthAnalyticsCustomModules */ + securityHealthAnalyticsCustomModules?: (google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule[]|null); - /** ListNotificationConfigsResponse nextPageToken */ + /** ListSecurityHealthAnalyticsCustomModulesResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListNotificationConfigsResponse. */ - class ListNotificationConfigsResponse implements IListNotificationConfigsResponse { + /** Represents a ListSecurityHealthAnalyticsCustomModulesResponse. */ + class ListSecurityHealthAnalyticsCustomModulesResponse implements IListSecurityHealthAnalyticsCustomModulesResponse { /** - * Constructs a new ListNotificationConfigsResponse. + * Constructs a new ListSecurityHealthAnalyticsCustomModulesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.securitycenter.v1.IListNotificationConfigsResponse); + constructor(properties?: google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesResponse); - /** ListNotificationConfigsResponse notificationConfigs. */ - public notificationConfigs: google.cloud.securitycenter.v1.INotificationConfig[]; + /** ListSecurityHealthAnalyticsCustomModulesResponse securityHealthAnalyticsCustomModules. */ + public securityHealthAnalyticsCustomModules: google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule[]; - /** ListNotificationConfigsResponse nextPageToken. */ + /** ListSecurityHealthAnalyticsCustomModulesResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListNotificationConfigsResponse instance using the specified properties. + * Creates a new ListSecurityHealthAnalyticsCustomModulesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListNotificationConfigsResponse instance + * @returns ListSecurityHealthAnalyticsCustomModulesResponse instance */ - public static create(properties?: google.cloud.securitycenter.v1.IListNotificationConfigsResponse): google.cloud.securitycenter.v1.ListNotificationConfigsResponse; + public static create(properties?: google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesResponse): google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse; /** - * Encodes the specified ListNotificationConfigsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.ListNotificationConfigsResponse.verify|verify} messages. - * @param message ListNotificationConfigsResponse message or plain object to encode + * Encodes the specified ListSecurityHealthAnalyticsCustomModulesResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse.verify|verify} messages. + * @param message ListSecurityHealthAnalyticsCustomModulesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.securitycenter.v1.IListNotificationConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListNotificationConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListNotificationConfigsResponse.verify|verify} messages. - * @param message ListNotificationConfigsResponse message or plain object to encode + * Encodes the specified ListSecurityHealthAnalyticsCustomModulesResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse.verify|verify} messages. + * @param message ListSecurityHealthAnalyticsCustomModulesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IListNotificationConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListNotificationConfigsResponse message from the specified reader or buffer. + * Decodes a ListSecurityHealthAnalyticsCustomModulesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListNotificationConfigsResponse + * @returns ListSecurityHealthAnalyticsCustomModulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ListNotificationConfigsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse; /** - * Decodes a ListNotificationConfigsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListSecurityHealthAnalyticsCustomModulesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListNotificationConfigsResponse + * @returns ListSecurityHealthAnalyticsCustomModulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ListNotificationConfigsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse; /** - * Verifies a ListNotificationConfigsResponse message. + * Verifies a ListSecurityHealthAnalyticsCustomModulesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListNotificationConfigsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListSecurityHealthAnalyticsCustomModulesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListNotificationConfigsResponse + * @returns ListSecurityHealthAnalyticsCustomModulesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ListNotificationConfigsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse; /** - * Creates a plain object from a ListNotificationConfigsResponse message. Also converts values to other types if specified. - * @param message ListNotificationConfigsResponse + * Creates a plain object from a ListSecurityHealthAnalyticsCustomModulesResponse message. Also converts values to other types if specified. + * @param message ListSecurityHealthAnalyticsCustomModulesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.ListNotificationConfigsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListNotificationConfigsResponse to JSON. + * Converts this ListSecurityHealthAnalyticsCustomModulesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListNotificationConfigsResponse + * Gets the default type url for ListSecurityHealthAnalyticsCustomModulesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -11282,62 +13194,165 @@ export namespace google { public static encode(message: google.cloud.securitycenter.v1.IUpdateOrganizationSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateOrganizationSettingsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.verify|verify} messages. - * @param message UpdateOrganizationSettingsRequest message or plain object to encode + * Encodes the specified UpdateOrganizationSettingsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.verify|verify} messages. + * @param message UpdateOrganizationSettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.securitycenter.v1.IUpdateOrganizationSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateOrganizationSettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateOrganizationSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest; + + /** + * Decodes an UpdateOrganizationSettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateOrganizationSettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest; + + /** + * Verifies an UpdateOrganizationSettingsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateOrganizationSettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateOrganizationSettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest; + + /** + * Creates a plain object from an UpdateOrganizationSettingsRequest message. Also converts values to other types if specified. + * @param message UpdateOrganizationSettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateOrganizationSettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateOrganizationSettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateSecurityHealthAnalyticsCustomModuleRequest. */ + interface IUpdateSecurityHealthAnalyticsCustomModuleRequest { + + /** UpdateSecurityHealthAnalyticsCustomModuleRequest securityHealthAnalyticsCustomModule */ + securityHealthAnalyticsCustomModule?: (google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule|null); + + /** UpdateSecurityHealthAnalyticsCustomModuleRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateSecurityHealthAnalyticsCustomModuleRequest. */ + class UpdateSecurityHealthAnalyticsCustomModuleRequest implements IUpdateSecurityHealthAnalyticsCustomModuleRequest { + + /** + * Constructs a new UpdateSecurityHealthAnalyticsCustomModuleRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest); + + /** UpdateSecurityHealthAnalyticsCustomModuleRequest securityHealthAnalyticsCustomModule. */ + public securityHealthAnalyticsCustomModule?: (google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule|null); + + /** UpdateSecurityHealthAnalyticsCustomModuleRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateSecurityHealthAnalyticsCustomModuleRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateSecurityHealthAnalyticsCustomModuleRequest instance + */ + public static create(properties?: google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest): google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest; + + /** + * Encodes the specified UpdateSecurityHealthAnalyticsCustomModuleRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. + * @param message UpdateSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateSecurityHealthAnalyticsCustomModuleRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. + * @param message UpdateSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.securitycenter.v1.IUpdateOrganizationSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateOrganizationSettingsRequest message from the specified reader or buffer. + * Decodes an UpdateSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateOrganizationSettingsRequest + * @returns UpdateSecurityHealthAnalyticsCustomModuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest; /** - * Decodes an UpdateOrganizationSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateOrganizationSettingsRequest + * @returns UpdateSecurityHealthAnalyticsCustomModuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest; /** - * Verifies an UpdateOrganizationSettingsRequest message. + * Verifies an UpdateSecurityHealthAnalyticsCustomModuleRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateOrganizationSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSecurityHealthAnalyticsCustomModuleRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateOrganizationSettingsRequest + * @returns UpdateSecurityHealthAnalyticsCustomModuleRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest; /** - * Creates a plain object from an UpdateOrganizationSettingsRequest message. Also converts values to other types if specified. - * @param message UpdateOrganizationSettingsRequest + * Creates a plain object from an UpdateSecurityHealthAnalyticsCustomModuleRequest message. Also converts values to other types if specified. + * @param message UpdateSecurityHealthAnalyticsCustomModuleRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateOrganizationSettingsRequest to JSON. + * Converts this UpdateSecurityHealthAnalyticsCustomModuleRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateOrganizationSettingsRequest + * Gets the default type url for UpdateSecurityHealthAnalyticsCustomModuleRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -26370,6 +28385,125 @@ export namespace google { } } + /** Namespace type. */ + namespace type { + + /** Properties of an Expr. */ + interface IExpr { + + /** Expr expression */ + expression?: (string|null); + + /** Expr title */ + title?: (string|null); + + /** Expr description */ + description?: (string|null); + + /** Expr location */ + location?: (string|null); + } + + /** Represents an Expr. */ + class Expr implements IExpr { + + /** + * Constructs a new Expr. + * @param [properties] Properties to set + */ + constructor(properties?: google.type.IExpr); + + /** Expr expression. */ + public expression: string; + + /** Expr title. */ + public title: string; + + /** Expr description. */ + public description: string; + + /** Expr location. */ + public location: string; + + /** + * Creates a new Expr instance using the specified properties. + * @param [properties] Properties to set + * @returns Expr instance + */ + public static create(properties?: google.type.IExpr): google.type.Expr; + + /** + * Encodes the specified Expr message. Does not implicitly {@link google.type.Expr.verify|verify} messages. + * @param message Expr message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.type.IExpr, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Expr message, length delimited. Does not implicitly {@link google.type.Expr.verify|verify} messages. + * @param message Expr message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.type.IExpr, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Expr message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Expr + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.Expr; + + /** + * Decodes an Expr message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Expr + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.Expr; + + /** + * Verifies an Expr message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Expr message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Expr + */ + public static fromObject(object: { [k: string]: any }): google.type.Expr; + + /** + * Creates a plain object from an Expr message. Also converts values to other types if specified. + * @param message Expr + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.type.Expr, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Expr to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Expr + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + /** Namespace iam. */ namespace iam { @@ -27768,125 +29902,6 @@ export namespace google { } } - /** Namespace type. */ - namespace type { - - /** Properties of an Expr. */ - interface IExpr { - - /** Expr expression */ - expression?: (string|null); - - /** Expr title */ - title?: (string|null); - - /** Expr description */ - description?: (string|null); - - /** Expr location */ - location?: (string|null); - } - - /** Represents an Expr. */ - class Expr implements IExpr { - - /** - * Constructs a new Expr. - * @param [properties] Properties to set - */ - constructor(properties?: google.type.IExpr); - - /** Expr expression. */ - public expression: string; - - /** Expr title. */ - public title: string; - - /** Expr description. */ - public description: string; - - /** Expr location. */ - public location: string; - - /** - * Creates a new Expr instance using the specified properties. - * @param [properties] Properties to set - * @returns Expr instance - */ - public static create(properties?: google.type.IExpr): google.type.Expr; - - /** - * Encodes the specified Expr message. Does not implicitly {@link google.type.Expr.verify|verify} messages. - * @param message Expr message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.type.IExpr, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Expr message, length delimited. Does not implicitly {@link google.type.Expr.verify|verify} messages. - * @param message Expr message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.type.IExpr, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Expr message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Expr - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.Expr; - - /** - * Decodes an Expr message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Expr - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.Expr; - - /** - * Verifies an Expr message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an Expr message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Expr - */ - public static fromObject(object: { [k: string]: any }): google.type.Expr; - - /** - * Creates a plain object from an Expr message. Also converts values to other types if specified. - * @param message Expr - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.type.Expr, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Expr to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Expr - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - /** Namespace longrunning. */ namespace longrunning { diff --git a/packages/google-cloud-securitycenter/protos/protos.js b/packages/google-cloud-securitycenter/protos/protos.js index 1101f8bb7b2..6b62f24f387 100644 --- a/packages/google-cloud-securitycenter/protos/protos.js +++ b/packages/google-cloud-securitycenter/protos/protos.js @@ -4771,27 +4771,27 @@ return Database; })(); - v1.Exfiltration = (function() { + v1.EffectiveSecurityHealthAnalyticsCustomModule = (function() { /** - * Properties of an Exfiltration. + * Properties of an EffectiveSecurityHealthAnalyticsCustomModule. * @memberof google.cloud.securitycenter.v1 - * @interface IExfiltration - * @property {Array.|null} [sources] Exfiltration sources - * @property {Array.|null} [targets] Exfiltration targets + * @interface IEffectiveSecurityHealthAnalyticsCustomModule + * @property {string|null} [name] EffectiveSecurityHealthAnalyticsCustomModule name + * @property {google.cloud.securitycenter.v1.ICustomConfig|null} [customConfig] EffectiveSecurityHealthAnalyticsCustomModule customConfig + * @property {google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState|null} [enablementState] EffectiveSecurityHealthAnalyticsCustomModule enablementState + * @property {string|null} [displayName] EffectiveSecurityHealthAnalyticsCustomModule displayName */ /** - * Constructs a new Exfiltration. + * Constructs a new EffectiveSecurityHealthAnalyticsCustomModule. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents an Exfiltration. - * @implements IExfiltration + * @classdesc Represents an EffectiveSecurityHealthAnalyticsCustomModule. + * @implements IEffectiveSecurityHealthAnalyticsCustomModule * @constructor - * @param {google.cloud.securitycenter.v1.IExfiltration=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule=} [properties] Properties to set */ - function Exfiltration(properties) { - this.sources = []; - this.targets = []; + function EffectiveSecurityHealthAnalyticsCustomModule(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4799,95 +4799,117 @@ } /** - * Exfiltration sources. - * @member {Array.} sources - * @memberof google.cloud.securitycenter.v1.Exfiltration + * EffectiveSecurityHealthAnalyticsCustomModule name. + * @member {string} name + * @memberof google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule * @instance */ - Exfiltration.prototype.sources = $util.emptyArray; + EffectiveSecurityHealthAnalyticsCustomModule.prototype.name = ""; /** - * Exfiltration targets. - * @member {Array.} targets - * @memberof google.cloud.securitycenter.v1.Exfiltration + * EffectiveSecurityHealthAnalyticsCustomModule customConfig. + * @member {google.cloud.securitycenter.v1.ICustomConfig|null|undefined} customConfig + * @memberof google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule * @instance */ - Exfiltration.prototype.targets = $util.emptyArray; + EffectiveSecurityHealthAnalyticsCustomModule.prototype.customConfig = null; /** - * Creates a new Exfiltration instance using the specified properties. + * EffectiveSecurityHealthAnalyticsCustomModule enablementState. + * @member {google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState} enablementState + * @memberof google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + * @instance + */ + EffectiveSecurityHealthAnalyticsCustomModule.prototype.enablementState = 0; + + /** + * EffectiveSecurityHealthAnalyticsCustomModule displayName. + * @member {string} displayName + * @memberof google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + * @instance + */ + EffectiveSecurityHealthAnalyticsCustomModule.prototype.displayName = ""; + + /** + * Creates a new EffectiveSecurityHealthAnalyticsCustomModule instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.Exfiltration + * @memberof google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule * @static - * @param {google.cloud.securitycenter.v1.IExfiltration=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.Exfiltration} Exfiltration instance + * @param {google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule} EffectiveSecurityHealthAnalyticsCustomModule instance */ - Exfiltration.create = function create(properties) { - return new Exfiltration(properties); + EffectiveSecurityHealthAnalyticsCustomModule.create = function create(properties) { + return new EffectiveSecurityHealthAnalyticsCustomModule(properties); }; /** - * Encodes the specified Exfiltration message. Does not implicitly {@link google.cloud.securitycenter.v1.Exfiltration.verify|verify} messages. + * Encodes the specified EffectiveSecurityHealthAnalyticsCustomModule message. Does not implicitly {@link google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.Exfiltration + * @memberof google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule * @static - * @param {google.cloud.securitycenter.v1.IExfiltration} message Exfiltration message or plain object to encode + * @param {google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule} message EffectiveSecurityHealthAnalyticsCustomModule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Exfiltration.encode = function encode(message, writer) { + EffectiveSecurityHealthAnalyticsCustomModule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sources != null && message.sources.length) - for (var i = 0; i < message.sources.length; ++i) - $root.google.cloud.securitycenter.v1.ExfilResource.encode(message.sources[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.targets != null && message.targets.length) - for (var i = 0; i < message.targets.length; ++i) - $root.google.cloud.securitycenter.v1.ExfilResource.encode(message.targets[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.customConfig != null && Object.hasOwnProperty.call(message, "customConfig")) + $root.google.cloud.securitycenter.v1.CustomConfig.encode(message.customConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.enablementState != null && Object.hasOwnProperty.call(message, "enablementState")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.enablementState); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); return writer; }; /** - * Encodes the specified Exfiltration message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Exfiltration.verify|verify} messages. + * Encodes the specified EffectiveSecurityHealthAnalyticsCustomModule message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.Exfiltration + * @memberof google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule * @static - * @param {google.cloud.securitycenter.v1.IExfiltration} message Exfiltration message or plain object to encode + * @param {google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule} message EffectiveSecurityHealthAnalyticsCustomModule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Exfiltration.encodeDelimited = function encodeDelimited(message, writer) { + EffectiveSecurityHealthAnalyticsCustomModule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Exfiltration message from the specified reader or buffer. + * Decodes an EffectiveSecurityHealthAnalyticsCustomModule message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.Exfiltration + * @memberof google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.Exfiltration} Exfiltration + * @returns {google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule} EffectiveSecurityHealthAnalyticsCustomModule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Exfiltration.decode = function decode(reader, length) { + EffectiveSecurityHealthAnalyticsCustomModule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.Exfiltration(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.sources && message.sources.length)) - message.sources = []; - message.sources.push($root.google.cloud.securitycenter.v1.ExfilResource.decode(reader, reader.uint32())); + message.name = reader.string(); break; } case 2: { - if (!(message.targets && message.targets.length)) - message.targets = []; - message.targets.push($root.google.cloud.securitycenter.v1.ExfilResource.decode(reader, reader.uint32())); + message.customConfig = $root.google.cloud.securitycenter.v1.CustomConfig.decode(reader, reader.uint32()); + break; + } + case 3: { + message.enablementState = reader.int32(); + break; + } + case 4: { + message.displayName = reader.string(); break; } default: @@ -4899,167 +4921,197 @@ }; /** - * Decodes an Exfiltration message from the specified reader or buffer, length delimited. + * Decodes an EffectiveSecurityHealthAnalyticsCustomModule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.Exfiltration + * @memberof google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.Exfiltration} Exfiltration + * @returns {google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule} EffectiveSecurityHealthAnalyticsCustomModule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Exfiltration.decodeDelimited = function decodeDelimited(reader) { + EffectiveSecurityHealthAnalyticsCustomModule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Exfiltration message. + * Verifies an EffectiveSecurityHealthAnalyticsCustomModule message. * @function verify - * @memberof google.cloud.securitycenter.v1.Exfiltration + * @memberof google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Exfiltration.verify = function verify(message) { + EffectiveSecurityHealthAnalyticsCustomModule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sources != null && message.hasOwnProperty("sources")) { - if (!Array.isArray(message.sources)) - return "sources: array expected"; - for (var i = 0; i < message.sources.length; ++i) { - var error = $root.google.cloud.securitycenter.v1.ExfilResource.verify(message.sources[i]); - if (error) - return "sources." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.customConfig != null && message.hasOwnProperty("customConfig")) { + var error = $root.google.cloud.securitycenter.v1.CustomConfig.verify(message.customConfig); + if (error) + return "customConfig." + error; } - if (message.targets != null && message.hasOwnProperty("targets")) { - if (!Array.isArray(message.targets)) - return "targets: array expected"; - for (var i = 0; i < message.targets.length; ++i) { - var error = $root.google.cloud.securitycenter.v1.ExfilResource.verify(message.targets[i]); - if (error) - return "targets." + error; + if (message.enablementState != null && message.hasOwnProperty("enablementState")) + switch (message.enablementState) { + default: + return "enablementState: enum value expected"; + case 0: + case 1: + case 2: + break; } - } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; return null; }; /** - * Creates an Exfiltration message from a plain object. Also converts values to their respective internal types. + * Creates an EffectiveSecurityHealthAnalyticsCustomModule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.Exfiltration + * @memberof google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.Exfiltration} Exfiltration + * @returns {google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule} EffectiveSecurityHealthAnalyticsCustomModule */ - Exfiltration.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.Exfiltration) + EffectiveSecurityHealthAnalyticsCustomModule.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule) return object; - var message = new $root.google.cloud.securitycenter.v1.Exfiltration(); - if (object.sources) { - if (!Array.isArray(object.sources)) - throw TypeError(".google.cloud.securitycenter.v1.Exfiltration.sources: array expected"); - message.sources = []; - for (var i = 0; i < object.sources.length; ++i) { - if (typeof object.sources[i] !== "object") - throw TypeError(".google.cloud.securitycenter.v1.Exfiltration.sources: object expected"); - message.sources[i] = $root.google.cloud.securitycenter.v1.ExfilResource.fromObject(object.sources[i]); - } + var message = new $root.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule(); + if (object.name != null) + message.name = String(object.name); + if (object.customConfig != null) { + if (typeof object.customConfig !== "object") + throw TypeError(".google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.customConfig: object expected"); + message.customConfig = $root.google.cloud.securitycenter.v1.CustomConfig.fromObject(object.customConfig); } - if (object.targets) { - if (!Array.isArray(object.targets)) - throw TypeError(".google.cloud.securitycenter.v1.Exfiltration.targets: array expected"); - message.targets = []; - for (var i = 0; i < object.targets.length; ++i) { - if (typeof object.targets[i] !== "object") - throw TypeError(".google.cloud.securitycenter.v1.Exfiltration.targets: object expected"); - message.targets[i] = $root.google.cloud.securitycenter.v1.ExfilResource.fromObject(object.targets[i]); + switch (object.enablementState) { + default: + if (typeof object.enablementState === "number") { + message.enablementState = object.enablementState; + break; } + break; + case "ENABLEMENT_STATE_UNSPECIFIED": + case 0: + message.enablementState = 0; + break; + case "ENABLED": + case 1: + message.enablementState = 1; + break; + case "DISABLED": + case 2: + message.enablementState = 2; + break; } + if (object.displayName != null) + message.displayName = String(object.displayName); return message; }; /** - * Creates a plain object from an Exfiltration message. Also converts values to other types if specified. + * Creates a plain object from an EffectiveSecurityHealthAnalyticsCustomModule message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.Exfiltration + * @memberof google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule * @static - * @param {google.cloud.securitycenter.v1.Exfiltration} message Exfiltration + * @param {google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule} message EffectiveSecurityHealthAnalyticsCustomModule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Exfiltration.toObject = function toObject(message, options) { + EffectiveSecurityHealthAnalyticsCustomModule.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.sources = []; - object.targets = []; - } - if (message.sources && message.sources.length) { - object.sources = []; - for (var j = 0; j < message.sources.length; ++j) - object.sources[j] = $root.google.cloud.securitycenter.v1.ExfilResource.toObject(message.sources[j], options); - } - if (message.targets && message.targets.length) { - object.targets = []; - for (var j = 0; j < message.targets.length; ++j) - object.targets[j] = $root.google.cloud.securitycenter.v1.ExfilResource.toObject(message.targets[j], options); + if (options.defaults) { + object.name = ""; + object.customConfig = null; + object.enablementState = options.enums === String ? "ENABLEMENT_STATE_UNSPECIFIED" : 0; + object.displayName = ""; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.customConfig != null && message.hasOwnProperty("customConfig")) + object.customConfig = $root.google.cloud.securitycenter.v1.CustomConfig.toObject(message.customConfig, options); + if (message.enablementState != null && message.hasOwnProperty("enablementState")) + object.enablementState = options.enums === String ? $root.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState[message.enablementState] === undefined ? message.enablementState : $root.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState[message.enablementState] : message.enablementState; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; return object; }; /** - * Converts this Exfiltration to JSON. + * Converts this EffectiveSecurityHealthAnalyticsCustomModule to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.Exfiltration + * @memberof google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule * @instance * @returns {Object.} JSON object */ - Exfiltration.prototype.toJSON = function toJSON() { + EffectiveSecurityHealthAnalyticsCustomModule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Exfiltration + * Gets the default type url for EffectiveSecurityHealthAnalyticsCustomModule * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.Exfiltration + * @memberof google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Exfiltration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EffectiveSecurityHealthAnalyticsCustomModule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.Exfiltration"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule"; }; - return Exfiltration; + /** + * EnablementState enum. + * @name google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState + * @enum {number} + * @property {number} ENABLEMENT_STATE_UNSPECIFIED=0 ENABLEMENT_STATE_UNSPECIFIED value + * @property {number} ENABLED=1 ENABLED value + * @property {number} DISABLED=2 DISABLED value + */ + EffectiveSecurityHealthAnalyticsCustomModule.EnablementState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENABLEMENT_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ENABLED"] = 1; + values[valuesById[2] = "DISABLED"] = 2; + return values; + })(); + + return EffectiveSecurityHealthAnalyticsCustomModule; })(); - v1.ExfilResource = (function() { + v1.CustomConfig = (function() { /** - * Properties of an ExfilResource. + * Properties of a CustomConfig. * @memberof google.cloud.securitycenter.v1 - * @interface IExfilResource - * @property {string|null} [name] ExfilResource name - * @property {Array.|null} [components] ExfilResource components + * @interface ICustomConfig + * @property {google.type.IExpr|null} [predicate] CustomConfig predicate + * @property {google.cloud.securitycenter.v1.CustomConfig.ICustomOutputSpec|null} [customOutput] CustomConfig customOutput + * @property {google.cloud.securitycenter.v1.CustomConfig.IResourceSelector|null} [resourceSelector] CustomConfig resourceSelector + * @property {google.cloud.securitycenter.v1.CustomConfig.Severity|null} [severity] CustomConfig severity + * @property {string|null} [description] CustomConfig description + * @property {string|null} [recommendation] CustomConfig recommendation */ /** - * Constructs a new ExfilResource. + * Constructs a new CustomConfig. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents an ExfilResource. - * @implements IExfilResource + * @classdesc Represents a CustomConfig. + * @implements ICustomConfig * @constructor - * @param {google.cloud.securitycenter.v1.IExfilResource=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.ICustomConfig=} [properties] Properties to set */ - function ExfilResource(properties) { - this.components = []; + function CustomConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5067,92 +5119,145 @@ } /** - * ExfilResource name. - * @member {string} name - * @memberof google.cloud.securitycenter.v1.ExfilResource + * CustomConfig predicate. + * @member {google.type.IExpr|null|undefined} predicate + * @memberof google.cloud.securitycenter.v1.CustomConfig * @instance */ - ExfilResource.prototype.name = ""; + CustomConfig.prototype.predicate = null; /** - * ExfilResource components. - * @member {Array.} components - * @memberof google.cloud.securitycenter.v1.ExfilResource + * CustomConfig customOutput. + * @member {google.cloud.securitycenter.v1.CustomConfig.ICustomOutputSpec|null|undefined} customOutput + * @memberof google.cloud.securitycenter.v1.CustomConfig * @instance */ - ExfilResource.prototype.components = $util.emptyArray; + CustomConfig.prototype.customOutput = null; /** - * Creates a new ExfilResource instance using the specified properties. + * CustomConfig resourceSelector. + * @member {google.cloud.securitycenter.v1.CustomConfig.IResourceSelector|null|undefined} resourceSelector + * @memberof google.cloud.securitycenter.v1.CustomConfig + * @instance + */ + CustomConfig.prototype.resourceSelector = null; + + /** + * CustomConfig severity. + * @member {google.cloud.securitycenter.v1.CustomConfig.Severity} severity + * @memberof google.cloud.securitycenter.v1.CustomConfig + * @instance + */ + CustomConfig.prototype.severity = 0; + + /** + * CustomConfig description. + * @member {string} description + * @memberof google.cloud.securitycenter.v1.CustomConfig + * @instance + */ + CustomConfig.prototype.description = ""; + + /** + * CustomConfig recommendation. + * @member {string} recommendation + * @memberof google.cloud.securitycenter.v1.CustomConfig + * @instance + */ + CustomConfig.prototype.recommendation = ""; + + /** + * Creates a new CustomConfig instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.ExfilResource + * @memberof google.cloud.securitycenter.v1.CustomConfig * @static - * @param {google.cloud.securitycenter.v1.IExfilResource=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.ExfilResource} ExfilResource instance + * @param {google.cloud.securitycenter.v1.ICustomConfig=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.CustomConfig} CustomConfig instance */ - ExfilResource.create = function create(properties) { - return new ExfilResource(properties); + CustomConfig.create = function create(properties) { + return new CustomConfig(properties); }; /** - * Encodes the specified ExfilResource message. Does not implicitly {@link google.cloud.securitycenter.v1.ExfilResource.verify|verify} messages. + * Encodes the specified CustomConfig message. Does not implicitly {@link google.cloud.securitycenter.v1.CustomConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.ExfilResource + * @memberof google.cloud.securitycenter.v1.CustomConfig * @static - * @param {google.cloud.securitycenter.v1.IExfilResource} message ExfilResource message or plain object to encode + * @param {google.cloud.securitycenter.v1.ICustomConfig} message CustomConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExfilResource.encode = function encode(message, writer) { + CustomConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.components != null && message.components.length) - for (var i = 0; i < message.components.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.components[i]); + if (message.predicate != null && Object.hasOwnProperty.call(message, "predicate")) + $root.google.type.Expr.encode(message.predicate, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.customOutput != null && Object.hasOwnProperty.call(message, "customOutput")) + $root.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.encode(message.customOutput, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.resourceSelector != null && Object.hasOwnProperty.call(message, "resourceSelector")) + $root.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.encode(message.resourceSelector, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.severity != null && Object.hasOwnProperty.call(message, "severity")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.severity); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.description); + if (message.recommendation != null && Object.hasOwnProperty.call(message, "recommendation")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.recommendation); return writer; }; /** - * Encodes the specified ExfilResource message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ExfilResource.verify|verify} messages. + * Encodes the specified CustomConfig message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CustomConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.ExfilResource + * @memberof google.cloud.securitycenter.v1.CustomConfig * @static - * @param {google.cloud.securitycenter.v1.IExfilResource} message ExfilResource message or plain object to encode + * @param {google.cloud.securitycenter.v1.ICustomConfig} message CustomConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExfilResource.encodeDelimited = function encodeDelimited(message, writer) { + CustomConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExfilResource message from the specified reader or buffer. + * Decodes a CustomConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.ExfilResource + * @memberof google.cloud.securitycenter.v1.CustomConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.ExfilResource} ExfilResource + * @returns {google.cloud.securitycenter.v1.CustomConfig} CustomConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExfilResource.decode = function decode(reader, length) { + CustomConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ExfilResource(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.CustomConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.predicate = $root.google.type.Expr.decode(reader, reader.uint32()); break; } case 2: { - if (!(message.components && message.components.length)) - message.components = []; - message.components.push(reader.string()); + message.customOutput = $root.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.decode(reader, reader.uint32()); + break; + } + case 3: { + message.resourceSelector = $root.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.decode(reader, reader.uint32()); + break; + } + case 4: { + message.severity = reader.int32(); + break; + } + case 5: { + message.description = reader.string(); + break; + } + case 6: { + message.recommendation = reader.string(); break; } default: @@ -5164,283 +5269,1006 @@ }; /** - * Decodes an ExfilResource message from the specified reader or buffer, length delimited. + * Decodes a CustomConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.ExfilResource + * @memberof google.cloud.securitycenter.v1.CustomConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.ExfilResource} ExfilResource + * @returns {google.cloud.securitycenter.v1.CustomConfig} CustomConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExfilResource.decodeDelimited = function decodeDelimited(reader) { + CustomConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExfilResource message. + * Verifies a CustomConfig message. * @function verify - * @memberof google.cloud.securitycenter.v1.ExfilResource + * @memberof google.cloud.securitycenter.v1.CustomConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExfilResource.verify = function verify(message) { + CustomConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.components != null && message.hasOwnProperty("components")) { - if (!Array.isArray(message.components)) - return "components: array expected"; - for (var i = 0; i < message.components.length; ++i) - if (!$util.isString(message.components[i])) - return "components: string[] expected"; + if (message.predicate != null && message.hasOwnProperty("predicate")) { + var error = $root.google.type.Expr.verify(message.predicate); + if (error) + return "predicate." + error; + } + if (message.customOutput != null && message.hasOwnProperty("customOutput")) { + var error = $root.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.verify(message.customOutput); + if (error) + return "customOutput." + error; + } + if (message.resourceSelector != null && message.hasOwnProperty("resourceSelector")) { + var error = $root.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.verify(message.resourceSelector); + if (error) + return "resourceSelector." + error; } + if (message.severity != null && message.hasOwnProperty("severity")) + switch (message.severity) { + default: + return "severity: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.recommendation != null && message.hasOwnProperty("recommendation")) + if (!$util.isString(message.recommendation)) + return "recommendation: string expected"; return null; }; /** - * Creates an ExfilResource message from a plain object. Also converts values to their respective internal types. + * Creates a CustomConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.ExfilResource + * @memberof google.cloud.securitycenter.v1.CustomConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.ExfilResource} ExfilResource + * @returns {google.cloud.securitycenter.v1.CustomConfig} CustomConfig */ - ExfilResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.ExfilResource) + CustomConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.CustomConfig) return object; - var message = new $root.google.cloud.securitycenter.v1.ExfilResource(); - if (object.name != null) - message.name = String(object.name); - if (object.components) { - if (!Array.isArray(object.components)) - throw TypeError(".google.cloud.securitycenter.v1.ExfilResource.components: array expected"); - message.components = []; - for (var i = 0; i < object.components.length; ++i) - message.components[i] = String(object.components[i]); + var message = new $root.google.cloud.securitycenter.v1.CustomConfig(); + if (object.predicate != null) { + if (typeof object.predicate !== "object") + throw TypeError(".google.cloud.securitycenter.v1.CustomConfig.predicate: object expected"); + message.predicate = $root.google.type.Expr.fromObject(object.predicate); + } + if (object.customOutput != null) { + if (typeof object.customOutput !== "object") + throw TypeError(".google.cloud.securitycenter.v1.CustomConfig.customOutput: object expected"); + message.customOutput = $root.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.fromObject(object.customOutput); + } + if (object.resourceSelector != null) { + if (typeof object.resourceSelector !== "object") + throw TypeError(".google.cloud.securitycenter.v1.CustomConfig.resourceSelector: object expected"); + message.resourceSelector = $root.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.fromObject(object.resourceSelector); + } + switch (object.severity) { + default: + if (typeof object.severity === "number") { + message.severity = object.severity; + break; + } + break; + case "SEVERITY_UNSPECIFIED": + case 0: + message.severity = 0; + break; + case "CRITICAL": + case 1: + message.severity = 1; + break; + case "HIGH": + case 2: + message.severity = 2; + break; + case "MEDIUM": + case 3: + message.severity = 3; + break; + case "LOW": + case 4: + message.severity = 4; + break; } + if (object.description != null) + message.description = String(object.description); + if (object.recommendation != null) + message.recommendation = String(object.recommendation); return message; }; /** - * Creates a plain object from an ExfilResource message. Also converts values to other types if specified. + * Creates a plain object from a CustomConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.ExfilResource + * @memberof google.cloud.securitycenter.v1.CustomConfig * @static - * @param {google.cloud.securitycenter.v1.ExfilResource} message ExfilResource + * @param {google.cloud.securitycenter.v1.CustomConfig} message CustomConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExfilResource.toObject = function toObject(message, options) { + CustomConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.components = []; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.components && message.components.length) { - object.components = []; - for (var j = 0; j < message.components.length; ++j) - object.components[j] = message.components[j]; - } + if (options.defaults) { + object.predicate = null; + object.customOutput = null; + object.resourceSelector = null; + object.severity = options.enums === String ? "SEVERITY_UNSPECIFIED" : 0; + object.description = ""; + object.recommendation = ""; + } + if (message.predicate != null && message.hasOwnProperty("predicate")) + object.predicate = $root.google.type.Expr.toObject(message.predicate, options); + if (message.customOutput != null && message.hasOwnProperty("customOutput")) + object.customOutput = $root.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.toObject(message.customOutput, options); + if (message.resourceSelector != null && message.hasOwnProperty("resourceSelector")) + object.resourceSelector = $root.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.toObject(message.resourceSelector, options); + if (message.severity != null && message.hasOwnProperty("severity")) + object.severity = options.enums === String ? $root.google.cloud.securitycenter.v1.CustomConfig.Severity[message.severity] === undefined ? message.severity : $root.google.cloud.securitycenter.v1.CustomConfig.Severity[message.severity] : message.severity; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.recommendation != null && message.hasOwnProperty("recommendation")) + object.recommendation = message.recommendation; return object; }; /** - * Converts this ExfilResource to JSON. + * Converts this CustomConfig to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.ExfilResource + * @memberof google.cloud.securitycenter.v1.CustomConfig * @instance * @returns {Object.} JSON object */ - ExfilResource.prototype.toJSON = function toJSON() { + CustomConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExfilResource + * Gets the default type url for CustomConfig * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.ExfilResource + * @memberof google.cloud.securitycenter.v1.CustomConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExfilResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CustomConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.ExfilResource"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.CustomConfig"; }; - return ExfilResource; - })(); + CustomConfig.CustomOutputSpec = (function() { - v1.ExternalSystem = (function() { + /** + * Properties of a CustomOutputSpec. + * @memberof google.cloud.securitycenter.v1.CustomConfig + * @interface ICustomOutputSpec + * @property {Array.|null} [properties] CustomOutputSpec properties + */ - /** - * Properties of an ExternalSystem. - * @memberof google.cloud.securitycenter.v1 - * @interface IExternalSystem - * @property {string|null} [name] ExternalSystem name - * @property {Array.|null} [assignees] ExternalSystem assignees - * @property {string|null} [externalUid] ExternalSystem externalUid - * @property {string|null} [status] ExternalSystem status - * @property {google.protobuf.ITimestamp|null} [externalSystemUpdateTime] ExternalSystem externalSystemUpdateTime - */ + /** + * Constructs a new CustomOutputSpec. + * @memberof google.cloud.securitycenter.v1.CustomConfig + * @classdesc Represents a CustomOutputSpec. + * @implements ICustomOutputSpec + * @constructor + * @param {google.cloud.securitycenter.v1.CustomConfig.ICustomOutputSpec=} [properties] Properties to set + */ + function CustomOutputSpec(properties) { + this.properties = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new ExternalSystem. - * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents an ExternalSystem. - * @implements IExternalSystem - * @constructor - * @param {google.cloud.securitycenter.v1.IExternalSystem=} [properties] Properties to set - */ - function ExternalSystem(properties) { - this.assignees = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * CustomOutputSpec properties. + * @member {Array.} properties + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + * @instance + */ + CustomOutputSpec.prototype.properties = $util.emptyArray; - /** - * ExternalSystem name. - * @member {string} name - * @memberof google.cloud.securitycenter.v1.ExternalSystem - * @instance - */ - ExternalSystem.prototype.name = ""; + /** + * Creates a new CustomOutputSpec instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + * @static + * @param {google.cloud.securitycenter.v1.CustomConfig.ICustomOutputSpec=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec} CustomOutputSpec instance + */ + CustomOutputSpec.create = function create(properties) { + return new CustomOutputSpec(properties); + }; - /** - * ExternalSystem assignees. - * @member {Array.} assignees - * @memberof google.cloud.securitycenter.v1.ExternalSystem - * @instance - */ - ExternalSystem.prototype.assignees = $util.emptyArray; + /** + * Encodes the specified CustomOutputSpec message. Does not implicitly {@link google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + * @static + * @param {google.cloud.securitycenter.v1.CustomConfig.ICustomOutputSpec} message CustomOutputSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomOutputSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.properties != null && message.properties.length) + for (var i = 0; i < message.properties.length; ++i) + $root.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.encode(message.properties[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * ExternalSystem externalUid. - * @member {string} externalUid - * @memberof google.cloud.securitycenter.v1.ExternalSystem - * @instance - */ - ExternalSystem.prototype.externalUid = ""; + /** + * Encodes the specified CustomOutputSpec message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + * @static + * @param {google.cloud.securitycenter.v1.CustomConfig.ICustomOutputSpec} message CustomOutputSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomOutputSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * ExternalSystem status. - * @member {string} status - * @memberof google.cloud.securitycenter.v1.ExternalSystem - * @instance - */ - ExternalSystem.prototype.status = ""; + /** + * Decodes a CustomOutputSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec} CustomOutputSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomOutputSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.properties && message.properties.length)) + message.properties = []; + message.properties.push($root.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * ExternalSystem externalSystemUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} externalSystemUpdateTime - * @memberof google.cloud.securitycenter.v1.ExternalSystem - * @instance - */ - ExternalSystem.prototype.externalSystemUpdateTime = null; + /** + * Decodes a CustomOutputSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec} CustomOutputSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomOutputSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a new ExternalSystem instance using the specified properties. - * @function create - * @memberof google.cloud.securitycenter.v1.ExternalSystem - * @static - * @param {google.cloud.securitycenter.v1.IExternalSystem=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.ExternalSystem} ExternalSystem instance - */ - ExternalSystem.create = function create(properties) { - return new ExternalSystem(properties); + /** + * Verifies a CustomOutputSpec message. + * @function verify + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomOutputSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.properties != null && message.hasOwnProperty("properties")) { + if (!Array.isArray(message.properties)) + return "properties: array expected"; + for (var i = 0; i < message.properties.length; ++i) { + var error = $root.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.verify(message.properties[i]); + if (error) + return "properties." + error; + } + } + return null; + }; + + /** + * Creates a CustomOutputSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec} CustomOutputSpec + */ + CustomOutputSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec) + return object; + var message = new $root.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec(); + if (object.properties) { + if (!Array.isArray(object.properties)) + throw TypeError(".google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.properties: array expected"); + message.properties = []; + for (var i = 0; i < object.properties.length; ++i) { + if (typeof object.properties[i] !== "object") + throw TypeError(".google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.properties: object expected"); + message.properties[i] = $root.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.fromObject(object.properties[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a CustomOutputSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + * @static + * @param {google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec} message CustomOutputSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomOutputSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.properties = []; + if (message.properties && message.properties.length) { + object.properties = []; + for (var j = 0; j < message.properties.length; ++j) + object.properties[j] = $root.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.toObject(message.properties[j], options); + } + return object; + }; + + /** + * Converts this CustomOutputSpec to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + * @instance + * @returns {Object.} JSON object + */ + CustomOutputSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CustomOutputSpec + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomOutputSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec"; + }; + + CustomOutputSpec.Property = (function() { + + /** + * Properties of a Property. + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + * @interface IProperty + * @property {string|null} [name] Property name + * @property {google.type.IExpr|null} [valueExpression] Property valueExpression + */ + + /** + * Constructs a new Property. + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + * @classdesc Represents a Property. + * @implements IProperty + * @constructor + * @param {google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.IProperty=} [properties] Properties to set + */ + function Property(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Property name. + * @member {string} name + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + * @instance + */ + Property.prototype.name = ""; + + /** + * Property valueExpression. + * @member {google.type.IExpr|null|undefined} valueExpression + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + * @instance + */ + Property.prototype.valueExpression = null; + + /** + * Creates a new Property instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + * @static + * @param {google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.IProperty=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property} Property instance + */ + Property.create = function create(properties) { + return new Property(properties); + }; + + /** + * Encodes the specified Property message. Does not implicitly {@link google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + * @static + * @param {google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.IProperty} message Property message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Property.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.valueExpression != null && Object.hasOwnProperty.call(message, "valueExpression")) + $root.google.type.Expr.encode(message.valueExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Property message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + * @static + * @param {google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.IProperty} message Property message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Property.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Property message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property} Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Property.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.valueExpression = $root.google.type.Expr.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Property message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property} Property + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Property.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Property message. + * @function verify + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Property.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.valueExpression != null && message.hasOwnProperty("valueExpression")) { + var error = $root.google.type.Expr.verify(message.valueExpression); + if (error) + return "valueExpression." + error; + } + return null; + }; + + /** + * Creates a Property message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property} Property + */ + Property.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property) + return object; + var message = new $root.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property(); + if (object.name != null) + message.name = String(object.name); + if (object.valueExpression != null) { + if (typeof object.valueExpression !== "object") + throw TypeError(".google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.valueExpression: object expected"); + message.valueExpression = $root.google.type.Expr.fromObject(object.valueExpression); + } + return message; + }; + + /** + * Creates a plain object from a Property message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + * @static + * @param {google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property} message Property + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Property.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.valueExpression = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.valueExpression != null && message.hasOwnProperty("valueExpression")) + object.valueExpression = $root.google.type.Expr.toObject(message.valueExpression, options); + return object; + }; + + /** + * Converts this Property to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + * @instance + * @returns {Object.} JSON object + */ + Property.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Property + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Property.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property"; + }; + + return Property; + })(); + + return CustomOutputSpec; + })(); + + CustomConfig.ResourceSelector = (function() { + + /** + * Properties of a ResourceSelector. + * @memberof google.cloud.securitycenter.v1.CustomConfig + * @interface IResourceSelector + * @property {Array.|null} [resourceTypes] ResourceSelector resourceTypes + */ + + /** + * Constructs a new ResourceSelector. + * @memberof google.cloud.securitycenter.v1.CustomConfig + * @classdesc Represents a ResourceSelector. + * @implements IResourceSelector + * @constructor + * @param {google.cloud.securitycenter.v1.CustomConfig.IResourceSelector=} [properties] Properties to set + */ + function ResourceSelector(properties) { + this.resourceTypes = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceSelector resourceTypes. + * @member {Array.} resourceTypes + * @memberof google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + * @instance + */ + ResourceSelector.prototype.resourceTypes = $util.emptyArray; + + /** + * Creates a new ResourceSelector instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + * @static + * @param {google.cloud.securitycenter.v1.CustomConfig.IResourceSelector=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.CustomConfig.ResourceSelector} ResourceSelector instance + */ + ResourceSelector.create = function create(properties) { + return new ResourceSelector(properties); + }; + + /** + * Encodes the specified ResourceSelector message. Does not implicitly {@link google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + * @static + * @param {google.cloud.securitycenter.v1.CustomConfig.IResourceSelector} message ResourceSelector message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceSelector.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceTypes != null && message.resourceTypes.length) + for (var i = 0; i < message.resourceTypes.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.resourceTypes[i]); + return writer; + }; + + /** + * Encodes the specified ResourceSelector message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + * @static + * @param {google.cloud.securitycenter.v1.CustomConfig.IResourceSelector} message ResourceSelector message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceSelector.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceSelector message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.CustomConfig.ResourceSelector} ResourceSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceSelector.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.resourceTypes && message.resourceTypes.length)) + message.resourceTypes = []; + message.resourceTypes.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceSelector message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.CustomConfig.ResourceSelector} ResourceSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceSelector.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceSelector message. + * @function verify + * @memberof google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceSelector.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceTypes != null && message.hasOwnProperty("resourceTypes")) { + if (!Array.isArray(message.resourceTypes)) + return "resourceTypes: array expected"; + for (var i = 0; i < message.resourceTypes.length; ++i) + if (!$util.isString(message.resourceTypes[i])) + return "resourceTypes: string[] expected"; + } + return null; + }; + + /** + * Creates a ResourceSelector message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.CustomConfig.ResourceSelector} ResourceSelector + */ + ResourceSelector.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector) + return object; + var message = new $root.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector(); + if (object.resourceTypes) { + if (!Array.isArray(object.resourceTypes)) + throw TypeError(".google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.resourceTypes: array expected"); + message.resourceTypes = []; + for (var i = 0; i < object.resourceTypes.length; ++i) + message.resourceTypes[i] = String(object.resourceTypes[i]); + } + return message; + }; + + /** + * Creates a plain object from a ResourceSelector message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + * @static + * @param {google.cloud.securitycenter.v1.CustomConfig.ResourceSelector} message ResourceSelector + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceSelector.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.resourceTypes = []; + if (message.resourceTypes && message.resourceTypes.length) { + object.resourceTypes = []; + for (var j = 0; j < message.resourceTypes.length; ++j) + object.resourceTypes[j] = message.resourceTypes[j]; + } + return object; + }; + + /** + * Converts this ResourceSelector to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + * @instance + * @returns {Object.} JSON object + */ + ResourceSelector.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceSelector + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceSelector.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.CustomConfig.ResourceSelector"; + }; + + return ResourceSelector; + })(); + + /** + * Severity enum. + * @name google.cloud.securitycenter.v1.CustomConfig.Severity + * @enum {number} + * @property {number} SEVERITY_UNSPECIFIED=0 SEVERITY_UNSPECIFIED value + * @property {number} CRITICAL=1 CRITICAL value + * @property {number} HIGH=2 HIGH value + * @property {number} MEDIUM=3 MEDIUM value + * @property {number} LOW=4 LOW value + */ + CustomConfig.Severity = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SEVERITY_UNSPECIFIED"] = 0; + values[valuesById[1] = "CRITICAL"] = 1; + values[valuesById[2] = "HIGH"] = 2; + values[valuesById[3] = "MEDIUM"] = 3; + values[valuesById[4] = "LOW"] = 4; + return values; + })(); + + return CustomConfig; + })(); + + v1.Exfiltration = (function() { + + /** + * Properties of an Exfiltration. + * @memberof google.cloud.securitycenter.v1 + * @interface IExfiltration + * @property {Array.|null} [sources] Exfiltration sources + * @property {Array.|null} [targets] Exfiltration targets + */ + + /** + * Constructs a new Exfiltration. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents an Exfiltration. + * @implements IExfiltration + * @constructor + * @param {google.cloud.securitycenter.v1.IExfiltration=} [properties] Properties to set + */ + function Exfiltration(properties) { + this.sources = []; + this.targets = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Exfiltration sources. + * @member {Array.} sources + * @memberof google.cloud.securitycenter.v1.Exfiltration + * @instance + */ + Exfiltration.prototype.sources = $util.emptyArray; + + /** + * Exfiltration targets. + * @member {Array.} targets + * @memberof google.cloud.securitycenter.v1.Exfiltration + * @instance + */ + Exfiltration.prototype.targets = $util.emptyArray; + + /** + * Creates a new Exfiltration instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.Exfiltration + * @static + * @param {google.cloud.securitycenter.v1.IExfiltration=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.Exfiltration} Exfiltration instance + */ + Exfiltration.create = function create(properties) { + return new Exfiltration(properties); }; /** - * Encodes the specified ExternalSystem message. Does not implicitly {@link google.cloud.securitycenter.v1.ExternalSystem.verify|verify} messages. + * Encodes the specified Exfiltration message. Does not implicitly {@link google.cloud.securitycenter.v1.Exfiltration.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @memberof google.cloud.securitycenter.v1.Exfiltration * @static - * @param {google.cloud.securitycenter.v1.IExternalSystem} message ExternalSystem message or plain object to encode + * @param {google.cloud.securitycenter.v1.IExfiltration} message Exfiltration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExternalSystem.encode = function encode(message, writer) { + Exfiltration.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.assignees != null && message.assignees.length) - for (var i = 0; i < message.assignees.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.assignees[i]); - if (message.externalUid != null && Object.hasOwnProperty.call(message, "externalUid")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.status); - if (message.externalSystemUpdateTime != null && Object.hasOwnProperty.call(message, "externalSystemUpdateTime")) - $root.google.protobuf.Timestamp.encode(message.externalSystemUpdateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.sources != null && message.sources.length) + for (var i = 0; i < message.sources.length; ++i) + $root.google.cloud.securitycenter.v1.ExfilResource.encode(message.sources[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.targets != null && message.targets.length) + for (var i = 0; i < message.targets.length; ++i) + $root.google.cloud.securitycenter.v1.ExfilResource.encode(message.targets[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExternalSystem message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ExternalSystem.verify|verify} messages. + * Encodes the specified Exfiltration message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.Exfiltration.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @memberof google.cloud.securitycenter.v1.Exfiltration * @static - * @param {google.cloud.securitycenter.v1.IExternalSystem} message ExternalSystem message or plain object to encode + * @param {google.cloud.securitycenter.v1.IExfiltration} message Exfiltration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExternalSystem.encodeDelimited = function encodeDelimited(message, writer) { + Exfiltration.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExternalSystem message from the specified reader or buffer. + * Decodes an Exfiltration message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @memberof google.cloud.securitycenter.v1.Exfiltration * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.ExternalSystem} ExternalSystem + * @returns {google.cloud.securitycenter.v1.Exfiltration} Exfiltration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExternalSystem.decode = function decode(reader, length) { + Exfiltration.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ExternalSystem(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.Exfiltration(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.sources && message.sources.length)) + message.sources = []; + message.sources.push($root.google.cloud.securitycenter.v1.ExfilResource.decode(reader, reader.uint32())); break; } case 2: { - if (!(message.assignees && message.assignees.length)) - message.assignees = []; - message.assignees.push(reader.string()); - break; - } - case 3: { - message.externalUid = reader.string(); - break; - } - case 4: { - message.status = reader.string(); - break; - } - case 5: { - message.externalSystemUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.targets && message.targets.length)) + message.targets = []; + message.targets.push($root.google.cloud.securitycenter.v1.ExfilResource.decode(reader, reader.uint32())); break; } default: @@ -5452,178 +6280,167 @@ }; /** - * Decodes an ExternalSystem message from the specified reader or buffer, length delimited. + * Decodes an Exfiltration message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @memberof google.cloud.securitycenter.v1.Exfiltration * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.ExternalSystem} ExternalSystem + * @returns {google.cloud.securitycenter.v1.Exfiltration} Exfiltration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExternalSystem.decodeDelimited = function decodeDelimited(reader) { + Exfiltration.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExternalSystem message. + * Verifies an Exfiltration message. * @function verify - * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @memberof google.cloud.securitycenter.v1.Exfiltration * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExternalSystem.verify = function verify(message) { + Exfiltration.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.assignees != null && message.hasOwnProperty("assignees")) { - if (!Array.isArray(message.assignees)) - return "assignees: array expected"; - for (var i = 0; i < message.assignees.length; ++i) - if (!$util.isString(message.assignees[i])) - return "assignees: string[] expected"; + if (message.sources != null && message.hasOwnProperty("sources")) { + if (!Array.isArray(message.sources)) + return "sources: array expected"; + for (var i = 0; i < message.sources.length; ++i) { + var error = $root.google.cloud.securitycenter.v1.ExfilResource.verify(message.sources[i]); + if (error) + return "sources." + error; + } } - if (message.externalUid != null && message.hasOwnProperty("externalUid")) - if (!$util.isString(message.externalUid)) - return "externalUid: string expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - if (message.externalSystemUpdateTime != null && message.hasOwnProperty("externalSystemUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.externalSystemUpdateTime); - if (error) - return "externalSystemUpdateTime." + error; + if (message.targets != null && message.hasOwnProperty("targets")) { + if (!Array.isArray(message.targets)) + return "targets: array expected"; + for (var i = 0; i < message.targets.length; ++i) { + var error = $root.google.cloud.securitycenter.v1.ExfilResource.verify(message.targets[i]); + if (error) + return "targets." + error; + } } return null; }; /** - * Creates an ExternalSystem message from a plain object. Also converts values to their respective internal types. + * Creates an Exfiltration message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @memberof google.cloud.securitycenter.v1.Exfiltration * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.ExternalSystem} ExternalSystem + * @returns {google.cloud.securitycenter.v1.Exfiltration} Exfiltration */ - ExternalSystem.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.ExternalSystem) + Exfiltration.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.Exfiltration) return object; - var message = new $root.google.cloud.securitycenter.v1.ExternalSystem(); - if (object.name != null) - message.name = String(object.name); - if (object.assignees) { - if (!Array.isArray(object.assignees)) - throw TypeError(".google.cloud.securitycenter.v1.ExternalSystem.assignees: array expected"); - message.assignees = []; - for (var i = 0; i < object.assignees.length; ++i) - message.assignees[i] = String(object.assignees[i]); + var message = new $root.google.cloud.securitycenter.v1.Exfiltration(); + if (object.sources) { + if (!Array.isArray(object.sources)) + throw TypeError(".google.cloud.securitycenter.v1.Exfiltration.sources: array expected"); + message.sources = []; + for (var i = 0; i < object.sources.length; ++i) { + if (typeof object.sources[i] !== "object") + throw TypeError(".google.cloud.securitycenter.v1.Exfiltration.sources: object expected"); + message.sources[i] = $root.google.cloud.securitycenter.v1.ExfilResource.fromObject(object.sources[i]); + } } - if (object.externalUid != null) - message.externalUid = String(object.externalUid); - if (object.status != null) - message.status = String(object.status); - if (object.externalSystemUpdateTime != null) { - if (typeof object.externalSystemUpdateTime !== "object") - throw TypeError(".google.cloud.securitycenter.v1.ExternalSystem.externalSystemUpdateTime: object expected"); - message.externalSystemUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.externalSystemUpdateTime); + if (object.targets) { + if (!Array.isArray(object.targets)) + throw TypeError(".google.cloud.securitycenter.v1.Exfiltration.targets: array expected"); + message.targets = []; + for (var i = 0; i < object.targets.length; ++i) { + if (typeof object.targets[i] !== "object") + throw TypeError(".google.cloud.securitycenter.v1.Exfiltration.targets: object expected"); + message.targets[i] = $root.google.cloud.securitycenter.v1.ExfilResource.fromObject(object.targets[i]); + } } return message; }; /** - * Creates a plain object from an ExternalSystem message. Also converts values to other types if specified. + * Creates a plain object from an Exfiltration message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @memberof google.cloud.securitycenter.v1.Exfiltration * @static - * @param {google.cloud.securitycenter.v1.ExternalSystem} message ExternalSystem + * @param {google.cloud.securitycenter.v1.Exfiltration} message Exfiltration * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExternalSystem.toObject = function toObject(message, options) { + Exfiltration.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.assignees = []; - if (options.defaults) { - object.name = ""; - object.externalUid = ""; - object.status = ""; - object.externalSystemUpdateTime = null; + if (options.arrays || options.defaults) { + object.sources = []; + object.targets = []; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.assignees && message.assignees.length) { - object.assignees = []; - for (var j = 0; j < message.assignees.length; ++j) - object.assignees[j] = message.assignees[j]; + if (message.sources && message.sources.length) { + object.sources = []; + for (var j = 0; j < message.sources.length; ++j) + object.sources[j] = $root.google.cloud.securitycenter.v1.ExfilResource.toObject(message.sources[j], options); + } + if (message.targets && message.targets.length) { + object.targets = []; + for (var j = 0; j < message.targets.length; ++j) + object.targets[j] = $root.google.cloud.securitycenter.v1.ExfilResource.toObject(message.targets[j], options); } - if (message.externalUid != null && message.hasOwnProperty("externalUid")) - object.externalUid = message.externalUid; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; - if (message.externalSystemUpdateTime != null && message.hasOwnProperty("externalSystemUpdateTime")) - object.externalSystemUpdateTime = $root.google.protobuf.Timestamp.toObject(message.externalSystemUpdateTime, options); return object; }; /** - * Converts this ExternalSystem to JSON. + * Converts this Exfiltration to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @memberof google.cloud.securitycenter.v1.Exfiltration * @instance * @returns {Object.} JSON object */ - ExternalSystem.prototype.toJSON = function toJSON() { + Exfiltration.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExternalSystem + * Gets the default type url for Exfiltration * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @memberof google.cloud.securitycenter.v1.Exfiltration * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExternalSystem.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Exfiltration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.ExternalSystem"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.Exfiltration"; }; - return ExternalSystem; + return Exfiltration; })(); - v1.File = (function() { + v1.ExfilResource = (function() { /** - * Properties of a File. + * Properties of an ExfilResource. * @memberof google.cloud.securitycenter.v1 - * @interface IFile - * @property {string|null} [path] File path - * @property {number|Long|null} [size] File size - * @property {string|null} [sha256] File sha256 - * @property {number|Long|null} [hashedSize] File hashedSize - * @property {boolean|null} [partiallyHashed] File partiallyHashed - * @property {string|null} [contents] File contents + * @interface IExfilResource + * @property {string|null} [name] ExfilResource name + * @property {Array.|null} [components] ExfilResource components */ /** - * Constructs a new File. + * Constructs a new ExfilResource. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a File. - * @implements IFile + * @classdesc Represents an ExfilResource. + * @implements IExfilResource * @constructor - * @param {google.cloud.securitycenter.v1.IFile=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IExfilResource=} [properties] Properties to set */ - function File(properties) { + function ExfilResource(properties) { + this.components = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5631,145 +6448,92 @@ } /** - * File path. - * @member {string} path - * @memberof google.cloud.securitycenter.v1.File - * @instance - */ - File.prototype.path = ""; - - /** - * File size. - * @member {number|Long} size - * @memberof google.cloud.securitycenter.v1.File - * @instance - */ - File.prototype.size = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * File sha256. - * @member {string} sha256 - * @memberof google.cloud.securitycenter.v1.File - * @instance - */ - File.prototype.sha256 = ""; - - /** - * File hashedSize. - * @member {number|Long} hashedSize - * @memberof google.cloud.securitycenter.v1.File - * @instance - */ - File.prototype.hashedSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * File partiallyHashed. - * @member {boolean} partiallyHashed - * @memberof google.cloud.securitycenter.v1.File + * ExfilResource name. + * @member {string} name + * @memberof google.cloud.securitycenter.v1.ExfilResource * @instance */ - File.prototype.partiallyHashed = false; + ExfilResource.prototype.name = ""; /** - * File contents. - * @member {string} contents - * @memberof google.cloud.securitycenter.v1.File + * ExfilResource components. + * @member {Array.} components + * @memberof google.cloud.securitycenter.v1.ExfilResource * @instance */ - File.prototype.contents = ""; + ExfilResource.prototype.components = $util.emptyArray; /** - * Creates a new File instance using the specified properties. + * Creates a new ExfilResource instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.File + * @memberof google.cloud.securitycenter.v1.ExfilResource * @static - * @param {google.cloud.securitycenter.v1.IFile=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.File} File instance + * @param {google.cloud.securitycenter.v1.IExfilResource=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.ExfilResource} ExfilResource instance */ - File.create = function create(properties) { - return new File(properties); + ExfilResource.create = function create(properties) { + return new ExfilResource(properties); }; /** - * Encodes the specified File message. Does not implicitly {@link google.cloud.securitycenter.v1.File.verify|verify} messages. + * Encodes the specified ExfilResource message. Does not implicitly {@link google.cloud.securitycenter.v1.ExfilResource.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.File + * @memberof google.cloud.securitycenter.v1.ExfilResource * @static - * @param {google.cloud.securitycenter.v1.IFile} message File message or plain object to encode + * @param {google.cloud.securitycenter.v1.IExfilResource} message ExfilResource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - File.encode = function encode(message, writer) { + ExfilResource.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); - if (message.size != null && Object.hasOwnProperty.call(message, "size")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.size); - if (message.sha256 != null && Object.hasOwnProperty.call(message, "sha256")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.sha256); - if (message.hashedSize != null && Object.hasOwnProperty.call(message, "hashedSize")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.hashedSize); - if (message.partiallyHashed != null && Object.hasOwnProperty.call(message, "partiallyHashed")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.partiallyHashed); - if (message.contents != null && Object.hasOwnProperty.call(message, "contents")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.contents); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.components != null && message.components.length) + for (var i = 0; i < message.components.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.components[i]); return writer; }; /** - * Encodes the specified File message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.File.verify|verify} messages. + * Encodes the specified ExfilResource message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ExfilResource.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.File + * @memberof google.cloud.securitycenter.v1.ExfilResource * @static - * @param {google.cloud.securitycenter.v1.IFile} message File message or plain object to encode + * @param {google.cloud.securitycenter.v1.IExfilResource} message ExfilResource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - File.encodeDelimited = function encodeDelimited(message, writer) { + ExfilResource.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a File message from the specified reader or buffer. + * Decodes an ExfilResource message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.File + * @memberof google.cloud.securitycenter.v1.ExfilResource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.File} File + * @returns {google.cloud.securitycenter.v1.ExfilResource} ExfilResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - File.decode = function decode(reader, length) { + ExfilResource.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.File(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ExfilResource(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.path = reader.string(); + message.name = reader.string(); break; } case 2: { - message.size = reader.int64(); - break; - } - case 3: { - message.sha256 = reader.string(); - break; - } - case 4: { - message.hashedSize = reader.int64(); - break; - } - case 5: { - message.partiallyHashed = reader.bool(); - break; - } - case 6: { - message.contents = reader.string(); + if (!(message.components && message.components.length)) + message.components = []; + message.components.push(reader.string()); break; } default: @@ -5781,234 +6545,148 @@ }; /** - * Decodes a File message from the specified reader or buffer, length delimited. + * Decodes an ExfilResource message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.File + * @memberof google.cloud.securitycenter.v1.ExfilResource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.File} File + * @returns {google.cloud.securitycenter.v1.ExfilResource} ExfilResource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - File.decodeDelimited = function decodeDelimited(reader) { + ExfilResource.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a File message. + * Verifies an ExfilResource message. * @function verify - * @memberof google.cloud.securitycenter.v1.File + * @memberof google.cloud.securitycenter.v1.ExfilResource * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - File.verify = function verify(message) { + ExfilResource.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - if (message.size != null && message.hasOwnProperty("size")) - if (!$util.isInteger(message.size) && !(message.size && $util.isInteger(message.size.low) && $util.isInteger(message.size.high))) - return "size: integer|Long expected"; - if (message.sha256 != null && message.hasOwnProperty("sha256")) - if (!$util.isString(message.sha256)) - return "sha256: string expected"; - if (message.hashedSize != null && message.hasOwnProperty("hashedSize")) - if (!$util.isInteger(message.hashedSize) && !(message.hashedSize && $util.isInteger(message.hashedSize.low) && $util.isInteger(message.hashedSize.high))) - return "hashedSize: integer|Long expected"; - if (message.partiallyHashed != null && message.hasOwnProperty("partiallyHashed")) - if (typeof message.partiallyHashed !== "boolean") - return "partiallyHashed: boolean expected"; - if (message.contents != null && message.hasOwnProperty("contents")) - if (!$util.isString(message.contents)) - return "contents: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.components != null && message.hasOwnProperty("components")) { + if (!Array.isArray(message.components)) + return "components: array expected"; + for (var i = 0; i < message.components.length; ++i) + if (!$util.isString(message.components[i])) + return "components: string[] expected"; + } return null; }; /** - * Creates a File message from a plain object. Also converts values to their respective internal types. + * Creates an ExfilResource message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.File + * @memberof google.cloud.securitycenter.v1.ExfilResource * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.File} File + * @returns {google.cloud.securitycenter.v1.ExfilResource} ExfilResource */ - File.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.File) + ExfilResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.ExfilResource) return object; - var message = new $root.google.cloud.securitycenter.v1.File(); - if (object.path != null) - message.path = String(object.path); - if (object.size != null) - if ($util.Long) - (message.size = $util.Long.fromValue(object.size)).unsigned = false; - else if (typeof object.size === "string") - message.size = parseInt(object.size, 10); - else if (typeof object.size === "number") - message.size = object.size; - else if (typeof object.size === "object") - message.size = new $util.LongBits(object.size.low >>> 0, object.size.high >>> 0).toNumber(); - if (object.sha256 != null) - message.sha256 = String(object.sha256); - if (object.hashedSize != null) - if ($util.Long) - (message.hashedSize = $util.Long.fromValue(object.hashedSize)).unsigned = false; - else if (typeof object.hashedSize === "string") - message.hashedSize = parseInt(object.hashedSize, 10); - else if (typeof object.hashedSize === "number") - message.hashedSize = object.hashedSize; - else if (typeof object.hashedSize === "object") - message.hashedSize = new $util.LongBits(object.hashedSize.low >>> 0, object.hashedSize.high >>> 0).toNumber(); - if (object.partiallyHashed != null) - message.partiallyHashed = Boolean(object.partiallyHashed); - if (object.contents != null) - message.contents = String(object.contents); + var message = new $root.google.cloud.securitycenter.v1.ExfilResource(); + if (object.name != null) + message.name = String(object.name); + if (object.components) { + if (!Array.isArray(object.components)) + throw TypeError(".google.cloud.securitycenter.v1.ExfilResource.components: array expected"); + message.components = []; + for (var i = 0; i < object.components.length; ++i) + message.components[i] = String(object.components[i]); + } return message; }; /** - * Creates a plain object from a File message. Also converts values to other types if specified. + * Creates a plain object from an ExfilResource message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.File + * @memberof google.cloud.securitycenter.v1.ExfilResource * @static - * @param {google.cloud.securitycenter.v1.File} message File + * @param {google.cloud.securitycenter.v1.ExfilResource} message ExfilResource * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - File.toObject = function toObject(message, options) { + ExfilResource.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.path = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.size = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.size = options.longs === String ? "0" : 0; - object.sha256 = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.hashedSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.hashedSize = options.longs === String ? "0" : 0; - object.partiallyHashed = false; - object.contents = ""; + if (options.arrays || options.defaults) + object.components = []; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.components && message.components.length) { + object.components = []; + for (var j = 0; j < message.components.length; ++j) + object.components[j] = message.components[j]; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - if (message.size != null && message.hasOwnProperty("size")) - if (typeof message.size === "number") - object.size = options.longs === String ? String(message.size) : message.size; - else - object.size = options.longs === String ? $util.Long.prototype.toString.call(message.size) : options.longs === Number ? new $util.LongBits(message.size.low >>> 0, message.size.high >>> 0).toNumber() : message.size; - if (message.sha256 != null && message.hasOwnProperty("sha256")) - object.sha256 = message.sha256; - if (message.hashedSize != null && message.hasOwnProperty("hashedSize")) - if (typeof message.hashedSize === "number") - object.hashedSize = options.longs === String ? String(message.hashedSize) : message.hashedSize; - else - object.hashedSize = options.longs === String ? $util.Long.prototype.toString.call(message.hashedSize) : options.longs === Number ? new $util.LongBits(message.hashedSize.low >>> 0, message.hashedSize.high >>> 0).toNumber() : message.hashedSize; - if (message.partiallyHashed != null && message.hasOwnProperty("partiallyHashed")) - object.partiallyHashed = message.partiallyHashed; - if (message.contents != null && message.hasOwnProperty("contents")) - object.contents = message.contents; return object; }; /** - * Converts this File to JSON. + * Converts this ExfilResource to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.File + * @memberof google.cloud.securitycenter.v1.ExfilResource * @instance * @returns {Object.} JSON object */ - File.prototype.toJSON = function toJSON() { + ExfilResource.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for File + * Gets the default type url for ExfilResource * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.File + * @memberof google.cloud.securitycenter.v1.ExfilResource * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - File.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExfilResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.File"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.ExfilResource"; }; - return File; + return ExfilResource; })(); - v1.Finding = (function() { + v1.ExternalSystem = (function() { /** - * Properties of a Finding. + * Properties of an ExternalSystem. * @memberof google.cloud.securitycenter.v1 - * @interface IFinding - * @property {string|null} [name] Finding name - * @property {string|null} [parent] Finding parent - * @property {string|null} [resourceName] Finding resourceName - * @property {google.cloud.securitycenter.v1.Finding.State|null} [state] Finding state - * @property {string|null} [category] Finding category - * @property {string|null} [externalUri] Finding externalUri - * @property {Object.|null} [sourceProperties] Finding sourceProperties - * @property {google.cloud.securitycenter.v1.ISecurityMarks|null} [securityMarks] Finding securityMarks - * @property {google.protobuf.ITimestamp|null} [eventTime] Finding eventTime - * @property {google.protobuf.ITimestamp|null} [createTime] Finding createTime - * @property {google.cloud.securitycenter.v1.Finding.Severity|null} [severity] Finding severity - * @property {string|null} [canonicalName] Finding canonicalName - * @property {google.cloud.securitycenter.v1.Finding.Mute|null} [mute] Finding mute - * @property {google.cloud.securitycenter.v1.Finding.FindingClass|null} [findingClass] Finding findingClass - * @property {google.cloud.securitycenter.v1.IIndicator|null} [indicator] Finding indicator - * @property {google.cloud.securitycenter.v1.IVulnerability|null} [vulnerability] Finding vulnerability - * @property {google.protobuf.ITimestamp|null} [muteUpdateTime] Finding muteUpdateTime - * @property {Object.|null} [externalSystems] Finding externalSystems - * @property {google.cloud.securitycenter.v1.IMitreAttack|null} [mitreAttack] Finding mitreAttack - * @property {google.cloud.securitycenter.v1.IAccess|null} [access] Finding access - * @property {Array.|null} [connections] Finding connections - * @property {string|null} [muteInitiator] Finding muteInitiator - * @property {Array.|null} [processes] Finding processes - * @property {Object.|null} [contacts] Finding contacts - * @property {Array.|null} [compliances] Finding compliances - * @property {string|null} [parentDisplayName] Finding parentDisplayName - * @property {string|null} [description] Finding description - * @property {google.cloud.securitycenter.v1.IExfiltration|null} [exfiltration] Finding exfiltration - * @property {Array.|null} [iamBindings] Finding iamBindings - * @property {string|null} [nextSteps] Finding nextSteps - * @property {Array.|null} [containers] Finding containers - * @property {google.cloud.securitycenter.v1.IKubernetes|null} [kubernetes] Finding kubernetes - * @property {google.cloud.securitycenter.v1.IDatabase|null} [database] Finding database - * @property {Array.|null} [files] Finding files - * @property {google.cloud.securitycenter.v1.IKernelRootkit|null} [kernelRootkit] Finding kernelRootkit + * @interface IExternalSystem + * @property {string|null} [name] ExternalSystem name + * @property {Array.|null} [assignees] ExternalSystem assignees + * @property {string|null} [externalUid] ExternalSystem externalUid + * @property {string|null} [status] ExternalSystem status + * @property {google.protobuf.ITimestamp|null} [externalSystemUpdateTime] ExternalSystem externalSystemUpdateTime */ /** - * Constructs a new Finding. + * Constructs a new ExternalSystem. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a Finding. - * @implements IFinding + * @classdesc Represents an ExternalSystem. + * @implements IExternalSystem * @constructor - * @param {google.cloud.securitycenter.v1.IFinding=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IExternalSystem=} [properties] Properties to set */ - function Finding(properties) { - this.sourceProperties = {}; - this.externalSystems = {}; - this.connections = []; - this.processes = []; - this.contacts = {}; - this.compliances = []; - this.iamBindings = []; - this.containers = []; - this.files = []; + function ExternalSystem(properties) { + this.assignees = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6016,245 +6694,957 @@ } /** - * Finding name. + * ExternalSystem name. * @member {string} name - * @memberof google.cloud.securitycenter.v1.Finding + * @memberof google.cloud.securitycenter.v1.ExternalSystem * @instance */ - Finding.prototype.name = ""; + ExternalSystem.prototype.name = ""; /** - * Finding parent. - * @member {string} parent - * @memberof google.cloud.securitycenter.v1.Finding + * ExternalSystem assignees. + * @member {Array.} assignees + * @memberof google.cloud.securitycenter.v1.ExternalSystem * @instance */ - Finding.prototype.parent = ""; + ExternalSystem.prototype.assignees = $util.emptyArray; /** - * Finding resourceName. - * @member {string} resourceName - * @memberof google.cloud.securitycenter.v1.Finding + * ExternalSystem externalUid. + * @member {string} externalUid + * @memberof google.cloud.securitycenter.v1.ExternalSystem * @instance */ - Finding.prototype.resourceName = ""; + ExternalSystem.prototype.externalUid = ""; /** - * Finding state. - * @member {google.cloud.securitycenter.v1.Finding.State} state - * @memberof google.cloud.securitycenter.v1.Finding + * ExternalSystem status. + * @member {string} status + * @memberof google.cloud.securitycenter.v1.ExternalSystem * @instance */ - Finding.prototype.state = 0; + ExternalSystem.prototype.status = ""; /** - * Finding category. - * @member {string} category - * @memberof google.cloud.securitycenter.v1.Finding + * ExternalSystem externalSystemUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} externalSystemUpdateTime + * @memberof google.cloud.securitycenter.v1.ExternalSystem * @instance */ - Finding.prototype.category = ""; + ExternalSystem.prototype.externalSystemUpdateTime = null; /** - * Finding externalUri. - * @member {string} externalUri - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Creates a new ExternalSystem instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @static + * @param {google.cloud.securitycenter.v1.IExternalSystem=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.ExternalSystem} ExternalSystem instance */ - Finding.prototype.externalUri = ""; + ExternalSystem.create = function create(properties) { + return new ExternalSystem(properties); + }; /** - * Finding sourceProperties. - * @member {Object.} sourceProperties - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Encodes the specified ExternalSystem message. Does not implicitly {@link google.cloud.securitycenter.v1.ExternalSystem.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @static + * @param {google.cloud.securitycenter.v1.IExternalSystem} message ExternalSystem message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Finding.prototype.sourceProperties = $util.emptyObject; + ExternalSystem.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.assignees != null && message.assignees.length) + for (var i = 0; i < message.assignees.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.assignees[i]); + if (message.externalUid != null && Object.hasOwnProperty.call(message, "externalUid")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalUid); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.status); + if (message.externalSystemUpdateTime != null && Object.hasOwnProperty.call(message, "externalSystemUpdateTime")) + $root.google.protobuf.Timestamp.encode(message.externalSystemUpdateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; /** - * Finding securityMarks. - * @member {google.cloud.securitycenter.v1.ISecurityMarks|null|undefined} securityMarks - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Encodes the specified ExternalSystem message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ExternalSystem.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @static + * @param {google.cloud.securitycenter.v1.IExternalSystem} message ExternalSystem message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Finding.prototype.securityMarks = null; + ExternalSystem.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Finding eventTime. - * @member {google.protobuf.ITimestamp|null|undefined} eventTime - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Decodes an ExternalSystem message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.ExternalSystem} ExternalSystem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Finding.prototype.eventTime = null; + ExternalSystem.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ExternalSystem(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.assignees && message.assignees.length)) + message.assignees = []; + message.assignees.push(reader.string()); + break; + } + case 3: { + message.externalUid = reader.string(); + break; + } + case 4: { + message.status = reader.string(); + break; + } + case 5: { + message.externalSystemUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Finding createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Decodes an ExternalSystem message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.ExternalSystem} ExternalSystem + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Finding.prototype.createTime = null; + ExternalSystem.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Finding severity. - * @member {google.cloud.securitycenter.v1.Finding.Severity} severity - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Verifies an ExternalSystem message. + * @function verify + * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Finding.prototype.severity = 0; + ExternalSystem.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.assignees != null && message.hasOwnProperty("assignees")) { + if (!Array.isArray(message.assignees)) + return "assignees: array expected"; + for (var i = 0; i < message.assignees.length; ++i) + if (!$util.isString(message.assignees[i])) + return "assignees: string[] expected"; + } + if (message.externalUid != null && message.hasOwnProperty("externalUid")) + if (!$util.isString(message.externalUid)) + return "externalUid: string expected"; + if (message.status != null && message.hasOwnProperty("status")) + if (!$util.isString(message.status)) + return "status: string expected"; + if (message.externalSystemUpdateTime != null && message.hasOwnProperty("externalSystemUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.externalSystemUpdateTime); + if (error) + return "externalSystemUpdateTime." + error; + } + return null; + }; /** - * Finding canonicalName. - * @member {string} canonicalName - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Creates an ExternalSystem message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.ExternalSystem} ExternalSystem */ - Finding.prototype.canonicalName = ""; + ExternalSystem.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.ExternalSystem) + return object; + var message = new $root.google.cloud.securitycenter.v1.ExternalSystem(); + if (object.name != null) + message.name = String(object.name); + if (object.assignees) { + if (!Array.isArray(object.assignees)) + throw TypeError(".google.cloud.securitycenter.v1.ExternalSystem.assignees: array expected"); + message.assignees = []; + for (var i = 0; i < object.assignees.length; ++i) + message.assignees[i] = String(object.assignees[i]); + } + if (object.externalUid != null) + message.externalUid = String(object.externalUid); + if (object.status != null) + message.status = String(object.status); + if (object.externalSystemUpdateTime != null) { + if (typeof object.externalSystemUpdateTime !== "object") + throw TypeError(".google.cloud.securitycenter.v1.ExternalSystem.externalSystemUpdateTime: object expected"); + message.externalSystemUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.externalSystemUpdateTime); + } + return message; + }; /** - * Finding mute. - * @member {google.cloud.securitycenter.v1.Finding.Mute} mute - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Creates a plain object from an ExternalSystem message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @static + * @param {google.cloud.securitycenter.v1.ExternalSystem} message ExternalSystem + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Finding.prototype.mute = 0; + ExternalSystem.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.assignees = []; + if (options.defaults) { + object.name = ""; + object.externalUid = ""; + object.status = ""; + object.externalSystemUpdateTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.assignees && message.assignees.length) { + object.assignees = []; + for (var j = 0; j < message.assignees.length; ++j) + object.assignees[j] = message.assignees[j]; + } + if (message.externalUid != null && message.hasOwnProperty("externalUid")) + object.externalUid = message.externalUid; + if (message.status != null && message.hasOwnProperty("status")) + object.status = message.status; + if (message.externalSystemUpdateTime != null && message.hasOwnProperty("externalSystemUpdateTime")) + object.externalSystemUpdateTime = $root.google.protobuf.Timestamp.toObject(message.externalSystemUpdateTime, options); + return object; + }; /** - * Finding findingClass. - * @member {google.cloud.securitycenter.v1.Finding.FindingClass} findingClass - * @memberof google.cloud.securitycenter.v1.Finding + * Converts this ExternalSystem to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.ExternalSystem * @instance + * @returns {Object.} JSON object */ - Finding.prototype.findingClass = 0; + ExternalSystem.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Finding indicator. - * @member {google.cloud.securitycenter.v1.IIndicator|null|undefined} indicator - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Gets the default type url for ExternalSystem + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.ExternalSystem + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - Finding.prototype.indicator = null; + ExternalSystem.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.ExternalSystem"; + }; - /** - * Finding vulnerability. - * @member {google.cloud.securitycenter.v1.IVulnerability|null|undefined} vulnerability - * @memberof google.cloud.securitycenter.v1.Finding - * @instance - */ - Finding.prototype.vulnerability = null; + return ExternalSystem; + })(); + + v1.File = (function() { /** - * Finding muteUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} muteUpdateTime - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Properties of a File. + * @memberof google.cloud.securitycenter.v1 + * @interface IFile + * @property {string|null} [path] File path + * @property {number|Long|null} [size] File size + * @property {string|null} [sha256] File sha256 + * @property {number|Long|null} [hashedSize] File hashedSize + * @property {boolean|null} [partiallyHashed] File partiallyHashed + * @property {string|null} [contents] File contents */ - Finding.prototype.muteUpdateTime = null; /** - * Finding externalSystems. - * @member {Object.} externalSystems - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Constructs a new File. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents a File. + * @implements IFile + * @constructor + * @param {google.cloud.securitycenter.v1.IFile=} [properties] Properties to set */ - Finding.prototype.externalSystems = $util.emptyObject; + function File(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Finding mitreAttack. - * @member {google.cloud.securitycenter.v1.IMitreAttack|null|undefined} mitreAttack - * @memberof google.cloud.securitycenter.v1.Finding + * File path. + * @member {string} path + * @memberof google.cloud.securitycenter.v1.File * @instance */ - Finding.prototype.mitreAttack = null; + File.prototype.path = ""; /** - * Finding access. - * @member {google.cloud.securitycenter.v1.IAccess|null|undefined} access - * @memberof google.cloud.securitycenter.v1.Finding + * File size. + * @member {number|Long} size + * @memberof google.cloud.securitycenter.v1.File * @instance */ - Finding.prototype.access = null; + File.prototype.size = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Finding connections. - * @member {Array.} connections - * @memberof google.cloud.securitycenter.v1.Finding + * File sha256. + * @member {string} sha256 + * @memberof google.cloud.securitycenter.v1.File * @instance */ - Finding.prototype.connections = $util.emptyArray; + File.prototype.sha256 = ""; /** - * Finding muteInitiator. - * @member {string} muteInitiator - * @memberof google.cloud.securitycenter.v1.Finding + * File hashedSize. + * @member {number|Long} hashedSize + * @memberof google.cloud.securitycenter.v1.File * @instance */ - Finding.prototype.muteInitiator = ""; + File.prototype.hashedSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Finding processes. - * @member {Array.} processes - * @memberof google.cloud.securitycenter.v1.Finding + * File partiallyHashed. + * @member {boolean} partiallyHashed + * @memberof google.cloud.securitycenter.v1.File * @instance */ - Finding.prototype.processes = $util.emptyArray; + File.prototype.partiallyHashed = false; /** - * Finding contacts. - * @member {Object.} contacts - * @memberof google.cloud.securitycenter.v1.Finding + * File contents. + * @member {string} contents + * @memberof google.cloud.securitycenter.v1.File * @instance */ - Finding.prototype.contacts = $util.emptyObject; + File.prototype.contents = ""; /** - * Finding compliances. - * @member {Array.} compliances - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Creates a new File instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.File + * @static + * @param {google.cloud.securitycenter.v1.IFile=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.File} File instance */ - Finding.prototype.compliances = $util.emptyArray; + File.create = function create(properties) { + return new File(properties); + }; /** - * Finding parentDisplayName. - * @member {string} parentDisplayName - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Encodes the specified File message. Does not implicitly {@link google.cloud.securitycenter.v1.File.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.File + * @static + * @param {google.cloud.securitycenter.v1.IFile} message File message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Finding.prototype.parentDisplayName = ""; + File.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); + if (message.size != null && Object.hasOwnProperty.call(message, "size")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.size); + if (message.sha256 != null && Object.hasOwnProperty.call(message, "sha256")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.sha256); + if (message.hashedSize != null && Object.hasOwnProperty.call(message, "hashedSize")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.hashedSize); + if (message.partiallyHashed != null && Object.hasOwnProperty.call(message, "partiallyHashed")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.partiallyHashed); + if (message.contents != null && Object.hasOwnProperty.call(message, "contents")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.contents); + return writer; + }; /** - * Finding description. - * @member {string} description - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Encodes the specified File message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.File.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.File + * @static + * @param {google.cloud.securitycenter.v1.IFile} message File message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Finding.prototype.description = ""; + File.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Finding exfiltration. - * @member {google.cloud.securitycenter.v1.IExfiltration|null|undefined} exfiltration - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Decodes a File message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.File + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.File} File + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Finding.prototype.exfiltration = null; + File.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.File(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.path = reader.string(); + break; + } + case 2: { + message.size = reader.int64(); + break; + } + case 3: { + message.sha256 = reader.string(); + break; + } + case 4: { + message.hashedSize = reader.int64(); + break; + } + case 5: { + message.partiallyHashed = reader.bool(); + break; + } + case 6: { + message.contents = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Finding iamBindings. - * @member {Array.} iamBindings - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Decodes a File message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.File + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.File} File + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Finding.prototype.iamBindings = $util.emptyArray; + File.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Finding nextSteps. - * @member {string} nextSteps - * @memberof google.cloud.securitycenter.v1.Finding - * @instance + * Verifies a File message. + * @function verify + * @memberof google.cloud.securitycenter.v1.File + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + File.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.size != null && message.hasOwnProperty("size")) + if (!$util.isInteger(message.size) && !(message.size && $util.isInteger(message.size.low) && $util.isInteger(message.size.high))) + return "size: integer|Long expected"; + if (message.sha256 != null && message.hasOwnProperty("sha256")) + if (!$util.isString(message.sha256)) + return "sha256: string expected"; + if (message.hashedSize != null && message.hasOwnProperty("hashedSize")) + if (!$util.isInteger(message.hashedSize) && !(message.hashedSize && $util.isInteger(message.hashedSize.low) && $util.isInteger(message.hashedSize.high))) + return "hashedSize: integer|Long expected"; + if (message.partiallyHashed != null && message.hasOwnProperty("partiallyHashed")) + if (typeof message.partiallyHashed !== "boolean") + return "partiallyHashed: boolean expected"; + if (message.contents != null && message.hasOwnProperty("contents")) + if (!$util.isString(message.contents)) + return "contents: string expected"; + return null; + }; + + /** + * Creates a File message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.File + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.File} File + */ + File.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.File) + return object; + var message = new $root.google.cloud.securitycenter.v1.File(); + if (object.path != null) + message.path = String(object.path); + if (object.size != null) + if ($util.Long) + (message.size = $util.Long.fromValue(object.size)).unsigned = false; + else if (typeof object.size === "string") + message.size = parseInt(object.size, 10); + else if (typeof object.size === "number") + message.size = object.size; + else if (typeof object.size === "object") + message.size = new $util.LongBits(object.size.low >>> 0, object.size.high >>> 0).toNumber(); + if (object.sha256 != null) + message.sha256 = String(object.sha256); + if (object.hashedSize != null) + if ($util.Long) + (message.hashedSize = $util.Long.fromValue(object.hashedSize)).unsigned = false; + else if (typeof object.hashedSize === "string") + message.hashedSize = parseInt(object.hashedSize, 10); + else if (typeof object.hashedSize === "number") + message.hashedSize = object.hashedSize; + else if (typeof object.hashedSize === "object") + message.hashedSize = new $util.LongBits(object.hashedSize.low >>> 0, object.hashedSize.high >>> 0).toNumber(); + if (object.partiallyHashed != null) + message.partiallyHashed = Boolean(object.partiallyHashed); + if (object.contents != null) + message.contents = String(object.contents); + return message; + }; + + /** + * Creates a plain object from a File message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.File + * @static + * @param {google.cloud.securitycenter.v1.File} message File + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + File.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.path = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.size = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.size = options.longs === String ? "0" : 0; + object.sha256 = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.hashedSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.hashedSize = options.longs === String ? "0" : 0; + object.partiallyHashed = false; + object.contents = ""; + } + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.size != null && message.hasOwnProperty("size")) + if (typeof message.size === "number") + object.size = options.longs === String ? String(message.size) : message.size; + else + object.size = options.longs === String ? $util.Long.prototype.toString.call(message.size) : options.longs === Number ? new $util.LongBits(message.size.low >>> 0, message.size.high >>> 0).toNumber() : message.size; + if (message.sha256 != null && message.hasOwnProperty("sha256")) + object.sha256 = message.sha256; + if (message.hashedSize != null && message.hasOwnProperty("hashedSize")) + if (typeof message.hashedSize === "number") + object.hashedSize = options.longs === String ? String(message.hashedSize) : message.hashedSize; + else + object.hashedSize = options.longs === String ? $util.Long.prototype.toString.call(message.hashedSize) : options.longs === Number ? new $util.LongBits(message.hashedSize.low >>> 0, message.hashedSize.high >>> 0).toNumber() : message.hashedSize; + if (message.partiallyHashed != null && message.hasOwnProperty("partiallyHashed")) + object.partiallyHashed = message.partiallyHashed; + if (message.contents != null && message.hasOwnProperty("contents")) + object.contents = message.contents; + return object; + }; + + /** + * Converts this File to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.File + * @instance + * @returns {Object.} JSON object + */ + File.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for File + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.File + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + File.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.File"; + }; + + return File; + })(); + + v1.Finding = (function() { + + /** + * Properties of a Finding. + * @memberof google.cloud.securitycenter.v1 + * @interface IFinding + * @property {string|null} [name] Finding name + * @property {string|null} [parent] Finding parent + * @property {string|null} [resourceName] Finding resourceName + * @property {google.cloud.securitycenter.v1.Finding.State|null} [state] Finding state + * @property {string|null} [category] Finding category + * @property {string|null} [externalUri] Finding externalUri + * @property {Object.|null} [sourceProperties] Finding sourceProperties + * @property {google.cloud.securitycenter.v1.ISecurityMarks|null} [securityMarks] Finding securityMarks + * @property {google.protobuf.ITimestamp|null} [eventTime] Finding eventTime + * @property {google.protobuf.ITimestamp|null} [createTime] Finding createTime + * @property {google.cloud.securitycenter.v1.Finding.Severity|null} [severity] Finding severity + * @property {string|null} [canonicalName] Finding canonicalName + * @property {google.cloud.securitycenter.v1.Finding.Mute|null} [mute] Finding mute + * @property {google.cloud.securitycenter.v1.Finding.FindingClass|null} [findingClass] Finding findingClass + * @property {google.cloud.securitycenter.v1.IIndicator|null} [indicator] Finding indicator + * @property {google.cloud.securitycenter.v1.IVulnerability|null} [vulnerability] Finding vulnerability + * @property {google.protobuf.ITimestamp|null} [muteUpdateTime] Finding muteUpdateTime + * @property {Object.|null} [externalSystems] Finding externalSystems + * @property {google.cloud.securitycenter.v1.IMitreAttack|null} [mitreAttack] Finding mitreAttack + * @property {google.cloud.securitycenter.v1.IAccess|null} [access] Finding access + * @property {Array.|null} [connections] Finding connections + * @property {string|null} [muteInitiator] Finding muteInitiator + * @property {Array.|null} [processes] Finding processes + * @property {Object.|null} [contacts] Finding contacts + * @property {Array.|null} [compliances] Finding compliances + * @property {string|null} [parentDisplayName] Finding parentDisplayName + * @property {string|null} [description] Finding description + * @property {google.cloud.securitycenter.v1.IExfiltration|null} [exfiltration] Finding exfiltration + * @property {Array.|null} [iamBindings] Finding iamBindings + * @property {string|null} [nextSteps] Finding nextSteps + * @property {string|null} [moduleName] Finding moduleName + * @property {Array.|null} [containers] Finding containers + * @property {google.cloud.securitycenter.v1.IKubernetes|null} [kubernetes] Finding kubernetes + * @property {google.cloud.securitycenter.v1.IDatabase|null} [database] Finding database + * @property {Array.|null} [files] Finding files + * @property {google.cloud.securitycenter.v1.IKernelRootkit|null} [kernelRootkit] Finding kernelRootkit + */ + + /** + * Constructs a new Finding. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents a Finding. + * @implements IFinding + * @constructor + * @param {google.cloud.securitycenter.v1.IFinding=} [properties] Properties to set + */ + function Finding(properties) { + this.sourceProperties = {}; + this.externalSystems = {}; + this.connections = []; + this.processes = []; + this.contacts = {}; + this.compliances = []; + this.iamBindings = []; + this.containers = []; + this.files = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Finding name. + * @member {string} name + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.name = ""; + + /** + * Finding parent. + * @member {string} parent + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.parent = ""; + + /** + * Finding resourceName. + * @member {string} resourceName + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.resourceName = ""; + + /** + * Finding state. + * @member {google.cloud.securitycenter.v1.Finding.State} state + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.state = 0; + + /** + * Finding category. + * @member {string} category + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.category = ""; + + /** + * Finding externalUri. + * @member {string} externalUri + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.externalUri = ""; + + /** + * Finding sourceProperties. + * @member {Object.} sourceProperties + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.sourceProperties = $util.emptyObject; + + /** + * Finding securityMarks. + * @member {google.cloud.securitycenter.v1.ISecurityMarks|null|undefined} securityMarks + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.securityMarks = null; + + /** + * Finding eventTime. + * @member {google.protobuf.ITimestamp|null|undefined} eventTime + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.eventTime = null; + + /** + * Finding createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.createTime = null; + + /** + * Finding severity. + * @member {google.cloud.securitycenter.v1.Finding.Severity} severity + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.severity = 0; + + /** + * Finding canonicalName. + * @member {string} canonicalName + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.canonicalName = ""; + + /** + * Finding mute. + * @member {google.cloud.securitycenter.v1.Finding.Mute} mute + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.mute = 0; + + /** + * Finding findingClass. + * @member {google.cloud.securitycenter.v1.Finding.FindingClass} findingClass + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.findingClass = 0; + + /** + * Finding indicator. + * @member {google.cloud.securitycenter.v1.IIndicator|null|undefined} indicator + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.indicator = null; + + /** + * Finding vulnerability. + * @member {google.cloud.securitycenter.v1.IVulnerability|null|undefined} vulnerability + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.vulnerability = null; + + /** + * Finding muteUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} muteUpdateTime + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.muteUpdateTime = null; + + /** + * Finding externalSystems. + * @member {Object.} externalSystems + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.externalSystems = $util.emptyObject; + + /** + * Finding mitreAttack. + * @member {google.cloud.securitycenter.v1.IMitreAttack|null|undefined} mitreAttack + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.mitreAttack = null; + + /** + * Finding access. + * @member {google.cloud.securitycenter.v1.IAccess|null|undefined} access + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.access = null; + + /** + * Finding connections. + * @member {Array.} connections + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.connections = $util.emptyArray; + + /** + * Finding muteInitiator. + * @member {string} muteInitiator + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.muteInitiator = ""; + + /** + * Finding processes. + * @member {Array.} processes + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.processes = $util.emptyArray; + + /** + * Finding contacts. + * @member {Object.} contacts + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.contacts = $util.emptyObject; + + /** + * Finding compliances. + * @member {Array.} compliances + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.compliances = $util.emptyArray; + + /** + * Finding parentDisplayName. + * @member {string} parentDisplayName + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.parentDisplayName = ""; + + /** + * Finding description. + * @member {string} description + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.description = ""; + + /** + * Finding exfiltration. + * @member {google.cloud.securitycenter.v1.IExfiltration|null|undefined} exfiltration + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.exfiltration = null; + + /** + * Finding iamBindings. + * @member {Array.} iamBindings + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.iamBindings = $util.emptyArray; + + /** + * Finding nextSteps. + * @member {string} nextSteps + * @memberof google.cloud.securitycenter.v1.Finding + * @instance */ Finding.prototype.nextSteps = ""; + /** + * Finding moduleName. + * @member {string} moduleName + * @memberof google.cloud.securitycenter.v1.Finding + * @instance + */ + Finding.prototype.moduleName = ""; + /** * Finding containers. * @member {Array.} containers @@ -6392,6 +7782,8 @@ $root.google.cloud.securitycenter.v1.IamBinding.encode(message.iamBindings[i], writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim(); if (message.nextSteps != null && Object.hasOwnProperty.call(message, "nextSteps")) writer.uint32(/* id 40, wireType 2 =*/322).string(message.nextSteps); + if (message.moduleName != null && Object.hasOwnProperty.call(message, "moduleName")) + writer.uint32(/* id 41, wireType 2 =*/330).string(message.moduleName); if (message.containers != null && message.containers.length) for (var i = 0; i < message.containers.length; ++i) $root.google.cloud.securitycenter.v1.Container.encode(message.containers[i], writer.uint32(/* id 42, wireType 2 =*/338).fork()).ldelim(); @@ -6623,6 +8015,10 @@ message.nextSteps = reader.string(); break; } + case 41: { + message.moduleName = reader.string(); + break; + } case 42: { if (!(message.containers && message.containers.length)) message.containers = []; @@ -6865,6 +8261,9 @@ if (message.nextSteps != null && message.hasOwnProperty("nextSteps")) if (!$util.isString(message.nextSteps)) return "nextSteps: string expected"; + if (message.moduleName != null && message.hasOwnProperty("moduleName")) + if (!$util.isString(message.moduleName)) + return "moduleName: string expected"; if (message.containers != null && message.hasOwnProperty("containers")) { if (!Array.isArray(message.containers)) return "containers: array expected"; @@ -7152,6 +8551,8 @@ } if (object.nextSteps != null) message.nextSteps = String(object.nextSteps); + if (object.moduleName != null) + message.moduleName = String(object.moduleName); if (object.containers) { if (!Array.isArray(object.containers)) throw TypeError(".google.cloud.securitycenter.v1.Finding.containers: array expected"); @@ -7240,6 +8641,7 @@ object.description = ""; object.exfiltration = null; object.nextSteps = ""; + object.moduleName = ""; object.kubernetes = null; object.database = null; object.kernelRootkit = null; @@ -7326,6 +8728,8 @@ } if (message.nextSteps != null && message.hasOwnProperty("nextSteps")) object.nextSteps = message.nextSteps; + if (message.moduleName != null && message.hasOwnProperty("moduleName")) + object.moduleName = message.moduleName; if (message.containers && message.containers.length) { object.containers = []; for (var j = 0; j < message.containers.length; ++j) @@ -17475,6 +18879,405 @@ return RunAssetDiscoveryResponse; })(); + v1.SecurityHealthAnalyticsCustomModule = (function() { + + /** + * Properties of a SecurityHealthAnalyticsCustomModule. + * @memberof google.cloud.securitycenter.v1 + * @interface ISecurityHealthAnalyticsCustomModule + * @property {string|null} [name] SecurityHealthAnalyticsCustomModule name + * @property {string|null} [displayName] SecurityHealthAnalyticsCustomModule displayName + * @property {google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState|null} [enablementState] SecurityHealthAnalyticsCustomModule enablementState + * @property {google.protobuf.ITimestamp|null} [updateTime] SecurityHealthAnalyticsCustomModule updateTime + * @property {string|null} [lastEditor] SecurityHealthAnalyticsCustomModule lastEditor + * @property {string|null} [ancestorModule] SecurityHealthAnalyticsCustomModule ancestorModule + * @property {google.cloud.securitycenter.v1.ICustomConfig|null} [customConfig] SecurityHealthAnalyticsCustomModule customConfig + */ + + /** + * Constructs a new SecurityHealthAnalyticsCustomModule. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents a SecurityHealthAnalyticsCustomModule. + * @implements ISecurityHealthAnalyticsCustomModule + * @constructor + * @param {google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule=} [properties] Properties to set + */ + function SecurityHealthAnalyticsCustomModule(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SecurityHealthAnalyticsCustomModule name. + * @member {string} name + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @instance + */ + SecurityHealthAnalyticsCustomModule.prototype.name = ""; + + /** + * SecurityHealthAnalyticsCustomModule displayName. + * @member {string} displayName + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @instance + */ + SecurityHealthAnalyticsCustomModule.prototype.displayName = ""; + + /** + * SecurityHealthAnalyticsCustomModule enablementState. + * @member {google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState} enablementState + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @instance + */ + SecurityHealthAnalyticsCustomModule.prototype.enablementState = 0; + + /** + * SecurityHealthAnalyticsCustomModule updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @instance + */ + SecurityHealthAnalyticsCustomModule.prototype.updateTime = null; + + /** + * SecurityHealthAnalyticsCustomModule lastEditor. + * @member {string} lastEditor + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @instance + */ + SecurityHealthAnalyticsCustomModule.prototype.lastEditor = ""; + + /** + * SecurityHealthAnalyticsCustomModule ancestorModule. + * @member {string} ancestorModule + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @instance + */ + SecurityHealthAnalyticsCustomModule.prototype.ancestorModule = ""; + + /** + * SecurityHealthAnalyticsCustomModule customConfig. + * @member {google.cloud.securitycenter.v1.ICustomConfig|null|undefined} customConfig + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @instance + */ + SecurityHealthAnalyticsCustomModule.prototype.customConfig = null; + + /** + * Creates a new SecurityHealthAnalyticsCustomModule instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @static + * @param {google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule} SecurityHealthAnalyticsCustomModule instance + */ + SecurityHealthAnalyticsCustomModule.create = function create(properties) { + return new SecurityHealthAnalyticsCustomModule(properties); + }; + + /** + * Encodes the specified SecurityHealthAnalyticsCustomModule message. Does not implicitly {@link google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @static + * @param {google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule} message SecurityHealthAnalyticsCustomModule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityHealthAnalyticsCustomModule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.enablementState != null && Object.hasOwnProperty.call(message, "enablementState")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.enablementState); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.lastEditor != null && Object.hasOwnProperty.call(message, "lastEditor")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.lastEditor); + if (message.ancestorModule != null && Object.hasOwnProperty.call(message, "ancestorModule")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.ancestorModule); + if (message.customConfig != null && Object.hasOwnProperty.call(message, "customConfig")) + $root.google.cloud.securitycenter.v1.CustomConfig.encode(message.customConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SecurityHealthAnalyticsCustomModule message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @static + * @param {google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule} message SecurityHealthAnalyticsCustomModule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityHealthAnalyticsCustomModule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityHealthAnalyticsCustomModule message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule} SecurityHealthAnalyticsCustomModule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityHealthAnalyticsCustomModule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 4: { + message.enablementState = reader.int32(); + break; + } + case 5: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.lastEditor = reader.string(); + break; + } + case 7: { + message.ancestorModule = reader.string(); + break; + } + case 8: { + message.customConfig = $root.google.cloud.securitycenter.v1.CustomConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityHealthAnalyticsCustomModule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule} SecurityHealthAnalyticsCustomModule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityHealthAnalyticsCustomModule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityHealthAnalyticsCustomModule message. + * @function verify + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityHealthAnalyticsCustomModule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.enablementState != null && message.hasOwnProperty("enablementState")) + switch (message.enablementState) { + default: + return "enablementState: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.lastEditor != null && message.hasOwnProperty("lastEditor")) + if (!$util.isString(message.lastEditor)) + return "lastEditor: string expected"; + if (message.ancestorModule != null && message.hasOwnProperty("ancestorModule")) + if (!$util.isString(message.ancestorModule)) + return "ancestorModule: string expected"; + if (message.customConfig != null && message.hasOwnProperty("customConfig")) { + var error = $root.google.cloud.securitycenter.v1.CustomConfig.verify(message.customConfig); + if (error) + return "customConfig." + error; + } + return null; + }; + + /** + * Creates a SecurityHealthAnalyticsCustomModule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule} SecurityHealthAnalyticsCustomModule + */ + SecurityHealthAnalyticsCustomModule.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule) + return object; + var message = new $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.enablementState) { + default: + if (typeof object.enablementState === "number") { + message.enablementState = object.enablementState; + break; + } + break; + case "ENABLEMENT_STATE_UNSPECIFIED": + case 0: + message.enablementState = 0; + break; + case "ENABLED": + case 1: + message.enablementState = 1; + break; + case "DISABLED": + case 2: + message.enablementState = 2; + break; + case "INHERITED": + case 3: + message.enablementState = 3; + break; + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.lastEditor != null) + message.lastEditor = String(object.lastEditor); + if (object.ancestorModule != null) + message.ancestorModule = String(object.ancestorModule); + if (object.customConfig != null) { + if (typeof object.customConfig !== "object") + throw TypeError(".google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.customConfig: object expected"); + message.customConfig = $root.google.cloud.securitycenter.v1.CustomConfig.fromObject(object.customConfig); + } + return message; + }; + + /** + * Creates a plain object from a SecurityHealthAnalyticsCustomModule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @static + * @param {google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule} message SecurityHealthAnalyticsCustomModule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityHealthAnalyticsCustomModule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.enablementState = options.enums === String ? "ENABLEMENT_STATE_UNSPECIFIED" : 0; + object.updateTime = null; + object.lastEditor = ""; + object.ancestorModule = ""; + object.customConfig = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.enablementState != null && message.hasOwnProperty("enablementState")) + object.enablementState = options.enums === String ? $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState[message.enablementState] === undefined ? message.enablementState : $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState[message.enablementState] : message.enablementState; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.lastEditor != null && message.hasOwnProperty("lastEditor")) + object.lastEditor = message.lastEditor; + if (message.ancestorModule != null && message.hasOwnProperty("ancestorModule")) + object.ancestorModule = message.ancestorModule; + if (message.customConfig != null && message.hasOwnProperty("customConfig")) + object.customConfig = $root.google.cloud.securitycenter.v1.CustomConfig.toObject(message.customConfig, options); + return object; + }; + + /** + * Converts this SecurityHealthAnalyticsCustomModule to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @instance + * @returns {Object.} JSON object + */ + SecurityHealthAnalyticsCustomModule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SecurityHealthAnalyticsCustomModule + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SecurityHealthAnalyticsCustomModule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule"; + }; + + /** + * EnablementState enum. + * @name google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState + * @enum {number} + * @property {number} ENABLEMENT_STATE_UNSPECIFIED=0 ENABLEMENT_STATE_UNSPECIFIED value + * @property {number} ENABLED=1 ENABLED value + * @property {number} DISABLED=2 DISABLED value + * @property {number} INHERITED=3 INHERITED value + */ + SecurityHealthAnalyticsCustomModule.EnablementState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENABLEMENT_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ENABLED"] = 1; + values[valuesById[2] = "DISABLED"] = 2; + values[valuesById[3] = "INHERITED"] = 3; + return values; + })(); + + return SecurityHealthAnalyticsCustomModule; + })(); + v1.SecurityCenter = (function() { /** @@ -17540,6 +19343,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|createSecurityHealthAnalyticsCustomModule}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef CreateSecurityHealthAnalyticsCustomModuleCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule} [response] SecurityHealthAnalyticsCustomModule + */ + + /** + * Calls CreateSecurityHealthAnalyticsCustomModule. + * @function createSecurityHealthAnalyticsCustomModule + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest} request CreateSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.CreateSecurityHealthAnalyticsCustomModuleCallback} callback Node-style callback called with the error, if any, and SecurityHealthAnalyticsCustomModule + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.createSecurityHealthAnalyticsCustomModule = function createSecurityHealthAnalyticsCustomModule(request, callback) { + return this.rpcCall(createSecurityHealthAnalyticsCustomModule, $root.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest, $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule, request, callback); + }, "name", { value: "CreateSecurityHealthAnalyticsCustomModule" }); + + /** + * Calls CreateSecurityHealthAnalyticsCustomModule. + * @function createSecurityHealthAnalyticsCustomModule + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest} request CreateSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|createSource}. * @memberof google.cloud.securitycenter.v1.SecurityCenter @@ -17738,6 +19574,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|deleteSecurityHealthAnalyticsCustomModule}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef DeleteSecurityHealthAnalyticsCustomModuleCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteSecurityHealthAnalyticsCustomModule. + * @function deleteSecurityHealthAnalyticsCustomModule + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest} request DeleteSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.DeleteSecurityHealthAnalyticsCustomModuleCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.deleteSecurityHealthAnalyticsCustomModule = function deleteSecurityHealthAnalyticsCustomModule(request, callback) { + return this.rpcCall(deleteSecurityHealthAnalyticsCustomModule, $root.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteSecurityHealthAnalyticsCustomModule" }); + + /** + * Calls DeleteSecurityHealthAnalyticsCustomModule. + * @function deleteSecurityHealthAnalyticsCustomModule + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest} request DeleteSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getBigQueryExport}. * @memberof google.cloud.securitycenter.v1.SecurityCenter @@ -17847,877 +19716,3336 @@ */ /** - * Calls GetNotificationConfig. - * @function getNotificationConfig - * @memberof google.cloud.securitycenter.v1.SecurityCenter + * Calls GetNotificationConfig. + * @function getNotificationConfig + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IGetNotificationConfigRequest} request GetNotificationConfigRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.GetNotificationConfigCallback} callback Node-style callback called with the error, if any, and NotificationConfig + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.getNotificationConfig = function getNotificationConfig(request, callback) { + return this.rpcCall(getNotificationConfig, $root.google.cloud.securitycenter.v1.GetNotificationConfigRequest, $root.google.cloud.securitycenter.v1.NotificationConfig, request, callback); + }, "name", { value: "GetNotificationConfig" }); + + /** + * Calls GetNotificationConfig. + * @function getNotificationConfig + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IGetNotificationConfigRequest} request GetNotificationConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getOrganizationSettings}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef GetOrganizationSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.OrganizationSettings} [response] OrganizationSettings + */ + + /** + * Calls GetOrganizationSettings. + * @function getOrganizationSettings + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest} request GetOrganizationSettingsRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.GetOrganizationSettingsCallback} callback Node-style callback called with the error, if any, and OrganizationSettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.getOrganizationSettings = function getOrganizationSettings(request, callback) { + return this.rpcCall(getOrganizationSettings, $root.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, $root.google.cloud.securitycenter.v1.OrganizationSettings, request, callback); + }, "name", { value: "GetOrganizationSettings" }); + + /** + * Calls GetOrganizationSettings. + * @function getOrganizationSettings + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest} request GetOrganizationSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getEffectiveSecurityHealthAnalyticsCustomModule}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef GetEffectiveSecurityHealthAnalyticsCustomModuleCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule} [response] EffectiveSecurityHealthAnalyticsCustomModule + */ + + /** + * Calls GetEffectiveSecurityHealthAnalyticsCustomModule. + * @function getEffectiveSecurityHealthAnalyticsCustomModule + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest} request GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveSecurityHealthAnalyticsCustomModuleCallback} callback Node-style callback called with the error, if any, and EffectiveSecurityHealthAnalyticsCustomModule + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.getEffectiveSecurityHealthAnalyticsCustomModule = function getEffectiveSecurityHealthAnalyticsCustomModule(request, callback) { + return this.rpcCall(getEffectiveSecurityHealthAnalyticsCustomModule, $root.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, $root.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule, request, callback); + }, "name", { value: "GetEffectiveSecurityHealthAnalyticsCustomModule" }); + + /** + * Calls GetEffectiveSecurityHealthAnalyticsCustomModule. + * @function getEffectiveSecurityHealthAnalyticsCustomModule + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest} request GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getSecurityHealthAnalyticsCustomModule}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef GetSecurityHealthAnalyticsCustomModuleCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule} [response] SecurityHealthAnalyticsCustomModule + */ + + /** + * Calls GetSecurityHealthAnalyticsCustomModule. + * @function getSecurityHealthAnalyticsCustomModule + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest} request GetSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.GetSecurityHealthAnalyticsCustomModuleCallback} callback Node-style callback called with the error, if any, and SecurityHealthAnalyticsCustomModule + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.getSecurityHealthAnalyticsCustomModule = function getSecurityHealthAnalyticsCustomModule(request, callback) { + return this.rpcCall(getSecurityHealthAnalyticsCustomModule, $root.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest, $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule, request, callback); + }, "name", { value: "GetSecurityHealthAnalyticsCustomModule" }); + + /** + * Calls GetSecurityHealthAnalyticsCustomModule. + * @function getSecurityHealthAnalyticsCustomModule + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest} request GetSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getSource}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef GetSourceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.Source} [response] Source + */ + + /** + * Calls GetSource. + * @function getSource + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IGetSourceRequest} request GetSourceRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.GetSourceCallback} callback Node-style callback called with the error, if any, and Source + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.getSource = function getSource(request, callback) { + return this.rpcCall(getSource, $root.google.cloud.securitycenter.v1.GetSourceRequest, $root.google.cloud.securitycenter.v1.Source, request, callback); + }, "name", { value: "GetSource" }); + + /** + * Calls GetSource. + * @function getSource + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IGetSourceRequest} request GetSourceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|groupAssets}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef GroupAssetsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.GroupAssetsResponse} [response] GroupAssetsResponse + */ + + /** + * Calls GroupAssets. + * @function groupAssets + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IGroupAssetsRequest} request GroupAssetsRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.GroupAssetsCallback} callback Node-style callback called with the error, if any, and GroupAssetsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.groupAssets = function groupAssets(request, callback) { + return this.rpcCall(groupAssets, $root.google.cloud.securitycenter.v1.GroupAssetsRequest, $root.google.cloud.securitycenter.v1.GroupAssetsResponse, request, callback); + }, "name", { value: "GroupAssets" }); + + /** + * Calls GroupAssets. + * @function groupAssets + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IGroupAssetsRequest} request GroupAssetsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|groupFindings}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef GroupFindingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.GroupFindingsResponse} [response] GroupFindingsResponse + */ + + /** + * Calls GroupFindings. + * @function groupFindings + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IGroupFindingsRequest} request GroupFindingsRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.GroupFindingsCallback} callback Node-style callback called with the error, if any, and GroupFindingsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.groupFindings = function groupFindings(request, callback) { + return this.rpcCall(groupFindings, $root.google.cloud.securitycenter.v1.GroupFindingsRequest, $root.google.cloud.securitycenter.v1.GroupFindingsResponse, request, callback); + }, "name", { value: "GroupFindings" }); + + /** + * Calls GroupFindings. + * @function groupFindings + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IGroupFindingsRequest} request GroupFindingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listAssets}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef ListAssetsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.ListAssetsResponse} [response] ListAssetsResponse + */ + + /** + * Calls ListAssets. + * @function listAssets + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListAssetsRequest} request ListAssetsRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.ListAssetsCallback} callback Node-style callback called with the error, if any, and ListAssetsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.listAssets = function listAssets(request, callback) { + return this.rpcCall(listAssets, $root.google.cloud.securitycenter.v1.ListAssetsRequest, $root.google.cloud.securitycenter.v1.ListAssetsResponse, request, callback); + }, "name", { value: "ListAssets" }); + + /** + * Calls ListAssets. + * @function listAssets + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListAssetsRequest} request ListAssetsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listDescendantSecurityHealthAnalyticsCustomModules}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef ListDescendantSecurityHealthAnalyticsCustomModulesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse} [response] ListDescendantSecurityHealthAnalyticsCustomModulesResponse + */ + + /** + * Calls ListDescendantSecurityHealthAnalyticsCustomModules. + * @function listDescendantSecurityHealthAnalyticsCustomModules + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest} request ListDescendantSecurityHealthAnalyticsCustomModulesRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.ListDescendantSecurityHealthAnalyticsCustomModulesCallback} callback Node-style callback called with the error, if any, and ListDescendantSecurityHealthAnalyticsCustomModulesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.listDescendantSecurityHealthAnalyticsCustomModules = function listDescendantSecurityHealthAnalyticsCustomModules(request, callback) { + return this.rpcCall(listDescendantSecurityHealthAnalyticsCustomModules, $root.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest, $root.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse, request, callback); + }, "name", { value: "ListDescendantSecurityHealthAnalyticsCustomModules" }); + + /** + * Calls ListDescendantSecurityHealthAnalyticsCustomModules. + * @function listDescendantSecurityHealthAnalyticsCustomModules + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest} request ListDescendantSecurityHealthAnalyticsCustomModulesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listFindings}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef ListFindingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.ListFindingsResponse} [response] ListFindingsResponse + */ + + /** + * Calls ListFindings. + * @function listFindings + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListFindingsRequest} request ListFindingsRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.ListFindingsCallback} callback Node-style callback called with the error, if any, and ListFindingsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.listFindings = function listFindings(request, callback) { + return this.rpcCall(listFindings, $root.google.cloud.securitycenter.v1.ListFindingsRequest, $root.google.cloud.securitycenter.v1.ListFindingsResponse, request, callback); + }, "name", { value: "ListFindings" }); + + /** + * Calls ListFindings. + * @function listFindings + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListFindingsRequest} request ListFindingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listMuteConfigs}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef ListMuteConfigsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.ListMuteConfigsResponse} [response] ListMuteConfigsResponse + */ + + /** + * Calls ListMuteConfigs. + * @function listMuteConfigs + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListMuteConfigsRequest} request ListMuteConfigsRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigsCallback} callback Node-style callback called with the error, if any, and ListMuteConfigsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.listMuteConfigs = function listMuteConfigs(request, callback) { + return this.rpcCall(listMuteConfigs, $root.google.cloud.securitycenter.v1.ListMuteConfigsRequest, $root.google.cloud.securitycenter.v1.ListMuteConfigsResponse, request, callback); + }, "name", { value: "ListMuteConfigs" }); + + /** + * Calls ListMuteConfigs. + * @function listMuteConfigs + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListMuteConfigsRequest} request ListMuteConfigsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listNotificationConfigs}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef ListNotificationConfigsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.ListNotificationConfigsResponse} [response] ListNotificationConfigsResponse + */ + + /** + * Calls ListNotificationConfigs. + * @function listNotificationConfigs + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListNotificationConfigsRequest} request ListNotificationConfigsRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigsCallback} callback Node-style callback called with the error, if any, and ListNotificationConfigsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.listNotificationConfigs = function listNotificationConfigs(request, callback) { + return this.rpcCall(listNotificationConfigs, $root.google.cloud.securitycenter.v1.ListNotificationConfigsRequest, $root.google.cloud.securitycenter.v1.ListNotificationConfigsResponse, request, callback); + }, "name", { value: "ListNotificationConfigs" }); + + /** + * Calls ListNotificationConfigs. + * @function listNotificationConfigs + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListNotificationConfigsRequest} request ListNotificationConfigsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listEffectiveSecurityHealthAnalyticsCustomModules}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef ListEffectiveSecurityHealthAnalyticsCustomModulesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse} [response] ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + */ + + /** + * Calls ListEffectiveSecurityHealthAnalyticsCustomModules. + * @function listEffectiveSecurityHealthAnalyticsCustomModules + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest} request ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveSecurityHealthAnalyticsCustomModulesCallback} callback Node-style callback called with the error, if any, and ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.listEffectiveSecurityHealthAnalyticsCustomModules = function listEffectiveSecurityHealthAnalyticsCustomModules(request, callback) { + return this.rpcCall(listEffectiveSecurityHealthAnalyticsCustomModules, $root.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, $root.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, request, callback); + }, "name", { value: "ListEffectiveSecurityHealthAnalyticsCustomModules" }); + + /** + * Calls ListEffectiveSecurityHealthAnalyticsCustomModules. + * @function listEffectiveSecurityHealthAnalyticsCustomModules + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest} request ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listSecurityHealthAnalyticsCustomModules}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef ListSecurityHealthAnalyticsCustomModulesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse} [response] ListSecurityHealthAnalyticsCustomModulesResponse + */ + + /** + * Calls ListSecurityHealthAnalyticsCustomModules. + * @function listSecurityHealthAnalyticsCustomModules + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest} request ListSecurityHealthAnalyticsCustomModulesRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.ListSecurityHealthAnalyticsCustomModulesCallback} callback Node-style callback called with the error, if any, and ListSecurityHealthAnalyticsCustomModulesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.listSecurityHealthAnalyticsCustomModules = function listSecurityHealthAnalyticsCustomModules(request, callback) { + return this.rpcCall(listSecurityHealthAnalyticsCustomModules, $root.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest, $root.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse, request, callback); + }, "name", { value: "ListSecurityHealthAnalyticsCustomModules" }); + + /** + * Calls ListSecurityHealthAnalyticsCustomModules. + * @function listSecurityHealthAnalyticsCustomModules + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest} request ListSecurityHealthAnalyticsCustomModulesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listSources}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef ListSourcesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.ListSourcesResponse} [response] ListSourcesResponse + */ + + /** + * Calls ListSources. + * @function listSources + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListSourcesRequest} request ListSourcesRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.ListSourcesCallback} callback Node-style callback called with the error, if any, and ListSourcesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.listSources = function listSources(request, callback) { + return this.rpcCall(listSources, $root.google.cloud.securitycenter.v1.ListSourcesRequest, $root.google.cloud.securitycenter.v1.ListSourcesResponse, request, callback); + }, "name", { value: "ListSources" }); + + /** + * Calls ListSources. + * @function listSources + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListSourcesRequest} request ListSourcesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|runAssetDiscovery}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef RunAssetDiscoveryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls RunAssetDiscovery. + * @function runAssetDiscovery + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IRunAssetDiscoveryRequest} request RunAssetDiscoveryRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.RunAssetDiscoveryCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.runAssetDiscovery = function runAssetDiscovery(request, callback) { + return this.rpcCall(runAssetDiscovery, $root.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "RunAssetDiscovery" }); + + /** + * Calls RunAssetDiscovery. + * @function runAssetDiscovery + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IRunAssetDiscoveryRequest} request RunAssetDiscoveryRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|setFindingState}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef SetFindingStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.Finding} [response] Finding + */ + + /** + * Calls SetFindingState. + * @function setFindingState + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.ISetFindingStateRequest} request SetFindingStateRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.SetFindingStateCallback} callback Node-style callback called with the error, if any, and Finding + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.setFindingState = function setFindingState(request, callback) { + return this.rpcCall(setFindingState, $root.google.cloud.securitycenter.v1.SetFindingStateRequest, $root.google.cloud.securitycenter.v1.Finding, request, callback); + }, "name", { value: "SetFindingState" }); + + /** + * Calls SetFindingState. + * @function setFindingState + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.ISetFindingStateRequest} request SetFindingStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|setMute}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef SetMuteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.Finding} [response] Finding + */ + + /** + * Calls SetMute. + * @function setMute + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.ISetMuteRequest} request SetMuteRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.SetMuteCallback} callback Node-style callback called with the error, if any, and Finding + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.setMute = function setMute(request, callback) { + return this.rpcCall(setMute, $root.google.cloud.securitycenter.v1.SetMuteRequest, $root.google.cloud.securitycenter.v1.Finding, request, callback); + }, "name", { value: "SetMute" }); + + /** + * Calls SetMute. + * @function setMute + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.ISetMuteRequest} request SetMuteRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|setIamPolicy}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef SetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.iam.v1.Policy} [response] Policy + */ + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.iam.v1.ISetIamPolicyRequest} request SetIamPolicyRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.setIamPolicy = function setIamPolicy(request, callback) { + return this.rpcCall(setIamPolicy, $root.google.iam.v1.SetIamPolicyRequest, $root.google.iam.v1.Policy, request, callback); + }, "name", { value: "SetIamPolicy" }); + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.iam.v1.ISetIamPolicyRequest} request SetIamPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|testIamPermissions}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.iam.v1.TestIamPermissionsResponse} [response] TestIamPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.iam.v1.ITestIamPermissionsRequest} request TestIamPermissionsRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestIamPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.iam.v1.TestIamPermissionsRequest, $root.google.iam.v1.TestIamPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.iam.v1.ITestIamPermissionsRequest} request TestIamPermissionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateExternalSystem}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef UpdateExternalSystemCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.ExternalSystem} [response] ExternalSystem + */ + + /** + * Calls UpdateExternalSystem. + * @function updateExternalSystem + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateExternalSystemRequest} request UpdateExternalSystemRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateExternalSystemCallback} callback Node-style callback called with the error, if any, and ExternalSystem + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.updateExternalSystem = function updateExternalSystem(request, callback) { + return this.rpcCall(updateExternalSystem, $root.google.cloud.securitycenter.v1.UpdateExternalSystemRequest, $root.google.cloud.securitycenter.v1.ExternalSystem, request, callback); + }, "name", { value: "UpdateExternalSystem" }); + + /** + * Calls UpdateExternalSystem. + * @function updateExternalSystem + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateExternalSystemRequest} request UpdateExternalSystemRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateFinding}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef UpdateFindingCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.Finding} [response] Finding + */ + + /** + * Calls UpdateFinding. + * @function updateFinding + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateFindingRequest} request UpdateFindingRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateFindingCallback} callback Node-style callback called with the error, if any, and Finding + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.updateFinding = function updateFinding(request, callback) { + return this.rpcCall(updateFinding, $root.google.cloud.securitycenter.v1.UpdateFindingRequest, $root.google.cloud.securitycenter.v1.Finding, request, callback); + }, "name", { value: "UpdateFinding" }); + + /** + * Calls UpdateFinding. + * @function updateFinding + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateFindingRequest} request UpdateFindingRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateMuteConfig}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef UpdateMuteConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.MuteConfig} [response] MuteConfig + */ + + /** + * Calls UpdateMuteConfig. + * @function updateMuteConfig + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateMuteConfigRequest} request UpdateMuteConfigRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateMuteConfigCallback} callback Node-style callback called with the error, if any, and MuteConfig + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.updateMuteConfig = function updateMuteConfig(request, callback) { + return this.rpcCall(updateMuteConfig, $root.google.cloud.securitycenter.v1.UpdateMuteConfigRequest, $root.google.cloud.securitycenter.v1.MuteConfig, request, callback); + }, "name", { value: "UpdateMuteConfig" }); + + /** + * Calls UpdateMuteConfig. + * @function updateMuteConfig + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateMuteConfigRequest} request UpdateMuteConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateNotificationConfig}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef UpdateNotificationConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.NotificationConfig} [response] NotificationConfig + */ + + /** + * Calls UpdateNotificationConfig. + * @function updateNotificationConfig + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateNotificationConfigRequest} request UpdateNotificationConfigRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateNotificationConfigCallback} callback Node-style callback called with the error, if any, and NotificationConfig + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.updateNotificationConfig = function updateNotificationConfig(request, callback) { + return this.rpcCall(updateNotificationConfig, $root.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest, $root.google.cloud.securitycenter.v1.NotificationConfig, request, callback); + }, "name", { value: "UpdateNotificationConfig" }); + + /** + * Calls UpdateNotificationConfig. + * @function updateNotificationConfig + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateNotificationConfigRequest} request UpdateNotificationConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateOrganizationSettings}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef UpdateOrganizationSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.OrganizationSettings} [response] OrganizationSettings + */ + + /** + * Calls UpdateOrganizationSettings. + * @function updateOrganizationSettings + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateOrganizationSettingsRequest} request UpdateOrganizationSettingsRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateOrganizationSettingsCallback} callback Node-style callback called with the error, if any, and OrganizationSettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.updateOrganizationSettings = function updateOrganizationSettings(request, callback) { + return this.rpcCall(updateOrganizationSettings, $root.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, $root.google.cloud.securitycenter.v1.OrganizationSettings, request, callback); + }, "name", { value: "UpdateOrganizationSettings" }); + + /** + * Calls UpdateOrganizationSettings. + * @function updateOrganizationSettings + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateOrganizationSettingsRequest} request UpdateOrganizationSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateSecurityHealthAnalyticsCustomModule}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef UpdateSecurityHealthAnalyticsCustomModuleCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule} [response] SecurityHealthAnalyticsCustomModule + */ + + /** + * Calls UpdateSecurityHealthAnalyticsCustomModule. + * @function updateSecurityHealthAnalyticsCustomModule + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest} request UpdateSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityHealthAnalyticsCustomModuleCallback} callback Node-style callback called with the error, if any, and SecurityHealthAnalyticsCustomModule + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.updateSecurityHealthAnalyticsCustomModule = function updateSecurityHealthAnalyticsCustomModule(request, callback) { + return this.rpcCall(updateSecurityHealthAnalyticsCustomModule, $root.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest, $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule, request, callback); + }, "name", { value: "UpdateSecurityHealthAnalyticsCustomModule" }); + + /** + * Calls UpdateSecurityHealthAnalyticsCustomModule. + * @function updateSecurityHealthAnalyticsCustomModule + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest} request UpdateSecurityHealthAnalyticsCustomModuleRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateSource}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef UpdateSourceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.Source} [response] Source + */ + + /** + * Calls UpdateSource. + * @function updateSource + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateSourceRequest} request UpdateSourceRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateSourceCallback} callback Node-style callback called with the error, if any, and Source + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.updateSource = function updateSource(request, callback) { + return this.rpcCall(updateSource, $root.google.cloud.securitycenter.v1.UpdateSourceRequest, $root.google.cloud.securitycenter.v1.Source, request, callback); + }, "name", { value: "UpdateSource" }); + + /** + * Calls UpdateSource. + * @function updateSource + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateSourceRequest} request UpdateSourceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateSecurityMarks}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef UpdateSecurityMarksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.SecurityMarks} [response] SecurityMarks + */ + + /** + * Calls UpdateSecurityMarks. + * @function updateSecurityMarks + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateSecurityMarksRequest} request UpdateSecurityMarksRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityMarksCallback} callback Node-style callback called with the error, if any, and SecurityMarks + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.updateSecurityMarks = function updateSecurityMarks(request, callback) { + return this.rpcCall(updateSecurityMarks, $root.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, $root.google.cloud.securitycenter.v1.SecurityMarks, request, callback); + }, "name", { value: "UpdateSecurityMarks" }); + + /** + * Calls UpdateSecurityMarks. + * @function updateSecurityMarks + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateSecurityMarksRequest} request UpdateSecurityMarksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|createBigQueryExport}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef CreateBigQueryExportCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.BigQueryExport} [response] BigQueryExport + */ + + /** + * Calls CreateBigQueryExport. + * @function createBigQueryExport + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.ICreateBigQueryExportRequest} request CreateBigQueryExportRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExportCallback} callback Node-style callback called with the error, if any, and BigQueryExport + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.createBigQueryExport = function createBigQueryExport(request, callback) { + return this.rpcCall(createBigQueryExport, $root.google.cloud.securitycenter.v1.CreateBigQueryExportRequest, $root.google.cloud.securitycenter.v1.BigQueryExport, request, callback); + }, "name", { value: "CreateBigQueryExport" }); + + /** + * Calls CreateBigQueryExport. + * @function createBigQueryExport + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.ICreateBigQueryExportRequest} request CreateBigQueryExportRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|deleteBigQueryExport}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef DeleteBigQueryExportCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteBigQueryExport. + * @function deleteBigQueryExport + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IDeleteBigQueryExportRequest} request DeleteBigQueryExportRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.DeleteBigQueryExportCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.deleteBigQueryExport = function deleteBigQueryExport(request, callback) { + return this.rpcCall(deleteBigQueryExport, $root.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteBigQueryExport" }); + + /** + * Calls DeleteBigQueryExport. + * @function deleteBigQueryExport + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IDeleteBigQueryExportRequest} request DeleteBigQueryExportRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateBigQueryExport}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef UpdateBigQueryExportCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.BigQueryExport} [response] BigQueryExport + */ + + /** + * Calls UpdateBigQueryExport. + * @function updateBigQueryExport + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateBigQueryExportRequest} request UpdateBigQueryExportRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateBigQueryExportCallback} callback Node-style callback called with the error, if any, and BigQueryExport + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.updateBigQueryExport = function updateBigQueryExport(request, callback) { + return this.rpcCall(updateBigQueryExport, $root.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest, $root.google.cloud.securitycenter.v1.BigQueryExport, request, callback); + }, "name", { value: "UpdateBigQueryExport" }); + + /** + * Calls UpdateBigQueryExport. + * @function updateBigQueryExport + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IUpdateBigQueryExportRequest} request UpdateBigQueryExportRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listBigQueryExports}. + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @typedef ListBigQueryExportsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.securitycenter.v1.ListBigQueryExportsResponse} [response] ListBigQueryExportsResponse + */ + + /** + * Calls ListBigQueryExports. + * @function listBigQueryExports + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListBigQueryExportsRequest} request ListBigQueryExportsRequest message or plain object + * @param {google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExportsCallback} callback Node-style callback called with the error, if any, and ListBigQueryExportsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecurityCenter.prototype.listBigQueryExports = function listBigQueryExports(request, callback) { + return this.rpcCall(listBigQueryExports, $root.google.cloud.securitycenter.v1.ListBigQueryExportsRequest, $root.google.cloud.securitycenter.v1.ListBigQueryExportsResponse, request, callback); + }, "name", { value: "ListBigQueryExports" }); + + /** + * Calls ListBigQueryExports. + * @function listBigQueryExports + * @memberof google.cloud.securitycenter.v1.SecurityCenter + * @instance + * @param {google.cloud.securitycenter.v1.IListBigQueryExportsRequest} request ListBigQueryExportsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return SecurityCenter; + })(); + + v1.BulkMuteFindingsRequest = (function() { + + /** + * Properties of a BulkMuteFindingsRequest. + * @memberof google.cloud.securitycenter.v1 + * @interface IBulkMuteFindingsRequest + * @property {string|null} [parent] BulkMuteFindingsRequest parent + * @property {string|null} [filter] BulkMuteFindingsRequest filter + * @property {string|null} [muteAnnotation] BulkMuteFindingsRequest muteAnnotation + */ + + /** + * Constructs a new BulkMuteFindingsRequest. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents a BulkMuteFindingsRequest. + * @implements IBulkMuteFindingsRequest + * @constructor + * @param {google.cloud.securitycenter.v1.IBulkMuteFindingsRequest=} [properties] Properties to set + */ + function BulkMuteFindingsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BulkMuteFindingsRequest parent. + * @member {string} parent + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @instance + */ + BulkMuteFindingsRequest.prototype.parent = ""; + + /** + * BulkMuteFindingsRequest filter. + * @member {string} filter + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @instance + */ + BulkMuteFindingsRequest.prototype.filter = ""; + + /** + * BulkMuteFindingsRequest muteAnnotation. + * @member {string} muteAnnotation + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @instance + */ + BulkMuteFindingsRequest.prototype.muteAnnotation = ""; + + /** + * Creates a new BulkMuteFindingsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @static + * @param {google.cloud.securitycenter.v1.IBulkMuteFindingsRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.BulkMuteFindingsRequest} BulkMuteFindingsRequest instance + */ + BulkMuteFindingsRequest.create = function create(properties) { + return new BulkMuteFindingsRequest(properties); + }; + + /** + * Encodes the specified BulkMuteFindingsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.BulkMuteFindingsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @static + * @param {google.cloud.securitycenter.v1.IBulkMuteFindingsRequest} message BulkMuteFindingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BulkMuteFindingsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.muteAnnotation != null && Object.hasOwnProperty.call(message, "muteAnnotation")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.muteAnnotation); + return writer; + }; + + /** + * Encodes the specified BulkMuteFindingsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.BulkMuteFindingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @static + * @param {google.cloud.securitycenter.v1.IBulkMuteFindingsRequest} message BulkMuteFindingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BulkMuteFindingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BulkMuteFindingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.BulkMuteFindingsRequest} BulkMuteFindingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BulkMuteFindingsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.BulkMuteFindingsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.muteAnnotation = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BulkMuteFindingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.BulkMuteFindingsRequest} BulkMuteFindingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BulkMuteFindingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BulkMuteFindingsRequest message. + * @function verify + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BulkMuteFindingsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.muteAnnotation != null && message.hasOwnProperty("muteAnnotation")) + if (!$util.isString(message.muteAnnotation)) + return "muteAnnotation: string expected"; + return null; + }; + + /** + * Creates a BulkMuteFindingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.BulkMuteFindingsRequest} BulkMuteFindingsRequest + */ + BulkMuteFindingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) + return object; + var message = new $root.google.cloud.securitycenter.v1.BulkMuteFindingsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.muteAnnotation != null) + message.muteAnnotation = String(object.muteAnnotation); + return message; + }; + + /** + * Creates a plain object from a BulkMuteFindingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @static + * @param {google.cloud.securitycenter.v1.BulkMuteFindingsRequest} message BulkMuteFindingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BulkMuteFindingsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.muteAnnotation = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.muteAnnotation != null && message.hasOwnProperty("muteAnnotation")) + object.muteAnnotation = message.muteAnnotation; + return object; + }; + + /** + * Converts this BulkMuteFindingsRequest to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @instance + * @returns {Object.} JSON object + */ + BulkMuteFindingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BulkMuteFindingsRequest + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BulkMuteFindingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.BulkMuteFindingsRequest"; + }; + + return BulkMuteFindingsRequest; + })(); + + v1.BulkMuteFindingsResponse = (function() { + + /** + * Properties of a BulkMuteFindingsResponse. + * @memberof google.cloud.securitycenter.v1 + * @interface IBulkMuteFindingsResponse + */ + + /** + * Constructs a new BulkMuteFindingsResponse. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents a BulkMuteFindingsResponse. + * @implements IBulkMuteFindingsResponse + * @constructor + * @param {google.cloud.securitycenter.v1.IBulkMuteFindingsResponse=} [properties] Properties to set + */ + function BulkMuteFindingsResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new BulkMuteFindingsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @static + * @param {google.cloud.securitycenter.v1.IBulkMuteFindingsResponse=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.BulkMuteFindingsResponse} BulkMuteFindingsResponse instance + */ + BulkMuteFindingsResponse.create = function create(properties) { + return new BulkMuteFindingsResponse(properties); + }; + + /** + * Encodes the specified BulkMuteFindingsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.BulkMuteFindingsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @static + * @param {google.cloud.securitycenter.v1.IBulkMuteFindingsResponse} message BulkMuteFindingsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BulkMuteFindingsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified BulkMuteFindingsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.BulkMuteFindingsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @static + * @param {google.cloud.securitycenter.v1.IBulkMuteFindingsResponse} message BulkMuteFindingsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BulkMuteFindingsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BulkMuteFindingsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.BulkMuteFindingsResponse} BulkMuteFindingsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BulkMuteFindingsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.BulkMuteFindingsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BulkMuteFindingsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.BulkMuteFindingsResponse} BulkMuteFindingsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BulkMuteFindingsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BulkMuteFindingsResponse message. + * @function verify + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BulkMuteFindingsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a BulkMuteFindingsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.BulkMuteFindingsResponse} BulkMuteFindingsResponse + */ + BulkMuteFindingsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.BulkMuteFindingsResponse) + return object; + return new $root.google.cloud.securitycenter.v1.BulkMuteFindingsResponse(); + }; + + /** + * Creates a plain object from a BulkMuteFindingsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @static + * @param {google.cloud.securitycenter.v1.BulkMuteFindingsResponse} message BulkMuteFindingsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BulkMuteFindingsResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this BulkMuteFindingsResponse to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @instance + * @returns {Object.} JSON object + */ + BulkMuteFindingsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BulkMuteFindingsResponse + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BulkMuteFindingsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.BulkMuteFindingsResponse"; + }; + + return BulkMuteFindingsResponse; + })(); + + v1.CreateFindingRequest = (function() { + + /** + * Properties of a CreateFindingRequest. + * @memberof google.cloud.securitycenter.v1 + * @interface ICreateFindingRequest + * @property {string|null} [parent] CreateFindingRequest parent + * @property {string|null} [findingId] CreateFindingRequest findingId + * @property {google.cloud.securitycenter.v1.IFinding|null} [finding] CreateFindingRequest finding + */ + + /** + * Constructs a new CreateFindingRequest. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents a CreateFindingRequest. + * @implements ICreateFindingRequest + * @constructor + * @param {google.cloud.securitycenter.v1.ICreateFindingRequest=} [properties] Properties to set + */ + function CreateFindingRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateFindingRequest parent. + * @member {string} parent + * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @instance + */ + CreateFindingRequest.prototype.parent = ""; + + /** + * CreateFindingRequest findingId. + * @member {string} findingId + * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @instance + */ + CreateFindingRequest.prototype.findingId = ""; + + /** + * CreateFindingRequest finding. + * @member {google.cloud.securitycenter.v1.IFinding|null|undefined} finding + * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @instance + */ + CreateFindingRequest.prototype.finding = null; + + /** + * Creates a new CreateFindingRequest instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @static + * @param {google.cloud.securitycenter.v1.ICreateFindingRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.CreateFindingRequest} CreateFindingRequest instance + */ + CreateFindingRequest.create = function create(properties) { + return new CreateFindingRequest(properties); + }; + + /** + * Encodes the specified CreateFindingRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateFindingRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @static + * @param {google.cloud.securitycenter.v1.ICreateFindingRequest} message CreateFindingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFindingRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.findingId != null && Object.hasOwnProperty.call(message, "findingId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.findingId); + if (message.finding != null && Object.hasOwnProperty.call(message, "finding")) + $root.google.cloud.securitycenter.v1.Finding.encode(message.finding, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateFindingRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateFindingRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @static + * @param {google.cloud.securitycenter.v1.ICreateFindingRequest} message CreateFindingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFindingRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateFindingRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.CreateFindingRequest} CreateFindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFindingRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.CreateFindingRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.findingId = reader.string(); + break; + } + case 3: { + message.finding = $root.google.cloud.securitycenter.v1.Finding.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateFindingRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.CreateFindingRequest} CreateFindingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFindingRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateFindingRequest message. + * @function verify + * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateFindingRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.findingId != null && message.hasOwnProperty("findingId")) + if (!$util.isString(message.findingId)) + return "findingId: string expected"; + if (message.finding != null && message.hasOwnProperty("finding")) { + var error = $root.google.cloud.securitycenter.v1.Finding.verify(message.finding); + if (error) + return "finding." + error; + } + return null; + }; + + /** + * Creates a CreateFindingRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.CreateFindingRequest} CreateFindingRequest + */ + CreateFindingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.CreateFindingRequest) + return object; + var message = new $root.google.cloud.securitycenter.v1.CreateFindingRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.findingId != null) + message.findingId = String(object.findingId); + if (object.finding != null) { + if (typeof object.finding !== "object") + throw TypeError(".google.cloud.securitycenter.v1.CreateFindingRequest.finding: object expected"); + message.finding = $root.google.cloud.securitycenter.v1.Finding.fromObject(object.finding); + } + return message; + }; + + /** + * Creates a plain object from a CreateFindingRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @static + * @param {google.cloud.securitycenter.v1.CreateFindingRequest} message CreateFindingRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateFindingRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.findingId = ""; + object.finding = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.findingId != null && message.hasOwnProperty("findingId")) + object.findingId = message.findingId; + if (message.finding != null && message.hasOwnProperty("finding")) + object.finding = $root.google.cloud.securitycenter.v1.Finding.toObject(message.finding, options); + return object; + }; + + /** + * Converts this CreateFindingRequest to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @instance + * @returns {Object.} JSON object + */ + CreateFindingRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateFindingRequest + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateFindingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.CreateFindingRequest"; + }; + + return CreateFindingRequest; + })(); + + v1.CreateMuteConfigRequest = (function() { + + /** + * Properties of a CreateMuteConfigRequest. + * @memberof google.cloud.securitycenter.v1 + * @interface ICreateMuteConfigRequest + * @property {string|null} [parent] CreateMuteConfigRequest parent + * @property {google.cloud.securitycenter.v1.IMuteConfig|null} [muteConfig] CreateMuteConfigRequest muteConfig + * @property {string|null} [muteConfigId] CreateMuteConfigRequest muteConfigId + */ + + /** + * Constructs a new CreateMuteConfigRequest. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents a CreateMuteConfigRequest. + * @implements ICreateMuteConfigRequest + * @constructor + * @param {google.cloud.securitycenter.v1.ICreateMuteConfigRequest=} [properties] Properties to set + */ + function CreateMuteConfigRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateMuteConfigRequest parent. + * @member {string} parent + * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @instance + */ + CreateMuteConfigRequest.prototype.parent = ""; + + /** + * CreateMuteConfigRequest muteConfig. + * @member {google.cloud.securitycenter.v1.IMuteConfig|null|undefined} muteConfig + * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @instance + */ + CreateMuteConfigRequest.prototype.muteConfig = null; + + /** + * CreateMuteConfigRequest muteConfigId. + * @member {string} muteConfigId + * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @instance + */ + CreateMuteConfigRequest.prototype.muteConfigId = ""; + + /** + * Creates a new CreateMuteConfigRequest instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @static + * @param {google.cloud.securitycenter.v1.ICreateMuteConfigRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.CreateMuteConfigRequest} CreateMuteConfigRequest instance + */ + CreateMuteConfigRequest.create = function create(properties) { + return new CreateMuteConfigRequest(properties); + }; + + /** + * Encodes the specified CreateMuteConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateMuteConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @static + * @param {google.cloud.securitycenter.v1.ICreateMuteConfigRequest} message CreateMuteConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateMuteConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.muteConfig != null && Object.hasOwnProperty.call(message, "muteConfig")) + $root.google.cloud.securitycenter.v1.MuteConfig.encode(message.muteConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.muteConfigId != null && Object.hasOwnProperty.call(message, "muteConfigId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.muteConfigId); + return writer; + }; + + /** + * Encodes the specified CreateMuteConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateMuteConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @static + * @param {google.cloud.securitycenter.v1.ICreateMuteConfigRequest} message CreateMuteConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateMuteConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateMuteConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.CreateMuteConfigRequest} CreateMuteConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateMuteConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.CreateMuteConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.muteConfig = $root.google.cloud.securitycenter.v1.MuteConfig.decode(reader, reader.uint32()); + break; + } + case 3: { + message.muteConfigId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateMuteConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.CreateMuteConfigRequest} CreateMuteConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateMuteConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateMuteConfigRequest message. + * @function verify + * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateMuteConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.muteConfig != null && message.hasOwnProperty("muteConfig")) { + var error = $root.google.cloud.securitycenter.v1.MuteConfig.verify(message.muteConfig); + if (error) + return "muteConfig." + error; + } + if (message.muteConfigId != null && message.hasOwnProperty("muteConfigId")) + if (!$util.isString(message.muteConfigId)) + return "muteConfigId: string expected"; + return null; + }; + + /** + * Creates a CreateMuteConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.CreateMuteConfigRequest} CreateMuteConfigRequest + */ + CreateMuteConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.CreateMuteConfigRequest) + return object; + var message = new $root.google.cloud.securitycenter.v1.CreateMuteConfigRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.muteConfig != null) { + if (typeof object.muteConfig !== "object") + throw TypeError(".google.cloud.securitycenter.v1.CreateMuteConfigRequest.muteConfig: object expected"); + message.muteConfig = $root.google.cloud.securitycenter.v1.MuteConfig.fromObject(object.muteConfig); + } + if (object.muteConfigId != null) + message.muteConfigId = String(object.muteConfigId); + return message; + }; + + /** + * Creates a plain object from a CreateMuteConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @static + * @param {google.cloud.securitycenter.v1.CreateMuteConfigRequest} message CreateMuteConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateMuteConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.muteConfig = null; + object.muteConfigId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.muteConfig != null && message.hasOwnProperty("muteConfig")) + object.muteConfig = $root.google.cloud.securitycenter.v1.MuteConfig.toObject(message.muteConfig, options); + if (message.muteConfigId != null && message.hasOwnProperty("muteConfigId")) + object.muteConfigId = message.muteConfigId; + return object; + }; + + /** + * Converts this CreateMuteConfigRequest to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @instance + * @returns {Object.} JSON object + */ + CreateMuteConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateMuteConfigRequest + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateMuteConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.CreateMuteConfigRequest"; + }; + + return CreateMuteConfigRequest; + })(); + + v1.CreateNotificationConfigRequest = (function() { + + /** + * Properties of a CreateNotificationConfigRequest. + * @memberof google.cloud.securitycenter.v1 + * @interface ICreateNotificationConfigRequest + * @property {string|null} [parent] CreateNotificationConfigRequest parent + * @property {string|null} [configId] CreateNotificationConfigRequest configId + * @property {google.cloud.securitycenter.v1.INotificationConfig|null} [notificationConfig] CreateNotificationConfigRequest notificationConfig + */ + + /** + * Constructs a new CreateNotificationConfigRequest. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents a CreateNotificationConfigRequest. + * @implements ICreateNotificationConfigRequest + * @constructor + * @param {google.cloud.securitycenter.v1.ICreateNotificationConfigRequest=} [properties] Properties to set + */ + function CreateNotificationConfigRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateNotificationConfigRequest parent. + * @member {string} parent + * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @instance + */ + CreateNotificationConfigRequest.prototype.parent = ""; + + /** + * CreateNotificationConfigRequest configId. + * @member {string} configId + * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @instance + */ + CreateNotificationConfigRequest.prototype.configId = ""; + + /** + * CreateNotificationConfigRequest notificationConfig. + * @member {google.cloud.securitycenter.v1.INotificationConfig|null|undefined} notificationConfig + * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @instance + */ + CreateNotificationConfigRequest.prototype.notificationConfig = null; + + /** + * Creates a new CreateNotificationConfigRequest instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @static + * @param {google.cloud.securitycenter.v1.ICreateNotificationConfigRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.CreateNotificationConfigRequest} CreateNotificationConfigRequest instance + */ + CreateNotificationConfigRequest.create = function create(properties) { + return new CreateNotificationConfigRequest(properties); + }; + + /** + * Encodes the specified CreateNotificationConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateNotificationConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @static + * @param {google.cloud.securitycenter.v1.ICreateNotificationConfigRequest} message CreateNotificationConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateNotificationConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.configId != null && Object.hasOwnProperty.call(message, "configId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.configId); + if (message.notificationConfig != null && Object.hasOwnProperty.call(message, "notificationConfig")) + $root.google.cloud.securitycenter.v1.NotificationConfig.encode(message.notificationConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateNotificationConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateNotificationConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @static + * @param {google.cloud.securitycenter.v1.ICreateNotificationConfigRequest} message CreateNotificationConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateNotificationConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateNotificationConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.CreateNotificationConfigRequest} CreateNotificationConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateNotificationConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.CreateNotificationConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.configId = reader.string(); + break; + } + case 3: { + message.notificationConfig = $root.google.cloud.securitycenter.v1.NotificationConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateNotificationConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.CreateNotificationConfigRequest} CreateNotificationConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateNotificationConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateNotificationConfigRequest message. + * @function verify + * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateNotificationConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.configId != null && message.hasOwnProperty("configId")) + if (!$util.isString(message.configId)) + return "configId: string expected"; + if (message.notificationConfig != null && message.hasOwnProperty("notificationConfig")) { + var error = $root.google.cloud.securitycenter.v1.NotificationConfig.verify(message.notificationConfig); + if (error) + return "notificationConfig." + error; + } + return null; + }; + + /** + * Creates a CreateNotificationConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.CreateNotificationConfigRequest} CreateNotificationConfigRequest + */ + CreateNotificationConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) + return object; + var message = new $root.google.cloud.securitycenter.v1.CreateNotificationConfigRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.configId != null) + message.configId = String(object.configId); + if (object.notificationConfig != null) { + if (typeof object.notificationConfig !== "object") + throw TypeError(".google.cloud.securitycenter.v1.CreateNotificationConfigRequest.notificationConfig: object expected"); + message.notificationConfig = $root.google.cloud.securitycenter.v1.NotificationConfig.fromObject(object.notificationConfig); + } + return message; + }; + + /** + * Creates a plain object from a CreateNotificationConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @static + * @param {google.cloud.securitycenter.v1.CreateNotificationConfigRequest} message CreateNotificationConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateNotificationConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.configId = ""; + object.notificationConfig = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.configId != null && message.hasOwnProperty("configId")) + object.configId = message.configId; + if (message.notificationConfig != null && message.hasOwnProperty("notificationConfig")) + object.notificationConfig = $root.google.cloud.securitycenter.v1.NotificationConfig.toObject(message.notificationConfig, options); + return object; + }; + + /** + * Converts this CreateNotificationConfigRequest to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest * @instance - * @param {google.cloud.securitycenter.v1.IGetNotificationConfigRequest} request GetNotificationConfigRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.GetNotificationConfigCallback} callback Node-style callback called with the error, if any, and NotificationConfig - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(SecurityCenter.prototype.getNotificationConfig = function getNotificationConfig(request, callback) { - return this.rpcCall(getNotificationConfig, $root.google.cloud.securitycenter.v1.GetNotificationConfigRequest, $root.google.cloud.securitycenter.v1.NotificationConfig, request, callback); - }, "name", { value: "GetNotificationConfig" }); + CreateNotificationConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls GetNotificationConfig. - * @function getNotificationConfig - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IGetNotificationConfigRequest} request GetNotificationConfigRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for CreateNotificationConfigRequest + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + CreateNotificationConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.CreateNotificationConfigRequest"; + }; - /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getOrganizationSettings}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef GetOrganizationSettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.OrganizationSettings} [response] OrganizationSettings - */ + return CreateNotificationConfigRequest; + })(); - /** - * Calls GetOrganizationSettings. - * @function getOrganizationSettings - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest} request GetOrganizationSettingsRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.GetOrganizationSettingsCallback} callback Node-style callback called with the error, if any, and OrganizationSettings - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecurityCenter.prototype.getOrganizationSettings = function getOrganizationSettings(request, callback) { - return this.rpcCall(getOrganizationSettings, $root.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, $root.google.cloud.securitycenter.v1.OrganizationSettings, request, callback); - }, "name", { value: "GetOrganizationSettings" }); + v1.CreateSecurityHealthAnalyticsCustomModuleRequest = (function() { /** - * Calls GetOrganizationSettings. - * @function getOrganizationSettings - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest} request GetOrganizationSettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a CreateSecurityHealthAnalyticsCustomModuleRequest. + * @memberof google.cloud.securitycenter.v1 + * @interface ICreateSecurityHealthAnalyticsCustomModuleRequest + * @property {string|null} [parent] CreateSecurityHealthAnalyticsCustomModuleRequest parent + * @property {google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule|null} [securityHealthAnalyticsCustomModule] CreateSecurityHealthAnalyticsCustomModuleRequest securityHealthAnalyticsCustomModule */ /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|getSource}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef GetSourceCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.Source} [response] Source + * Constructs a new CreateSecurityHealthAnalyticsCustomModuleRequest. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents a CreateSecurityHealthAnalyticsCustomModuleRequest. + * @implements ICreateSecurityHealthAnalyticsCustomModuleRequest + * @constructor + * @param {google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest=} [properties] Properties to set */ + function CreateSecurityHealthAnalyticsCustomModuleRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls GetSource. - * @function getSource - * @memberof google.cloud.securitycenter.v1.SecurityCenter + * CreateSecurityHealthAnalyticsCustomModuleRequest parent. + * @member {string} parent + * @memberof google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest * @instance - * @param {google.cloud.securitycenter.v1.IGetSourceRequest} request GetSourceRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.GetSourceCallback} callback Node-style callback called with the error, if any, and Source - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(SecurityCenter.prototype.getSource = function getSource(request, callback) { - return this.rpcCall(getSource, $root.google.cloud.securitycenter.v1.GetSourceRequest, $root.google.cloud.securitycenter.v1.Source, request, callback); - }, "name", { value: "GetSource" }); + CreateSecurityHealthAnalyticsCustomModuleRequest.prototype.parent = ""; /** - * Calls GetSource. - * @function getSource - * @memberof google.cloud.securitycenter.v1.SecurityCenter + * CreateSecurityHealthAnalyticsCustomModuleRequest securityHealthAnalyticsCustomModule. + * @member {google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule|null|undefined} securityHealthAnalyticsCustomModule + * @memberof google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest * @instance - * @param {google.cloud.securitycenter.v1.IGetSourceRequest} request GetSourceRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + CreateSecurityHealthAnalyticsCustomModuleRequest.prototype.securityHealthAnalyticsCustomModule = null; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|groupAssets}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef GroupAssetsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.GroupAssetsResponse} [response] GroupAssetsResponse + * Creates a new CreateSecurityHealthAnalyticsCustomModuleRequest instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest} CreateSecurityHealthAnalyticsCustomModuleRequest instance */ + CreateSecurityHealthAnalyticsCustomModuleRequest.create = function create(properties) { + return new CreateSecurityHealthAnalyticsCustomModuleRequest(properties); + }; /** - * Calls GroupAssets. - * @function groupAssets - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IGroupAssetsRequest} request GroupAssetsRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.GroupAssetsCallback} callback Node-style callback called with the error, if any, and GroupAssetsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified CreateSecurityHealthAnalyticsCustomModuleRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest} message CreateSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(SecurityCenter.prototype.groupAssets = function groupAssets(request, callback) { - return this.rpcCall(groupAssets, $root.google.cloud.securitycenter.v1.GroupAssetsRequest, $root.google.cloud.securitycenter.v1.GroupAssetsResponse, request, callback); - }, "name", { value: "GroupAssets" }); + CreateSecurityHealthAnalyticsCustomModuleRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.securityHealthAnalyticsCustomModule != null && Object.hasOwnProperty.call(message, "securityHealthAnalyticsCustomModule")) + $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.encode(message.securityHealthAnalyticsCustomModule, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls GroupAssets. - * @function groupAssets - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IGroupAssetsRequest} request GroupAssetsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified CreateSecurityHealthAnalyticsCustomModuleRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest} message CreateSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CreateSecurityHealthAnalyticsCustomModuleRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|groupFindings}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef GroupFindingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.GroupFindingsResponse} [response] GroupFindingsResponse + * Decodes a CreateSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest} CreateSecurityHealthAnalyticsCustomModuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateSecurityHealthAnalyticsCustomModuleRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.securityHealthAnalyticsCustomModule = $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls GroupFindings. - * @function groupFindings - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IGroupFindingsRequest} request GroupFindingsRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.GroupFindingsCallback} callback Node-style callback called with the error, if any, and GroupFindingsResponse - * @returns {undefined} - * @variation 1 + * Decodes a CreateSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest} CreateSecurityHealthAnalyticsCustomModuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(SecurityCenter.prototype.groupFindings = function groupFindings(request, callback) { - return this.rpcCall(groupFindings, $root.google.cloud.securitycenter.v1.GroupFindingsRequest, $root.google.cloud.securitycenter.v1.GroupFindingsResponse, request, callback); - }, "name", { value: "GroupFindings" }); + CreateSecurityHealthAnalyticsCustomModuleRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GroupFindings. - * @function groupFindings - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IGroupFindingsRequest} request GroupFindingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a CreateSecurityHealthAnalyticsCustomModuleRequest message. + * @function verify + * @memberof google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + CreateSecurityHealthAnalyticsCustomModuleRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.securityHealthAnalyticsCustomModule != null && message.hasOwnProperty("securityHealthAnalyticsCustomModule")) { + var error = $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.verify(message.securityHealthAnalyticsCustomModule); + if (error) + return "securityHealthAnalyticsCustomModule." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listAssets}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef ListAssetsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.ListAssetsResponse} [response] ListAssetsResponse + * Creates a CreateSecurityHealthAnalyticsCustomModuleRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest} CreateSecurityHealthAnalyticsCustomModuleRequest */ + CreateSecurityHealthAnalyticsCustomModuleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) + return object; + var message = new $root.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.securityHealthAnalyticsCustomModule != null) { + if (typeof object.securityHealthAnalyticsCustomModule !== "object") + throw TypeError(".google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.securityHealthAnalyticsCustomModule: object expected"); + message.securityHealthAnalyticsCustomModule = $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.fromObject(object.securityHealthAnalyticsCustomModule); + } + return message; + }; /** - * Calls ListAssets. - * @function listAssets - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IListAssetsRequest} request ListAssetsRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.ListAssetsCallback} callback Node-style callback called with the error, if any, and ListAssetsResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a CreateSecurityHealthAnalyticsCustomModuleRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest} message CreateSecurityHealthAnalyticsCustomModuleRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(SecurityCenter.prototype.listAssets = function listAssets(request, callback) { - return this.rpcCall(listAssets, $root.google.cloud.securitycenter.v1.ListAssetsRequest, $root.google.cloud.securitycenter.v1.ListAssetsResponse, request, callback); - }, "name", { value: "ListAssets" }); + CreateSecurityHealthAnalyticsCustomModuleRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.securityHealthAnalyticsCustomModule = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.securityHealthAnalyticsCustomModule != null && message.hasOwnProperty("securityHealthAnalyticsCustomModule")) + object.securityHealthAnalyticsCustomModule = $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.toObject(message.securityHealthAnalyticsCustomModule, options); + return object; + }; /** - * Calls ListAssets. - * @function listAssets - * @memberof google.cloud.securitycenter.v1.SecurityCenter + * Converts this CreateSecurityHealthAnalyticsCustomModuleRequest to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest * @instance - * @param {google.cloud.securitycenter.v1.IListAssetsRequest} request ListAssetsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + CreateSecurityHealthAnalyticsCustomModuleRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listFindings}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef ListFindingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.ListFindingsResponse} [response] ListFindingsResponse + * Gets the default type url for CreateSecurityHealthAnalyticsCustomModuleRequest + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + CreateSecurityHealthAnalyticsCustomModuleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest"; + }; - /** - * Calls ListFindings. - * @function listFindings - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IListFindingsRequest} request ListFindingsRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.ListFindingsCallback} callback Node-style callback called with the error, if any, and ListFindingsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecurityCenter.prototype.listFindings = function listFindings(request, callback) { - return this.rpcCall(listFindings, $root.google.cloud.securitycenter.v1.ListFindingsRequest, $root.google.cloud.securitycenter.v1.ListFindingsResponse, request, callback); - }, "name", { value: "ListFindings" }); + return CreateSecurityHealthAnalyticsCustomModuleRequest; + })(); - /** - * Calls ListFindings. - * @function listFindings - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IListFindingsRequest} request ListFindingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + v1.CreateSourceRequest = (function() { /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listMuteConfigs}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef ListMuteConfigsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.ListMuteConfigsResponse} [response] ListMuteConfigsResponse + * Properties of a CreateSourceRequest. + * @memberof google.cloud.securitycenter.v1 + * @interface ICreateSourceRequest + * @property {string|null} [parent] CreateSourceRequest parent + * @property {google.cloud.securitycenter.v1.ISource|null} [source] CreateSourceRequest source */ /** - * Calls ListMuteConfigs. - * @function listMuteConfigs - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IListMuteConfigsRequest} request ListMuteConfigsRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigsCallback} callback Node-style callback called with the error, if any, and ListMuteConfigsResponse - * @returns {undefined} - * @variation 1 + * Constructs a new CreateSourceRequest. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents a CreateSourceRequest. + * @implements ICreateSourceRequest + * @constructor + * @param {google.cloud.securitycenter.v1.ICreateSourceRequest=} [properties] Properties to set */ - Object.defineProperty(SecurityCenter.prototype.listMuteConfigs = function listMuteConfigs(request, callback) { - return this.rpcCall(listMuteConfigs, $root.google.cloud.securitycenter.v1.ListMuteConfigsRequest, $root.google.cloud.securitycenter.v1.ListMuteConfigsResponse, request, callback); - }, "name", { value: "ListMuteConfigs" }); + function CreateSourceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls ListMuteConfigs. - * @function listMuteConfigs - * @memberof google.cloud.securitycenter.v1.SecurityCenter + * CreateSourceRequest parent. + * @member {string} parent + * @memberof google.cloud.securitycenter.v1.CreateSourceRequest * @instance - * @param {google.cloud.securitycenter.v1.IListMuteConfigsRequest} request ListMuteConfigsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listNotificationConfigs}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef ListNotificationConfigsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.ListNotificationConfigsResponse} [response] ListNotificationConfigsResponse */ + CreateSourceRequest.prototype.parent = ""; /** - * Calls ListNotificationConfigs. - * @function listNotificationConfigs - * @memberof google.cloud.securitycenter.v1.SecurityCenter + * CreateSourceRequest source. + * @member {google.cloud.securitycenter.v1.ISource|null|undefined} source + * @memberof google.cloud.securitycenter.v1.CreateSourceRequest * @instance - * @param {google.cloud.securitycenter.v1.IListNotificationConfigsRequest} request ListNotificationConfigsRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigsCallback} callback Node-style callback called with the error, if any, and ListNotificationConfigsResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(SecurityCenter.prototype.listNotificationConfigs = function listNotificationConfigs(request, callback) { - return this.rpcCall(listNotificationConfigs, $root.google.cloud.securitycenter.v1.ListNotificationConfigsRequest, $root.google.cloud.securitycenter.v1.ListNotificationConfigsResponse, request, callback); - }, "name", { value: "ListNotificationConfigs" }); + CreateSourceRequest.prototype.source = null; /** - * Calls ListNotificationConfigs. - * @function listNotificationConfigs - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IListNotificationConfigsRequest} request ListNotificationConfigsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new CreateSourceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @static + * @param {google.cloud.securitycenter.v1.ICreateSourceRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.CreateSourceRequest} CreateSourceRequest instance */ + CreateSourceRequest.create = function create(properties) { + return new CreateSourceRequest(properties); + }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listSources}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef ListSourcesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.ListSourcesResponse} [response] ListSourcesResponse + * Encodes the specified CreateSourceRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateSourceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @static + * @param {google.cloud.securitycenter.v1.ICreateSourceRequest} message CreateSourceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CreateSourceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + $root.google.cloud.securitycenter.v1.Source.encode(message.source, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls ListSources. - * @function listSources - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IListSourcesRequest} request ListSourcesRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.ListSourcesCallback} callback Node-style callback called with the error, if any, and ListSourcesResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified CreateSourceRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateSourceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @static + * @param {google.cloud.securitycenter.v1.ICreateSourceRequest} message CreateSourceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(SecurityCenter.prototype.listSources = function listSources(request, callback) { - return this.rpcCall(listSources, $root.google.cloud.securitycenter.v1.ListSourcesRequest, $root.google.cloud.securitycenter.v1.ListSourcesResponse, request, callback); - }, "name", { value: "ListSources" }); + CreateSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls ListSources. - * @function listSources - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IListSourcesRequest} request ListSourcesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a CreateSourceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.CreateSourceRequest} CreateSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateSourceRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.CreateSourceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.source = $root.google.cloud.securitycenter.v1.Source.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|runAssetDiscovery}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef RunAssetDiscoveryCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes a CreateSourceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.CreateSourceRequest} CreateSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateSourceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls RunAssetDiscovery. - * @function runAssetDiscovery - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IRunAssetDiscoveryRequest} request RunAssetDiscoveryRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.RunAssetDiscoveryCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Verifies a CreateSourceRequest message. + * @function verify + * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(SecurityCenter.prototype.runAssetDiscovery = function runAssetDiscovery(request, callback) { - return this.rpcCall(runAssetDiscovery, $root.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "RunAssetDiscovery" }); + CreateSourceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.source != null && message.hasOwnProperty("source")) { + var error = $root.google.cloud.securitycenter.v1.Source.verify(message.source); + if (error) + return "source." + error; + } + return null; + }; /** - * Calls RunAssetDiscovery. - * @function runAssetDiscovery - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IRunAssetDiscoveryRequest} request RunAssetDiscoveryRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a CreateSourceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.CreateSourceRequest} CreateSourceRequest */ + CreateSourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.CreateSourceRequest) + return object; + var message = new $root.google.cloud.securitycenter.v1.CreateSourceRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.source != null) { + if (typeof object.source !== "object") + throw TypeError(".google.cloud.securitycenter.v1.CreateSourceRequest.source: object expected"); + message.source = $root.google.cloud.securitycenter.v1.Source.fromObject(object.source); + } + return message; + }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|setFindingState}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef SetFindingStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.Finding} [response] Finding + * Creates a plain object from a CreateSourceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @static + * @param {google.cloud.securitycenter.v1.CreateSourceRequest} message CreateSourceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + CreateSourceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.source = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.source != null && message.hasOwnProperty("source")) + object.source = $root.google.cloud.securitycenter.v1.Source.toObject(message.source, options); + return object; + }; /** - * Calls SetFindingState. - * @function setFindingState - * @memberof google.cloud.securitycenter.v1.SecurityCenter + * Converts this CreateSourceRequest to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.CreateSourceRequest * @instance - * @param {google.cloud.securitycenter.v1.ISetFindingStateRequest} request SetFindingStateRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.SetFindingStateCallback} callback Node-style callback called with the error, if any, and Finding - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(SecurityCenter.prototype.setFindingState = function setFindingState(request, callback) { - return this.rpcCall(setFindingState, $root.google.cloud.securitycenter.v1.SetFindingStateRequest, $root.google.cloud.securitycenter.v1.Finding, request, callback); - }, "name", { value: "SetFindingState" }); + CreateSourceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls SetFindingState. - * @function setFindingState - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.ISetFindingStateRequest} request SetFindingStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for CreateSourceRequest + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + CreateSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.CreateSourceRequest"; + }; + + return CreateSourceRequest; + })(); + + v1.DeleteMuteConfigRequest = (function() { /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|setMute}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef SetMuteCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.Finding} [response] Finding + * Properties of a DeleteMuteConfigRequest. + * @memberof google.cloud.securitycenter.v1 + * @interface IDeleteMuteConfigRequest + * @property {string|null} [name] DeleteMuteConfigRequest name */ /** - * Calls SetMute. - * @function setMute - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.ISetMuteRequest} request SetMuteRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.SetMuteCallback} callback Node-style callback called with the error, if any, and Finding - * @returns {undefined} - * @variation 1 + * Constructs a new DeleteMuteConfigRequest. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents a DeleteMuteConfigRequest. + * @implements IDeleteMuteConfigRequest + * @constructor + * @param {google.cloud.securitycenter.v1.IDeleteMuteConfigRequest=} [properties] Properties to set */ - Object.defineProperty(SecurityCenter.prototype.setMute = function setMute(request, callback) { - return this.rpcCall(setMute, $root.google.cloud.securitycenter.v1.SetMuteRequest, $root.google.cloud.securitycenter.v1.Finding, request, callback); - }, "name", { value: "SetMute" }); + function DeleteMuteConfigRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls SetMute. - * @function setMute - * @memberof google.cloud.securitycenter.v1.SecurityCenter + * DeleteMuteConfigRequest name. + * @member {string} name + * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest * @instance - * @param {google.cloud.securitycenter.v1.ISetMuteRequest} request SetMuteRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + DeleteMuteConfigRequest.prototype.name = ""; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|setIamPolicy}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef SetIamPolicyCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.iam.v1.Policy} [response] Policy + * Creates a new DeleteMuteConfigRequest instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @static + * @param {google.cloud.securitycenter.v1.IDeleteMuteConfigRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.DeleteMuteConfigRequest} DeleteMuteConfigRequest instance */ + DeleteMuteConfigRequest.create = function create(properties) { + return new DeleteMuteConfigRequest(properties); + }; /** - * Calls SetIamPolicy. - * @function setIamPolicy - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.iam.v1.ISetIamPolicyRequest} request SetIamPolicyRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy - * @returns {undefined} - * @variation 1 + * Encodes the specified DeleteMuteConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteMuteConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @static + * @param {google.cloud.securitycenter.v1.IDeleteMuteConfigRequest} message DeleteMuteConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(SecurityCenter.prototype.setIamPolicy = function setIamPolicy(request, callback) { - return this.rpcCall(setIamPolicy, $root.google.iam.v1.SetIamPolicyRequest, $root.google.iam.v1.Policy, request, callback); - }, "name", { value: "SetIamPolicy" }); + DeleteMuteConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls SetIamPolicy. - * @function setIamPolicy - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.iam.v1.ISetIamPolicyRequest} request SetIamPolicyRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified DeleteMuteConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteMuteConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @static + * @param {google.cloud.securitycenter.v1.IDeleteMuteConfigRequest} message DeleteMuteConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + DeleteMuteConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|testIamPermissions}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef TestIamPermissionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.iam.v1.TestIamPermissionsResponse} [response] TestIamPermissionsResponse + * Decodes a DeleteMuteConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.DeleteMuteConfigRequest} DeleteMuteConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + DeleteMuteConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.DeleteMuteConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls TestIamPermissions. - * @function testIamPermissions - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.iam.v1.ITestIamPermissionsRequest} request TestIamPermissionsRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestIamPermissionsResponse - * @returns {undefined} - * @variation 1 + * Decodes a DeleteMuteConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.DeleteMuteConfigRequest} DeleteMuteConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(SecurityCenter.prototype.testIamPermissions = function testIamPermissions(request, callback) { - return this.rpcCall(testIamPermissions, $root.google.iam.v1.TestIamPermissionsRequest, $root.google.iam.v1.TestIamPermissionsResponse, request, callback); - }, "name", { value: "TestIamPermissions" }); + DeleteMuteConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls TestIamPermissions. - * @function testIamPermissions - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.iam.v1.ITestIamPermissionsRequest} request TestIamPermissionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a DeleteMuteConfigRequest message. + * @function verify + * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + DeleteMuteConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateExternalSystem}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef UpdateExternalSystemCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.ExternalSystem} [response] ExternalSystem + * Creates a DeleteMuteConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.DeleteMuteConfigRequest} DeleteMuteConfigRequest */ + DeleteMuteConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) + return object; + var message = new $root.google.cloud.securitycenter.v1.DeleteMuteConfigRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Calls UpdateExternalSystem. - * @function updateExternalSystem - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IUpdateExternalSystemRequest} request UpdateExternalSystemRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateExternalSystemCallback} callback Node-style callback called with the error, if any, and ExternalSystem - * @returns {undefined} - * @variation 1 + * Creates a plain object from a DeleteMuteConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @static + * @param {google.cloud.securitycenter.v1.DeleteMuteConfigRequest} message DeleteMuteConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(SecurityCenter.prototype.updateExternalSystem = function updateExternalSystem(request, callback) { - return this.rpcCall(updateExternalSystem, $root.google.cloud.securitycenter.v1.UpdateExternalSystemRequest, $root.google.cloud.securitycenter.v1.ExternalSystem, request, callback); - }, "name", { value: "UpdateExternalSystem" }); + DeleteMuteConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls UpdateExternalSystem. - * @function updateExternalSystem - * @memberof google.cloud.securitycenter.v1.SecurityCenter + * Converts this DeleteMuteConfigRequest to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest * @instance - * @param {google.cloud.securitycenter.v1.IUpdateExternalSystemRequest} request UpdateExternalSystemRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + DeleteMuteConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateFinding}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef UpdateFindingCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.Finding} [response] Finding + * Gets the default type url for DeleteMuteConfigRequest + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + DeleteMuteConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.DeleteMuteConfigRequest"; + }; - /** - * Calls UpdateFinding. - * @function updateFinding - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IUpdateFindingRequest} request UpdateFindingRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateFindingCallback} callback Node-style callback called with the error, if any, and Finding - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecurityCenter.prototype.updateFinding = function updateFinding(request, callback) { - return this.rpcCall(updateFinding, $root.google.cloud.securitycenter.v1.UpdateFindingRequest, $root.google.cloud.securitycenter.v1.Finding, request, callback); - }, "name", { value: "UpdateFinding" }); + return DeleteMuteConfigRequest; + })(); + + v1.DeleteNotificationConfigRequest = (function() { /** - * Calls UpdateFinding. - * @function updateFinding - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IUpdateFindingRequest} request UpdateFindingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a DeleteNotificationConfigRequest. + * @memberof google.cloud.securitycenter.v1 + * @interface IDeleteNotificationConfigRequest + * @property {string|null} [name] DeleteNotificationConfigRequest name */ /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateMuteConfig}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef UpdateMuteConfigCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.MuteConfig} [response] MuteConfig + * Constructs a new DeleteNotificationConfigRequest. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents a DeleteNotificationConfigRequest. + * @implements IDeleteNotificationConfigRequest + * @constructor + * @param {google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest=} [properties] Properties to set */ + function DeleteNotificationConfigRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls UpdateMuteConfig. - * @function updateMuteConfig - * @memberof google.cloud.securitycenter.v1.SecurityCenter + * DeleteNotificationConfigRequest name. + * @member {string} name + * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest * @instance - * @param {google.cloud.securitycenter.v1.IUpdateMuteConfigRequest} request UpdateMuteConfigRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateMuteConfigCallback} callback Node-style callback called with the error, if any, and MuteConfig - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(SecurityCenter.prototype.updateMuteConfig = function updateMuteConfig(request, callback) { - return this.rpcCall(updateMuteConfig, $root.google.cloud.securitycenter.v1.UpdateMuteConfigRequest, $root.google.cloud.securitycenter.v1.MuteConfig, request, callback); - }, "name", { value: "UpdateMuteConfig" }); + DeleteNotificationConfigRequest.prototype.name = ""; /** - * Calls UpdateMuteConfig. - * @function updateMuteConfig - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IUpdateMuteConfigRequest} request UpdateMuteConfigRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new DeleteNotificationConfigRequest instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @static + * @param {google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.DeleteNotificationConfigRequest} DeleteNotificationConfigRequest instance */ + DeleteNotificationConfigRequest.create = function create(properties) { + return new DeleteNotificationConfigRequest(properties); + }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateNotificationConfig}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef UpdateNotificationConfigCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.NotificationConfig} [response] NotificationConfig + * Encodes the specified DeleteNotificationConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @static + * @param {google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest} message DeleteNotificationConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + DeleteNotificationConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls UpdateNotificationConfig. - * @function updateNotificationConfig - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IUpdateNotificationConfigRequest} request UpdateNotificationConfigRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateNotificationConfigCallback} callback Node-style callback called with the error, if any, and NotificationConfig - * @returns {undefined} - * @variation 1 + * Encodes the specified DeleteNotificationConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @static + * @param {google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest} message DeleteNotificationConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(SecurityCenter.prototype.updateNotificationConfig = function updateNotificationConfig(request, callback) { - return this.rpcCall(updateNotificationConfig, $root.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest, $root.google.cloud.securitycenter.v1.NotificationConfig, request, callback); - }, "name", { value: "UpdateNotificationConfig" }); + DeleteNotificationConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls UpdateNotificationConfig. - * @function updateNotificationConfig - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IUpdateNotificationConfigRequest} request UpdateNotificationConfigRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a DeleteNotificationConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.DeleteNotificationConfigRequest} DeleteNotificationConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + DeleteNotificationConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateOrganizationSettings}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef UpdateOrganizationSettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.OrganizationSettings} [response] OrganizationSettings + * Decodes a DeleteNotificationConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.DeleteNotificationConfigRequest} DeleteNotificationConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + DeleteNotificationConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls UpdateOrganizationSettings. - * @function updateOrganizationSettings - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IUpdateOrganizationSettingsRequest} request UpdateOrganizationSettingsRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateOrganizationSettingsCallback} callback Node-style callback called with the error, if any, and OrganizationSettings - * @returns {undefined} - * @variation 1 + * Verifies a DeleteNotificationConfigRequest message. + * @function verify + * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(SecurityCenter.prototype.updateOrganizationSettings = function updateOrganizationSettings(request, callback) { - return this.rpcCall(updateOrganizationSettings, $root.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, $root.google.cloud.securitycenter.v1.OrganizationSettings, request, callback); - }, "name", { value: "UpdateOrganizationSettings" }); + DeleteNotificationConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Calls UpdateOrganizationSettings. - * @function updateOrganizationSettings - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IUpdateOrganizationSettingsRequest} request UpdateOrganizationSettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a DeleteNotificationConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.DeleteNotificationConfigRequest} DeleteNotificationConfigRequest */ + DeleteNotificationConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) + return object; + var message = new $root.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateSource}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef UpdateSourceCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.Source} [response] Source + * Creates a plain object from a DeleteNotificationConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @static + * @param {google.cloud.securitycenter.v1.DeleteNotificationConfigRequest} message DeleteNotificationConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + DeleteNotificationConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls UpdateSource. - * @function updateSource - * @memberof google.cloud.securitycenter.v1.SecurityCenter + * Converts this DeleteNotificationConfigRequest to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest * @instance - * @param {google.cloud.securitycenter.v1.IUpdateSourceRequest} request UpdateSourceRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateSourceCallback} callback Node-style callback called with the error, if any, and Source - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(SecurityCenter.prototype.updateSource = function updateSource(request, callback) { - return this.rpcCall(updateSource, $root.google.cloud.securitycenter.v1.UpdateSourceRequest, $root.google.cloud.securitycenter.v1.Source, request, callback); - }, "name", { value: "UpdateSource" }); + DeleteNotificationConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls UpdateSource. - * @function updateSource - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IUpdateSourceRequest} request UpdateSourceRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for DeleteNotificationConfigRequest + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + DeleteNotificationConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.DeleteNotificationConfigRequest"; + }; - /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateSecurityMarks}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef UpdateSecurityMarksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.SecurityMarks} [response] SecurityMarks - */ + return DeleteNotificationConfigRequest; + })(); - /** - * Calls UpdateSecurityMarks. - * @function updateSecurityMarks - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IUpdateSecurityMarksRequest} request UpdateSecurityMarksRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityMarksCallback} callback Node-style callback called with the error, if any, and SecurityMarks - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecurityCenter.prototype.updateSecurityMarks = function updateSecurityMarks(request, callback) { - return this.rpcCall(updateSecurityMarks, $root.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, $root.google.cloud.securitycenter.v1.SecurityMarks, request, callback); - }, "name", { value: "UpdateSecurityMarks" }); + v1.DeleteSecurityHealthAnalyticsCustomModuleRequest = (function() { /** - * Calls UpdateSecurityMarks. - * @function updateSecurityMarks - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IUpdateSecurityMarksRequest} request UpdateSecurityMarksRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a DeleteSecurityHealthAnalyticsCustomModuleRequest. + * @memberof google.cloud.securitycenter.v1 + * @interface IDeleteSecurityHealthAnalyticsCustomModuleRequest + * @property {string|null} [name] DeleteSecurityHealthAnalyticsCustomModuleRequest name */ /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|createBigQueryExport}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef CreateBigQueryExportCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.BigQueryExport} [response] BigQueryExport + * Constructs a new DeleteSecurityHealthAnalyticsCustomModuleRequest. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents a DeleteSecurityHealthAnalyticsCustomModuleRequest. + * @implements IDeleteSecurityHealthAnalyticsCustomModuleRequest + * @constructor + * @param {google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest=} [properties] Properties to set */ + function DeleteSecurityHealthAnalyticsCustomModuleRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls CreateBigQueryExport. - * @function createBigQueryExport - * @memberof google.cloud.securitycenter.v1.SecurityCenter + * DeleteSecurityHealthAnalyticsCustomModuleRequest name. + * @member {string} name + * @memberof google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest * @instance - * @param {google.cloud.securitycenter.v1.ICreateBigQueryExportRequest} request CreateBigQueryExportRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExportCallback} callback Node-style callback called with the error, if any, and BigQueryExport - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(SecurityCenter.prototype.createBigQueryExport = function createBigQueryExport(request, callback) { - return this.rpcCall(createBigQueryExport, $root.google.cloud.securitycenter.v1.CreateBigQueryExportRequest, $root.google.cloud.securitycenter.v1.BigQueryExport, request, callback); - }, "name", { value: "CreateBigQueryExport" }); + DeleteSecurityHealthAnalyticsCustomModuleRequest.prototype.name = ""; /** - * Calls CreateBigQueryExport. - * @function createBigQueryExport - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.ICreateBigQueryExportRequest} request CreateBigQueryExportRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new DeleteSecurityHealthAnalyticsCustomModuleRequest instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest} DeleteSecurityHealthAnalyticsCustomModuleRequest instance */ + DeleteSecurityHealthAnalyticsCustomModuleRequest.create = function create(properties) { + return new DeleteSecurityHealthAnalyticsCustomModuleRequest(properties); + }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|deleteBigQueryExport}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef DeleteBigQueryExportCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Encodes the specified DeleteSecurityHealthAnalyticsCustomModuleRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest} message DeleteSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + DeleteSecurityHealthAnalyticsCustomModuleRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls DeleteBigQueryExport. - * @function deleteBigQueryExport - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IDeleteBigQueryExportRequest} request DeleteBigQueryExportRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.DeleteBigQueryExportCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Encodes the specified DeleteSecurityHealthAnalyticsCustomModuleRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest} message DeleteSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(SecurityCenter.prototype.deleteBigQueryExport = function deleteBigQueryExport(request, callback) { - return this.rpcCall(deleteBigQueryExport, $root.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteBigQueryExport" }); + DeleteSecurityHealthAnalyticsCustomModuleRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls DeleteBigQueryExport. - * @function deleteBigQueryExport - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IDeleteBigQueryExportRequest} request DeleteBigQueryExportRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a DeleteSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest} DeleteSecurityHealthAnalyticsCustomModuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + DeleteSecurityHealthAnalyticsCustomModuleRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|updateBigQueryExport}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef UpdateBigQueryExportCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.BigQueryExport} [response] BigQueryExport + * Decodes a DeleteSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest} DeleteSecurityHealthAnalyticsCustomModuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + DeleteSecurityHealthAnalyticsCustomModuleRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls UpdateBigQueryExport. - * @function updateBigQueryExport - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IUpdateBigQueryExportRequest} request UpdateBigQueryExportRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.UpdateBigQueryExportCallback} callback Node-style callback called with the error, if any, and BigQueryExport - * @returns {undefined} - * @variation 1 + * Verifies a DeleteSecurityHealthAnalyticsCustomModuleRequest message. + * @function verify + * @memberof google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(SecurityCenter.prototype.updateBigQueryExport = function updateBigQueryExport(request, callback) { - return this.rpcCall(updateBigQueryExport, $root.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest, $root.google.cloud.securitycenter.v1.BigQueryExport, request, callback); - }, "name", { value: "UpdateBigQueryExport" }); + DeleteSecurityHealthAnalyticsCustomModuleRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Calls UpdateBigQueryExport. - * @function updateBigQueryExport - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IUpdateBigQueryExportRequest} request UpdateBigQueryExportRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a DeleteSecurityHealthAnalyticsCustomModuleRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest} DeleteSecurityHealthAnalyticsCustomModuleRequest */ + DeleteSecurityHealthAnalyticsCustomModuleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) + return object; + var message = new $root.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Callback as used by {@link google.cloud.securitycenter.v1.SecurityCenter|listBigQueryExports}. - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @typedef ListBigQueryExportsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.securitycenter.v1.ListBigQueryExportsResponse} [response] ListBigQueryExportsResponse + * Creates a plain object from a DeleteSecurityHealthAnalyticsCustomModuleRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest} message DeleteSecurityHealthAnalyticsCustomModuleRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + DeleteSecurityHealthAnalyticsCustomModuleRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls ListBigQueryExports. - * @function listBigQueryExports - * @memberof google.cloud.securitycenter.v1.SecurityCenter + * Converts this DeleteSecurityHealthAnalyticsCustomModuleRequest to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest * @instance - * @param {google.cloud.securitycenter.v1.IListBigQueryExportsRequest} request ListBigQueryExportsRequest message or plain object - * @param {google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExportsCallback} callback Node-style callback called with the error, if any, and ListBigQueryExportsResponse - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(SecurityCenter.prototype.listBigQueryExports = function listBigQueryExports(request, callback) { - return this.rpcCall(listBigQueryExports, $root.google.cloud.securitycenter.v1.ListBigQueryExportsRequest, $root.google.cloud.securitycenter.v1.ListBigQueryExportsResponse, request, callback); - }, "name", { value: "ListBigQueryExports" }); + DeleteSecurityHealthAnalyticsCustomModuleRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls ListBigQueryExports. - * @function listBigQueryExports - * @memberof google.cloud.securitycenter.v1.SecurityCenter - * @instance - * @param {google.cloud.securitycenter.v1.IListBigQueryExportsRequest} request ListBigQueryExportsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for DeleteSecurityHealthAnalyticsCustomModuleRequest + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + DeleteSecurityHealthAnalyticsCustomModuleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest"; + }; - return SecurityCenter; + return DeleteSecurityHealthAnalyticsCustomModuleRequest; })(); - v1.BulkMuteFindingsRequest = (function() { + v1.GetBigQueryExportRequest = (function() { /** - * Properties of a BulkMuteFindingsRequest. + * Properties of a GetBigQueryExportRequest. * @memberof google.cloud.securitycenter.v1 - * @interface IBulkMuteFindingsRequest - * @property {string|null} [parent] BulkMuteFindingsRequest parent - * @property {string|null} [filter] BulkMuteFindingsRequest filter - * @property {string|null} [muteAnnotation] BulkMuteFindingsRequest muteAnnotation + * @interface IGetBigQueryExportRequest + * @property {string|null} [name] GetBigQueryExportRequest name */ /** - * Constructs a new BulkMuteFindingsRequest. + * Constructs a new GetBigQueryExportRequest. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a BulkMuteFindingsRequest. - * @implements IBulkMuteFindingsRequest + * @classdesc Represents a GetBigQueryExportRequest. + * @implements IGetBigQueryExportRequest * @constructor - * @param {google.cloud.securitycenter.v1.IBulkMuteFindingsRequest=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IGetBigQueryExportRequest=} [properties] Properties to set */ - function BulkMuteFindingsRequest(properties) { + function GetBigQueryExportRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18725,103 +23053,75 @@ } /** - * BulkMuteFindingsRequest parent. - * @member {string} parent - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest - * @instance - */ - BulkMuteFindingsRequest.prototype.parent = ""; - - /** - * BulkMuteFindingsRequest filter. - * @member {string} filter - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest - * @instance - */ - BulkMuteFindingsRequest.prototype.filter = ""; - - /** - * BulkMuteFindingsRequest muteAnnotation. - * @member {string} muteAnnotation - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * GetBigQueryExportRequest name. + * @member {string} name + * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest * @instance */ - BulkMuteFindingsRequest.prototype.muteAnnotation = ""; + GetBigQueryExportRequest.prototype.name = ""; /** - * Creates a new BulkMuteFindingsRequest instance using the specified properties. + * Creates a new GetBigQueryExportRequest instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest * @static - * @param {google.cloud.securitycenter.v1.IBulkMuteFindingsRequest=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.BulkMuteFindingsRequest} BulkMuteFindingsRequest instance + * @param {google.cloud.securitycenter.v1.IGetBigQueryExportRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.GetBigQueryExportRequest} GetBigQueryExportRequest instance */ - BulkMuteFindingsRequest.create = function create(properties) { - return new BulkMuteFindingsRequest(properties); + GetBigQueryExportRequest.create = function create(properties) { + return new GetBigQueryExportRequest(properties); }; /** - * Encodes the specified BulkMuteFindingsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.BulkMuteFindingsRequest.verify|verify} messages. + * Encodes the specified GetBigQueryExportRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetBigQueryExportRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest * @static - * @param {google.cloud.securitycenter.v1.IBulkMuteFindingsRequest} message BulkMuteFindingsRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGetBigQueryExportRequest} message GetBigQueryExportRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BulkMuteFindingsRequest.encode = function encode(message, writer) { + GetBigQueryExportRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.muteAnnotation != null && Object.hasOwnProperty.call(message, "muteAnnotation")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.muteAnnotation); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified BulkMuteFindingsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.BulkMuteFindingsRequest.verify|verify} messages. + * Encodes the specified GetBigQueryExportRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetBigQueryExportRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest * @static - * @param {google.cloud.securitycenter.v1.IBulkMuteFindingsRequest} message BulkMuteFindingsRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGetBigQueryExportRequest} message GetBigQueryExportRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BulkMuteFindingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetBigQueryExportRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BulkMuteFindingsRequest message from the specified reader or buffer. + * Decodes a GetBigQueryExportRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.BulkMuteFindingsRequest} BulkMuteFindingsRequest + * @returns {google.cloud.securitycenter.v1.GetBigQueryExportRequest} GetBigQueryExportRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BulkMuteFindingsRequest.decode = function decode(reader, length) { + GetBigQueryExportRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.BulkMuteFindingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GetBigQueryExportRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.muteAnnotation = reader.string(); + message.name = reader.string(); break; } default: @@ -18833,138 +23133,122 @@ }; /** - * Decodes a BulkMuteFindingsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBigQueryExportRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.BulkMuteFindingsRequest} BulkMuteFindingsRequest + * @returns {google.cloud.securitycenter.v1.GetBigQueryExportRequest} GetBigQueryExportRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BulkMuteFindingsRequest.decodeDelimited = function decodeDelimited(reader) { + GetBigQueryExportRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BulkMuteFindingsRequest message. + * Verifies a GetBigQueryExportRequest message. * @function verify - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BulkMuteFindingsRequest.verify = function verify(message) { + GetBigQueryExportRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.muteAnnotation != null && message.hasOwnProperty("muteAnnotation")) - if (!$util.isString(message.muteAnnotation)) - return "muteAnnotation: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a BulkMuteFindingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBigQueryExportRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.BulkMuteFindingsRequest} BulkMuteFindingsRequest + * @returns {google.cloud.securitycenter.v1.GetBigQueryExportRequest} GetBigQueryExportRequest */ - BulkMuteFindingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) + GetBigQueryExportRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.GetBigQueryExportRequest) return object; - var message = new $root.google.cloud.securitycenter.v1.BulkMuteFindingsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.muteAnnotation != null) - message.muteAnnotation = String(object.muteAnnotation); + var message = new $root.google.cloud.securitycenter.v1.GetBigQueryExportRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a BulkMuteFindingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetBigQueryExportRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest * @static - * @param {google.cloud.securitycenter.v1.BulkMuteFindingsRequest} message BulkMuteFindingsRequest + * @param {google.cloud.securitycenter.v1.GetBigQueryExportRequest} message GetBigQueryExportRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BulkMuteFindingsRequest.toObject = function toObject(message, options) { + GetBigQueryExportRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.muteAnnotation = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.muteAnnotation != null && message.hasOwnProperty("muteAnnotation")) - object.muteAnnotation = message.muteAnnotation; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this BulkMuteFindingsRequest to JSON. + * Converts this GetBigQueryExportRequest to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest * @instance * @returns {Object.} JSON object */ - BulkMuteFindingsRequest.prototype.toJSON = function toJSON() { + GetBigQueryExportRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BulkMuteFindingsRequest + * Gets the default type url for GetBigQueryExportRequest * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsRequest + * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BulkMuteFindingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetBigQueryExportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.BulkMuteFindingsRequest"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.GetBigQueryExportRequest"; }; - return BulkMuteFindingsRequest; + return GetBigQueryExportRequest; })(); - v1.BulkMuteFindingsResponse = (function() { + v1.GetMuteConfigRequest = (function() { /** - * Properties of a BulkMuteFindingsResponse. + * Properties of a GetMuteConfigRequest. * @memberof google.cloud.securitycenter.v1 - * @interface IBulkMuteFindingsResponse + * @interface IGetMuteConfigRequest + * @property {string|null} [name] GetMuteConfigRequest name */ /** - * Constructs a new BulkMuteFindingsResponse. + * Constructs a new GetMuteConfigRequest. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a BulkMuteFindingsResponse. - * @implements IBulkMuteFindingsResponse + * @classdesc Represents a GetMuteConfigRequest. + * @implements IGetMuteConfigRequest * @constructor - * @param {google.cloud.securitycenter.v1.IBulkMuteFindingsResponse=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IGetMuteConfigRequest=} [properties] Properties to set */ - function BulkMuteFindingsResponse(properties) { + function GetMuteConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18972,63 +23256,77 @@ } /** - * Creates a new BulkMuteFindingsResponse instance using the specified properties. + * GetMuteConfigRequest name. + * @member {string} name + * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest + * @instance + */ + GetMuteConfigRequest.prototype.name = ""; + + /** + * Creates a new GetMuteConfigRequest instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest * @static - * @param {google.cloud.securitycenter.v1.IBulkMuteFindingsResponse=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.BulkMuteFindingsResponse} BulkMuteFindingsResponse instance + * @param {google.cloud.securitycenter.v1.IGetMuteConfigRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.GetMuteConfigRequest} GetMuteConfigRequest instance */ - BulkMuteFindingsResponse.create = function create(properties) { - return new BulkMuteFindingsResponse(properties); + GetMuteConfigRequest.create = function create(properties) { + return new GetMuteConfigRequest(properties); }; /** - * Encodes the specified BulkMuteFindingsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.BulkMuteFindingsResponse.verify|verify} messages. + * Encodes the specified GetMuteConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetMuteConfigRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest * @static - * @param {google.cloud.securitycenter.v1.IBulkMuteFindingsResponse} message BulkMuteFindingsResponse message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGetMuteConfigRequest} message GetMuteConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BulkMuteFindingsResponse.encode = function encode(message, writer) { + GetMuteConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified BulkMuteFindingsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.BulkMuteFindingsResponse.verify|verify} messages. + * Encodes the specified GetMuteConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetMuteConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest * @static - * @param {google.cloud.securitycenter.v1.IBulkMuteFindingsResponse} message BulkMuteFindingsResponse message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGetMuteConfigRequest} message GetMuteConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BulkMuteFindingsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetMuteConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BulkMuteFindingsResponse message from the specified reader or buffer. + * Decodes a GetMuteConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.BulkMuteFindingsResponse} BulkMuteFindingsResponse + * @returns {google.cloud.securitycenter.v1.GetMuteConfigRequest} GetMuteConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BulkMuteFindingsResponse.decode = function decode(reader, length) { + GetMuteConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.BulkMuteFindingsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GetMuteConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -19038,111 +23336,122 @@ }; /** - * Decodes a BulkMuteFindingsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetMuteConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.BulkMuteFindingsResponse} BulkMuteFindingsResponse + * @returns {google.cloud.securitycenter.v1.GetMuteConfigRequest} GetMuteConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BulkMuteFindingsResponse.decodeDelimited = function decodeDelimited(reader) { + GetMuteConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BulkMuteFindingsResponse message. + * Verifies a GetMuteConfigRequest message. * @function verify - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BulkMuteFindingsResponse.verify = function verify(message) { + GetMuteConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a BulkMuteFindingsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetMuteConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.BulkMuteFindingsResponse} BulkMuteFindingsResponse + * @returns {google.cloud.securitycenter.v1.GetMuteConfigRequest} GetMuteConfigRequest */ - BulkMuteFindingsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.BulkMuteFindingsResponse) + GetMuteConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.GetMuteConfigRequest) return object; - return new $root.google.cloud.securitycenter.v1.BulkMuteFindingsResponse(); + var message = new $root.google.cloud.securitycenter.v1.GetMuteConfigRequest(); + if (object.name != null) + message.name = String(object.name); + return message; }; /** - * Creates a plain object from a BulkMuteFindingsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetMuteConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest * @static - * @param {google.cloud.securitycenter.v1.BulkMuteFindingsResponse} message BulkMuteFindingsResponse + * @param {google.cloud.securitycenter.v1.GetMuteConfigRequest} message GetMuteConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BulkMuteFindingsResponse.toObject = function toObject() { - return {}; + GetMuteConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; }; /** - * Converts this BulkMuteFindingsResponse to JSON. + * Converts this GetMuteConfigRequest to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest * @instance * @returns {Object.} JSON object */ - BulkMuteFindingsResponse.prototype.toJSON = function toJSON() { + GetMuteConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BulkMuteFindingsResponse + * Gets the default type url for GetMuteConfigRequest * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.BulkMuteFindingsResponse + * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BulkMuteFindingsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetMuteConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.BulkMuteFindingsResponse"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.GetMuteConfigRequest"; }; - return BulkMuteFindingsResponse; + return GetMuteConfigRequest; })(); - v1.CreateFindingRequest = (function() { + v1.GetNotificationConfigRequest = (function() { /** - * Properties of a CreateFindingRequest. + * Properties of a GetNotificationConfigRequest. * @memberof google.cloud.securitycenter.v1 - * @interface ICreateFindingRequest - * @property {string|null} [parent] CreateFindingRequest parent - * @property {string|null} [findingId] CreateFindingRequest findingId - * @property {google.cloud.securitycenter.v1.IFinding|null} [finding] CreateFindingRequest finding + * @interface IGetNotificationConfigRequest + * @property {string|null} [name] GetNotificationConfigRequest name */ /** - * Constructs a new CreateFindingRequest. + * Constructs a new GetNotificationConfigRequest. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a CreateFindingRequest. - * @implements ICreateFindingRequest + * @classdesc Represents a GetNotificationConfigRequest. + * @implements IGetNotificationConfigRequest * @constructor - * @param {google.cloud.securitycenter.v1.ICreateFindingRequest=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IGetNotificationConfigRequest=} [properties] Properties to set */ - function CreateFindingRequest(properties) { + function GetNotificationConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19150,103 +23459,75 @@ } /** - * CreateFindingRequest parent. - * @member {string} parent - * @memberof google.cloud.securitycenter.v1.CreateFindingRequest - * @instance - */ - CreateFindingRequest.prototype.parent = ""; - - /** - * CreateFindingRequest findingId. - * @member {string} findingId - * @memberof google.cloud.securitycenter.v1.CreateFindingRequest - * @instance - */ - CreateFindingRequest.prototype.findingId = ""; - - /** - * CreateFindingRequest finding. - * @member {google.cloud.securitycenter.v1.IFinding|null|undefined} finding - * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * GetNotificationConfigRequest name. + * @member {string} name + * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest * @instance */ - CreateFindingRequest.prototype.finding = null; + GetNotificationConfigRequest.prototype.name = ""; /** - * Creates a new CreateFindingRequest instance using the specified properties. + * Creates a new GetNotificationConfigRequest instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest * @static - * @param {google.cloud.securitycenter.v1.ICreateFindingRequest=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.CreateFindingRequest} CreateFindingRequest instance + * @param {google.cloud.securitycenter.v1.IGetNotificationConfigRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.GetNotificationConfigRequest} GetNotificationConfigRequest instance */ - CreateFindingRequest.create = function create(properties) { - return new CreateFindingRequest(properties); + GetNotificationConfigRequest.create = function create(properties) { + return new GetNotificationConfigRequest(properties); }; /** - * Encodes the specified CreateFindingRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateFindingRequest.verify|verify} messages. + * Encodes the specified GetNotificationConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetNotificationConfigRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest * @static - * @param {google.cloud.securitycenter.v1.ICreateFindingRequest} message CreateFindingRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGetNotificationConfigRequest} message GetNotificationConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFindingRequest.encode = function encode(message, writer) { + GetNotificationConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.findingId != null && Object.hasOwnProperty.call(message, "findingId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.findingId); - if (message.finding != null && Object.hasOwnProperty.call(message, "finding")) - $root.google.cloud.securitycenter.v1.Finding.encode(message.finding, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateFindingRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateFindingRequest.verify|verify} messages. + * Encodes the specified GetNotificationConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetNotificationConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest * @static - * @param {google.cloud.securitycenter.v1.ICreateFindingRequest} message CreateFindingRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGetNotificationConfigRequest} message GetNotificationConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFindingRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetNotificationConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFindingRequest message from the specified reader or buffer. + * Decodes a GetNotificationConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.CreateFindingRequest} CreateFindingRequest + * @returns {google.cloud.securitycenter.v1.GetNotificationConfigRequest} GetNotificationConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFindingRequest.decode = function decode(reader, length) { + GetNotificationConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.CreateFindingRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GetNotificationConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.findingId = reader.string(); - break; - } - case 3: { - message.finding = $root.google.cloud.securitycenter.v1.Finding.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -19258,146 +23539,122 @@ }; /** - * Decodes a CreateFindingRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNotificationConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.CreateFindingRequest} CreateFindingRequest + * @returns {google.cloud.securitycenter.v1.GetNotificationConfigRequest} GetNotificationConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFindingRequest.decodeDelimited = function decodeDelimited(reader) { + GetNotificationConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateFindingRequest message. + * Verifies a GetNotificationConfigRequest message. * @function verify - * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateFindingRequest.verify = function verify(message) { + GetNotificationConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.findingId != null && message.hasOwnProperty("findingId")) - if (!$util.isString(message.findingId)) - return "findingId: string expected"; - if (message.finding != null && message.hasOwnProperty("finding")) { - var error = $root.google.cloud.securitycenter.v1.Finding.verify(message.finding); - if (error) - return "finding." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateFindingRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNotificationConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.CreateFindingRequest} CreateFindingRequest + * @returns {google.cloud.securitycenter.v1.GetNotificationConfigRequest} GetNotificationConfigRequest */ - CreateFindingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.CreateFindingRequest) + GetNotificationConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.GetNotificationConfigRequest) return object; - var message = new $root.google.cloud.securitycenter.v1.CreateFindingRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.findingId != null) - message.findingId = String(object.findingId); - if (object.finding != null) { - if (typeof object.finding !== "object") - throw TypeError(".google.cloud.securitycenter.v1.CreateFindingRequest.finding: object expected"); - message.finding = $root.google.cloud.securitycenter.v1.Finding.fromObject(object.finding); - } + var message = new $root.google.cloud.securitycenter.v1.GetNotificationConfigRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateFindingRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetNotificationConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest * @static - * @param {google.cloud.securitycenter.v1.CreateFindingRequest} message CreateFindingRequest + * @param {google.cloud.securitycenter.v1.GetNotificationConfigRequest} message GetNotificationConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFindingRequest.toObject = function toObject(message, options) { + GetNotificationConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.findingId = ""; - object.finding = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.findingId != null && message.hasOwnProperty("findingId")) - object.findingId = message.findingId; - if (message.finding != null && message.hasOwnProperty("finding")) - object.finding = $root.google.cloud.securitycenter.v1.Finding.toObject(message.finding, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateFindingRequest to JSON. + * Converts this GetNotificationConfigRequest to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest * @instance * @returns {Object.} JSON object */ - CreateFindingRequest.prototype.toJSON = function toJSON() { + GetNotificationConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateFindingRequest + * Gets the default type url for GetNotificationConfigRequest * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.CreateFindingRequest + * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateFindingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNotificationConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.CreateFindingRequest"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.GetNotificationConfigRequest"; }; - return CreateFindingRequest; + return GetNotificationConfigRequest; })(); - v1.CreateMuteConfigRequest = (function() { + v1.GetOrganizationSettingsRequest = (function() { /** - * Properties of a CreateMuteConfigRequest. + * Properties of a GetOrganizationSettingsRequest. * @memberof google.cloud.securitycenter.v1 - * @interface ICreateMuteConfigRequest - * @property {string|null} [parent] CreateMuteConfigRequest parent - * @property {google.cloud.securitycenter.v1.IMuteConfig|null} [muteConfig] CreateMuteConfigRequest muteConfig - * @property {string|null} [muteConfigId] CreateMuteConfigRequest muteConfigId + * @interface IGetOrganizationSettingsRequest + * @property {string|null} [name] GetOrganizationSettingsRequest name */ /** - * Constructs a new CreateMuteConfigRequest. + * Constructs a new GetOrganizationSettingsRequest. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a CreateMuteConfigRequest. - * @implements ICreateMuteConfigRequest + * @classdesc Represents a GetOrganizationSettingsRequest. + * @implements IGetOrganizationSettingsRequest * @constructor - * @param {google.cloud.securitycenter.v1.ICreateMuteConfigRequest=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest=} [properties] Properties to set */ - function CreateMuteConfigRequest(properties) { + function GetOrganizationSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19405,103 +23662,75 @@ } /** - * CreateMuteConfigRequest parent. - * @member {string} parent - * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest - * @instance - */ - CreateMuteConfigRequest.prototype.parent = ""; - - /** - * CreateMuteConfigRequest muteConfig. - * @member {google.cloud.securitycenter.v1.IMuteConfig|null|undefined} muteConfig - * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest - * @instance - */ - CreateMuteConfigRequest.prototype.muteConfig = null; - - /** - * CreateMuteConfigRequest muteConfigId. - * @member {string} muteConfigId - * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * GetOrganizationSettingsRequest name. + * @member {string} name + * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest * @instance */ - CreateMuteConfigRequest.prototype.muteConfigId = ""; + GetOrganizationSettingsRequest.prototype.name = ""; /** - * Creates a new CreateMuteConfigRequest instance using the specified properties. + * Creates a new GetOrganizationSettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest * @static - * @param {google.cloud.securitycenter.v1.ICreateMuteConfigRequest=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.CreateMuteConfigRequest} CreateMuteConfigRequest instance + * @param {google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.GetOrganizationSettingsRequest} GetOrganizationSettingsRequest instance */ - CreateMuteConfigRequest.create = function create(properties) { - return new CreateMuteConfigRequest(properties); + GetOrganizationSettingsRequest.create = function create(properties) { + return new GetOrganizationSettingsRequest(properties); }; /** - * Encodes the specified CreateMuteConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateMuteConfigRequest.verify|verify} messages. + * Encodes the specified GetOrganizationSettingsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest * @static - * @param {google.cloud.securitycenter.v1.ICreateMuteConfigRequest} message CreateMuteConfigRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest} message GetOrganizationSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMuteConfigRequest.encode = function encode(message, writer) { + GetOrganizationSettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.muteConfig != null && Object.hasOwnProperty.call(message, "muteConfig")) - $root.google.cloud.securitycenter.v1.MuteConfig.encode(message.muteConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.muteConfigId != null && Object.hasOwnProperty.call(message, "muteConfigId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.muteConfigId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateMuteConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateMuteConfigRequest.verify|verify} messages. + * Encodes the specified GetOrganizationSettingsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest * @static - * @param {google.cloud.securitycenter.v1.ICreateMuteConfigRequest} message CreateMuteConfigRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest} message GetOrganizationSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMuteConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetOrganizationSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateMuteConfigRequest message from the specified reader or buffer. + * Decodes a GetOrganizationSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.CreateMuteConfigRequest} CreateMuteConfigRequest + * @returns {google.cloud.securitycenter.v1.GetOrganizationSettingsRequest} GetOrganizationSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMuteConfigRequest.decode = function decode(reader, length) { + GetOrganizationSettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.CreateMuteConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.muteConfig = $root.google.cloud.securitycenter.v1.MuteConfig.decode(reader, reader.uint32()); - break; - } - case 3: { - message.muteConfigId = reader.string(); + message.name = reader.string(); break; } default: @@ -19513,146 +23742,122 @@ }; /** - * Decodes a CreateMuteConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a GetOrganizationSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.CreateMuteConfigRequest} CreateMuteConfigRequest + * @returns {google.cloud.securitycenter.v1.GetOrganizationSettingsRequest} GetOrganizationSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMuteConfigRequest.decodeDelimited = function decodeDelimited(reader) { + GetOrganizationSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateMuteConfigRequest message. + * Verifies a GetOrganizationSettingsRequest message. * @function verify - * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateMuteConfigRequest.verify = function verify(message) { + GetOrganizationSettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.muteConfig != null && message.hasOwnProperty("muteConfig")) { - var error = $root.google.cloud.securitycenter.v1.MuteConfig.verify(message.muteConfig); - if (error) - return "muteConfig." + error; - } - if (message.muteConfigId != null && message.hasOwnProperty("muteConfigId")) - if (!$util.isString(message.muteConfigId)) - return "muteConfigId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateMuteConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetOrganizationSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.CreateMuteConfigRequest} CreateMuteConfigRequest + * @returns {google.cloud.securitycenter.v1.GetOrganizationSettingsRequest} GetOrganizationSettingsRequest */ - CreateMuteConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.CreateMuteConfigRequest) + GetOrganizationSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) return object; - var message = new $root.google.cloud.securitycenter.v1.CreateMuteConfigRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.muteConfig != null) { - if (typeof object.muteConfig !== "object") - throw TypeError(".google.cloud.securitycenter.v1.CreateMuteConfigRequest.muteConfig: object expected"); - message.muteConfig = $root.google.cloud.securitycenter.v1.MuteConfig.fromObject(object.muteConfig); - } - if (object.muteConfigId != null) - message.muteConfigId = String(object.muteConfigId); + var message = new $root.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateMuteConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetOrganizationSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest * @static - * @param {google.cloud.securitycenter.v1.CreateMuteConfigRequest} message CreateMuteConfigRequest + * @param {google.cloud.securitycenter.v1.GetOrganizationSettingsRequest} message GetOrganizationSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateMuteConfigRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.muteConfig = null; - object.muteConfigId = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.muteConfig != null && message.hasOwnProperty("muteConfig")) - object.muteConfig = $root.google.cloud.securitycenter.v1.MuteConfig.toObject(message.muteConfig, options); - if (message.muteConfigId != null && message.hasOwnProperty("muteConfigId")) - object.muteConfigId = message.muteConfigId; + GetOrganizationSettingsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateMuteConfigRequest to JSON. + * Converts this GetOrganizationSettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest * @instance * @returns {Object.} JSON object */ - CreateMuteConfigRequest.prototype.toJSON = function toJSON() { + GetOrganizationSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateMuteConfigRequest + * Gets the default type url for GetOrganizationSettingsRequest * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.CreateMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateMuteConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetOrganizationSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.CreateMuteConfigRequest"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.GetOrganizationSettingsRequest"; }; - return CreateMuteConfigRequest; + return GetOrganizationSettingsRequest; })(); - v1.CreateNotificationConfigRequest = (function() { + v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest = (function() { /** - * Properties of a CreateNotificationConfigRequest. + * Properties of a GetEffectiveSecurityHealthAnalyticsCustomModuleRequest. * @memberof google.cloud.securitycenter.v1 - * @interface ICreateNotificationConfigRequest - * @property {string|null} [parent] CreateNotificationConfigRequest parent - * @property {string|null} [configId] CreateNotificationConfigRequest configId - * @property {google.cloud.securitycenter.v1.INotificationConfig|null} [notificationConfig] CreateNotificationConfigRequest notificationConfig + * @interface IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest + * @property {string|null} [name] GetEffectiveSecurityHealthAnalyticsCustomModuleRequest name */ /** - * Constructs a new CreateNotificationConfigRequest. + * Constructs a new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a CreateNotificationConfigRequest. - * @implements ICreateNotificationConfigRequest + * @classdesc Represents a GetEffectiveSecurityHealthAnalyticsCustomModuleRequest. + * @implements IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @constructor - * @param {google.cloud.securitycenter.v1.ICreateNotificationConfigRequest=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest=} [properties] Properties to set */ - function CreateNotificationConfigRequest(properties) { + function GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19660,103 +23865,75 @@ } /** - * CreateNotificationConfigRequest parent. - * @member {string} parent - * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest - * @instance - */ - CreateNotificationConfigRequest.prototype.parent = ""; - - /** - * CreateNotificationConfigRequest configId. - * @member {string} configId - * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest - * @instance - */ - CreateNotificationConfigRequest.prototype.configId = ""; - - /** - * CreateNotificationConfigRequest notificationConfig. - * @member {google.cloud.securitycenter.v1.INotificationConfig|null|undefined} notificationConfig - * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * GetEffectiveSecurityHealthAnalyticsCustomModuleRequest name. + * @member {string} name + * @memberof google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @instance */ - CreateNotificationConfigRequest.prototype.notificationConfig = null; + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.prototype.name = ""; /** - * Creates a new CreateNotificationConfigRequest instance using the specified properties. + * Creates a new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @static - * @param {google.cloud.securitycenter.v1.ICreateNotificationConfigRequest=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.CreateNotificationConfigRequest} CreateNotificationConfigRequest instance + * @param {google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest} GetEffectiveSecurityHealthAnalyticsCustomModuleRequest instance */ - CreateNotificationConfigRequest.create = function create(properties) { - return new CreateNotificationConfigRequest(properties); + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.create = function create(properties) { + return new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(properties); }; /** - * Encodes the specified CreateNotificationConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateNotificationConfigRequest.verify|verify} messages. + * Encodes the specified GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @static - * @param {google.cloud.securitycenter.v1.ICreateNotificationConfigRequest} message CreateNotificationConfigRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest} message GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateNotificationConfigRequest.encode = function encode(message, writer) { + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.configId != null && Object.hasOwnProperty.call(message, "configId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.configId); - if (message.notificationConfig != null && Object.hasOwnProperty.call(message, "notificationConfig")) - $root.google.cloud.securitycenter.v1.NotificationConfig.encode(message.notificationConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateNotificationConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateNotificationConfigRequest.verify|verify} messages. + * Encodes the specified GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @static - * @param {google.cloud.securitycenter.v1.ICreateNotificationConfigRequest} message CreateNotificationConfigRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest} message GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateNotificationConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateNotificationConfigRequest message from the specified reader or buffer. + * Decodes a GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.CreateNotificationConfigRequest} CreateNotificationConfigRequest + * @returns {google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest} GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateNotificationConfigRequest.decode = function decode(reader, length) { + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.CreateNotificationConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.configId = reader.string(); - break; - } - case 3: { - message.notificationConfig = $root.google.cloud.securitycenter.v1.NotificationConfig.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -19768,145 +23945,122 @@ }; /** - * Decodes a CreateNotificationConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.CreateNotificationConfigRequest} CreateNotificationConfigRequest + * @returns {google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest} GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateNotificationConfigRequest.decodeDelimited = function decodeDelimited(reader) { + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateNotificationConfigRequest message. + * Verifies a GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message. * @function verify - * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateNotificationConfigRequest.verify = function verify(message) { + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.configId != null && message.hasOwnProperty("configId")) - if (!$util.isString(message.configId)) - return "configId: string expected"; - if (message.notificationConfig != null && message.hasOwnProperty("notificationConfig")) { - var error = $root.google.cloud.securitycenter.v1.NotificationConfig.verify(message.notificationConfig); - if (error) - return "notificationConfig." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateNotificationConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.CreateNotificationConfigRequest} CreateNotificationConfigRequest + * @returns {google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest} GetEffectiveSecurityHealthAnalyticsCustomModuleRequest */ - CreateNotificationConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) return object; - var message = new $root.google.cloud.securitycenter.v1.CreateNotificationConfigRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.configId != null) - message.configId = String(object.configId); - if (object.notificationConfig != null) { - if (typeof object.notificationConfig !== "object") - throw TypeError(".google.cloud.securitycenter.v1.CreateNotificationConfigRequest.notificationConfig: object expected"); - message.notificationConfig = $root.google.cloud.securitycenter.v1.NotificationConfig.fromObject(object.notificationConfig); - } + var message = new $root.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateNotificationConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetEffectiveSecurityHealthAnalyticsCustomModuleRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @static - * @param {google.cloud.securitycenter.v1.CreateNotificationConfigRequest} message CreateNotificationConfigRequest + * @param {google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest} message GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateNotificationConfigRequest.toObject = function toObject(message, options) { + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.configId = ""; - object.notificationConfig = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.configId != null && message.hasOwnProperty("configId")) - object.configId = message.configId; - if (message.notificationConfig != null && message.hasOwnProperty("notificationConfig")) - object.notificationConfig = $root.google.cloud.securitycenter.v1.NotificationConfig.toObject(message.notificationConfig, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateNotificationConfigRequest to JSON. + * Converts this GetEffectiveSecurityHealthAnalyticsCustomModuleRequest to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @instance * @returns {Object.} JSON object */ - CreateNotificationConfigRequest.prototype.toJSON = function toJSON() { + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateNotificationConfigRequest + * Gets the default type url for GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.CreateNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateNotificationConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.CreateNotificationConfigRequest"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest"; }; - return CreateNotificationConfigRequest; + return GetEffectiveSecurityHealthAnalyticsCustomModuleRequest; })(); - v1.CreateSourceRequest = (function() { + v1.GetSecurityHealthAnalyticsCustomModuleRequest = (function() { /** - * Properties of a CreateSourceRequest. + * Properties of a GetSecurityHealthAnalyticsCustomModuleRequest. * @memberof google.cloud.securitycenter.v1 - * @interface ICreateSourceRequest - * @property {string|null} [parent] CreateSourceRequest parent - * @property {google.cloud.securitycenter.v1.ISource|null} [source] CreateSourceRequest source + * @interface IGetSecurityHealthAnalyticsCustomModuleRequest + * @property {string|null} [name] GetSecurityHealthAnalyticsCustomModuleRequest name */ /** - * Constructs a new CreateSourceRequest. + * Constructs a new GetSecurityHealthAnalyticsCustomModuleRequest. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a CreateSourceRequest. - * @implements ICreateSourceRequest + * @classdesc Represents a GetSecurityHealthAnalyticsCustomModuleRequest. + * @implements IGetSecurityHealthAnalyticsCustomModuleRequest * @constructor - * @param {google.cloud.securitycenter.v1.ICreateSourceRequest=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest=} [properties] Properties to set */ - function CreateSourceRequest(properties) { + function GetSecurityHealthAnalyticsCustomModuleRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19914,89 +24068,75 @@ } /** - * CreateSourceRequest parent. - * @member {string} parent - * @memberof google.cloud.securitycenter.v1.CreateSourceRequest - * @instance - */ - CreateSourceRequest.prototype.parent = ""; - - /** - * CreateSourceRequest source. - * @member {google.cloud.securitycenter.v1.ISource|null|undefined} source - * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * GetSecurityHealthAnalyticsCustomModuleRequest name. + * @member {string} name + * @memberof google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest * @instance */ - CreateSourceRequest.prototype.source = null; + GetSecurityHealthAnalyticsCustomModuleRequest.prototype.name = ""; /** - * Creates a new CreateSourceRequest instance using the specified properties. + * Creates a new GetSecurityHealthAnalyticsCustomModuleRequest instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @memberof google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest * @static - * @param {google.cloud.securitycenter.v1.ICreateSourceRequest=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.CreateSourceRequest} CreateSourceRequest instance + * @param {google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest} GetSecurityHealthAnalyticsCustomModuleRequest instance */ - CreateSourceRequest.create = function create(properties) { - return new CreateSourceRequest(properties); + GetSecurityHealthAnalyticsCustomModuleRequest.create = function create(properties) { + return new GetSecurityHealthAnalyticsCustomModuleRequest(properties); }; /** - * Encodes the specified CreateSourceRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.CreateSourceRequest.verify|verify} messages. + * Encodes the specified GetSecurityHealthAnalyticsCustomModuleRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @memberof google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest * @static - * @param {google.cloud.securitycenter.v1.ICreateSourceRequest} message CreateSourceRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest} message GetSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSourceRequest.encode = function encode(message, writer) { + GetSecurityHealthAnalyticsCustomModuleRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.source != null && Object.hasOwnProperty.call(message, "source")) - $root.google.cloud.securitycenter.v1.Source.encode(message.source, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateSourceRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.CreateSourceRequest.verify|verify} messages. + * Encodes the specified GetSecurityHealthAnalyticsCustomModuleRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @memberof google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest * @static - * @param {google.cloud.securitycenter.v1.ICreateSourceRequest} message CreateSourceRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest} message GetSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSecurityHealthAnalyticsCustomModuleRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateSourceRequest message from the specified reader or buffer. + * Decodes a GetSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @memberof google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.CreateSourceRequest} CreateSourceRequest + * @returns {google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest} GetSecurityHealthAnalyticsCustomModuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSourceRequest.decode = function decode(reader, length) { + GetSecurityHealthAnalyticsCustomModuleRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.CreateSourceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.source = $root.google.cloud.securitycenter.v1.Source.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -20008,136 +24148,122 @@ }; /** - * Decodes a CreateSourceRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @memberof google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.CreateSourceRequest} CreateSourceRequest + * @returns {google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest} GetSecurityHealthAnalyticsCustomModuleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSourceRequest.decodeDelimited = function decodeDelimited(reader) { + GetSecurityHealthAnalyticsCustomModuleRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateSourceRequest message. + * Verifies a GetSecurityHealthAnalyticsCustomModuleRequest message. * @function verify - * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @memberof google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateSourceRequest.verify = function verify(message) { + GetSecurityHealthAnalyticsCustomModuleRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.source != null && message.hasOwnProperty("source")) { - var error = $root.google.cloud.securitycenter.v1.Source.verify(message.source); - if (error) - return "source." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateSourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSecurityHealthAnalyticsCustomModuleRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @memberof google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.CreateSourceRequest} CreateSourceRequest + * @returns {google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest} GetSecurityHealthAnalyticsCustomModuleRequest */ - CreateSourceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.CreateSourceRequest) + GetSecurityHealthAnalyticsCustomModuleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest) return object; - var message = new $root.google.cloud.securitycenter.v1.CreateSourceRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.source != null) { - if (typeof object.source !== "object") - throw TypeError(".google.cloud.securitycenter.v1.CreateSourceRequest.source: object expected"); - message.source = $root.google.cloud.securitycenter.v1.Source.fromObject(object.source); - } + var message = new $root.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateSourceRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetSecurityHealthAnalyticsCustomModuleRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @memberof google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest * @static - * @param {google.cloud.securitycenter.v1.CreateSourceRequest} message CreateSourceRequest + * @param {google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest} message GetSecurityHealthAnalyticsCustomModuleRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateSourceRequest.toObject = function toObject(message, options) { + GetSecurityHealthAnalyticsCustomModuleRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.source = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.source != null && message.hasOwnProperty("source")) - object.source = $root.google.cloud.securitycenter.v1.Source.toObject(message.source, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateSourceRequest to JSON. + * Converts this GetSecurityHealthAnalyticsCustomModuleRequest to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @memberof google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest * @instance * @returns {Object.} JSON object */ - CreateSourceRequest.prototype.toJSON = function toJSON() { + GetSecurityHealthAnalyticsCustomModuleRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateSourceRequest + * Gets the default type url for GetSecurityHealthAnalyticsCustomModuleRequest * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.CreateSourceRequest + * @memberof google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSecurityHealthAnalyticsCustomModuleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.CreateSourceRequest"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest"; }; - return CreateSourceRequest; + return GetSecurityHealthAnalyticsCustomModuleRequest; })(); - v1.DeleteMuteConfigRequest = (function() { + v1.GetSourceRequest = (function() { /** - * Properties of a DeleteMuteConfigRequest. + * Properties of a GetSourceRequest. * @memberof google.cloud.securitycenter.v1 - * @interface IDeleteMuteConfigRequest - * @property {string|null} [name] DeleteMuteConfigRequest name + * @interface IGetSourceRequest + * @property {string|null} [name] GetSourceRequest name */ /** - * Constructs a new DeleteMuteConfigRequest. + * Constructs a new GetSourceRequest. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a DeleteMuteConfigRequest. - * @implements IDeleteMuteConfigRequest + * @classdesc Represents a GetSourceRequest. + * @implements IGetSourceRequest * @constructor - * @param {google.cloud.securitycenter.v1.IDeleteMuteConfigRequest=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IGetSourceRequest=} [properties] Properties to set */ - function DeleteMuteConfigRequest(properties) { + function GetSourceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20145,35 +24271,35 @@ } /** - * DeleteMuteConfigRequest name. + * GetSourceRequest name. * @member {string} name - * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetSourceRequest * @instance */ - DeleteMuteConfigRequest.prototype.name = ""; + GetSourceRequest.prototype.name = ""; /** - * Creates a new DeleteMuteConfigRequest instance using the specified properties. + * Creates a new GetSourceRequest instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetSourceRequest * @static - * @param {google.cloud.securitycenter.v1.IDeleteMuteConfigRequest=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.DeleteMuteConfigRequest} DeleteMuteConfigRequest instance + * @param {google.cloud.securitycenter.v1.IGetSourceRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.GetSourceRequest} GetSourceRequest instance */ - DeleteMuteConfigRequest.create = function create(properties) { - return new DeleteMuteConfigRequest(properties); + GetSourceRequest.create = function create(properties) { + return new GetSourceRequest(properties); }; /** - * Encodes the specified DeleteMuteConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteMuteConfigRequest.verify|verify} messages. + * Encodes the specified GetSourceRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetSourceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetSourceRequest * @static - * @param {google.cloud.securitycenter.v1.IDeleteMuteConfigRequest} message DeleteMuteConfigRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGetSourceRequest} message GetSourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteMuteConfigRequest.encode = function encode(message, writer) { + GetSourceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -20182,33 +24308,33 @@ }; /** - * Encodes the specified DeleteMuteConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteMuteConfigRequest.verify|verify} messages. + * Encodes the specified GetSourceRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetSourceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetSourceRequest * @static - * @param {google.cloud.securitycenter.v1.IDeleteMuteConfigRequest} message DeleteMuteConfigRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGetSourceRequest} message GetSourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteMuteConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteMuteConfigRequest message from the specified reader or buffer. + * Decodes a GetSourceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetSourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.DeleteMuteConfigRequest} DeleteMuteConfigRequest + * @returns {google.cloud.securitycenter.v1.GetSourceRequest} GetSourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteMuteConfigRequest.decode = function decode(reader, length) { + GetSourceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.DeleteMuteConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GetSourceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -20225,30 +24351,30 @@ }; /** - * Decodes a DeleteMuteConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSourceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetSourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.DeleteMuteConfigRequest} DeleteMuteConfigRequest + * @returns {google.cloud.securitycenter.v1.GetSourceRequest} GetSourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteMuteConfigRequest.decodeDelimited = function decodeDelimited(reader) { + GetSourceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteMuteConfigRequest message. + * Verifies a GetSourceRequest message. * @function verify - * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetSourceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteMuteConfigRequest.verify = function verify(message) { + GetSourceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -20258,32 +24384,32 @@ }; /** - * Creates a DeleteMuteConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSourceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetSourceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.DeleteMuteConfigRequest} DeleteMuteConfigRequest + * @returns {google.cloud.securitycenter.v1.GetSourceRequest} GetSourceRequest */ - DeleteMuteConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) + GetSourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.GetSourceRequest) return object; - var message = new $root.google.cloud.securitycenter.v1.DeleteMuteConfigRequest(); + var message = new $root.google.cloud.securitycenter.v1.GetSourceRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteMuteConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetSourceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetSourceRequest * @static - * @param {google.cloud.securitycenter.v1.DeleteMuteConfigRequest} message DeleteMuteConfigRequest + * @param {google.cloud.securitycenter.v1.GetSourceRequest} message GetSourceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteMuteConfigRequest.toObject = function toObject(message, options) { + GetSourceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -20295,52 +24421,58 @@ }; /** - * Converts this DeleteMuteConfigRequest to JSON. + * Converts this GetSourceRequest to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetSourceRequest * @instance * @returns {Object.} JSON object */ - DeleteMuteConfigRequest.prototype.toJSON = function toJSON() { + GetSourceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteMuteConfigRequest + * Gets the default type url for GetSourceRequest * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.DeleteMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GetSourceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteMuteConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.DeleteMuteConfigRequest"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.GetSourceRequest"; }; - return DeleteMuteConfigRequest; + return GetSourceRequest; })(); - v1.DeleteNotificationConfigRequest = (function() { + v1.GroupAssetsRequest = (function() { /** - * Properties of a DeleteNotificationConfigRequest. + * Properties of a GroupAssetsRequest. * @memberof google.cloud.securitycenter.v1 - * @interface IDeleteNotificationConfigRequest - * @property {string|null} [name] DeleteNotificationConfigRequest name + * @interface IGroupAssetsRequest + * @property {string|null} [parent] GroupAssetsRequest parent + * @property {string|null} [filter] GroupAssetsRequest filter + * @property {string|null} [groupBy] GroupAssetsRequest groupBy + * @property {google.protobuf.IDuration|null} [compareDuration] GroupAssetsRequest compareDuration + * @property {google.protobuf.ITimestamp|null} [readTime] GroupAssetsRequest readTime + * @property {string|null} [pageToken] GroupAssetsRequest pageToken + * @property {number|null} [pageSize] GroupAssetsRequest pageSize */ /** - * Constructs a new DeleteNotificationConfigRequest. + * Constructs a new GroupAssetsRequest. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a DeleteNotificationConfigRequest. - * @implements IDeleteNotificationConfigRequest + * @classdesc Represents a GroupAssetsRequest. + * @implements IGroupAssetsRequest * @constructor - * @param {google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IGroupAssetsRequest=} [properties] Properties to set */ - function DeleteNotificationConfigRequest(properties) { + function GroupAssetsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20348,75 +24480,159 @@ } /** - * DeleteNotificationConfigRequest name. - * @member {string} name - * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * GroupAssetsRequest parent. + * @member {string} parent + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest * @instance */ - DeleteNotificationConfigRequest.prototype.name = ""; + GroupAssetsRequest.prototype.parent = ""; /** - * Creates a new DeleteNotificationConfigRequest instance using the specified properties. + * GroupAssetsRequest filter. + * @member {string} filter + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * @instance + */ + GroupAssetsRequest.prototype.filter = ""; + + /** + * GroupAssetsRequest groupBy. + * @member {string} groupBy + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * @instance + */ + GroupAssetsRequest.prototype.groupBy = ""; + + /** + * GroupAssetsRequest compareDuration. + * @member {google.protobuf.IDuration|null|undefined} compareDuration + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * @instance + */ + GroupAssetsRequest.prototype.compareDuration = null; + + /** + * GroupAssetsRequest readTime. + * @member {google.protobuf.ITimestamp|null|undefined} readTime + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * @instance + */ + GroupAssetsRequest.prototype.readTime = null; + + /** + * GroupAssetsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * @instance + */ + GroupAssetsRequest.prototype.pageToken = ""; + + /** + * GroupAssetsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * @instance + */ + GroupAssetsRequest.prototype.pageSize = 0; + + /** + * Creates a new GroupAssetsRequest instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest * @static - * @param {google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.DeleteNotificationConfigRequest} DeleteNotificationConfigRequest instance + * @param {google.cloud.securitycenter.v1.IGroupAssetsRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.GroupAssetsRequest} GroupAssetsRequest instance */ - DeleteNotificationConfigRequest.create = function create(properties) { - return new DeleteNotificationConfigRequest(properties); + GroupAssetsRequest.create = function create(properties) { + return new GroupAssetsRequest(properties); }; /** - * Encodes the specified DeleteNotificationConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.verify|verify} messages. + * Encodes the specified GroupAssetsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupAssetsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest * @static - * @param {google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest} message DeleteNotificationConfigRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGroupAssetsRequest} message GroupAssetsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteNotificationConfigRequest.encode = function encode(message, writer) { + GroupAssetsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.groupBy != null && Object.hasOwnProperty.call(message, "groupBy")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.groupBy); + if (message.compareDuration != null && Object.hasOwnProperty.call(message, "compareDuration")) + $root.google.protobuf.Duration.encode(message.compareDuration, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.readTime != null && Object.hasOwnProperty.call(message, "readTime")) + $root.google.protobuf.Timestamp.encode(message.readTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.pageToken); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.pageSize); return writer; }; /** - * Encodes the specified DeleteNotificationConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.verify|verify} messages. + * Encodes the specified GroupAssetsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupAssetsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest * @static - * @param {google.cloud.securitycenter.v1.IDeleteNotificationConfigRequest} message DeleteNotificationConfigRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGroupAssetsRequest} message GroupAssetsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteNotificationConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + GroupAssetsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteNotificationConfigRequest message from the specified reader or buffer. + * Decodes a GroupAssetsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.DeleteNotificationConfigRequest} DeleteNotificationConfigRequest + * @returns {google.cloud.securitycenter.v1.GroupAssetsRequest} GroupAssetsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteNotificationConfigRequest.decode = function decode(reader, length) { + GroupAssetsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GroupAssetsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.groupBy = reader.string(); + break; + } + case 4: { + message.compareDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 5: { + message.readTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.pageToken = reader.string(); + break; + } + case 8: { + message.pageSize = reader.int32(); break; } default: @@ -20428,122 +24644,185 @@ }; /** - * Decodes a DeleteNotificationConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a GroupAssetsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.DeleteNotificationConfigRequest} DeleteNotificationConfigRequest + * @returns {google.cloud.securitycenter.v1.GroupAssetsRequest} GroupAssetsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteNotificationConfigRequest.decodeDelimited = function decodeDelimited(reader) { + GroupAssetsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteNotificationConfigRequest message. + * Verifies a GroupAssetsRequest message. * @function verify - * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteNotificationConfigRequest.verify = function verify(message) { + GroupAssetsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.groupBy != null && message.hasOwnProperty("groupBy")) + if (!$util.isString(message.groupBy)) + return "groupBy: string expected"; + if (message.compareDuration != null && message.hasOwnProperty("compareDuration")) { + var error = $root.google.protobuf.Duration.verify(message.compareDuration); + if (error) + return "compareDuration." + error; + } + if (message.readTime != null && message.hasOwnProperty("readTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.readTime); + if (error) + return "readTime." + error; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; return null; }; /** - * Creates a DeleteNotificationConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GroupAssetsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.DeleteNotificationConfigRequest} DeleteNotificationConfigRequest + * @returns {google.cloud.securitycenter.v1.GroupAssetsRequest} GroupAssetsRequest */ - DeleteNotificationConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) + GroupAssetsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.GroupAssetsRequest) return object; - var message = new $root.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.securitycenter.v1.GroupAssetsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.groupBy != null) + message.groupBy = String(object.groupBy); + if (object.compareDuration != null) { + if (typeof object.compareDuration !== "object") + throw TypeError(".google.cloud.securitycenter.v1.GroupAssetsRequest.compareDuration: object expected"); + message.compareDuration = $root.google.protobuf.Duration.fromObject(object.compareDuration); + } + if (object.readTime != null) { + if (typeof object.readTime !== "object") + throw TypeError(".google.cloud.securitycenter.v1.GroupAssetsRequest.readTime: object expected"); + message.readTime = $root.google.protobuf.Timestamp.fromObject(object.readTime); + } + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; return message; }; /** - * Creates a plain object from a DeleteNotificationConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a GroupAssetsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest * @static - * @param {google.cloud.securitycenter.v1.DeleteNotificationConfigRequest} message DeleteNotificationConfigRequest + * @param {google.cloud.securitycenter.v1.GroupAssetsRequest} message GroupAssetsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteNotificationConfigRequest.toObject = function toObject(message, options) { + GroupAssetsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.groupBy = ""; + object.compareDuration = null; + object.readTime = null; + object.pageToken = ""; + object.pageSize = 0; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.groupBy != null && message.hasOwnProperty("groupBy")) + object.groupBy = message.groupBy; + if (message.compareDuration != null && message.hasOwnProperty("compareDuration")) + object.compareDuration = $root.google.protobuf.Duration.toObject(message.compareDuration, options); + if (message.readTime != null && message.hasOwnProperty("readTime")) + object.readTime = $root.google.protobuf.Timestamp.toObject(message.readTime, options); + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; return object; }; /** - * Converts this DeleteNotificationConfigRequest to JSON. + * Converts this GroupAssetsRequest to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest * @instance * @returns {Object.} JSON object */ - DeleteNotificationConfigRequest.prototype.toJSON = function toJSON() { + GroupAssetsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteNotificationConfigRequest + * Gets the default type url for GroupAssetsRequest * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteNotificationConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GroupAssetsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.DeleteNotificationConfigRequest"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.GroupAssetsRequest"; }; - return DeleteNotificationConfigRequest; + return GroupAssetsRequest; })(); - v1.GetBigQueryExportRequest = (function() { + v1.GroupAssetsResponse = (function() { /** - * Properties of a GetBigQueryExportRequest. + * Properties of a GroupAssetsResponse. * @memberof google.cloud.securitycenter.v1 - * @interface IGetBigQueryExportRequest - * @property {string|null} [name] GetBigQueryExportRequest name + * @interface IGroupAssetsResponse + * @property {Array.|null} [groupByResults] GroupAssetsResponse groupByResults + * @property {google.protobuf.ITimestamp|null} [readTime] GroupAssetsResponse readTime + * @property {string|null} [nextPageToken] GroupAssetsResponse nextPageToken + * @property {number|null} [totalSize] GroupAssetsResponse totalSize */ /** - * Constructs a new GetBigQueryExportRequest. + * Constructs a new GroupAssetsResponse. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a GetBigQueryExportRequest. - * @implements IGetBigQueryExportRequest + * @classdesc Represents a GroupAssetsResponse. + * @implements IGroupAssetsResponse * @constructor - * @param {google.cloud.securitycenter.v1.IGetBigQueryExportRequest=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IGroupAssetsResponse=} [properties] Properties to set */ - function GetBigQueryExportRequest(properties) { + function GroupAssetsResponse(properties) { + this.groupByResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20551,75 +24830,120 @@ } /** - * GetBigQueryExportRequest name. - * @member {string} name - * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest + * GroupAssetsResponse groupByResults. + * @member {Array.} groupByResults + * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse * @instance */ - GetBigQueryExportRequest.prototype.name = ""; + GroupAssetsResponse.prototype.groupByResults = $util.emptyArray; /** - * Creates a new GetBigQueryExportRequest instance using the specified properties. + * GroupAssetsResponse readTime. + * @member {google.protobuf.ITimestamp|null|undefined} readTime + * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse + * @instance + */ + GroupAssetsResponse.prototype.readTime = null; + + /** + * GroupAssetsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse + * @instance + */ + GroupAssetsResponse.prototype.nextPageToken = ""; + + /** + * GroupAssetsResponse totalSize. + * @member {number} totalSize + * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse + * @instance + */ + GroupAssetsResponse.prototype.totalSize = 0; + + /** + * Creates a new GroupAssetsResponse instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse * @static - * @param {google.cloud.securitycenter.v1.IGetBigQueryExportRequest=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.GetBigQueryExportRequest} GetBigQueryExportRequest instance + * @param {google.cloud.securitycenter.v1.IGroupAssetsResponse=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.GroupAssetsResponse} GroupAssetsResponse instance */ - GetBigQueryExportRequest.create = function create(properties) { - return new GetBigQueryExportRequest(properties); + GroupAssetsResponse.create = function create(properties) { + return new GroupAssetsResponse(properties); }; /** - * Encodes the specified GetBigQueryExportRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetBigQueryExportRequest.verify|verify} messages. + * Encodes the specified GroupAssetsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupAssetsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse * @static - * @param {google.cloud.securitycenter.v1.IGetBigQueryExportRequest} message GetBigQueryExportRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGroupAssetsResponse} message GroupAssetsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBigQueryExportRequest.encode = function encode(message, writer) { + GroupAssetsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.groupByResults != null && message.groupByResults.length) + for (var i = 0; i < message.groupByResults.length; ++i) + $root.google.cloud.securitycenter.v1.GroupResult.encode(message.groupByResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.readTime != null && Object.hasOwnProperty.call(message, "readTime")) + $root.google.protobuf.Timestamp.encode(message.readTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.nextPageToken); + if (message.totalSize != null && Object.hasOwnProperty.call(message, "totalSize")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.totalSize); return writer; }; /** - * Encodes the specified GetBigQueryExportRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetBigQueryExportRequest.verify|verify} messages. + * Encodes the specified GroupAssetsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupAssetsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse * @static - * @param {google.cloud.securitycenter.v1.IGetBigQueryExportRequest} message GetBigQueryExportRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGroupAssetsResponse} message GroupAssetsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBigQueryExportRequest.encodeDelimited = function encodeDelimited(message, writer) { + GroupAssetsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBigQueryExportRequest message from the specified reader or buffer. + * Decodes a GroupAssetsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.GetBigQueryExportRequest} GetBigQueryExportRequest + * @returns {google.cloud.securitycenter.v1.GroupAssetsResponse} GroupAssetsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBigQueryExportRequest.decode = function decode(reader, length) { + GroupAssetsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GetBigQueryExportRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GroupAssetsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.groupByResults && message.groupByResults.length)) + message.groupByResults = []; + message.groupByResults.push($root.google.cloud.securitycenter.v1.GroupResult.decode(reader, reader.uint32())); + break; + } + case 2: { + message.readTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.nextPageToken = reader.string(); + break; + } + case 4: { + message.totalSize = reader.int32(); break; } default: @@ -20631,122 +24955,176 @@ }; /** - * Decodes a GetBigQueryExportRequest message from the specified reader or buffer, length delimited. + * Decodes a GroupAssetsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.GetBigQueryExportRequest} GetBigQueryExportRequest + * @returns {google.cloud.securitycenter.v1.GroupAssetsResponse} GroupAssetsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBigQueryExportRequest.decodeDelimited = function decodeDelimited(reader) { + GroupAssetsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetBigQueryExportRequest message. + * Verifies a GroupAssetsResponse message. * @function verify - * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetBigQueryExportRequest.verify = function verify(message) { + GroupAssetsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.groupByResults != null && message.hasOwnProperty("groupByResults")) { + if (!Array.isArray(message.groupByResults)) + return "groupByResults: array expected"; + for (var i = 0; i < message.groupByResults.length; ++i) { + var error = $root.google.cloud.securitycenter.v1.GroupResult.verify(message.groupByResults[i]); + if (error) + return "groupByResults." + error; + } + } + if (message.readTime != null && message.hasOwnProperty("readTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.readTime); + if (error) + return "readTime." + error; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.totalSize != null && message.hasOwnProperty("totalSize")) + if (!$util.isInteger(message.totalSize)) + return "totalSize: integer expected"; return null; }; /** - * Creates a GetBigQueryExportRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GroupAssetsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.GetBigQueryExportRequest} GetBigQueryExportRequest + * @returns {google.cloud.securitycenter.v1.GroupAssetsResponse} GroupAssetsResponse */ - GetBigQueryExportRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.GetBigQueryExportRequest) + GroupAssetsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.GroupAssetsResponse) return object; - var message = new $root.google.cloud.securitycenter.v1.GetBigQueryExportRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.securitycenter.v1.GroupAssetsResponse(); + if (object.groupByResults) { + if (!Array.isArray(object.groupByResults)) + throw TypeError(".google.cloud.securitycenter.v1.GroupAssetsResponse.groupByResults: array expected"); + message.groupByResults = []; + for (var i = 0; i < object.groupByResults.length; ++i) { + if (typeof object.groupByResults[i] !== "object") + throw TypeError(".google.cloud.securitycenter.v1.GroupAssetsResponse.groupByResults: object expected"); + message.groupByResults[i] = $root.google.cloud.securitycenter.v1.GroupResult.fromObject(object.groupByResults[i]); + } + } + if (object.readTime != null) { + if (typeof object.readTime !== "object") + throw TypeError(".google.cloud.securitycenter.v1.GroupAssetsResponse.readTime: object expected"); + message.readTime = $root.google.protobuf.Timestamp.fromObject(object.readTime); + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.totalSize != null) + message.totalSize = object.totalSize | 0; return message; }; /** - * Creates a plain object from a GetBigQueryExportRequest message. Also converts values to other types if specified. + * Creates a plain object from a GroupAssetsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse * @static - * @param {google.cloud.securitycenter.v1.GetBigQueryExportRequest} message GetBigQueryExportRequest + * @param {google.cloud.securitycenter.v1.GroupAssetsResponse} message GroupAssetsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBigQueryExportRequest.toObject = function toObject(message, options) { + GroupAssetsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.groupByResults = []; + if (options.defaults) { + object.readTime = null; + object.nextPageToken = ""; + object.totalSize = 0; + } + if (message.groupByResults && message.groupByResults.length) { + object.groupByResults = []; + for (var j = 0; j < message.groupByResults.length; ++j) + object.groupByResults[j] = $root.google.cloud.securitycenter.v1.GroupResult.toObject(message.groupByResults[j], options); + } + if (message.readTime != null && message.hasOwnProperty("readTime")) + object.readTime = $root.google.protobuf.Timestamp.toObject(message.readTime, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.totalSize != null && message.hasOwnProperty("totalSize")) + object.totalSize = message.totalSize; return object; }; /** - * Converts this GetBigQueryExportRequest to JSON. + * Converts this GroupAssetsResponse to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse * @instance * @returns {Object.} JSON object */ - GetBigQueryExportRequest.prototype.toJSON = function toJSON() { + GroupAssetsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetBigQueryExportRequest + * Gets the default type url for GroupAssetsResponse * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.GetBigQueryExportRequest + * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetBigQueryExportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GroupAssetsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.GetBigQueryExportRequest"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.GroupAssetsResponse"; }; - return GetBigQueryExportRequest; + return GroupAssetsResponse; })(); - v1.GetMuteConfigRequest = (function() { + v1.GroupFindingsRequest = (function() { /** - * Properties of a GetMuteConfigRequest. + * Properties of a GroupFindingsRequest. * @memberof google.cloud.securitycenter.v1 - * @interface IGetMuteConfigRequest - * @property {string|null} [name] GetMuteConfigRequest name + * @interface IGroupFindingsRequest + * @property {string|null} [parent] GroupFindingsRequest parent + * @property {string|null} [filter] GroupFindingsRequest filter + * @property {string|null} [groupBy] GroupFindingsRequest groupBy + * @property {google.protobuf.ITimestamp|null} [readTime] GroupFindingsRequest readTime + * @property {google.protobuf.IDuration|null} [compareDuration] GroupFindingsRequest compareDuration + * @property {string|null} [pageToken] GroupFindingsRequest pageToken + * @property {number|null} [pageSize] GroupFindingsRequest pageSize */ /** - * Constructs a new GetMuteConfigRequest. + * Constructs a new GroupFindingsRequest. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a GetMuteConfigRequest. - * @implements IGetMuteConfigRequest + * @classdesc Represents a GroupFindingsRequest. + * @implements IGroupFindingsRequest * @constructor - * @param {google.cloud.securitycenter.v1.IGetMuteConfigRequest=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IGroupFindingsRequest=} [properties] Properties to set */ - function GetMuteConfigRequest(properties) { + function GroupFindingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20754,75 +25132,159 @@ } /** - * GetMuteConfigRequest name. - * @member {string} name - * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest + * GroupFindingsRequest parent. + * @member {string} parent + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest * @instance */ - GetMuteConfigRequest.prototype.name = ""; + GroupFindingsRequest.prototype.parent = ""; /** - * Creates a new GetMuteConfigRequest instance using the specified properties. + * GroupFindingsRequest filter. + * @member {string} filter + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * @instance + */ + GroupFindingsRequest.prototype.filter = ""; + + /** + * GroupFindingsRequest groupBy. + * @member {string} groupBy + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * @instance + */ + GroupFindingsRequest.prototype.groupBy = ""; + + /** + * GroupFindingsRequest readTime. + * @member {google.protobuf.ITimestamp|null|undefined} readTime + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * @instance + */ + GroupFindingsRequest.prototype.readTime = null; + + /** + * GroupFindingsRequest compareDuration. + * @member {google.protobuf.IDuration|null|undefined} compareDuration + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * @instance + */ + GroupFindingsRequest.prototype.compareDuration = null; + + /** + * GroupFindingsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * @instance + */ + GroupFindingsRequest.prototype.pageToken = ""; + + /** + * GroupFindingsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * @instance + */ + GroupFindingsRequest.prototype.pageSize = 0; + + /** + * Creates a new GroupFindingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest * @static - * @param {google.cloud.securitycenter.v1.IGetMuteConfigRequest=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.GetMuteConfigRequest} GetMuteConfigRequest instance + * @param {google.cloud.securitycenter.v1.IGroupFindingsRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.GroupFindingsRequest} GroupFindingsRequest instance */ - GetMuteConfigRequest.create = function create(properties) { - return new GetMuteConfigRequest(properties); + GroupFindingsRequest.create = function create(properties) { + return new GroupFindingsRequest(properties); }; /** - * Encodes the specified GetMuteConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetMuteConfigRequest.verify|verify} messages. + * Encodes the specified GroupFindingsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupFindingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest * @static - * @param {google.cloud.securitycenter.v1.IGetMuteConfigRequest} message GetMuteConfigRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGroupFindingsRequest} message GroupFindingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMuteConfigRequest.encode = function encode(message, writer) { + GroupFindingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.groupBy != null && Object.hasOwnProperty.call(message, "groupBy")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.groupBy); + if (message.readTime != null && Object.hasOwnProperty.call(message, "readTime")) + $root.google.protobuf.Timestamp.encode(message.readTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.compareDuration != null && Object.hasOwnProperty.call(message, "compareDuration")) + $root.google.protobuf.Duration.encode(message.compareDuration, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.pageToken); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.pageSize); return writer; }; /** - * Encodes the specified GetMuteConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetMuteConfigRequest.verify|verify} messages. + * Encodes the specified GroupFindingsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupFindingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest * @static - * @param {google.cloud.securitycenter.v1.IGetMuteConfigRequest} message GetMuteConfigRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGroupFindingsRequest} message GroupFindingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMuteConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + GroupFindingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetMuteConfigRequest message from the specified reader or buffer. + * Decodes a GroupFindingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.GetMuteConfigRequest} GetMuteConfigRequest + * @returns {google.cloud.securitycenter.v1.GroupFindingsRequest} GroupFindingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMuteConfigRequest.decode = function decode(reader, length) { + GroupFindingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GetMuteConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GroupFindingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.groupBy = reader.string(); + break; + } + case 4: { + message.readTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.compareDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 7: { + message.pageToken = reader.string(); + break; + } + case 8: { + message.pageSize = reader.int32(); break; } default: @@ -20834,122 +25296,185 @@ }; /** - * Decodes a GetMuteConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a GroupFindingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.GetMuteConfigRequest} GetMuteConfigRequest + * @returns {google.cloud.securitycenter.v1.GroupFindingsRequest} GroupFindingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMuteConfigRequest.decodeDelimited = function decodeDelimited(reader) { + GroupFindingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetMuteConfigRequest message. + * Verifies a GroupFindingsRequest message. * @function verify - * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetMuteConfigRequest.verify = function verify(message) { + GroupFindingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.groupBy != null && message.hasOwnProperty("groupBy")) + if (!$util.isString(message.groupBy)) + return "groupBy: string expected"; + if (message.readTime != null && message.hasOwnProperty("readTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.readTime); + if (error) + return "readTime." + error; + } + if (message.compareDuration != null && message.hasOwnProperty("compareDuration")) { + var error = $root.google.protobuf.Duration.verify(message.compareDuration); + if (error) + return "compareDuration." + error; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; return null; }; /** - * Creates a GetMuteConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GroupFindingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.GetMuteConfigRequest} GetMuteConfigRequest + * @returns {google.cloud.securitycenter.v1.GroupFindingsRequest} GroupFindingsRequest */ - GetMuteConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.GetMuteConfigRequest) + GroupFindingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.GroupFindingsRequest) return object; - var message = new $root.google.cloud.securitycenter.v1.GetMuteConfigRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.securitycenter.v1.GroupFindingsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.groupBy != null) + message.groupBy = String(object.groupBy); + if (object.readTime != null) { + if (typeof object.readTime !== "object") + throw TypeError(".google.cloud.securitycenter.v1.GroupFindingsRequest.readTime: object expected"); + message.readTime = $root.google.protobuf.Timestamp.fromObject(object.readTime); + } + if (object.compareDuration != null) { + if (typeof object.compareDuration !== "object") + throw TypeError(".google.cloud.securitycenter.v1.GroupFindingsRequest.compareDuration: object expected"); + message.compareDuration = $root.google.protobuf.Duration.fromObject(object.compareDuration); + } + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; return message; }; /** - * Creates a plain object from a GetMuteConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a GroupFindingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest * @static - * @param {google.cloud.securitycenter.v1.GetMuteConfigRequest} message GetMuteConfigRequest + * @param {google.cloud.securitycenter.v1.GroupFindingsRequest} message GroupFindingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetMuteConfigRequest.toObject = function toObject(message, options) { + GroupFindingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.groupBy = ""; + object.readTime = null; + object.compareDuration = null; + object.pageToken = ""; + object.pageSize = 0; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.groupBy != null && message.hasOwnProperty("groupBy")) + object.groupBy = message.groupBy; + if (message.readTime != null && message.hasOwnProperty("readTime")) + object.readTime = $root.google.protobuf.Timestamp.toObject(message.readTime, options); + if (message.compareDuration != null && message.hasOwnProperty("compareDuration")) + object.compareDuration = $root.google.protobuf.Duration.toObject(message.compareDuration, options); + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; return object; }; /** - * Converts this GetMuteConfigRequest to JSON. + * Converts this GroupFindingsRequest to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest * @instance * @returns {Object.} JSON object */ - GetMuteConfigRequest.prototype.toJSON = function toJSON() { + GroupFindingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetMuteConfigRequest + * Gets the default type url for GroupFindingsRequest * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.GetMuteConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetMuteConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GroupFindingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.GetMuteConfigRequest"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.GroupFindingsRequest"; }; - return GetMuteConfigRequest; + return GroupFindingsRequest; })(); - v1.GetNotificationConfigRequest = (function() { + v1.GroupFindingsResponse = (function() { /** - * Properties of a GetNotificationConfigRequest. + * Properties of a GroupFindingsResponse. * @memberof google.cloud.securitycenter.v1 - * @interface IGetNotificationConfigRequest - * @property {string|null} [name] GetNotificationConfigRequest name + * @interface IGroupFindingsResponse + * @property {Array.|null} [groupByResults] GroupFindingsResponse groupByResults + * @property {google.protobuf.ITimestamp|null} [readTime] GroupFindingsResponse readTime + * @property {string|null} [nextPageToken] GroupFindingsResponse nextPageToken + * @property {number|null} [totalSize] GroupFindingsResponse totalSize */ /** - * Constructs a new GetNotificationConfigRequest. + * Constructs a new GroupFindingsResponse. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a GetNotificationConfigRequest. - * @implements IGetNotificationConfigRequest + * @classdesc Represents a GroupFindingsResponse. + * @implements IGroupFindingsResponse * @constructor - * @param {google.cloud.securitycenter.v1.IGetNotificationConfigRequest=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IGroupFindingsResponse=} [properties] Properties to set */ - function GetNotificationConfigRequest(properties) { + function GroupFindingsResponse(properties) { + this.groupByResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20957,75 +25482,120 @@ } /** - * GetNotificationConfigRequest name. - * @member {string} name - * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest + * GroupFindingsResponse groupByResults. + * @member {Array.} groupByResults + * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse * @instance */ - GetNotificationConfigRequest.prototype.name = ""; + GroupFindingsResponse.prototype.groupByResults = $util.emptyArray; /** - * Creates a new GetNotificationConfigRequest instance using the specified properties. + * GroupFindingsResponse readTime. + * @member {google.protobuf.ITimestamp|null|undefined} readTime + * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse + * @instance + */ + GroupFindingsResponse.prototype.readTime = null; + + /** + * GroupFindingsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse + * @instance + */ + GroupFindingsResponse.prototype.nextPageToken = ""; + + /** + * GroupFindingsResponse totalSize. + * @member {number} totalSize + * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse + * @instance + */ + GroupFindingsResponse.prototype.totalSize = 0; + + /** + * Creates a new GroupFindingsResponse instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse * @static - * @param {google.cloud.securitycenter.v1.IGetNotificationConfigRequest=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.GetNotificationConfigRequest} GetNotificationConfigRequest instance + * @param {google.cloud.securitycenter.v1.IGroupFindingsResponse=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.GroupFindingsResponse} GroupFindingsResponse instance */ - GetNotificationConfigRequest.create = function create(properties) { - return new GetNotificationConfigRequest(properties); + GroupFindingsResponse.create = function create(properties) { + return new GroupFindingsResponse(properties); }; /** - * Encodes the specified GetNotificationConfigRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetNotificationConfigRequest.verify|verify} messages. + * Encodes the specified GroupFindingsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupFindingsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse * @static - * @param {google.cloud.securitycenter.v1.IGetNotificationConfigRequest} message GetNotificationConfigRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGroupFindingsResponse} message GroupFindingsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNotificationConfigRequest.encode = function encode(message, writer) { + GroupFindingsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.groupByResults != null && message.groupByResults.length) + for (var i = 0; i < message.groupByResults.length; ++i) + $root.google.cloud.securitycenter.v1.GroupResult.encode(message.groupByResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.readTime != null && Object.hasOwnProperty.call(message, "readTime")) + $root.google.protobuf.Timestamp.encode(message.readTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.nextPageToken); + if (message.totalSize != null && Object.hasOwnProperty.call(message, "totalSize")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.totalSize); return writer; }; /** - * Encodes the specified GetNotificationConfigRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetNotificationConfigRequest.verify|verify} messages. + * Encodes the specified GroupFindingsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupFindingsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse * @static - * @param {google.cloud.securitycenter.v1.IGetNotificationConfigRequest} message GetNotificationConfigRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGroupFindingsResponse} message GroupFindingsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNotificationConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + GroupFindingsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetNotificationConfigRequest message from the specified reader or buffer. + * Decodes a GroupFindingsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.GetNotificationConfigRequest} GetNotificationConfigRequest + * @returns {google.cloud.securitycenter.v1.GroupFindingsResponse} GroupFindingsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNotificationConfigRequest.decode = function decode(reader, length) { + GroupFindingsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GetNotificationConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GroupFindingsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.groupByResults && message.groupByResults.length)) + message.groupByResults = []; + message.groupByResults.push($root.google.cloud.securitycenter.v1.GroupResult.decode(reader, reader.uint32())); + break; + } + case 2: { + message.readTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.nextPageToken = reader.string(); + break; + } + case 4: { + message.totalSize = reader.int32(); break; } default: @@ -21037,122 +25607,172 @@ }; /** - * Decodes a GetNotificationConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a GroupFindingsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.GetNotificationConfigRequest} GetNotificationConfigRequest + * @returns {google.cloud.securitycenter.v1.GroupFindingsResponse} GroupFindingsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNotificationConfigRequest.decodeDelimited = function decodeDelimited(reader) { + GroupFindingsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetNotificationConfigRequest message. + * Verifies a GroupFindingsResponse message. * @function verify - * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetNotificationConfigRequest.verify = function verify(message) { + GroupFindingsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.groupByResults != null && message.hasOwnProperty("groupByResults")) { + if (!Array.isArray(message.groupByResults)) + return "groupByResults: array expected"; + for (var i = 0; i < message.groupByResults.length; ++i) { + var error = $root.google.cloud.securitycenter.v1.GroupResult.verify(message.groupByResults[i]); + if (error) + return "groupByResults." + error; + } + } + if (message.readTime != null && message.hasOwnProperty("readTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.readTime); + if (error) + return "readTime." + error; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + if (message.totalSize != null && message.hasOwnProperty("totalSize")) + if (!$util.isInteger(message.totalSize)) + return "totalSize: integer expected"; return null; }; /** - * Creates a GetNotificationConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GroupFindingsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.GetNotificationConfigRequest} GetNotificationConfigRequest + * @returns {google.cloud.securitycenter.v1.GroupFindingsResponse} GroupFindingsResponse */ - GetNotificationConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.GetNotificationConfigRequest) + GroupFindingsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.GroupFindingsResponse) return object; - var message = new $root.google.cloud.securitycenter.v1.GetNotificationConfigRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.securitycenter.v1.GroupFindingsResponse(); + if (object.groupByResults) { + if (!Array.isArray(object.groupByResults)) + throw TypeError(".google.cloud.securitycenter.v1.GroupFindingsResponse.groupByResults: array expected"); + message.groupByResults = []; + for (var i = 0; i < object.groupByResults.length; ++i) { + if (typeof object.groupByResults[i] !== "object") + throw TypeError(".google.cloud.securitycenter.v1.GroupFindingsResponse.groupByResults: object expected"); + message.groupByResults[i] = $root.google.cloud.securitycenter.v1.GroupResult.fromObject(object.groupByResults[i]); + } + } + if (object.readTime != null) { + if (typeof object.readTime !== "object") + throw TypeError(".google.cloud.securitycenter.v1.GroupFindingsResponse.readTime: object expected"); + message.readTime = $root.google.protobuf.Timestamp.fromObject(object.readTime); + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.totalSize != null) + message.totalSize = object.totalSize | 0; return message; }; /** - * Creates a plain object from a GetNotificationConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a GroupFindingsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse * @static - * @param {google.cloud.securitycenter.v1.GetNotificationConfigRequest} message GetNotificationConfigRequest + * @param {google.cloud.securitycenter.v1.GroupFindingsResponse} message GroupFindingsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetNotificationConfigRequest.toObject = function toObject(message, options) { + GroupFindingsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.groupByResults = []; + if (options.defaults) { + object.readTime = null; + object.nextPageToken = ""; + object.totalSize = 0; + } + if (message.groupByResults && message.groupByResults.length) { + object.groupByResults = []; + for (var j = 0; j < message.groupByResults.length; ++j) + object.groupByResults[j] = $root.google.cloud.securitycenter.v1.GroupResult.toObject(message.groupByResults[j], options); + } + if (message.readTime != null && message.hasOwnProperty("readTime")) + object.readTime = $root.google.protobuf.Timestamp.toObject(message.readTime, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + if (message.totalSize != null && message.hasOwnProperty("totalSize")) + object.totalSize = message.totalSize; return object; }; /** - * Converts this GetNotificationConfigRequest to JSON. + * Converts this GroupFindingsResponse to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse * @instance * @returns {Object.} JSON object */ - GetNotificationConfigRequest.prototype.toJSON = function toJSON() { + GroupFindingsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetNotificationConfigRequest + * Gets the default type url for GroupFindingsResponse * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.GetNotificationConfigRequest + * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetNotificationConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GroupFindingsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.GetNotificationConfigRequest"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.GroupFindingsResponse"; }; - return GetNotificationConfigRequest; + return GroupFindingsResponse; })(); - v1.GetOrganizationSettingsRequest = (function() { + v1.GroupResult = (function() { /** - * Properties of a GetOrganizationSettingsRequest. + * Properties of a GroupResult. * @memberof google.cloud.securitycenter.v1 - * @interface IGetOrganizationSettingsRequest - * @property {string|null} [name] GetOrganizationSettingsRequest name + * @interface IGroupResult + * @property {Object.|null} [properties] GroupResult properties + * @property {number|Long|null} [count] GroupResult count */ /** - * Constructs a new GetOrganizationSettingsRequest. + * Constructs a new GroupResult. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a GetOrganizationSettingsRequest. - * @implements IGetOrganizationSettingsRequest + * @classdesc Represents a GroupResult. + * @implements IGroupResult * @constructor - * @param {google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IGroupResult=} [properties] Properties to set */ - function GetOrganizationSettingsRequest(properties) { + function GroupResult(properties) { + this.properties = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21160,75 +25780,111 @@ } /** - * GetOrganizationSettingsRequest name. - * @member {string} name - * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + * GroupResult properties. + * @member {Object.} properties + * @memberof google.cloud.securitycenter.v1.GroupResult * @instance */ - GetOrganizationSettingsRequest.prototype.name = ""; + GroupResult.prototype.properties = $util.emptyObject; /** - * Creates a new GetOrganizationSettingsRequest instance using the specified properties. + * GroupResult count. + * @member {number|Long} count + * @memberof google.cloud.securitycenter.v1.GroupResult + * @instance + */ + GroupResult.prototype.count = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new GroupResult instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + * @memberof google.cloud.securitycenter.v1.GroupResult * @static - * @param {google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.GetOrganizationSettingsRequest} GetOrganizationSettingsRequest instance + * @param {google.cloud.securitycenter.v1.IGroupResult=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.GroupResult} GroupResult instance */ - GetOrganizationSettingsRequest.create = function create(properties) { - return new GetOrganizationSettingsRequest(properties); + GroupResult.create = function create(properties) { + return new GroupResult(properties); }; /** - * Encodes the specified GetOrganizationSettingsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.verify|verify} messages. + * Encodes the specified GroupResult message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupResult.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + * @memberof google.cloud.securitycenter.v1.GroupResult * @static - * @param {google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest} message GetOrganizationSettingsRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGroupResult} message GroupResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetOrganizationSettingsRequest.encode = function encode(message, writer) { + GroupResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.properties != null && Object.hasOwnProperty.call(message, "properties")) + for (var keys = Object.keys(message.properties), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.properties[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.count); return writer; }; /** - * Encodes the specified GetOrganizationSettingsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.verify|verify} messages. + * Encodes the specified GroupResult message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + * @memberof google.cloud.securitycenter.v1.GroupResult * @static - * @param {google.cloud.securitycenter.v1.IGetOrganizationSettingsRequest} message GetOrganizationSettingsRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IGroupResult} message GroupResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetOrganizationSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GroupResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetOrganizationSettingsRequest message from the specified reader or buffer. + * Decodes a GroupResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + * @memberof google.cloud.securitycenter.v1.GroupResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.GetOrganizationSettingsRequest} GetOrganizationSettingsRequest + * @returns {google.cloud.securitycenter.v1.GroupResult} GroupResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetOrganizationSettingsRequest.decode = function decode(reader, length) { + GroupResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GroupResult(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (message.properties === $util.emptyObject) + message.properties = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.properties[key] = value; + break; + } + case 2: { + message.count = reader.int64(); break; } default: @@ -21240,122 +25896,166 @@ }; /** - * Decodes a GetOrganizationSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a GroupResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + * @memberof google.cloud.securitycenter.v1.GroupResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.GetOrganizationSettingsRequest} GetOrganizationSettingsRequest + * @returns {google.cloud.securitycenter.v1.GroupResult} GroupResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetOrganizationSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + GroupResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetOrganizationSettingsRequest message. + * Verifies a GroupResult message. * @function verify - * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + * @memberof google.cloud.securitycenter.v1.GroupResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetOrganizationSettingsRequest.verify = function verify(message) { + GroupResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.properties != null && message.hasOwnProperty("properties")) { + if (!$util.isObject(message.properties)) + return "properties: object expected"; + var key = Object.keys(message.properties); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.properties[key[i]]); + if (error) + return "properties." + error; + } + } + if (message.count != null && message.hasOwnProperty("count")) + if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high))) + return "count: integer|Long expected"; return null; }; /** - * Creates a GetOrganizationSettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GroupResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + * @memberof google.cloud.securitycenter.v1.GroupResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.GetOrganizationSettingsRequest} GetOrganizationSettingsRequest + * @returns {google.cloud.securitycenter.v1.GroupResult} GroupResult */ - GetOrganizationSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) + GroupResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.GroupResult) return object; - var message = new $root.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.securitycenter.v1.GroupResult(); + if (object.properties) { + if (typeof object.properties !== "object") + throw TypeError(".google.cloud.securitycenter.v1.GroupResult.properties: object expected"); + message.properties = {}; + for (var keys = Object.keys(object.properties), i = 0; i < keys.length; ++i) { + if (typeof object.properties[keys[i]] !== "object") + throw TypeError(".google.cloud.securitycenter.v1.GroupResult.properties: object expected"); + message.properties[keys[i]] = $root.google.protobuf.Value.fromObject(object.properties[keys[i]]); + } + } + if (object.count != null) + if ($util.Long) + (message.count = $util.Long.fromValue(object.count)).unsigned = false; + else if (typeof object.count === "string") + message.count = parseInt(object.count, 10); + else if (typeof object.count === "number") + message.count = object.count; + else if (typeof object.count === "object") + message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a GetOrganizationSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GroupResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + * @memberof google.cloud.securitycenter.v1.GroupResult * @static - * @param {google.cloud.securitycenter.v1.GetOrganizationSettingsRequest} message GetOrganizationSettingsRequest + * @param {google.cloud.securitycenter.v1.GroupResult} message GroupResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetOrganizationSettingsRequest.toObject = function toObject(message, options) { + GroupResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.properties = {}; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.count = options.longs === String ? "0" : 0; + var keys2; + if (message.properties && (keys2 = Object.keys(message.properties)).length) { + object.properties = {}; + for (var j = 0; j < keys2.length; ++j) + object.properties[keys2[j]] = $root.google.protobuf.Value.toObject(message.properties[keys2[j]], options); + } + if (message.count != null && message.hasOwnProperty("count")) + if (typeof message.count === "number") + object.count = options.longs === String ? String(message.count) : message.count; + else + object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber() : message.count; return object; }; /** - * Converts this GetOrganizationSettingsRequest to JSON. + * Converts this GroupResult to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + * @memberof google.cloud.securitycenter.v1.GroupResult * @instance * @returns {Object.} JSON object */ - GetOrganizationSettingsRequest.prototype.toJSON = function toJSON() { + GroupResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetOrganizationSettingsRequest + * Gets the default type url for GroupResult * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + * @memberof google.cloud.securitycenter.v1.GroupResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetOrganizationSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GroupResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.GetOrganizationSettingsRequest"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.GroupResult"; }; - return GetOrganizationSettingsRequest; + return GroupResult; })(); - v1.GetSourceRequest = (function() { + v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest = (function() { /** - * Properties of a GetSourceRequest. + * Properties of a ListDescendantSecurityHealthAnalyticsCustomModulesRequest. * @memberof google.cloud.securitycenter.v1 - * @interface IGetSourceRequest - * @property {string|null} [name] GetSourceRequest name + * @interface IListDescendantSecurityHealthAnalyticsCustomModulesRequest + * @property {string|null} [parent] ListDescendantSecurityHealthAnalyticsCustomModulesRequest parent + * @property {number|null} [pageSize] ListDescendantSecurityHealthAnalyticsCustomModulesRequest pageSize + * @property {string|null} [pageToken] ListDescendantSecurityHealthAnalyticsCustomModulesRequest pageToken */ /** - * Constructs a new GetSourceRequest. + * Constructs a new ListDescendantSecurityHealthAnalyticsCustomModulesRequest. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a GetSourceRequest. - * @implements IGetSourceRequest + * @classdesc Represents a ListDescendantSecurityHealthAnalyticsCustomModulesRequest. + * @implements IListDescendantSecurityHealthAnalyticsCustomModulesRequest * @constructor - * @param {google.cloud.securitycenter.v1.IGetSourceRequest=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest=} [properties] Properties to set */ - function GetSourceRequest(properties) { + function ListDescendantSecurityHealthAnalyticsCustomModulesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21363,75 +26063,103 @@ } /** - * GetSourceRequest name. - * @member {string} name - * @memberof google.cloud.securitycenter.v1.GetSourceRequest + * ListDescendantSecurityHealthAnalyticsCustomModulesRequest parent. + * @member {string} parent + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @instance */ - GetSourceRequest.prototype.name = ""; + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.prototype.parent = ""; /** - * Creates a new GetSourceRequest instance using the specified properties. + * ListDescendantSecurityHealthAnalyticsCustomModulesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest + * @instance + */ + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.prototype.pageSize = 0; + + /** + * ListDescendantSecurityHealthAnalyticsCustomModulesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest + * @instance + */ + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListDescendantSecurityHealthAnalyticsCustomModulesRequest instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.GetSourceRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @static - * @param {google.cloud.securitycenter.v1.IGetSourceRequest=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.GetSourceRequest} GetSourceRequest instance + * @param {google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest} ListDescendantSecurityHealthAnalyticsCustomModulesRequest instance */ - GetSourceRequest.create = function create(properties) { - return new GetSourceRequest(properties); + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.create = function create(properties) { + return new ListDescendantSecurityHealthAnalyticsCustomModulesRequest(properties); }; /** - * Encodes the specified GetSourceRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GetSourceRequest.verify|verify} messages. + * Encodes the specified ListDescendantSecurityHealthAnalyticsCustomModulesRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.GetSourceRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @static - * @param {google.cloud.securitycenter.v1.IGetSourceRequest} message GetSourceRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest} message ListDescendantSecurityHealthAnalyticsCustomModulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSourceRequest.encode = function encode(message, writer) { + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified GetSourceRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GetSourceRequest.verify|verify} messages. + * Encodes the specified ListDescendantSecurityHealthAnalyticsCustomModulesRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.GetSourceRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @static - * @param {google.cloud.securitycenter.v1.IGetSourceRequest} message GetSourceRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest} message ListDescendantSecurityHealthAnalyticsCustomModulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSourceRequest message from the specified reader or buffer. + * Decodes a ListDescendantSecurityHealthAnalyticsCustomModulesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.GetSourceRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.GetSourceRequest} GetSourceRequest + * @returns {google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest} ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSourceRequest.decode = function decode(reader, length) { + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GetSourceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -21443,128 +26171,141 @@ }; /** - * Decodes a GetSourceRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDescendantSecurityHealthAnalyticsCustomModulesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.GetSourceRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.GetSourceRequest} GetSourceRequest + * @returns {google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest} ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSourceRequest.decodeDelimited = function decodeDelimited(reader) { + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSourceRequest message. + * Verifies a ListDescendantSecurityHealthAnalyticsCustomModulesRequest message. * @function verify - * @memberof google.cloud.securitycenter.v1.GetSourceRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSourceRequest.verify = function verify(message) { + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a GetSourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDescendantSecurityHealthAnalyticsCustomModulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.GetSourceRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.GetSourceRequest} GetSourceRequest + * @returns {google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest} ListDescendantSecurityHealthAnalyticsCustomModulesRequest */ - GetSourceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.GetSourceRequest) + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) return object; - var message = new $root.google.cloud.securitycenter.v1.GetSourceRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a GetSourceRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListDescendantSecurityHealthAnalyticsCustomModulesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.GetSourceRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @static - * @param {google.cloud.securitycenter.v1.GetSourceRequest} message GetSourceRequest + * @param {google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest} message ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSourceRequest.toObject = function toObject(message, options) { + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this GetSourceRequest to JSON. + * Converts this ListDescendantSecurityHealthAnalyticsCustomModulesRequest to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.GetSourceRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @instance * @returns {Object.} JSON object */ - GetSourceRequest.prototype.toJSON = function toJSON() { + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSourceRequest + * Gets the default type url for ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.GetSourceRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.GetSourceRequest"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest"; }; - return GetSourceRequest; + return ListDescendantSecurityHealthAnalyticsCustomModulesRequest; })(); - v1.GroupAssetsRequest = (function() { + v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse = (function() { /** - * Properties of a GroupAssetsRequest. + * Properties of a ListDescendantSecurityHealthAnalyticsCustomModulesResponse. * @memberof google.cloud.securitycenter.v1 - * @interface IGroupAssetsRequest - * @property {string|null} [parent] GroupAssetsRequest parent - * @property {string|null} [filter] GroupAssetsRequest filter - * @property {string|null} [groupBy] GroupAssetsRequest groupBy - * @property {google.protobuf.IDuration|null} [compareDuration] GroupAssetsRequest compareDuration - * @property {google.protobuf.ITimestamp|null} [readTime] GroupAssetsRequest readTime - * @property {string|null} [pageToken] GroupAssetsRequest pageToken - * @property {number|null} [pageSize] GroupAssetsRequest pageSize + * @interface IListDescendantSecurityHealthAnalyticsCustomModulesResponse + * @property {Array.|null} [securityHealthAnalyticsCustomModules] ListDescendantSecurityHealthAnalyticsCustomModulesResponse securityHealthAnalyticsCustomModules + * @property {string|null} [nextPageToken] ListDescendantSecurityHealthAnalyticsCustomModulesResponse nextPageToken */ /** - * Constructs a new GroupAssetsRequest. + * Constructs a new ListDescendantSecurityHealthAnalyticsCustomModulesResponse. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a GroupAssetsRequest. - * @implements IGroupAssetsRequest + * @classdesc Represents a ListDescendantSecurityHealthAnalyticsCustomModulesResponse. + * @implements IListDescendantSecurityHealthAnalyticsCustomModulesResponse * @constructor - * @param {google.cloud.securitycenter.v1.IGroupAssetsRequest=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesResponse=} [properties] Properties to set */ - function GroupAssetsRequest(properties) { + function ListDescendantSecurityHealthAnalyticsCustomModulesResponse(properties) { + this.securityHealthAnalyticsCustomModules = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21572,159 +26313,92 @@ } /** - * GroupAssetsRequest parent. - * @member {string} parent - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest - * @instance - */ - GroupAssetsRequest.prototype.parent = ""; - - /** - * GroupAssetsRequest filter. - * @member {string} filter - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest - * @instance - */ - GroupAssetsRequest.prototype.filter = ""; - - /** - * GroupAssetsRequest groupBy. - * @member {string} groupBy - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest - * @instance - */ - GroupAssetsRequest.prototype.groupBy = ""; - - /** - * GroupAssetsRequest compareDuration. - * @member {google.protobuf.IDuration|null|undefined} compareDuration - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest - * @instance - */ - GroupAssetsRequest.prototype.compareDuration = null; - - /** - * GroupAssetsRequest readTime. - * @member {google.protobuf.ITimestamp|null|undefined} readTime - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest - * @instance - */ - GroupAssetsRequest.prototype.readTime = null; - - /** - * GroupAssetsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * ListDescendantSecurityHealthAnalyticsCustomModulesResponse securityHealthAnalyticsCustomModules. + * @member {Array.} securityHealthAnalyticsCustomModules + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @instance */ - GroupAssetsRequest.prototype.pageToken = ""; + ListDescendantSecurityHealthAnalyticsCustomModulesResponse.prototype.securityHealthAnalyticsCustomModules = $util.emptyArray; /** - * GroupAssetsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * ListDescendantSecurityHealthAnalyticsCustomModulesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @instance */ - GroupAssetsRequest.prototype.pageSize = 0; + ListDescendantSecurityHealthAnalyticsCustomModulesResponse.prototype.nextPageToken = ""; /** - * Creates a new GroupAssetsRequest instance using the specified properties. + * Creates a new ListDescendantSecurityHealthAnalyticsCustomModulesResponse instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @static - * @param {google.cloud.securitycenter.v1.IGroupAssetsRequest=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.GroupAssetsRequest} GroupAssetsRequest instance + * @param {google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesResponse=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse} ListDescendantSecurityHealthAnalyticsCustomModulesResponse instance */ - GroupAssetsRequest.create = function create(properties) { - return new GroupAssetsRequest(properties); + ListDescendantSecurityHealthAnalyticsCustomModulesResponse.create = function create(properties) { + return new ListDescendantSecurityHealthAnalyticsCustomModulesResponse(properties); }; /** - * Encodes the specified GroupAssetsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupAssetsRequest.verify|verify} messages. + * Encodes the specified ListDescendantSecurityHealthAnalyticsCustomModulesResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @static - * @param {google.cloud.securitycenter.v1.IGroupAssetsRequest} message GroupAssetsRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesResponse} message ListDescendantSecurityHealthAnalyticsCustomModulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroupAssetsRequest.encode = function encode(message, writer) { + ListDescendantSecurityHealthAnalyticsCustomModulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.groupBy != null && Object.hasOwnProperty.call(message, "groupBy")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.groupBy); - if (message.compareDuration != null && Object.hasOwnProperty.call(message, "compareDuration")) - $root.google.protobuf.Duration.encode(message.compareDuration, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.readTime != null && Object.hasOwnProperty.call(message, "readTime")) - $root.google.protobuf.Timestamp.encode(message.readTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.pageToken); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.pageSize); + if (message.securityHealthAnalyticsCustomModules != null && message.securityHealthAnalyticsCustomModules.length) + for (var i = 0; i < message.securityHealthAnalyticsCustomModules.length; ++i) + $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.encode(message.securityHealthAnalyticsCustomModules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified GroupAssetsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupAssetsRequest.verify|verify} messages. + * Encodes the specified ListDescendantSecurityHealthAnalyticsCustomModulesResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @static - * @param {google.cloud.securitycenter.v1.IGroupAssetsRequest} message GroupAssetsRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesResponse} message ListDescendantSecurityHealthAnalyticsCustomModulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroupAssetsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDescendantSecurityHealthAnalyticsCustomModulesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GroupAssetsRequest message from the specified reader or buffer. + * Decodes a ListDescendantSecurityHealthAnalyticsCustomModulesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.GroupAssetsRequest} GroupAssetsRequest + * @returns {google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse} ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroupAssetsRequest.decode = function decode(reader, length) { + ListDescendantSecurityHealthAnalyticsCustomModulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GroupAssetsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.securityHealthAnalyticsCustomModules && message.securityHealthAnalyticsCustomModules.length)) + message.securityHealthAnalyticsCustomModules = []; + message.securityHealthAnalyticsCustomModules.push($root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.decode(reader, reader.uint32())); break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.groupBy = reader.string(); - break; - } - case 4: { - message.compareDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 5: { - message.readTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 7: { - message.pageToken = reader.string(); - break; - } - case 8: { - message.pageSize = reader.int32(); + message.nextPageToken = reader.string(); break; } default: @@ -21736,185 +26410,150 @@ }; /** - * Decodes a GroupAssetsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDescendantSecurityHealthAnalyticsCustomModulesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.GroupAssetsRequest} GroupAssetsRequest + * @returns {google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse} ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroupAssetsRequest.decodeDelimited = function decodeDelimited(reader) { + ListDescendantSecurityHealthAnalyticsCustomModulesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GroupAssetsRequest message. + * Verifies a ListDescendantSecurityHealthAnalyticsCustomModulesResponse message. * @function verify - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GroupAssetsRequest.verify = function verify(message) { + ListDescendantSecurityHealthAnalyticsCustomModulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.groupBy != null && message.hasOwnProperty("groupBy")) - if (!$util.isString(message.groupBy)) - return "groupBy: string expected"; - if (message.compareDuration != null && message.hasOwnProperty("compareDuration")) { - var error = $root.google.protobuf.Duration.verify(message.compareDuration); - if (error) - return "compareDuration." + error; - } - if (message.readTime != null && message.hasOwnProperty("readTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.readTime); - if (error) - return "readTime." + error; + if (message.securityHealthAnalyticsCustomModules != null && message.hasOwnProperty("securityHealthAnalyticsCustomModules")) { + if (!Array.isArray(message.securityHealthAnalyticsCustomModules)) + return "securityHealthAnalyticsCustomModules: array expected"; + for (var i = 0; i < message.securityHealthAnalyticsCustomModules.length; ++i) { + var error = $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.verify(message.securityHealthAnalyticsCustomModules[i]); + if (error) + return "securityHealthAnalyticsCustomModules." + error; + } } - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GroupAssetsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDescendantSecurityHealthAnalyticsCustomModulesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.GroupAssetsRequest} GroupAssetsRequest + * @returns {google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse} ListDescendantSecurityHealthAnalyticsCustomModulesResponse */ - GroupAssetsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.GroupAssetsRequest) + ListDescendantSecurityHealthAnalyticsCustomModulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) return object; - var message = new $root.google.cloud.securitycenter.v1.GroupAssetsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.groupBy != null) - message.groupBy = String(object.groupBy); - if (object.compareDuration != null) { - if (typeof object.compareDuration !== "object") - throw TypeError(".google.cloud.securitycenter.v1.GroupAssetsRequest.compareDuration: object expected"); - message.compareDuration = $root.google.protobuf.Duration.fromObject(object.compareDuration); - } - if (object.readTime != null) { - if (typeof object.readTime !== "object") - throw TypeError(".google.cloud.securitycenter.v1.GroupAssetsRequest.readTime: object expected"); - message.readTime = $root.google.protobuf.Timestamp.fromObject(object.readTime); + var message = new $root.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse(); + if (object.securityHealthAnalyticsCustomModules) { + if (!Array.isArray(object.securityHealthAnalyticsCustomModules)) + throw TypeError(".google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.securityHealthAnalyticsCustomModules: array expected"); + message.securityHealthAnalyticsCustomModules = []; + for (var i = 0; i < object.securityHealthAnalyticsCustomModules.length; ++i) { + if (typeof object.securityHealthAnalyticsCustomModules[i] !== "object") + throw TypeError(".google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.securityHealthAnalyticsCustomModules: object expected"); + message.securityHealthAnalyticsCustomModules[i] = $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.fromObject(object.securityHealthAnalyticsCustomModules[i]); + } } - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GroupAssetsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListDescendantSecurityHealthAnalyticsCustomModulesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @static - * @param {google.cloud.securitycenter.v1.GroupAssetsRequest} message GroupAssetsRequest + * @param {google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse} message ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GroupAssetsRequest.toObject = function toObject(message, options) { + ListDescendantSecurityHealthAnalyticsCustomModulesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.groupBy = ""; - object.compareDuration = null; - object.readTime = null; - object.pageToken = ""; - object.pageSize = 0; + if (options.arrays || options.defaults) + object.securityHealthAnalyticsCustomModules = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.securityHealthAnalyticsCustomModules && message.securityHealthAnalyticsCustomModules.length) { + object.securityHealthAnalyticsCustomModules = []; + for (var j = 0; j < message.securityHealthAnalyticsCustomModules.length; ++j) + object.securityHealthAnalyticsCustomModules[j] = $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.toObject(message.securityHealthAnalyticsCustomModules[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.groupBy != null && message.hasOwnProperty("groupBy")) - object.groupBy = message.groupBy; - if (message.compareDuration != null && message.hasOwnProperty("compareDuration")) - object.compareDuration = $root.google.protobuf.Duration.toObject(message.compareDuration, options); - if (message.readTime != null && message.hasOwnProperty("readTime")) - object.readTime = $root.google.protobuf.Timestamp.toObject(message.readTime, options); - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GroupAssetsRequest to JSON. + * Converts this ListDescendantSecurityHealthAnalyticsCustomModulesResponse to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @instance * @returns {Object.} JSON object */ - GroupAssetsRequest.prototype.toJSON = function toJSON() { + ListDescendantSecurityHealthAnalyticsCustomModulesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GroupAssetsRequest + * Gets the default type url for ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.GroupAssetsRequest + * @memberof google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GroupAssetsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListDescendantSecurityHealthAnalyticsCustomModulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.GroupAssetsRequest"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse"; }; - return GroupAssetsRequest; + return ListDescendantSecurityHealthAnalyticsCustomModulesResponse; })(); - v1.GroupAssetsResponse = (function() { + v1.ListMuteConfigsRequest = (function() { /** - * Properties of a GroupAssetsResponse. + * Properties of a ListMuteConfigsRequest. * @memberof google.cloud.securitycenter.v1 - * @interface IGroupAssetsResponse - * @property {Array.|null} [groupByResults] GroupAssetsResponse groupByResults - * @property {google.protobuf.ITimestamp|null} [readTime] GroupAssetsResponse readTime - * @property {string|null} [nextPageToken] GroupAssetsResponse nextPageToken - * @property {number|null} [totalSize] GroupAssetsResponse totalSize + * @interface IListMuteConfigsRequest + * @property {string|null} [parent] ListMuteConfigsRequest parent + * @property {number|null} [pageSize] ListMuteConfigsRequest pageSize + * @property {string|null} [pageToken] ListMuteConfigsRequest pageToken */ /** - * Constructs a new GroupAssetsResponse. + * Constructs a new ListMuteConfigsRequest. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a GroupAssetsResponse. - * @implements IGroupAssetsResponse + * @classdesc Represents a ListMuteConfigsRequest. + * @implements IListMuteConfigsRequest * @constructor - * @param {google.cloud.securitycenter.v1.IGroupAssetsResponse=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IListMuteConfigsRequest=} [properties] Properties to set */ - function GroupAssetsResponse(properties) { - this.groupByResults = []; + function ListMuteConfigsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21922,120 +26561,103 @@ } /** - * GroupAssetsResponse groupByResults. - * @member {Array.} groupByResults - * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse - * @instance - */ - GroupAssetsResponse.prototype.groupByResults = $util.emptyArray; - - /** - * GroupAssetsResponse readTime. - * @member {google.protobuf.ITimestamp|null|undefined} readTime - * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse + * ListMuteConfigsRequest parent. + * @member {string} parent + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest * @instance */ - GroupAssetsResponse.prototype.readTime = null; + ListMuteConfigsRequest.prototype.parent = ""; /** - * GroupAssetsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse + * ListMuteConfigsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest * @instance */ - GroupAssetsResponse.prototype.nextPageToken = ""; + ListMuteConfigsRequest.prototype.pageSize = 0; /** - * GroupAssetsResponse totalSize. - * @member {number} totalSize - * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse + * ListMuteConfigsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest * @instance */ - GroupAssetsResponse.prototype.totalSize = 0; + ListMuteConfigsRequest.prototype.pageToken = ""; /** - * Creates a new GroupAssetsResponse instance using the specified properties. + * Creates a new ListMuteConfigsRequest instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest * @static - * @param {google.cloud.securitycenter.v1.IGroupAssetsResponse=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.GroupAssetsResponse} GroupAssetsResponse instance + * @param {google.cloud.securitycenter.v1.IListMuteConfigsRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.ListMuteConfigsRequest} ListMuteConfigsRequest instance */ - GroupAssetsResponse.create = function create(properties) { - return new GroupAssetsResponse(properties); + ListMuteConfigsRequest.create = function create(properties) { + return new ListMuteConfigsRequest(properties); }; /** - * Encodes the specified GroupAssetsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupAssetsResponse.verify|verify} messages. + * Encodes the specified ListMuteConfigsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.ListMuteConfigsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest * @static - * @param {google.cloud.securitycenter.v1.IGroupAssetsResponse} message GroupAssetsResponse message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListMuteConfigsRequest} message ListMuteConfigsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroupAssetsResponse.encode = function encode(message, writer) { + ListMuteConfigsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.groupByResults != null && message.groupByResults.length) - for (var i = 0; i < message.groupByResults.length; ++i) - $root.google.cloud.securitycenter.v1.GroupResult.encode(message.groupByResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.readTime != null && Object.hasOwnProperty.call(message, "readTime")) - $root.google.protobuf.Timestamp.encode(message.readTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.nextPageToken); - if (message.totalSize != null && Object.hasOwnProperty.call(message, "totalSize")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.totalSize); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified GroupAssetsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupAssetsResponse.verify|verify} messages. + * Encodes the specified ListMuteConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListMuteConfigsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest * @static - * @param {google.cloud.securitycenter.v1.IGroupAssetsResponse} message GroupAssetsResponse message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListMuteConfigsRequest} message ListMuteConfigsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroupAssetsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListMuteConfigsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GroupAssetsResponse message from the specified reader or buffer. + * Decodes a ListMuteConfigsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.GroupAssetsResponse} GroupAssetsResponse + * @returns {google.cloud.securitycenter.v1.ListMuteConfigsRequest} ListMuteConfigsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroupAssetsResponse.decode = function decode(reader, length) { + ListMuteConfigsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GroupAssetsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ListMuteConfigsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.groupByResults && message.groupByResults.length)) - message.groupByResults = []; - message.groupByResults.push($root.google.cloud.securitycenter.v1.GroupResult.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.readTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; } case 3: { - message.nextPageToken = reader.string(); - break; - } - case 4: { - message.totalSize = reader.int32(); + message.pageToken = reader.string(); break; } default: @@ -22047,176 +26669,141 @@ }; /** - * Decodes a GroupAssetsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListMuteConfigsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.GroupAssetsResponse} GroupAssetsResponse + * @returns {google.cloud.securitycenter.v1.ListMuteConfigsRequest} ListMuteConfigsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroupAssetsResponse.decodeDelimited = function decodeDelimited(reader) { + ListMuteConfigsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GroupAssetsResponse message. + * Verifies a ListMuteConfigsRequest message. * @function verify - * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GroupAssetsResponse.verify = function verify(message) { + ListMuteConfigsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.groupByResults != null && message.hasOwnProperty("groupByResults")) { - if (!Array.isArray(message.groupByResults)) - return "groupByResults: array expected"; - for (var i = 0; i < message.groupByResults.length; ++i) { - var error = $root.google.cloud.securitycenter.v1.GroupResult.verify(message.groupByResults[i]); - if (error) - return "groupByResults." + error; - } - } - if (message.readTime != null && message.hasOwnProperty("readTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.readTime); - if (error) - return "readTime." + error; - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.totalSize != null && message.hasOwnProperty("totalSize")) - if (!$util.isInteger(message.totalSize)) - return "totalSize: integer expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a GroupAssetsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListMuteConfigsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.GroupAssetsResponse} GroupAssetsResponse + * @returns {google.cloud.securitycenter.v1.ListMuteConfigsRequest} ListMuteConfigsRequest */ - GroupAssetsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.GroupAssetsResponse) + ListMuteConfigsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.ListMuteConfigsRequest) return object; - var message = new $root.google.cloud.securitycenter.v1.GroupAssetsResponse(); - if (object.groupByResults) { - if (!Array.isArray(object.groupByResults)) - throw TypeError(".google.cloud.securitycenter.v1.GroupAssetsResponse.groupByResults: array expected"); - message.groupByResults = []; - for (var i = 0; i < object.groupByResults.length; ++i) { - if (typeof object.groupByResults[i] !== "object") - throw TypeError(".google.cloud.securitycenter.v1.GroupAssetsResponse.groupByResults: object expected"); - message.groupByResults[i] = $root.google.cloud.securitycenter.v1.GroupResult.fromObject(object.groupByResults[i]); - } - } - if (object.readTime != null) { - if (typeof object.readTime !== "object") - throw TypeError(".google.cloud.securitycenter.v1.GroupAssetsResponse.readTime: object expected"); - message.readTime = $root.google.protobuf.Timestamp.fromObject(object.readTime); - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.totalSize != null) - message.totalSize = object.totalSize | 0; + var message = new $root.google.cloud.securitycenter.v1.ListMuteConfigsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a GroupAssetsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListMuteConfigsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest * @static - * @param {google.cloud.securitycenter.v1.GroupAssetsResponse} message GroupAssetsResponse + * @param {google.cloud.securitycenter.v1.ListMuteConfigsRequest} message ListMuteConfigsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GroupAssetsResponse.toObject = function toObject(message, options) { + ListMuteConfigsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.groupByResults = []; if (options.defaults) { - object.readTime = null; - object.nextPageToken = ""; - object.totalSize = 0; - } - if (message.groupByResults && message.groupByResults.length) { - object.groupByResults = []; - for (var j = 0; j < message.groupByResults.length; ++j) - object.groupByResults[j] = $root.google.cloud.securitycenter.v1.GroupResult.toObject(message.groupByResults[j], options); + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.readTime != null && message.hasOwnProperty("readTime")) - object.readTime = $root.google.protobuf.Timestamp.toObject(message.readTime, options); - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.totalSize != null && message.hasOwnProperty("totalSize")) - object.totalSize = message.totalSize; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this GroupAssetsResponse to JSON. + * Converts this ListMuteConfigsRequest to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest * @instance * @returns {Object.} JSON object */ - GroupAssetsResponse.prototype.toJSON = function toJSON() { + ListMuteConfigsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GroupAssetsResponse + * Gets the default type url for ListMuteConfigsRequest * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.GroupAssetsResponse + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GroupAssetsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListMuteConfigsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.GroupAssetsResponse"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.ListMuteConfigsRequest"; }; - return GroupAssetsResponse; + return ListMuteConfigsRequest; })(); - v1.GroupFindingsRequest = (function() { + v1.ListMuteConfigsResponse = (function() { /** - * Properties of a GroupFindingsRequest. + * Properties of a ListMuteConfigsResponse. * @memberof google.cloud.securitycenter.v1 - * @interface IGroupFindingsRequest - * @property {string|null} [parent] GroupFindingsRequest parent - * @property {string|null} [filter] GroupFindingsRequest filter - * @property {string|null} [groupBy] GroupFindingsRequest groupBy - * @property {google.protobuf.ITimestamp|null} [readTime] GroupFindingsRequest readTime - * @property {google.protobuf.IDuration|null} [compareDuration] GroupFindingsRequest compareDuration - * @property {string|null} [pageToken] GroupFindingsRequest pageToken - * @property {number|null} [pageSize] GroupFindingsRequest pageSize + * @interface IListMuteConfigsResponse + * @property {Array.|null} [muteConfigs] ListMuteConfigsResponse muteConfigs + * @property {string|null} [nextPageToken] ListMuteConfigsResponse nextPageToken */ /** - * Constructs a new GroupFindingsRequest. + * Constructs a new ListMuteConfigsResponse. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a GroupFindingsRequest. - * @implements IGroupFindingsRequest + * @classdesc Represents a ListMuteConfigsResponse. + * @implements IListMuteConfigsResponse * @constructor - * @param {google.cloud.securitycenter.v1.IGroupFindingsRequest=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IListMuteConfigsResponse=} [properties] Properties to set */ - function GroupFindingsRequest(properties) { + function ListMuteConfigsResponse(properties) { + this.muteConfigs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22224,159 +26811,92 @@ } /** - * GroupFindingsRequest parent. - * @member {string} parent - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest - * @instance - */ - GroupFindingsRequest.prototype.parent = ""; - - /** - * GroupFindingsRequest filter. - * @member {string} filter - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest - * @instance - */ - GroupFindingsRequest.prototype.filter = ""; - - /** - * GroupFindingsRequest groupBy. - * @member {string} groupBy - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest - * @instance - */ - GroupFindingsRequest.prototype.groupBy = ""; - - /** - * GroupFindingsRequest readTime. - * @member {google.protobuf.ITimestamp|null|undefined} readTime - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest - * @instance - */ - GroupFindingsRequest.prototype.readTime = null; - - /** - * GroupFindingsRequest compareDuration. - * @member {google.protobuf.IDuration|null|undefined} compareDuration - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest - * @instance - */ - GroupFindingsRequest.prototype.compareDuration = null; - - /** - * GroupFindingsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * ListMuteConfigsResponse muteConfigs. + * @member {Array.} muteConfigs + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse * @instance */ - GroupFindingsRequest.prototype.pageToken = ""; + ListMuteConfigsResponse.prototype.muteConfigs = $util.emptyArray; /** - * GroupFindingsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * ListMuteConfigsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse * @instance */ - GroupFindingsRequest.prototype.pageSize = 0; + ListMuteConfigsResponse.prototype.nextPageToken = ""; /** - * Creates a new GroupFindingsRequest instance using the specified properties. + * Creates a new ListMuteConfigsResponse instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse * @static - * @param {google.cloud.securitycenter.v1.IGroupFindingsRequest=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.GroupFindingsRequest} GroupFindingsRequest instance + * @param {google.cloud.securitycenter.v1.IListMuteConfigsResponse=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.ListMuteConfigsResponse} ListMuteConfigsResponse instance */ - GroupFindingsRequest.create = function create(properties) { - return new GroupFindingsRequest(properties); + ListMuteConfigsResponse.create = function create(properties) { + return new ListMuteConfigsResponse(properties); }; /** - * Encodes the specified GroupFindingsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupFindingsRequest.verify|verify} messages. + * Encodes the specified ListMuteConfigsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.ListMuteConfigsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse * @static - * @param {google.cloud.securitycenter.v1.IGroupFindingsRequest} message GroupFindingsRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListMuteConfigsResponse} message ListMuteConfigsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroupFindingsRequest.encode = function encode(message, writer) { + ListMuteConfigsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.groupBy != null && Object.hasOwnProperty.call(message, "groupBy")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.groupBy); - if (message.readTime != null && Object.hasOwnProperty.call(message, "readTime")) - $root.google.protobuf.Timestamp.encode(message.readTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.compareDuration != null && Object.hasOwnProperty.call(message, "compareDuration")) - $root.google.protobuf.Duration.encode(message.compareDuration, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.pageToken); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.pageSize); + if (message.muteConfigs != null && message.muteConfigs.length) + for (var i = 0; i < message.muteConfigs.length; ++i) + $root.google.cloud.securitycenter.v1.MuteConfig.encode(message.muteConfigs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified GroupFindingsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupFindingsRequest.verify|verify} messages. + * Encodes the specified ListMuteConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListMuteConfigsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse * @static - * @param {google.cloud.securitycenter.v1.IGroupFindingsRequest} message GroupFindingsRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListMuteConfigsResponse} message ListMuteConfigsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroupFindingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMuteConfigsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GroupFindingsRequest message from the specified reader or buffer. + * Decodes a ListMuteConfigsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.GroupFindingsRequest} GroupFindingsRequest + * @returns {google.cloud.securitycenter.v1.ListMuteConfigsResponse} ListMuteConfigsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroupFindingsRequest.decode = function decode(reader, length) { + ListMuteConfigsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GroupFindingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ListMuteConfigsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.muteConfigs && message.muteConfigs.length)) + message.muteConfigs = []; + message.muteConfigs.push($root.google.cloud.securitycenter.v1.MuteConfig.decode(reader, reader.uint32())); break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.groupBy = reader.string(); - break; - } - case 4: { - message.readTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.compareDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 7: { - message.pageToken = reader.string(); - break; - } - case 8: { - message.pageSize = reader.int32(); + message.nextPageToken = reader.string(); break; } default: @@ -22388,185 +26908,150 @@ }; /** - * Decodes a GroupFindingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMuteConfigsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.GroupFindingsRequest} GroupFindingsRequest + * @returns {google.cloud.securitycenter.v1.ListMuteConfigsResponse} ListMuteConfigsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroupFindingsRequest.decodeDelimited = function decodeDelimited(reader) { + ListMuteConfigsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GroupFindingsRequest message. + * Verifies a ListMuteConfigsResponse message. * @function verify - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GroupFindingsRequest.verify = function verify(message) { + ListMuteConfigsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.groupBy != null && message.hasOwnProperty("groupBy")) - if (!$util.isString(message.groupBy)) - return "groupBy: string expected"; - if (message.readTime != null && message.hasOwnProperty("readTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.readTime); - if (error) - return "readTime." + error; - } - if (message.compareDuration != null && message.hasOwnProperty("compareDuration")) { - var error = $root.google.protobuf.Duration.verify(message.compareDuration); - if (error) - return "compareDuration." + error; + if (message.muteConfigs != null && message.hasOwnProperty("muteConfigs")) { + if (!Array.isArray(message.muteConfigs)) + return "muteConfigs: array expected"; + for (var i = 0; i < message.muteConfigs.length; ++i) { + var error = $root.google.cloud.securitycenter.v1.MuteConfig.verify(message.muteConfigs[i]); + if (error) + return "muteConfigs." + error; + } } - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GroupFindingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMuteConfigsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.GroupFindingsRequest} GroupFindingsRequest + * @returns {google.cloud.securitycenter.v1.ListMuteConfigsResponse} ListMuteConfigsResponse */ - GroupFindingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.GroupFindingsRequest) + ListMuteConfigsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.ListMuteConfigsResponse) return object; - var message = new $root.google.cloud.securitycenter.v1.GroupFindingsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.groupBy != null) - message.groupBy = String(object.groupBy); - if (object.readTime != null) { - if (typeof object.readTime !== "object") - throw TypeError(".google.cloud.securitycenter.v1.GroupFindingsRequest.readTime: object expected"); - message.readTime = $root.google.protobuf.Timestamp.fromObject(object.readTime); - } - if (object.compareDuration != null) { - if (typeof object.compareDuration !== "object") - throw TypeError(".google.cloud.securitycenter.v1.GroupFindingsRequest.compareDuration: object expected"); - message.compareDuration = $root.google.protobuf.Duration.fromObject(object.compareDuration); + var message = new $root.google.cloud.securitycenter.v1.ListMuteConfigsResponse(); + if (object.muteConfigs) { + if (!Array.isArray(object.muteConfigs)) + throw TypeError(".google.cloud.securitycenter.v1.ListMuteConfigsResponse.muteConfigs: array expected"); + message.muteConfigs = []; + for (var i = 0; i < object.muteConfigs.length; ++i) { + if (typeof object.muteConfigs[i] !== "object") + throw TypeError(".google.cloud.securitycenter.v1.ListMuteConfigsResponse.muteConfigs: object expected"); + message.muteConfigs[i] = $root.google.cloud.securitycenter.v1.MuteConfig.fromObject(object.muteConfigs[i]); + } } - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GroupFindingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMuteConfigsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse * @static - * @param {google.cloud.securitycenter.v1.GroupFindingsRequest} message GroupFindingsRequest + * @param {google.cloud.securitycenter.v1.ListMuteConfigsResponse} message ListMuteConfigsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GroupFindingsRequest.toObject = function toObject(message, options) { + ListMuteConfigsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.groupBy = ""; - object.readTime = null; - object.compareDuration = null; - object.pageToken = ""; - object.pageSize = 0; + if (options.arrays || options.defaults) + object.muteConfigs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.muteConfigs && message.muteConfigs.length) { + object.muteConfigs = []; + for (var j = 0; j < message.muteConfigs.length; ++j) + object.muteConfigs[j] = $root.google.cloud.securitycenter.v1.MuteConfig.toObject(message.muteConfigs[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.groupBy != null && message.hasOwnProperty("groupBy")) - object.groupBy = message.groupBy; - if (message.readTime != null && message.hasOwnProperty("readTime")) - object.readTime = $root.google.protobuf.Timestamp.toObject(message.readTime, options); - if (message.compareDuration != null && message.hasOwnProperty("compareDuration")) - object.compareDuration = $root.google.protobuf.Duration.toObject(message.compareDuration, options); - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GroupFindingsRequest to JSON. + * Converts this ListMuteConfigsResponse to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse * @instance * @returns {Object.} JSON object */ - GroupFindingsRequest.prototype.toJSON = function toJSON() { + ListMuteConfigsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GroupFindingsRequest + * Gets the default type url for ListMuteConfigsResponse * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.GroupFindingsRequest + * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GroupFindingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListMuteConfigsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.GroupFindingsRequest"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.ListMuteConfigsResponse"; }; - return GroupFindingsRequest; + return ListMuteConfigsResponse; })(); - v1.GroupFindingsResponse = (function() { + v1.ListNotificationConfigsRequest = (function() { /** - * Properties of a GroupFindingsResponse. + * Properties of a ListNotificationConfigsRequest. * @memberof google.cloud.securitycenter.v1 - * @interface IGroupFindingsResponse - * @property {Array.|null} [groupByResults] GroupFindingsResponse groupByResults - * @property {google.protobuf.ITimestamp|null} [readTime] GroupFindingsResponse readTime - * @property {string|null} [nextPageToken] GroupFindingsResponse nextPageToken - * @property {number|null} [totalSize] GroupFindingsResponse totalSize + * @interface IListNotificationConfigsRequest + * @property {string|null} [parent] ListNotificationConfigsRequest parent + * @property {string|null} [pageToken] ListNotificationConfigsRequest pageToken + * @property {number|null} [pageSize] ListNotificationConfigsRequest pageSize */ /** - * Constructs a new GroupFindingsResponse. + * Constructs a new ListNotificationConfigsRequest. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a GroupFindingsResponse. - * @implements IGroupFindingsResponse + * @classdesc Represents a ListNotificationConfigsRequest. + * @implements IListNotificationConfigsRequest * @constructor - * @param {google.cloud.securitycenter.v1.IGroupFindingsResponse=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IListNotificationConfigsRequest=} [properties] Properties to set */ - function GroupFindingsResponse(properties) { - this.groupByResults = []; + function ListNotificationConfigsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22574,120 +27059,103 @@ } /** - * GroupFindingsResponse groupByResults. - * @member {Array.} groupByResults - * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse - * @instance - */ - GroupFindingsResponse.prototype.groupByResults = $util.emptyArray; - - /** - * GroupFindingsResponse readTime. - * @member {google.protobuf.ITimestamp|null|undefined} readTime - * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse + * ListNotificationConfigsRequest parent. + * @member {string} parent + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest * @instance */ - GroupFindingsResponse.prototype.readTime = null; + ListNotificationConfigsRequest.prototype.parent = ""; /** - * GroupFindingsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse + * ListNotificationConfigsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest * @instance */ - GroupFindingsResponse.prototype.nextPageToken = ""; + ListNotificationConfigsRequest.prototype.pageToken = ""; /** - * GroupFindingsResponse totalSize. - * @member {number} totalSize - * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse + * ListNotificationConfigsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest * @instance */ - GroupFindingsResponse.prototype.totalSize = 0; + ListNotificationConfigsRequest.prototype.pageSize = 0; /** - * Creates a new GroupFindingsResponse instance using the specified properties. + * Creates a new ListNotificationConfigsRequest instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest * @static - * @param {google.cloud.securitycenter.v1.IGroupFindingsResponse=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.GroupFindingsResponse} GroupFindingsResponse instance + * @param {google.cloud.securitycenter.v1.IListNotificationConfigsRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.ListNotificationConfigsRequest} ListNotificationConfigsRequest instance */ - GroupFindingsResponse.create = function create(properties) { - return new GroupFindingsResponse(properties); + ListNotificationConfigsRequest.create = function create(properties) { + return new ListNotificationConfigsRequest(properties); }; /** - * Encodes the specified GroupFindingsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupFindingsResponse.verify|verify} messages. + * Encodes the specified ListNotificationConfigsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.ListNotificationConfigsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest * @static - * @param {google.cloud.securitycenter.v1.IGroupFindingsResponse} message GroupFindingsResponse message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListNotificationConfigsRequest} message ListNotificationConfigsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroupFindingsResponse.encode = function encode(message, writer) { + ListNotificationConfigsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.groupByResults != null && message.groupByResults.length) - for (var i = 0; i < message.groupByResults.length; ++i) - $root.google.cloud.securitycenter.v1.GroupResult.encode(message.groupByResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.readTime != null && Object.hasOwnProperty.call(message, "readTime")) - $root.google.protobuf.Timestamp.encode(message.readTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.nextPageToken); - if (message.totalSize != null && Object.hasOwnProperty.call(message, "totalSize")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.totalSize); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pageToken); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); return writer; }; /** - * Encodes the specified GroupFindingsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupFindingsResponse.verify|verify} messages. + * Encodes the specified ListNotificationConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListNotificationConfigsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest * @static - * @param {google.cloud.securitycenter.v1.IGroupFindingsResponse} message GroupFindingsResponse message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListNotificationConfigsRequest} message ListNotificationConfigsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroupFindingsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListNotificationConfigsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GroupFindingsResponse message from the specified reader or buffer. + * Decodes a ListNotificationConfigsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.GroupFindingsResponse} GroupFindingsResponse + * @returns {google.cloud.securitycenter.v1.ListNotificationConfigsRequest} ListNotificationConfigsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroupFindingsResponse.decode = function decode(reader, length) { + ListNotificationConfigsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GroupFindingsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ListNotificationConfigsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.groupByResults && message.groupByResults.length)) - message.groupByResults = []; - message.groupByResults.push($root.google.cloud.securitycenter.v1.GroupResult.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.readTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.pageToken = reader.string(); break; } case 3: { - message.nextPageToken = reader.string(); - break; - } - case 4: { - message.totalSize = reader.int32(); + message.pageSize = reader.int32(); break; } default: @@ -22699,172 +27167,141 @@ }; /** - * Decodes a GroupFindingsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListNotificationConfigsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.GroupFindingsResponse} GroupFindingsResponse + * @returns {google.cloud.securitycenter.v1.ListNotificationConfigsRequest} ListNotificationConfigsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroupFindingsResponse.decodeDelimited = function decodeDelimited(reader) { + ListNotificationConfigsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GroupFindingsResponse message. + * Verifies a ListNotificationConfigsRequest message. * @function verify - * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GroupFindingsResponse.verify = function verify(message) { + ListNotificationConfigsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.groupByResults != null && message.hasOwnProperty("groupByResults")) { - if (!Array.isArray(message.groupByResults)) - return "groupByResults: array expected"; - for (var i = 0; i < message.groupByResults.length; ++i) { - var error = $root.google.cloud.securitycenter.v1.GroupResult.verify(message.groupByResults[i]); - if (error) - return "groupByResults." + error; - } - } - if (message.readTime != null && message.hasOwnProperty("readTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.readTime); - if (error) - return "readTime." + error; - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - if (message.totalSize != null && message.hasOwnProperty("totalSize")) - if (!$util.isInteger(message.totalSize)) - return "totalSize: integer expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; return null; }; /** - * Creates a GroupFindingsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListNotificationConfigsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.GroupFindingsResponse} GroupFindingsResponse + * @returns {google.cloud.securitycenter.v1.ListNotificationConfigsRequest} ListNotificationConfigsRequest */ - GroupFindingsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.GroupFindingsResponse) + ListNotificationConfigsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) return object; - var message = new $root.google.cloud.securitycenter.v1.GroupFindingsResponse(); - if (object.groupByResults) { - if (!Array.isArray(object.groupByResults)) - throw TypeError(".google.cloud.securitycenter.v1.GroupFindingsResponse.groupByResults: array expected"); - message.groupByResults = []; - for (var i = 0; i < object.groupByResults.length; ++i) { - if (typeof object.groupByResults[i] !== "object") - throw TypeError(".google.cloud.securitycenter.v1.GroupFindingsResponse.groupByResults: object expected"); - message.groupByResults[i] = $root.google.cloud.securitycenter.v1.GroupResult.fromObject(object.groupByResults[i]); - } - } - if (object.readTime != null) { - if (typeof object.readTime !== "object") - throw TypeError(".google.cloud.securitycenter.v1.GroupFindingsResponse.readTime: object expected"); - message.readTime = $root.google.protobuf.Timestamp.fromObject(object.readTime); - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - if (object.totalSize != null) - message.totalSize = object.totalSize | 0; + var message = new $root.google.cloud.securitycenter.v1.ListNotificationConfigsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; return message; }; /** - * Creates a plain object from a GroupFindingsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListNotificationConfigsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest * @static - * @param {google.cloud.securitycenter.v1.GroupFindingsResponse} message GroupFindingsResponse + * @param {google.cloud.securitycenter.v1.ListNotificationConfigsRequest} message ListNotificationConfigsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GroupFindingsResponse.toObject = function toObject(message, options) { + ListNotificationConfigsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.groupByResults = []; if (options.defaults) { - object.readTime = null; - object.nextPageToken = ""; - object.totalSize = 0; - } - if (message.groupByResults && message.groupByResults.length) { - object.groupByResults = []; - for (var j = 0; j < message.groupByResults.length; ++j) - object.groupByResults[j] = $root.google.cloud.securitycenter.v1.GroupResult.toObject(message.groupByResults[j], options); + object.parent = ""; + object.pageToken = ""; + object.pageSize = 0; } - if (message.readTime != null && message.hasOwnProperty("readTime")) - object.readTime = $root.google.protobuf.Timestamp.toObject(message.readTime, options); - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - if (message.totalSize != null && message.hasOwnProperty("totalSize")) - object.totalSize = message.totalSize; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; return object; }; /** - * Converts this GroupFindingsResponse to JSON. + * Converts this ListNotificationConfigsRequest to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest * @instance * @returns {Object.} JSON object */ - GroupFindingsResponse.prototype.toJSON = function toJSON() { + ListNotificationConfigsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GroupFindingsResponse + * Gets the default type url for ListNotificationConfigsRequest * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.GroupFindingsResponse + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GroupFindingsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNotificationConfigsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.GroupFindingsResponse"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.ListNotificationConfigsRequest"; }; - return GroupFindingsResponse; + return ListNotificationConfigsRequest; })(); - v1.GroupResult = (function() { + v1.ListNotificationConfigsResponse = (function() { /** - * Properties of a GroupResult. + * Properties of a ListNotificationConfigsResponse. * @memberof google.cloud.securitycenter.v1 - * @interface IGroupResult - * @property {Object.|null} [properties] GroupResult properties - * @property {number|Long|null} [count] GroupResult count + * @interface IListNotificationConfigsResponse + * @property {Array.|null} [notificationConfigs] ListNotificationConfigsResponse notificationConfigs + * @property {string|null} [nextPageToken] ListNotificationConfigsResponse nextPageToken */ /** - * Constructs a new GroupResult. + * Constructs a new ListNotificationConfigsResponse. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a GroupResult. - * @implements IGroupResult + * @classdesc Represents a ListNotificationConfigsResponse. + * @implements IListNotificationConfigsResponse * @constructor - * @param {google.cloud.securitycenter.v1.IGroupResult=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IListNotificationConfigsResponse=} [properties] Properties to set */ - function GroupResult(properties) { - this.properties = {}; + function ListNotificationConfigsResponse(properties) { + this.notificationConfigs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22872,111 +27309,92 @@ } /** - * GroupResult properties. - * @member {Object.} properties - * @memberof google.cloud.securitycenter.v1.GroupResult + * ListNotificationConfigsResponse notificationConfigs. + * @member {Array.} notificationConfigs + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse * @instance */ - GroupResult.prototype.properties = $util.emptyObject; + ListNotificationConfigsResponse.prototype.notificationConfigs = $util.emptyArray; /** - * GroupResult count. - * @member {number|Long} count - * @memberof google.cloud.securitycenter.v1.GroupResult + * ListNotificationConfigsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse * @instance */ - GroupResult.prototype.count = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ListNotificationConfigsResponse.prototype.nextPageToken = ""; /** - * Creates a new GroupResult instance using the specified properties. + * Creates a new ListNotificationConfigsResponse instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.GroupResult + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse * @static - * @param {google.cloud.securitycenter.v1.IGroupResult=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.GroupResult} GroupResult instance + * @param {google.cloud.securitycenter.v1.IListNotificationConfigsResponse=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.ListNotificationConfigsResponse} ListNotificationConfigsResponse instance */ - GroupResult.create = function create(properties) { - return new GroupResult(properties); + ListNotificationConfigsResponse.create = function create(properties) { + return new ListNotificationConfigsResponse(properties); }; /** - * Encodes the specified GroupResult message. Does not implicitly {@link google.cloud.securitycenter.v1.GroupResult.verify|verify} messages. + * Encodes the specified ListNotificationConfigsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.ListNotificationConfigsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.GroupResult + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse * @static - * @param {google.cloud.securitycenter.v1.IGroupResult} message GroupResult message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListNotificationConfigsResponse} message ListNotificationConfigsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroupResult.encode = function encode(message, writer) { + ListNotificationConfigsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.properties != null && Object.hasOwnProperty.call(message, "properties")) - for (var keys = Object.keys(message.properties), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.properties[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.count); + if (message.notificationConfigs != null && message.notificationConfigs.length) + for (var i = 0; i < message.notificationConfigs.length; ++i) + $root.google.cloud.securitycenter.v1.NotificationConfig.encode(message.notificationConfigs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified GroupResult message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.GroupResult.verify|verify} messages. + * Encodes the specified ListNotificationConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListNotificationConfigsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.GroupResult + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse * @static - * @param {google.cloud.securitycenter.v1.IGroupResult} message GroupResult message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListNotificationConfigsResponse} message ListNotificationConfigsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroupResult.encodeDelimited = function encodeDelimited(message, writer) { + ListNotificationConfigsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GroupResult message from the specified reader or buffer. + * Decodes a ListNotificationConfigsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.GroupResult + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.GroupResult} GroupResult + * @returns {google.cloud.securitycenter.v1.ListNotificationConfigsResponse} ListNotificationConfigsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroupResult.decode = function decode(reader, length) { + ListNotificationConfigsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.GroupResult(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ListNotificationConfigsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.properties === $util.emptyObject) - message.properties = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.properties[key] = value; + if (!(message.notificationConfigs && message.notificationConfigs.length)) + message.notificationConfigs = []; + message.notificationConfigs.push($root.google.cloud.securitycenter.v1.NotificationConfig.decode(reader, reader.uint32())); break; } case 2: { - message.count = reader.int64(); + message.nextPageToken = reader.string(); break; } default: @@ -22988,166 +27406,150 @@ }; /** - * Decodes a GroupResult message from the specified reader or buffer, length delimited. + * Decodes a ListNotificationConfigsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.GroupResult + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.GroupResult} GroupResult + * @returns {google.cloud.securitycenter.v1.ListNotificationConfigsResponse} ListNotificationConfigsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroupResult.decodeDelimited = function decodeDelimited(reader) { + ListNotificationConfigsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GroupResult message. + * Verifies a ListNotificationConfigsResponse message. * @function verify - * @memberof google.cloud.securitycenter.v1.GroupResult + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GroupResult.verify = function verify(message) { + ListNotificationConfigsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.properties != null && message.hasOwnProperty("properties")) { - if (!$util.isObject(message.properties)) - return "properties: object expected"; - var key = Object.keys(message.properties); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.properties[key[i]]); + if (message.notificationConfigs != null && message.hasOwnProperty("notificationConfigs")) { + if (!Array.isArray(message.notificationConfigs)) + return "notificationConfigs: array expected"; + for (var i = 0; i < message.notificationConfigs.length; ++i) { + var error = $root.google.cloud.securitycenter.v1.NotificationConfig.verify(message.notificationConfigs[i]); if (error) - return "properties." + error; + return "notificationConfigs." + error; } } - if (message.count != null && message.hasOwnProperty("count")) - if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high))) - return "count: integer|Long expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GroupResult message from a plain object. Also converts values to their respective internal types. + * Creates a ListNotificationConfigsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.GroupResult + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.GroupResult} GroupResult + * @returns {google.cloud.securitycenter.v1.ListNotificationConfigsResponse} ListNotificationConfigsResponse */ - GroupResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.GroupResult) + ListNotificationConfigsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.ListNotificationConfigsResponse) return object; - var message = new $root.google.cloud.securitycenter.v1.GroupResult(); - if (object.properties) { - if (typeof object.properties !== "object") - throw TypeError(".google.cloud.securitycenter.v1.GroupResult.properties: object expected"); - message.properties = {}; - for (var keys = Object.keys(object.properties), i = 0; i < keys.length; ++i) { - if (typeof object.properties[keys[i]] !== "object") - throw TypeError(".google.cloud.securitycenter.v1.GroupResult.properties: object expected"); - message.properties[keys[i]] = $root.google.protobuf.Value.fromObject(object.properties[keys[i]]); + var message = new $root.google.cloud.securitycenter.v1.ListNotificationConfigsResponse(); + if (object.notificationConfigs) { + if (!Array.isArray(object.notificationConfigs)) + throw TypeError(".google.cloud.securitycenter.v1.ListNotificationConfigsResponse.notificationConfigs: array expected"); + message.notificationConfigs = []; + for (var i = 0; i < object.notificationConfigs.length; ++i) { + if (typeof object.notificationConfigs[i] !== "object") + throw TypeError(".google.cloud.securitycenter.v1.ListNotificationConfigsResponse.notificationConfigs: object expected"); + message.notificationConfigs[i] = $root.google.cloud.securitycenter.v1.NotificationConfig.fromObject(object.notificationConfigs[i]); } } - if (object.count != null) - if ($util.Long) - (message.count = $util.Long.fromValue(object.count)).unsigned = false; - else if (typeof object.count === "string") - message.count = parseInt(object.count, 10); - else if (typeof object.count === "number") - message.count = object.count; - else if (typeof object.count === "object") - message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GroupResult message. Also converts values to other types if specified. + * Creates a plain object from a ListNotificationConfigsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.GroupResult + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse * @static - * @param {google.cloud.securitycenter.v1.GroupResult} message GroupResult + * @param {google.cloud.securitycenter.v1.ListNotificationConfigsResponse} message ListNotificationConfigsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GroupResult.toObject = function toObject(message, options) { + ListNotificationConfigsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.properties = {}; + if (options.arrays || options.defaults) + object.notificationConfigs = []; if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.count = options.longs === String ? "0" : 0; - var keys2; - if (message.properties && (keys2 = Object.keys(message.properties)).length) { - object.properties = {}; - for (var j = 0; j < keys2.length; ++j) - object.properties[keys2[j]] = $root.google.protobuf.Value.toObject(message.properties[keys2[j]], options); + object.nextPageToken = ""; + if (message.notificationConfigs && message.notificationConfigs.length) { + object.notificationConfigs = []; + for (var j = 0; j < message.notificationConfigs.length; ++j) + object.notificationConfigs[j] = $root.google.cloud.securitycenter.v1.NotificationConfig.toObject(message.notificationConfigs[j], options); } - if (message.count != null && message.hasOwnProperty("count")) - if (typeof message.count === "number") - object.count = options.longs === String ? String(message.count) : message.count; - else - object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber() : message.count; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GroupResult to JSON. + * Converts this ListNotificationConfigsResponse to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.GroupResult + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse * @instance * @returns {Object.} JSON object */ - GroupResult.prototype.toJSON = function toJSON() { + ListNotificationConfigsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GroupResult + * Gets the default type url for ListNotificationConfigsResponse * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.GroupResult + * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GroupResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNotificationConfigsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.GroupResult"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.ListNotificationConfigsResponse"; }; - return GroupResult; + return ListNotificationConfigsResponse; })(); - v1.ListMuteConfigsRequest = (function() { + v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest = (function() { /** - * Properties of a ListMuteConfigsRequest. + * Properties of a ListEffectiveSecurityHealthAnalyticsCustomModulesRequest. * @memberof google.cloud.securitycenter.v1 - * @interface IListMuteConfigsRequest - * @property {string|null} [parent] ListMuteConfigsRequest parent - * @property {number|null} [pageSize] ListMuteConfigsRequest pageSize - * @property {string|null} [pageToken] ListMuteConfigsRequest pageToken + * @interface IListEffectiveSecurityHealthAnalyticsCustomModulesRequest + * @property {string|null} [parent] ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parent + * @property {number|null} [pageSize] ListEffectiveSecurityHealthAnalyticsCustomModulesRequest pageSize + * @property {string|null} [pageToken] ListEffectiveSecurityHealthAnalyticsCustomModulesRequest pageToken */ /** - * Constructs a new ListMuteConfigsRequest. + * Constructs a new ListEffectiveSecurityHealthAnalyticsCustomModulesRequest. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a ListMuteConfigsRequest. - * @implements IListMuteConfigsRequest + * @classdesc Represents a ListEffectiveSecurityHealthAnalyticsCustomModulesRequest. + * @implements IListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @constructor - * @param {google.cloud.securitycenter.v1.IListMuteConfigsRequest=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest=} [properties] Properties to set */ - function ListMuteConfigsRequest(properties) { + function ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23155,51 +27557,51 @@ } /** - * ListMuteConfigsRequest parent. + * ListEffectiveSecurityHealthAnalyticsCustomModulesRequest parent. * @member {string} parent - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @instance */ - ListMuteConfigsRequest.prototype.parent = ""; + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.prototype.parent = ""; /** - * ListMuteConfigsRequest pageSize. + * ListEffectiveSecurityHealthAnalyticsCustomModulesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @instance */ - ListMuteConfigsRequest.prototype.pageSize = 0; + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.prototype.pageSize = 0; /** - * ListMuteConfigsRequest pageToken. + * ListEffectiveSecurityHealthAnalyticsCustomModulesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @instance */ - ListMuteConfigsRequest.prototype.pageToken = ""; + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.prototype.pageToken = ""; /** - * Creates a new ListMuteConfigsRequest instance using the specified properties. + * Creates a new ListEffectiveSecurityHealthAnalyticsCustomModulesRequest instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @static - * @param {google.cloud.securitycenter.v1.IListMuteConfigsRequest=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.ListMuteConfigsRequest} ListMuteConfigsRequest instance + * @param {google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest} ListEffectiveSecurityHealthAnalyticsCustomModulesRequest instance */ - ListMuteConfigsRequest.create = function create(properties) { - return new ListMuteConfigsRequest(properties); + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.create = function create(properties) { + return new ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(properties); }; /** - * Encodes the specified ListMuteConfigsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.ListMuteConfigsRequest.verify|verify} messages. + * Encodes the specified ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @static - * @param {google.cloud.securitycenter.v1.IListMuteConfigsRequest} message ListMuteConfigsRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest} message ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMuteConfigsRequest.encode = function encode(message, writer) { + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -23212,33 +27614,33 @@ }; /** - * Encodes the specified ListMuteConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListMuteConfigsRequest.verify|verify} messages. + * Encodes the specified ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @static - * @param {google.cloud.securitycenter.v1.IListMuteConfigsRequest} message ListMuteConfigsRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest} message ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMuteConfigsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMuteConfigsRequest message from the specified reader or buffer. + * Decodes a ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.ListMuteConfigsRequest} ListMuteConfigsRequest + * @returns {google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest} ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMuteConfigsRequest.decode = function decode(reader, length) { + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ListMuteConfigsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -23263,30 +27665,30 @@ }; /** - * Decodes a ListMuteConfigsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.ListMuteConfigsRequest} ListMuteConfigsRequest + * @returns {google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest} ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMuteConfigsRequest.decodeDelimited = function decodeDelimited(reader) { + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMuteConfigsRequest message. + * Verifies a ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message. * @function verify - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMuteConfigsRequest.verify = function verify(message) { + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -23302,17 +27704,17 @@ }; /** - * Creates a ListMuteConfigsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.ListMuteConfigsRequest} ListMuteConfigsRequest + * @returns {google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest} ListEffectiveSecurityHealthAnalyticsCustomModulesRequest */ - ListMuteConfigsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.ListMuteConfigsRequest) + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) return object; - var message = new $root.google.cloud.securitycenter.v1.ListMuteConfigsRequest(); + var message = new $root.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -23323,15 +27725,15 @@ }; /** - * Creates a plain object from a ListMuteConfigsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListEffectiveSecurityHealthAnalyticsCustomModulesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @static - * @param {google.cloud.securitycenter.v1.ListMuteConfigsRequest} message ListMuteConfigsRequest + * @param {google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest} message ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMuteConfigsRequest.toObject = function toObject(message, options) { + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -23350,54 +27752,54 @@ }; /** - * Converts this ListMuteConfigsRequest to JSON. + * Converts this ListEffectiveSecurityHealthAnalyticsCustomModulesRequest to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @instance * @returns {Object.} JSON object */ - ListMuteConfigsRequest.prototype.toJSON = function toJSON() { + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListMuteConfigsRequest + * Gets the default type url for ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListMuteConfigsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.ListMuteConfigsRequest"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest"; }; - return ListMuteConfigsRequest; + return ListEffectiveSecurityHealthAnalyticsCustomModulesRequest; })(); - v1.ListMuteConfigsResponse = (function() { + v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse = (function() { /** - * Properties of a ListMuteConfigsResponse. + * Properties of a ListEffectiveSecurityHealthAnalyticsCustomModulesResponse. * @memberof google.cloud.securitycenter.v1 - * @interface IListMuteConfigsResponse - * @property {Array.|null} [muteConfigs] ListMuteConfigsResponse muteConfigs - * @property {string|null} [nextPageToken] ListMuteConfigsResponse nextPageToken + * @interface IListEffectiveSecurityHealthAnalyticsCustomModulesResponse + * @property {Array.|null} [effectiveSecurityHealthAnalyticsCustomModules] ListEffectiveSecurityHealthAnalyticsCustomModulesResponse effectiveSecurityHealthAnalyticsCustomModules + * @property {string|null} [nextPageToken] ListEffectiveSecurityHealthAnalyticsCustomModulesResponse nextPageToken */ /** - * Constructs a new ListMuteConfigsResponse. + * Constructs a new ListEffectiveSecurityHealthAnalyticsCustomModulesResponse. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a ListMuteConfigsResponse. - * @implements IListMuteConfigsResponse + * @classdesc Represents a ListEffectiveSecurityHealthAnalyticsCustomModulesResponse. + * @implements IListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @constructor - * @param {google.cloud.securitycenter.v1.IListMuteConfigsResponse=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesResponse=} [properties] Properties to set */ - function ListMuteConfigsResponse(properties) { - this.muteConfigs = []; + function ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(properties) { + this.effectiveSecurityHealthAnalyticsCustomModules = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23405,88 +27807,88 @@ } /** - * ListMuteConfigsResponse muteConfigs. - * @member {Array.} muteConfigs - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse + * ListEffectiveSecurityHealthAnalyticsCustomModulesResponse effectiveSecurityHealthAnalyticsCustomModules. + * @member {Array.} effectiveSecurityHealthAnalyticsCustomModules + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @instance */ - ListMuteConfigsResponse.prototype.muteConfigs = $util.emptyArray; + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.prototype.effectiveSecurityHealthAnalyticsCustomModules = $util.emptyArray; /** - * ListMuteConfigsResponse nextPageToken. + * ListEffectiveSecurityHealthAnalyticsCustomModulesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @instance */ - ListMuteConfigsResponse.prototype.nextPageToken = ""; + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListMuteConfigsResponse instance using the specified properties. + * Creates a new ListEffectiveSecurityHealthAnalyticsCustomModulesResponse instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @static - * @param {google.cloud.securitycenter.v1.IListMuteConfigsResponse=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.ListMuteConfigsResponse} ListMuteConfigsResponse instance + * @param {google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesResponse=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse} ListEffectiveSecurityHealthAnalyticsCustomModulesResponse instance */ - ListMuteConfigsResponse.create = function create(properties) { - return new ListMuteConfigsResponse(properties); + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.create = function create(properties) { + return new ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(properties); }; /** - * Encodes the specified ListMuteConfigsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.ListMuteConfigsResponse.verify|verify} messages. + * Encodes the specified ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @static - * @param {google.cloud.securitycenter.v1.IListMuteConfigsResponse} message ListMuteConfigsResponse message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesResponse} message ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMuteConfigsResponse.encode = function encode(message, writer) { + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.muteConfigs != null && message.muteConfigs.length) - for (var i = 0; i < message.muteConfigs.length; ++i) - $root.google.cloud.securitycenter.v1.MuteConfig.encode(message.muteConfigs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.effectiveSecurityHealthAnalyticsCustomModules != null && message.effectiveSecurityHealthAnalyticsCustomModules.length) + for (var i = 0; i < message.effectiveSecurityHealthAnalyticsCustomModules.length; ++i) + $root.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.encode(message.effectiveSecurityHealthAnalyticsCustomModules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListMuteConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListMuteConfigsResponse.verify|verify} messages. + * Encodes the specified ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @static - * @param {google.cloud.securitycenter.v1.IListMuteConfigsResponse} message ListMuteConfigsResponse message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesResponse} message ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMuteConfigsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMuteConfigsResponse message from the specified reader or buffer. + * Decodes a ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.ListMuteConfigsResponse} ListMuteConfigsResponse + * @returns {google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse} ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMuteConfigsResponse.decode = function decode(reader, length) { + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ListMuteConfigsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.muteConfigs && message.muteConfigs.length)) - message.muteConfigs = []; - message.muteConfigs.push($root.google.cloud.securitycenter.v1.MuteConfig.decode(reader, reader.uint32())); + if (!(message.effectiveSecurityHealthAnalyticsCustomModules && message.effectiveSecurityHealthAnalyticsCustomModules.length)) + message.effectiveSecurityHealthAnalyticsCustomModules = []; + message.effectiveSecurityHealthAnalyticsCustomModules.push($root.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.decode(reader, reader.uint32())); break; } case 2: { @@ -23502,39 +27904,39 @@ }; /** - * Decodes a ListMuteConfigsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.ListMuteConfigsResponse} ListMuteConfigsResponse + * @returns {google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse} ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMuteConfigsResponse.decodeDelimited = function decodeDelimited(reader) { + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMuteConfigsResponse message. + * Verifies a ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message. * @function verify - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMuteConfigsResponse.verify = function verify(message) { + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.muteConfigs != null && message.hasOwnProperty("muteConfigs")) { - if (!Array.isArray(message.muteConfigs)) - return "muteConfigs: array expected"; - for (var i = 0; i < message.muteConfigs.length; ++i) { - var error = $root.google.cloud.securitycenter.v1.MuteConfig.verify(message.muteConfigs[i]); + if (message.effectiveSecurityHealthAnalyticsCustomModules != null && message.hasOwnProperty("effectiveSecurityHealthAnalyticsCustomModules")) { + if (!Array.isArray(message.effectiveSecurityHealthAnalyticsCustomModules)) + return "effectiveSecurityHealthAnalyticsCustomModules: array expected"; + for (var i = 0; i < message.effectiveSecurityHealthAnalyticsCustomModules.length; ++i) { + var error = $root.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.verify(message.effectiveSecurityHealthAnalyticsCustomModules[i]); if (error) - return "muteConfigs." + error; + return "effectiveSecurityHealthAnalyticsCustomModules." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -23544,25 +27946,25 @@ }; /** - * Creates a ListMuteConfigsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.ListMuteConfigsResponse} ListMuteConfigsResponse + * @returns {google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse} ListEffectiveSecurityHealthAnalyticsCustomModulesResponse */ - ListMuteConfigsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.ListMuteConfigsResponse) + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) return object; - var message = new $root.google.cloud.securitycenter.v1.ListMuteConfigsResponse(); - if (object.muteConfigs) { - if (!Array.isArray(object.muteConfigs)) - throw TypeError(".google.cloud.securitycenter.v1.ListMuteConfigsResponse.muteConfigs: array expected"); - message.muteConfigs = []; - for (var i = 0; i < object.muteConfigs.length; ++i) { - if (typeof object.muteConfigs[i] !== "object") - throw TypeError(".google.cloud.securitycenter.v1.ListMuteConfigsResponse.muteConfigs: object expected"); - message.muteConfigs[i] = $root.google.cloud.securitycenter.v1.MuteConfig.fromObject(object.muteConfigs[i]); + var message = new $root.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(); + if (object.effectiveSecurityHealthAnalyticsCustomModules) { + if (!Array.isArray(object.effectiveSecurityHealthAnalyticsCustomModules)) + throw TypeError(".google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.effectiveSecurityHealthAnalyticsCustomModules: array expected"); + message.effectiveSecurityHealthAnalyticsCustomModules = []; + for (var i = 0; i < object.effectiveSecurityHealthAnalyticsCustomModules.length; ++i) { + if (typeof object.effectiveSecurityHealthAnalyticsCustomModules[i] !== "object") + throw TypeError(".google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.effectiveSecurityHealthAnalyticsCustomModules: object expected"); + message.effectiveSecurityHealthAnalyticsCustomModules[i] = $root.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.fromObject(object.effectiveSecurityHealthAnalyticsCustomModules[i]); } } if (object.nextPageToken != null) @@ -23571,26 +27973,26 @@ }; /** - * Creates a plain object from a ListMuteConfigsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListEffectiveSecurityHealthAnalyticsCustomModulesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @static - * @param {google.cloud.securitycenter.v1.ListMuteConfigsResponse} message ListMuteConfigsResponse + * @param {google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse} message ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMuteConfigsResponse.toObject = function toObject(message, options) { + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.muteConfigs = []; + object.effectiveSecurityHealthAnalyticsCustomModules = []; if (options.defaults) object.nextPageToken = ""; - if (message.muteConfigs && message.muteConfigs.length) { - object.muteConfigs = []; - for (var j = 0; j < message.muteConfigs.length; ++j) - object.muteConfigs[j] = $root.google.cloud.securitycenter.v1.MuteConfig.toObject(message.muteConfigs[j], options); + if (message.effectiveSecurityHealthAnalyticsCustomModules && message.effectiveSecurityHealthAnalyticsCustomModules.length) { + object.effectiveSecurityHealthAnalyticsCustomModules = []; + for (var j = 0; j < message.effectiveSecurityHealthAnalyticsCustomModules.length; ++j) + object.effectiveSecurityHealthAnalyticsCustomModules[j] = $root.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.toObject(message.effectiveSecurityHealthAnalyticsCustomModules[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -23598,54 +28000,54 @@ }; /** - * Converts this ListMuteConfigsResponse to JSON. + * Converts this ListEffectiveSecurityHealthAnalyticsCustomModulesResponse to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @instance * @returns {Object.} JSON object */ - ListMuteConfigsResponse.prototype.toJSON = function toJSON() { + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListMuteConfigsResponse + * Gets the default type url for ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.ListMuteConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListMuteConfigsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.ListMuteConfigsResponse"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse"; }; - return ListMuteConfigsResponse; + return ListEffectiveSecurityHealthAnalyticsCustomModulesResponse; })(); - v1.ListNotificationConfigsRequest = (function() { + v1.ListSecurityHealthAnalyticsCustomModulesRequest = (function() { /** - * Properties of a ListNotificationConfigsRequest. + * Properties of a ListSecurityHealthAnalyticsCustomModulesRequest. * @memberof google.cloud.securitycenter.v1 - * @interface IListNotificationConfigsRequest - * @property {string|null} [parent] ListNotificationConfigsRequest parent - * @property {string|null} [pageToken] ListNotificationConfigsRequest pageToken - * @property {number|null} [pageSize] ListNotificationConfigsRequest pageSize + * @interface IListSecurityHealthAnalyticsCustomModulesRequest + * @property {string|null} [parent] ListSecurityHealthAnalyticsCustomModulesRequest parent + * @property {number|null} [pageSize] ListSecurityHealthAnalyticsCustomModulesRequest pageSize + * @property {string|null} [pageToken] ListSecurityHealthAnalyticsCustomModulesRequest pageToken */ /** - * Constructs a new ListNotificationConfigsRequest. + * Constructs a new ListSecurityHealthAnalyticsCustomModulesRequest. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a ListNotificationConfigsRequest. - * @implements IListNotificationConfigsRequest + * @classdesc Represents a ListSecurityHealthAnalyticsCustomModulesRequest. + * @implements IListSecurityHealthAnalyticsCustomModulesRequest * @constructor - * @param {google.cloud.securitycenter.v1.IListNotificationConfigsRequest=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest=} [properties] Properties to set */ - function ListNotificationConfigsRequest(properties) { + function ListSecurityHealthAnalyticsCustomModulesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23653,90 +28055,90 @@ } /** - * ListNotificationConfigsRequest parent. + * ListSecurityHealthAnalyticsCustomModulesRequest parent. * @member {string} parent - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest * @instance */ - ListNotificationConfigsRequest.prototype.parent = ""; + ListSecurityHealthAnalyticsCustomModulesRequest.prototype.parent = ""; /** - * ListNotificationConfigsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest + * ListSecurityHealthAnalyticsCustomModulesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest * @instance */ - ListNotificationConfigsRequest.prototype.pageToken = ""; + ListSecurityHealthAnalyticsCustomModulesRequest.prototype.pageSize = 0; /** - * ListNotificationConfigsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest + * ListSecurityHealthAnalyticsCustomModulesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest * @instance */ - ListNotificationConfigsRequest.prototype.pageSize = 0; + ListSecurityHealthAnalyticsCustomModulesRequest.prototype.pageToken = ""; /** - * Creates a new ListNotificationConfigsRequest instance using the specified properties. + * Creates a new ListSecurityHealthAnalyticsCustomModulesRequest instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest * @static - * @param {google.cloud.securitycenter.v1.IListNotificationConfigsRequest=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.ListNotificationConfigsRequest} ListNotificationConfigsRequest instance + * @param {google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest} ListSecurityHealthAnalyticsCustomModulesRequest instance */ - ListNotificationConfigsRequest.create = function create(properties) { - return new ListNotificationConfigsRequest(properties); + ListSecurityHealthAnalyticsCustomModulesRequest.create = function create(properties) { + return new ListSecurityHealthAnalyticsCustomModulesRequest(properties); }; /** - * Encodes the specified ListNotificationConfigsRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.ListNotificationConfigsRequest.verify|verify} messages. + * Encodes the specified ListSecurityHealthAnalyticsCustomModulesRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest * @static - * @param {google.cloud.securitycenter.v1.IListNotificationConfigsRequest} message ListNotificationConfigsRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest} message ListSecurityHealthAnalyticsCustomModulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNotificationConfigsRequest.encode = function encode(message, writer) { + ListSecurityHealthAnalyticsCustomModulesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.pageToken); if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified ListNotificationConfigsRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListNotificationConfigsRequest.verify|verify} messages. + * Encodes the specified ListSecurityHealthAnalyticsCustomModulesRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest * @static - * @param {google.cloud.securitycenter.v1.IListNotificationConfigsRequest} message ListNotificationConfigsRequest message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest} message ListSecurityHealthAnalyticsCustomModulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNotificationConfigsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSecurityHealthAnalyticsCustomModulesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNotificationConfigsRequest message from the specified reader or buffer. + * Decodes a ListSecurityHealthAnalyticsCustomModulesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.ListNotificationConfigsRequest} ListNotificationConfigsRequest + * @returns {google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest} ListSecurityHealthAnalyticsCustomModulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNotificationConfigsRequest.decode = function decode(reader, length) { + ListSecurityHealthAnalyticsCustomModulesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ListNotificationConfigsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -23745,11 +28147,11 @@ break; } case 2: { - message.pageToken = reader.string(); + message.pageSize = reader.int32(); break; } case 3: { - message.pageSize = reader.int32(); + message.pageToken = reader.string(); break; } default: @@ -23761,141 +28163,141 @@ }; /** - * Decodes a ListNotificationConfigsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSecurityHealthAnalyticsCustomModulesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.ListNotificationConfigsRequest} ListNotificationConfigsRequest + * @returns {google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest} ListSecurityHealthAnalyticsCustomModulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNotificationConfigsRequest.decodeDelimited = function decodeDelimited(reader) { + ListSecurityHealthAnalyticsCustomModulesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNotificationConfigsRequest message. + * Verifies a ListSecurityHealthAnalyticsCustomModulesRequest message. * @function verify - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNotificationConfigsRequest.verify = function verify(message) { + ListSecurityHealthAnalyticsCustomModulesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; if (message.pageSize != null && message.hasOwnProperty("pageSize")) if (!$util.isInteger(message.pageSize)) return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a ListNotificationConfigsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSecurityHealthAnalyticsCustomModulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.ListNotificationConfigsRequest} ListNotificationConfigsRequest + * @returns {google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest} ListSecurityHealthAnalyticsCustomModulesRequest */ - ListNotificationConfigsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) + ListSecurityHealthAnalyticsCustomModulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest) return object; - var message = new $root.google.cloud.securitycenter.v1.ListNotificationConfigsRequest(); + var message = new $root.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.pageToken != null) - message.pageToken = String(object.pageToken); if (object.pageSize != null) message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a ListNotificationConfigsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSecurityHealthAnalyticsCustomModulesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest * @static - * @param {google.cloud.securitycenter.v1.ListNotificationConfigsRequest} message ListNotificationConfigsRequest + * @param {google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest} message ListSecurityHealthAnalyticsCustomModulesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNotificationConfigsRequest.toObject = function toObject(message, options) { + ListSecurityHealthAnalyticsCustomModulesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageToken = ""; object.pageSize = 0; + object.pageToken = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; if (message.pageSize != null && message.hasOwnProperty("pageSize")) object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this ListNotificationConfigsRequest to JSON. + * Converts this ListSecurityHealthAnalyticsCustomModulesRequest to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest * @instance * @returns {Object.} JSON object */ - ListNotificationConfigsRequest.prototype.toJSON = function toJSON() { + ListSecurityHealthAnalyticsCustomModulesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListNotificationConfigsRequest + * Gets the default type url for ListSecurityHealthAnalyticsCustomModulesRequest * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsRequest + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListNotificationConfigsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSecurityHealthAnalyticsCustomModulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.ListNotificationConfigsRequest"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest"; }; - return ListNotificationConfigsRequest; + return ListSecurityHealthAnalyticsCustomModulesRequest; })(); - v1.ListNotificationConfigsResponse = (function() { + v1.ListSecurityHealthAnalyticsCustomModulesResponse = (function() { /** - * Properties of a ListNotificationConfigsResponse. + * Properties of a ListSecurityHealthAnalyticsCustomModulesResponse. * @memberof google.cloud.securitycenter.v1 - * @interface IListNotificationConfigsResponse - * @property {Array.|null} [notificationConfigs] ListNotificationConfigsResponse notificationConfigs - * @property {string|null} [nextPageToken] ListNotificationConfigsResponse nextPageToken + * @interface IListSecurityHealthAnalyticsCustomModulesResponse + * @property {Array.|null} [securityHealthAnalyticsCustomModules] ListSecurityHealthAnalyticsCustomModulesResponse securityHealthAnalyticsCustomModules + * @property {string|null} [nextPageToken] ListSecurityHealthAnalyticsCustomModulesResponse nextPageToken */ /** - * Constructs a new ListNotificationConfigsResponse. + * Constructs a new ListSecurityHealthAnalyticsCustomModulesResponse. * @memberof google.cloud.securitycenter.v1 - * @classdesc Represents a ListNotificationConfigsResponse. - * @implements IListNotificationConfigsResponse + * @classdesc Represents a ListSecurityHealthAnalyticsCustomModulesResponse. + * @implements IListSecurityHealthAnalyticsCustomModulesResponse * @constructor - * @param {google.cloud.securitycenter.v1.IListNotificationConfigsResponse=} [properties] Properties to set + * @param {google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesResponse=} [properties] Properties to set */ - function ListNotificationConfigsResponse(properties) { - this.notificationConfigs = []; + function ListSecurityHealthAnalyticsCustomModulesResponse(properties) { + this.securityHealthAnalyticsCustomModules = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23903,88 +28305,88 @@ } /** - * ListNotificationConfigsResponse notificationConfigs. - * @member {Array.} notificationConfigs - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse + * ListSecurityHealthAnalyticsCustomModulesResponse securityHealthAnalyticsCustomModules. + * @member {Array.} securityHealthAnalyticsCustomModules + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse * @instance */ - ListNotificationConfigsResponse.prototype.notificationConfigs = $util.emptyArray; + ListSecurityHealthAnalyticsCustomModulesResponse.prototype.securityHealthAnalyticsCustomModules = $util.emptyArray; /** - * ListNotificationConfigsResponse nextPageToken. + * ListSecurityHealthAnalyticsCustomModulesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse * @instance */ - ListNotificationConfigsResponse.prototype.nextPageToken = ""; + ListSecurityHealthAnalyticsCustomModulesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListNotificationConfigsResponse instance using the specified properties. + * Creates a new ListSecurityHealthAnalyticsCustomModulesResponse instance using the specified properties. * @function create - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse * @static - * @param {google.cloud.securitycenter.v1.IListNotificationConfigsResponse=} [properties] Properties to set - * @returns {google.cloud.securitycenter.v1.ListNotificationConfigsResponse} ListNotificationConfigsResponse instance + * @param {google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesResponse=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse} ListSecurityHealthAnalyticsCustomModulesResponse instance */ - ListNotificationConfigsResponse.create = function create(properties) { - return new ListNotificationConfigsResponse(properties); + ListSecurityHealthAnalyticsCustomModulesResponse.create = function create(properties) { + return new ListSecurityHealthAnalyticsCustomModulesResponse(properties); }; /** - * Encodes the specified ListNotificationConfigsResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.ListNotificationConfigsResponse.verify|verify} messages. + * Encodes the specified ListSecurityHealthAnalyticsCustomModulesResponse message. Does not implicitly {@link google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse * @static - * @param {google.cloud.securitycenter.v1.IListNotificationConfigsResponse} message ListNotificationConfigsResponse message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesResponse} message ListSecurityHealthAnalyticsCustomModulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNotificationConfigsResponse.encode = function encode(message, writer) { + ListSecurityHealthAnalyticsCustomModulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.notificationConfigs != null && message.notificationConfigs.length) - for (var i = 0; i < message.notificationConfigs.length; ++i) - $root.google.cloud.securitycenter.v1.NotificationConfig.encode(message.notificationConfigs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.securityHealthAnalyticsCustomModules != null && message.securityHealthAnalyticsCustomModules.length) + for (var i = 0; i < message.securityHealthAnalyticsCustomModules.length; ++i) + $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.encode(message.securityHealthAnalyticsCustomModules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListNotificationConfigsResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListNotificationConfigsResponse.verify|verify} messages. + * Encodes the specified ListSecurityHealthAnalyticsCustomModulesResponse message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse * @static - * @param {google.cloud.securitycenter.v1.IListNotificationConfigsResponse} message ListNotificationConfigsResponse message or plain object to encode + * @param {google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesResponse} message ListSecurityHealthAnalyticsCustomModulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNotificationConfigsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListSecurityHealthAnalyticsCustomModulesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNotificationConfigsResponse message from the specified reader or buffer. + * Decodes a ListSecurityHealthAnalyticsCustomModulesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.securitycenter.v1.ListNotificationConfigsResponse} ListNotificationConfigsResponse + * @returns {google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse} ListSecurityHealthAnalyticsCustomModulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNotificationConfigsResponse.decode = function decode(reader, length) { + ListSecurityHealthAnalyticsCustomModulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ListNotificationConfigsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.notificationConfigs && message.notificationConfigs.length)) - message.notificationConfigs = []; - message.notificationConfigs.push($root.google.cloud.securitycenter.v1.NotificationConfig.decode(reader, reader.uint32())); + if (!(message.securityHealthAnalyticsCustomModules && message.securityHealthAnalyticsCustomModules.length)) + message.securityHealthAnalyticsCustomModules = []; + message.securityHealthAnalyticsCustomModules.push($root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.decode(reader, reader.uint32())); break; } case 2: { @@ -24000,39 +28402,39 @@ }; /** - * Decodes a ListNotificationConfigsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListSecurityHealthAnalyticsCustomModulesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.securitycenter.v1.ListNotificationConfigsResponse} ListNotificationConfigsResponse + * @returns {google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse} ListSecurityHealthAnalyticsCustomModulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNotificationConfigsResponse.decodeDelimited = function decodeDelimited(reader) { + ListSecurityHealthAnalyticsCustomModulesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNotificationConfigsResponse message. + * Verifies a ListSecurityHealthAnalyticsCustomModulesResponse message. * @function verify - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNotificationConfigsResponse.verify = function verify(message) { + ListSecurityHealthAnalyticsCustomModulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.notificationConfigs != null && message.hasOwnProperty("notificationConfigs")) { - if (!Array.isArray(message.notificationConfigs)) - return "notificationConfigs: array expected"; - for (var i = 0; i < message.notificationConfigs.length; ++i) { - var error = $root.google.cloud.securitycenter.v1.NotificationConfig.verify(message.notificationConfigs[i]); + if (message.securityHealthAnalyticsCustomModules != null && message.hasOwnProperty("securityHealthAnalyticsCustomModules")) { + if (!Array.isArray(message.securityHealthAnalyticsCustomModules)) + return "securityHealthAnalyticsCustomModules: array expected"; + for (var i = 0; i < message.securityHealthAnalyticsCustomModules.length; ++i) { + var error = $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.verify(message.securityHealthAnalyticsCustomModules[i]); if (error) - return "notificationConfigs." + error; + return "securityHealthAnalyticsCustomModules." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -24042,25 +28444,25 @@ }; /** - * Creates a ListNotificationConfigsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListSecurityHealthAnalyticsCustomModulesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.securitycenter.v1.ListNotificationConfigsResponse} ListNotificationConfigsResponse + * @returns {google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse} ListSecurityHealthAnalyticsCustomModulesResponse */ - ListNotificationConfigsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.securitycenter.v1.ListNotificationConfigsResponse) + ListSecurityHealthAnalyticsCustomModulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse) return object; - var message = new $root.google.cloud.securitycenter.v1.ListNotificationConfigsResponse(); - if (object.notificationConfigs) { - if (!Array.isArray(object.notificationConfigs)) - throw TypeError(".google.cloud.securitycenter.v1.ListNotificationConfigsResponse.notificationConfigs: array expected"); - message.notificationConfigs = []; - for (var i = 0; i < object.notificationConfigs.length; ++i) { - if (typeof object.notificationConfigs[i] !== "object") - throw TypeError(".google.cloud.securitycenter.v1.ListNotificationConfigsResponse.notificationConfigs: object expected"); - message.notificationConfigs[i] = $root.google.cloud.securitycenter.v1.NotificationConfig.fromObject(object.notificationConfigs[i]); + var message = new $root.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse(); + if (object.securityHealthAnalyticsCustomModules) { + if (!Array.isArray(object.securityHealthAnalyticsCustomModules)) + throw TypeError(".google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse.securityHealthAnalyticsCustomModules: array expected"); + message.securityHealthAnalyticsCustomModules = []; + for (var i = 0; i < object.securityHealthAnalyticsCustomModules.length; ++i) { + if (typeof object.securityHealthAnalyticsCustomModules[i] !== "object") + throw TypeError(".google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse.securityHealthAnalyticsCustomModules: object expected"); + message.securityHealthAnalyticsCustomModules[i] = $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.fromObject(object.securityHealthAnalyticsCustomModules[i]); } } if (object.nextPageToken != null) @@ -24069,26 +28471,26 @@ }; /** - * Creates a plain object from a ListNotificationConfigsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListSecurityHealthAnalyticsCustomModulesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse * @static - * @param {google.cloud.securitycenter.v1.ListNotificationConfigsResponse} message ListNotificationConfigsResponse + * @param {google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse} message ListSecurityHealthAnalyticsCustomModulesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNotificationConfigsResponse.toObject = function toObject(message, options) { + ListSecurityHealthAnalyticsCustomModulesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.notificationConfigs = []; + object.securityHealthAnalyticsCustomModules = []; if (options.defaults) object.nextPageToken = ""; - if (message.notificationConfigs && message.notificationConfigs.length) { - object.notificationConfigs = []; - for (var j = 0; j < message.notificationConfigs.length; ++j) - object.notificationConfigs[j] = $root.google.cloud.securitycenter.v1.NotificationConfig.toObject(message.notificationConfigs[j], options); + if (message.securityHealthAnalyticsCustomModules && message.securityHealthAnalyticsCustomModules.length) { + object.securityHealthAnalyticsCustomModules = []; + for (var j = 0; j < message.securityHealthAnalyticsCustomModules.length; ++j) + object.securityHealthAnalyticsCustomModules[j] = $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.toObject(message.securityHealthAnalyticsCustomModules[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -24096,32 +28498,32 @@ }; /** - * Converts this ListNotificationConfigsResponse to JSON. + * Converts this ListSecurityHealthAnalyticsCustomModulesResponse to JSON. * @function toJSON - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse * @instance * @returns {Object.} JSON object */ - ListNotificationConfigsResponse.prototype.toJSON = function toJSON() { + ListSecurityHealthAnalyticsCustomModulesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListNotificationConfigsResponse + * Gets the default type url for ListSecurityHealthAnalyticsCustomModulesResponse * @function getTypeUrl - * @memberof google.cloud.securitycenter.v1.ListNotificationConfigsResponse + * @memberof google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListNotificationConfigsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSecurityHealthAnalyticsCustomModulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.securitycenter.v1.ListNotificationConfigsResponse"; + return typeUrlPrefix + "/google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse"; }; - return ListNotificationConfigsResponse; + return ListSecurityHealthAnalyticsCustomModulesResponse; })(); v1.ListSourcesRequest = (function() { @@ -28885,6 +33287,243 @@ return UpdateOrganizationSettingsRequest; })(); + v1.UpdateSecurityHealthAnalyticsCustomModuleRequest = (function() { + + /** + * Properties of an UpdateSecurityHealthAnalyticsCustomModuleRequest. + * @memberof google.cloud.securitycenter.v1 + * @interface IUpdateSecurityHealthAnalyticsCustomModuleRequest + * @property {google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule|null} [securityHealthAnalyticsCustomModule] UpdateSecurityHealthAnalyticsCustomModuleRequest securityHealthAnalyticsCustomModule + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSecurityHealthAnalyticsCustomModuleRequest updateMask + */ + + /** + * Constructs a new UpdateSecurityHealthAnalyticsCustomModuleRequest. + * @memberof google.cloud.securitycenter.v1 + * @classdesc Represents an UpdateSecurityHealthAnalyticsCustomModuleRequest. + * @implements IUpdateSecurityHealthAnalyticsCustomModuleRequest + * @constructor + * @param {google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest=} [properties] Properties to set + */ + function UpdateSecurityHealthAnalyticsCustomModuleRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateSecurityHealthAnalyticsCustomModuleRequest securityHealthAnalyticsCustomModule. + * @member {google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule|null|undefined} securityHealthAnalyticsCustomModule + * @memberof google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + * @instance + */ + UpdateSecurityHealthAnalyticsCustomModuleRequest.prototype.securityHealthAnalyticsCustomModule = null; + + /** + * UpdateSecurityHealthAnalyticsCustomModuleRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + * @instance + */ + UpdateSecurityHealthAnalyticsCustomModuleRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateSecurityHealthAnalyticsCustomModuleRequest instance using the specified properties. + * @function create + * @memberof google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest=} [properties] Properties to set + * @returns {google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest} UpdateSecurityHealthAnalyticsCustomModuleRequest instance + */ + UpdateSecurityHealthAnalyticsCustomModuleRequest.create = function create(properties) { + return new UpdateSecurityHealthAnalyticsCustomModuleRequest(properties); + }; + + /** + * Encodes the specified UpdateSecurityHealthAnalyticsCustomModuleRequest message. Does not implicitly {@link google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest} message UpdateSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateSecurityHealthAnalyticsCustomModuleRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.securityHealthAnalyticsCustomModule != null && Object.hasOwnProperty.call(message, "securityHealthAnalyticsCustomModule")) + $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.encode(message.securityHealthAnalyticsCustomModule, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateSecurityHealthAnalyticsCustomModuleRequest message, length delimited. Does not implicitly {@link google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest} message UpdateSecurityHealthAnalyticsCustomModuleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateSecurityHealthAnalyticsCustomModuleRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest} UpdateSecurityHealthAnalyticsCustomModuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateSecurityHealthAnalyticsCustomModuleRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.securityHealthAnalyticsCustomModule = $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateSecurityHealthAnalyticsCustomModuleRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest} UpdateSecurityHealthAnalyticsCustomModuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateSecurityHealthAnalyticsCustomModuleRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateSecurityHealthAnalyticsCustomModuleRequest message. + * @function verify + * @memberof google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateSecurityHealthAnalyticsCustomModuleRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.securityHealthAnalyticsCustomModule != null && message.hasOwnProperty("securityHealthAnalyticsCustomModule")) { + var error = $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.verify(message.securityHealthAnalyticsCustomModule); + if (error) + return "securityHealthAnalyticsCustomModule." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; + + /** + * Creates an UpdateSecurityHealthAnalyticsCustomModuleRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest} UpdateSecurityHealthAnalyticsCustomModuleRequest + */ + UpdateSecurityHealthAnalyticsCustomModuleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) + return object; + var message = new $root.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest(); + if (object.securityHealthAnalyticsCustomModule != null) { + if (typeof object.securityHealthAnalyticsCustomModule !== "object") + throw TypeError(".google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.securityHealthAnalyticsCustomModule: object expected"); + message.securityHealthAnalyticsCustomModule = $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.fromObject(object.securityHealthAnalyticsCustomModule); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateSecurityHealthAnalyticsCustomModuleRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest} message UpdateSecurityHealthAnalyticsCustomModuleRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateSecurityHealthAnalyticsCustomModuleRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.securityHealthAnalyticsCustomModule = null; + object.updateMask = null; + } + if (message.securityHealthAnalyticsCustomModule != null && message.hasOwnProperty("securityHealthAnalyticsCustomModule")) + object.securityHealthAnalyticsCustomModule = $root.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.toObject(message.securityHealthAnalyticsCustomModule, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateSecurityHealthAnalyticsCustomModuleRequest to JSON. + * @function toJSON + * @memberof google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateSecurityHealthAnalyticsCustomModuleRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateSecurityHealthAnalyticsCustomModuleRequest + * @function getTypeUrl + * @memberof google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateSecurityHealthAnalyticsCustomModuleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest"; + }; + + return UpdateSecurityHealthAnalyticsCustomModuleRequest; + })(); + v1.UpdateSourceRequest = (function() { /** @@ -66546,6 +71185,291 @@ return protobuf; })(); + google.type = (function() { + + /** + * Namespace type. + * @memberof google + * @namespace + */ + var type = {}; + + type.Expr = (function() { + + /** + * Properties of an Expr. + * @memberof google.type + * @interface IExpr + * @property {string|null} [expression] Expr expression + * @property {string|null} [title] Expr title + * @property {string|null} [description] Expr description + * @property {string|null} [location] Expr location + */ + + /** + * Constructs a new Expr. + * @memberof google.type + * @classdesc Represents an Expr. + * @implements IExpr + * @constructor + * @param {google.type.IExpr=} [properties] Properties to set + */ + function Expr(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Expr expression. + * @member {string} expression + * @memberof google.type.Expr + * @instance + */ + Expr.prototype.expression = ""; + + /** + * Expr title. + * @member {string} title + * @memberof google.type.Expr + * @instance + */ + Expr.prototype.title = ""; + + /** + * Expr description. + * @member {string} description + * @memberof google.type.Expr + * @instance + */ + Expr.prototype.description = ""; + + /** + * Expr location. + * @member {string} location + * @memberof google.type.Expr + * @instance + */ + Expr.prototype.location = ""; + + /** + * Creates a new Expr instance using the specified properties. + * @function create + * @memberof google.type.Expr + * @static + * @param {google.type.IExpr=} [properties] Properties to set + * @returns {google.type.Expr} Expr instance + */ + Expr.create = function create(properties) { + return new Expr(properties); + }; + + /** + * Encodes the specified Expr message. Does not implicitly {@link google.type.Expr.verify|verify} messages. + * @function encode + * @memberof google.type.Expr + * @static + * @param {google.type.IExpr} message Expr message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Expr.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.expression != null && Object.hasOwnProperty.call(message, "expression")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.expression); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.title); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.location != null && Object.hasOwnProperty.call(message, "location")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.location); + return writer; + }; + + /** + * Encodes the specified Expr message, length delimited. Does not implicitly {@link google.type.Expr.verify|verify} messages. + * @function encodeDelimited + * @memberof google.type.Expr + * @static + * @param {google.type.IExpr} message Expr message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Expr.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Expr message from the specified reader or buffer. + * @function decode + * @memberof google.type.Expr + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.type.Expr} Expr + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Expr.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.type.Expr(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.expression = reader.string(); + break; + } + case 2: { + message.title = reader.string(); + break; + } + case 3: { + message.description = reader.string(); + break; + } + case 4: { + message.location = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Expr message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.type.Expr + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.type.Expr} Expr + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Expr.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Expr message. + * @function verify + * @memberof google.type.Expr + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Expr.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.expression != null && message.hasOwnProperty("expression")) + if (!$util.isString(message.expression)) + return "expression: string expected"; + if (message.title != null && message.hasOwnProperty("title")) + if (!$util.isString(message.title)) + return "title: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.location != null && message.hasOwnProperty("location")) + if (!$util.isString(message.location)) + return "location: string expected"; + return null; + }; + + /** + * Creates an Expr message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.type.Expr + * @static + * @param {Object.} object Plain object + * @returns {google.type.Expr} Expr + */ + Expr.fromObject = function fromObject(object) { + if (object instanceof $root.google.type.Expr) + return object; + var message = new $root.google.type.Expr(); + if (object.expression != null) + message.expression = String(object.expression); + if (object.title != null) + message.title = String(object.title); + if (object.description != null) + message.description = String(object.description); + if (object.location != null) + message.location = String(object.location); + return message; + }; + + /** + * Creates a plain object from an Expr message. Also converts values to other types if specified. + * @function toObject + * @memberof google.type.Expr + * @static + * @param {google.type.Expr} message Expr + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Expr.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.expression = ""; + object.title = ""; + object.description = ""; + object.location = ""; + } + if (message.expression != null && message.hasOwnProperty("expression")) + object.expression = message.expression; + if (message.title != null && message.hasOwnProperty("title")) + object.title = message.title; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.location != null && message.hasOwnProperty("location")) + object.location = message.location; + return object; + }; + + /** + * Converts this Expr to JSON. + * @function toJSON + * @memberof google.type.Expr + * @instance + * @returns {Object.} JSON object + */ + Expr.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Expr + * @function getTypeUrl + * @memberof google.type.Expr + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Expr.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.type.Expr"; + }; + + return Expr; + })(); + + return type; + })(); + google.iam = (function() { /** @@ -69897,291 +74821,6 @@ return iam; })(); - google.type = (function() { - - /** - * Namespace type. - * @memberof google - * @namespace - */ - var type = {}; - - type.Expr = (function() { - - /** - * Properties of an Expr. - * @memberof google.type - * @interface IExpr - * @property {string|null} [expression] Expr expression - * @property {string|null} [title] Expr title - * @property {string|null} [description] Expr description - * @property {string|null} [location] Expr location - */ - - /** - * Constructs a new Expr. - * @memberof google.type - * @classdesc Represents an Expr. - * @implements IExpr - * @constructor - * @param {google.type.IExpr=} [properties] Properties to set - */ - function Expr(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Expr expression. - * @member {string} expression - * @memberof google.type.Expr - * @instance - */ - Expr.prototype.expression = ""; - - /** - * Expr title. - * @member {string} title - * @memberof google.type.Expr - * @instance - */ - Expr.prototype.title = ""; - - /** - * Expr description. - * @member {string} description - * @memberof google.type.Expr - * @instance - */ - Expr.prototype.description = ""; - - /** - * Expr location. - * @member {string} location - * @memberof google.type.Expr - * @instance - */ - Expr.prototype.location = ""; - - /** - * Creates a new Expr instance using the specified properties. - * @function create - * @memberof google.type.Expr - * @static - * @param {google.type.IExpr=} [properties] Properties to set - * @returns {google.type.Expr} Expr instance - */ - Expr.create = function create(properties) { - return new Expr(properties); - }; - - /** - * Encodes the specified Expr message. Does not implicitly {@link google.type.Expr.verify|verify} messages. - * @function encode - * @memberof google.type.Expr - * @static - * @param {google.type.IExpr} message Expr message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Expr.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.expression != null && Object.hasOwnProperty.call(message, "expression")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.expression); - if (message.title != null && Object.hasOwnProperty.call(message, "title")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.title); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.location != null && Object.hasOwnProperty.call(message, "location")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.location); - return writer; - }; - - /** - * Encodes the specified Expr message, length delimited. Does not implicitly {@link google.type.Expr.verify|verify} messages. - * @function encodeDelimited - * @memberof google.type.Expr - * @static - * @param {google.type.IExpr} message Expr message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Expr.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an Expr message from the specified reader or buffer. - * @function decode - * @memberof google.type.Expr - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.type.Expr} Expr - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Expr.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.type.Expr(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.expression = reader.string(); - break; - } - case 2: { - message.title = reader.string(); - break; - } - case 3: { - message.description = reader.string(); - break; - } - case 4: { - message.location = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an Expr message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.type.Expr - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.type.Expr} Expr - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Expr.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Expr message. - * @function verify - * @memberof google.type.Expr - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Expr.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.expression != null && message.hasOwnProperty("expression")) - if (!$util.isString(message.expression)) - return "expression: string expected"; - if (message.title != null && message.hasOwnProperty("title")) - if (!$util.isString(message.title)) - return "title: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.location != null && message.hasOwnProperty("location")) - if (!$util.isString(message.location)) - return "location: string expected"; - return null; - }; - - /** - * Creates an Expr message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.type.Expr - * @static - * @param {Object.} object Plain object - * @returns {google.type.Expr} Expr - */ - Expr.fromObject = function fromObject(object) { - if (object instanceof $root.google.type.Expr) - return object; - var message = new $root.google.type.Expr(); - if (object.expression != null) - message.expression = String(object.expression); - if (object.title != null) - message.title = String(object.title); - if (object.description != null) - message.description = String(object.description); - if (object.location != null) - message.location = String(object.location); - return message; - }; - - /** - * Creates a plain object from an Expr message. Also converts values to other types if specified. - * @function toObject - * @memberof google.type.Expr - * @static - * @param {google.type.Expr} message Expr - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Expr.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.expression = ""; - object.title = ""; - object.description = ""; - object.location = ""; - } - if (message.expression != null && message.hasOwnProperty("expression")) - object.expression = message.expression; - if (message.title != null && message.hasOwnProperty("title")) - object.title = message.title; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.location != null && message.hasOwnProperty("location")) - object.location = message.location; - return object; - }; - - /** - * Converts this Expr to JSON. - * @function toJSON - * @memberof google.type.Expr - * @instance - * @returns {Object.} JSON object - */ - Expr.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Expr - * @function getTypeUrl - * @memberof google.type.Expr - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Expr.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.type.Expr"; - }; - - return Expr; - })(); - - return type; - })(); - google.longrunning = (function() { /** diff --git a/packages/google-cloud-securitycenter/protos/protos.json b/packages/google-cloud-securitycenter/protos/protos.json index 4b015458b2e..cde52a46560 100644 --- a/packages/google-cloud-securitycenter/protos/protos.json +++ b/packages/google-cloud-securitycenter/protos/protos.json @@ -11,12 +11,12 @@ "csharp_namespace": "Google.Cloud.SecurityCenter.V1", "go_package": "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb", "java_multiple_files": true, - "java_outer_classname": "ResourceProto", + "java_outer_classname": "SecurityHealthAnalyticsCustomModuleProto", "java_package": "com.google.cloud.securitycenter.v1", "php_namespace": "Google\\Cloud\\SecurityCenter\\V1", "ruby_package": "Google::Cloud::SecurityCenter::V1", - "(google.api.resource_definition).type": "pubsub.googleapis.com/Topic", - "(google.api.resource_definition).pattern": "projects/{project}/topics/{topic}" + "(google.api.resource_definition).type": "securitycenter.googleapis.com/SecurityHealthAnalyticsSettings", + "(google.api.resource_definition).pattern": "projects/{project}/securityHealthAnalyticsSettings" }, "nested": { "Access": { @@ -390,6 +390,122 @@ } } }, + "EffectiveSecurityHealthAnalyticsCustomModule": { + "options": { + "(google.api.resource).type": "securitycenter.googleapis.com/EffectiveSecurityHealthAnalyticsCustomModule", + "(google.api.resource).pattern": "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "customConfig": { + "type": "CustomConfig", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "enablementState": { + "type": "EnablementState", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "displayName": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "EnablementState": { + "values": { + "ENABLEMENT_STATE_UNSPECIFIED": 0, + "ENABLED": 1, + "DISABLED": 2 + } + } + } + }, + "CustomConfig": { + "fields": { + "predicate": { + "type": "google.type.Expr", + "id": 1 + }, + "customOutput": { + "type": "CustomOutputSpec", + "id": 2 + }, + "resourceSelector": { + "type": "ResourceSelector", + "id": 3 + }, + "severity": { + "type": "Severity", + "id": 4 + }, + "description": { + "type": "string", + "id": 5 + }, + "recommendation": { + "type": "string", + "id": 6 + } + }, + "nested": { + "CustomOutputSpec": { + "fields": { + "properties": { + "rule": "repeated", + "type": "Property", + "id": 1 + } + }, + "nested": { + "Property": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "valueExpression": { + "type": "google.type.Expr", + "id": 2 + } + } + } + } + }, + "ResourceSelector": { + "fields": { + "resourceTypes": { + "rule": "repeated", + "type": "string", + "id": 1 + } + } + }, + "Severity": { + "values": { + "SEVERITY_UNSPECIFIED": 0, + "CRITICAL": 1, + "HIGH": 2, + "MEDIUM": 3, + "LOW": 4 + } + } + } + }, "Exfiltration": { "fields": { "sources": { @@ -622,6 +738,10 @@ "type": "string", "id": 40 }, + "moduleName": { + "type": "string", + "id": 41 + }, "containers": { "rule": "repeated", "type": "Container", @@ -1525,6 +1645,65 @@ } } }, + "SecurityHealthAnalyticsCustomModule": { + "options": { + "(google.api.resource).type": "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule", + "(google.api.resource).pattern": "projects/{project}/securityHealthAnalyticsSettings/customModules/{custom_module}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "displayName": { + "type": "string", + "id": 2 + }, + "enablementState": { + "type": "EnablementState", + "id": 4 + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "lastEditor": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "ancestorModule": { + "type": "string", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + }, + "customConfig": { + "type": "CustomConfig", + "id": 8 + } + }, + "nested": { + "EnablementState": { + "values": { + "ENABLEMENT_STATE_UNSPECIFIED": 0, + "ENABLED": 1, + "DISABLED": 2, + "INHERITED": 3 + } + } + } + }, "SecurityCenter": { "options": { "(google.api.default_host)": "securitycenter.googleapis.com", @@ -1571,6 +1750,38 @@ } ] }, + "CreateSecurityHealthAnalyticsCustomModule": { + "requestType": "CreateSecurityHealthAnalyticsCustomModuleRequest", + "responseType": "SecurityHealthAnalyticsCustomModule", + "options": { + "(google.api.http).post": "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules", + "(google.api.http).body": "security_health_analytics_custom_module", + "(google.api.http).additional_bindings.post": "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/customModules", + "(google.api.http).additional_bindings.body": "security_health_analytics_custom_module", + "(google.api.method_signature)": "parent,security_health_analytics_custom_module" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules", + "body": "security_health_analytics_custom_module", + "additional_bindings": [ + { + "post": "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/customModules", + "body": "security_health_analytics_custom_module" + }, + { + "post": "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/customModules", + "body": "security_health_analytics_custom_module" + } + ] + } + }, + { + "(google.api.method_signature)": "parent,security_health_analytics_custom_module" + } + ] + }, "CreateSource": { "requestType": "CreateSourceRequest", "responseType": "Source", @@ -1735,6 +1946,33 @@ } ] }, + "DeleteSecurityHealthAnalyticsCustomModule": { + "requestType": "DeleteSecurityHealthAnalyticsCustomModuleRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1/{name=organizations/*/securityHealthAnalyticsSettings/customModules/*}", + "(google.api.http).additional_bindings.delete": "/v1/{name=projects/*/securityHealthAnalyticsSettings/customModules/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=organizations/*/securityHealthAnalyticsSettings/customModules/*}", + "additional_bindings": [ + { + "delete": "/v1/{name=folders/*/securityHealthAnalyticsSettings/customModules/*}" + }, + { + "delete": "/v1/{name=projects/*/securityHealthAnalyticsSettings/customModules/*}" + } + ] + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, "GetBigQueryExport": { "requestType": "GetBigQueryExportRequest", "responseType": "BigQueryExport", @@ -1854,6 +2092,60 @@ } ] }, + "GetEffectiveSecurityHealthAnalyticsCustomModule": { + "requestType": "GetEffectiveSecurityHealthAnalyticsCustomModuleRequest", + "responseType": "EffectiveSecurityHealthAnalyticsCustomModule", + "options": { + "(google.api.http).get": "/v1/{name=organizations/*/securityHealthAnalyticsSettings/effectiveCustomModules/*}", + "(google.api.http).additional_bindings.get": "/v1/{name=projects/*/securityHealthAnalyticsSettings/effectiveCustomModules/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=organizations/*/securityHealthAnalyticsSettings/effectiveCustomModules/*}", + "additional_bindings": [ + { + "get": "/v1/{name=folders/*/securityHealthAnalyticsSettings/effectiveCustomModules/*}" + }, + { + "get": "/v1/{name=projects/*/securityHealthAnalyticsSettings/effectiveCustomModules/*}" + } + ] + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "GetSecurityHealthAnalyticsCustomModule": { + "requestType": "GetSecurityHealthAnalyticsCustomModuleRequest", + "responseType": "SecurityHealthAnalyticsCustomModule", + "options": { + "(google.api.http).get": "/v1/{name=organizations/*/securityHealthAnalyticsSettings/customModules/*}", + "(google.api.http).additional_bindings.get": "/v1/{name=projects/*/securityHealthAnalyticsSettings/customModules/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=organizations/*/securityHealthAnalyticsSettings/customModules/*}", + "additional_bindings": [ + { + "get": "/v1/{name=folders/*/securityHealthAnalyticsSettings/customModules/*}" + }, + { + "get": "/v1/{name=projects/*/securityHealthAnalyticsSettings/customModules/*}" + } + ] + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, "GetSource": { "requestType": "GetSourceRequest", "responseType": "Source", @@ -1955,6 +2247,33 @@ } ] }, + "ListDescendantSecurityHealthAnalyticsCustomModules": { + "requestType": "ListDescendantSecurityHealthAnalyticsCustomModulesRequest", + "responseType": "ListDescendantSecurityHealthAnalyticsCustomModulesResponse", + "options": { + "(google.api.http).get": "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules:listDescendant", + "(google.api.http).additional_bindings.get": "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/customModules:listDescendant", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules:listDescendant", + "additional_bindings": [ + { + "get": "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/customModules:listDescendant" + }, + { + "get": "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/customModules:listDescendant" + } + ] + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, "ListFindings": { "requestType": "ListFindingsRequest", "responseType": "ListFindingsResponse", @@ -2032,6 +2351,60 @@ } ] }, + "ListEffectiveSecurityHealthAnalyticsCustomModules": { + "requestType": "ListEffectiveSecurityHealthAnalyticsCustomModulesRequest", + "responseType": "ListEffectiveSecurityHealthAnalyticsCustomModulesResponse", + "options": { + "(google.api.http).get": "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/effectiveCustomModules", + "(google.api.http).additional_bindings.get": "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/effectiveCustomModules", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/effectiveCustomModules", + "additional_bindings": [ + { + "get": "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/effectiveCustomModules" + }, + { + "get": "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/effectiveCustomModules" + } + ] + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "ListSecurityHealthAnalyticsCustomModules": { + "requestType": "ListSecurityHealthAnalyticsCustomModulesRequest", + "responseType": "ListSecurityHealthAnalyticsCustomModulesResponse", + "options": { + "(google.api.http).get": "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules", + "(google.api.http).additional_bindings.get": "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/customModules", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules", + "additional_bindings": [ + { + "get": "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/customModules" + }, + { + "get": "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/customModules" + } + ] + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, "ListSources": { "requestType": "ListSourcesRequest", "responseType": "ListSourcesResponse", @@ -2342,6 +2715,38 @@ } ] }, + "UpdateSecurityHealthAnalyticsCustomModule": { + "requestType": "UpdateSecurityHealthAnalyticsCustomModuleRequest", + "responseType": "SecurityHealthAnalyticsCustomModule", + "options": { + "(google.api.http).patch": "/v1/{security_health_analytics_custom_module.name=organizations/*/securityHealthAnalyticsSettings/customModules/*}", + "(google.api.http).body": "security_health_analytics_custom_module", + "(google.api.http).additional_bindings.patch": "/v1/{security_health_analytics_custom_module.name=projects/*/securityHealthAnalyticsSettings/customModules/*}", + "(google.api.http).additional_bindings.body": "security_health_analytics_custom_module", + "(google.api.method_signature)": "security_health_analytics_custom_module,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{security_health_analytics_custom_module.name=organizations/*/securityHealthAnalyticsSettings/customModules/*}", + "body": "security_health_analytics_custom_module", + "additional_bindings": [ + { + "patch": "/v1/{security_health_analytics_custom_module.name=folders/*/securityHealthAnalyticsSettings/customModules/*}", + "body": "security_health_analytics_custom_module" + }, + { + "patch": "/v1/{security_health_analytics_custom_module.name=projects/*/securityHealthAnalyticsSettings/customModules/*}", + "body": "security_health_analytics_custom_module" + } + ] + } + }, + { + "(google.api.method_signature)": "security_health_analytics_custom_module,update_mask" + } + ] + }, "UpdateSource": { "requestType": "UpdateSourceRequest", "responseType": "Source", @@ -2630,6 +3035,25 @@ } } }, + "CreateSecurityHealthAnalyticsCustomModuleRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + }, + "securityHealthAnalyticsCustomModule": { + "type": "SecurityHealthAnalyticsCustomModule", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "CreateSourceRequest": { "fields": { "parent": { @@ -2673,6 +3097,18 @@ } } }, + "DeleteSecurityHealthAnalyticsCustomModuleRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + } + } + }, "GetBigQueryExportRequest": { "fields": { "name": { @@ -2721,6 +3157,30 @@ } } }, + "GetEffectiveSecurityHealthAnalyticsCustomModuleRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "securitycenter.googleapis.com/EffectiveSecurityHealthAnalyticsCustomModule" + } + } + } + }, + "GetSecurityHealthAnalyticsCustomModuleRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + } + } + }, "GetSourceRequest": { "fields": { "name": { @@ -2866,6 +3326,39 @@ } } }, + "ListDescendantSecurityHealthAnalyticsCustomModulesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListDescendantSecurityHealthAnalyticsCustomModulesResponse": { + "fields": { + "securityHealthAnalyticsCustomModules": { + "rule": "repeated", + "type": "SecurityHealthAnalyticsCustomModule", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, "ListMuteConfigsRequest": { "fields": { "parent": { @@ -2932,6 +3425,72 @@ } } }, + "ListEffectiveSecurityHealthAnalyticsCustomModulesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListEffectiveSecurityHealthAnalyticsCustomModulesResponse": { + "fields": { + "effectiveSecurityHealthAnalyticsCustomModules": { + "rule": "repeated", + "type": "EffectiveSecurityHealthAnalyticsCustomModule", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "ListSecurityHealthAnalyticsCustomModulesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListSecurityHealthAnalyticsCustomModulesResponse": { + "fields": { + "securityHealthAnalyticsCustomModules": { + "rule": "repeated", + "type": "SecurityHealthAnalyticsCustomModule", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, "ListSourcesRequest": { "fields": { "parent": { @@ -3312,6 +3871,21 @@ } } }, + "UpdateSecurityHealthAnalyticsCustomModuleRequest": { + "fields": { + "securityHealthAnalyticsCustomModule": { + "type": "SecurityHealthAnalyticsCustomModule", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, "UpdateSourceRequest": { "fields": { "source": { @@ -7434,6 +8008,37 @@ } } }, + "type": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/type/expr;expr", + "java_multiple_files": true, + "java_outer_classname": "ExprProto", + "java_package": "com.google.type", + "objc_class_prefix": "GTP" + }, + "nested": { + "Expr": { + "fields": { + "expression": { + "type": "string", + "id": 1 + }, + "title": { + "type": "string", + "id": 2 + }, + "description": { + "type": "string", + "id": 3 + }, + "location": { + "type": "string", + "id": 4 + } + } + } + } + }, "iam": { "nested": { "v1": { @@ -7729,37 +8334,6 @@ } } }, - "type": { - "options": { - "go_package": "google.golang.org/genproto/googleapis/type/expr;expr", - "java_multiple_files": true, - "java_outer_classname": "ExprProto", - "java_package": "com.google.type", - "objc_class_prefix": "GTP" - }, - "nested": { - "Expr": { - "fields": { - "expression": { - "type": "string", - "id": 1 - }, - "title": { - "type": "string", - "id": 2 - }, - "description": { - "type": "string", - "id": 3 - }, - "location": { - "type": "string", - "id": 4 - } - } - } - } - }, "longrunning": { "options": { "cc_enable_arenas": true, diff --git a/packages/google-cloud-securitycenter/samples/README.md b/packages/google-cloud-securitycenter/samples/README.md index e320bc1a58b..0502886dfe4 100644 --- a/packages/google-cloud-securitycenter/samples/README.md +++ b/packages/google-cloud-securitycenter/samples/README.md @@ -17,23 +17,30 @@ * [Security_center.create_finding](#security_center.create_finding) * [Security_center.create_mute_config](#security_center.create_mute_config) * [Security_center.create_notification_config](#security_center.create_notification_config) + * [Security_center.create_security_health_analytics_custom_module](#security_center.create_security_health_analytics_custom_module) * [Security_center.create_source](#security_center.create_source) * [Security_center.delete_big_query_export](#security_center.delete_big_query_export) * [Security_center.delete_mute_config](#security_center.delete_mute_config) * [Security_center.delete_notification_config](#security_center.delete_notification_config) + * [Security_center.delete_security_health_analytics_custom_module](#security_center.delete_security_health_analytics_custom_module) * [Security_center.get_big_query_export](#security_center.get_big_query_export) + * [Security_center.get_effective_security_health_analytics_custom_module](#security_center.get_effective_security_health_analytics_custom_module) * [Security_center.get_iam_policy](#security_center.get_iam_policy) * [Security_center.get_mute_config](#security_center.get_mute_config) * [Security_center.get_notification_config](#security_center.get_notification_config) * [Security_center.get_organization_settings](#security_center.get_organization_settings) + * [Security_center.get_security_health_analytics_custom_module](#security_center.get_security_health_analytics_custom_module) * [Security_center.get_source](#security_center.get_source) * [Security_center.group_assets](#security_center.group_assets) * [Security_center.group_findings](#security_center.group_findings) * [Security_center.list_assets](#security_center.list_assets) * [Security_center.list_big_query_exports](#security_center.list_big_query_exports) + * [Security_center.list_descendant_security_health_analytics_custom_modules](#security_center.list_descendant_security_health_analytics_custom_modules) + * [Security_center.list_effective_security_health_analytics_custom_modules](#security_center.list_effective_security_health_analytics_custom_modules) * [Security_center.list_findings](#security_center.list_findings) * [Security_center.list_mute_configs](#security_center.list_mute_configs) * [Security_center.list_notification_configs](#security_center.list_notification_configs) + * [Security_center.list_security_health_analytics_custom_modules](#security_center.list_security_health_analytics_custom_modules) * [Security_center.list_sources](#security_center.list_sources) * [Security_center.run_asset_discovery](#security_center.run_asset_discovery) * [Security_center.set_finding_state](#security_center.set_finding_state) @@ -46,6 +53,7 @@ * [Security_center.update_mute_config](#security_center.update_mute_config) * [Security_center.update_notification_config](#security_center.update_notification_config) * [Security_center.update_organization_settings](#security_center.update_organization_settings) + * [Security_center.update_security_health_analytics_custom_module](#security_center.update_security_health_analytics_custom_module) * [Security_center.update_security_marks](#security_center.update_security_marks) * [Security_center.update_source](#security_center.update_source) * [Security_center.create_finding](#security_center.create_finding) @@ -192,6 +200,23 @@ __Usage:__ +### Security_center.create_security_health_analytics_custom_module + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_security_health_analytics_custom_module.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_security_health_analytics_custom_module.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_security_health_analytics_custom_module.js` + + +----- + + + + ### Security_center.create_source View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_source.js). @@ -260,6 +285,23 @@ __Usage:__ +### Security_center.delete_security_health_analytics_custom_module + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_security_health_analytics_custom_module.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_security_health_analytics_custom_module.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_security_health_analytics_custom_module.js` + + +----- + + + + ### Security_center.get_big_query_export View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_big_query_export.js). @@ -277,6 +319,23 @@ __Usage:__ +### Security_center.get_effective_security_health_analytics_custom_module + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_effective_security_health_analytics_custom_module.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_effective_security_health_analytics_custom_module.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_effective_security_health_analytics_custom_module.js` + + +----- + + + + ### Security_center.get_iam_policy View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_iam_policy.js). @@ -345,6 +404,23 @@ __Usage:__ +### Security_center.get_security_health_analytics_custom_module + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_security_health_analytics_custom_module.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_security_health_analytics_custom_module.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_security_health_analytics_custom_module.js` + + +----- + + + + ### Security_center.get_source View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_source.js). @@ -430,6 +506,40 @@ __Usage:__ +### Security_center.list_descendant_security_health_analytics_custom_modules + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_descendant_security_health_analytics_custom_modules.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_descendant_security_health_analytics_custom_modules.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_descendant_security_health_analytics_custom_modules.js` + + +----- + + + + +### Security_center.list_effective_security_health_analytics_custom_modules + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_effective_security_health_analytics_custom_modules.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_effective_security_health_analytics_custom_modules.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_effective_security_health_analytics_custom_modules.js` + + +----- + + + + ### Security_center.list_findings View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_findings.js). @@ -481,6 +591,23 @@ __Usage:__ +### Security_center.list_security_health_analytics_custom_modules + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_security_health_analytics_custom_modules.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_security_health_analytics_custom_modules.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_security_health_analytics_custom_modules.js` + + +----- + + + + ### Security_center.list_sources View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_sources.js). @@ -685,6 +812,23 @@ __Usage:__ +### Security_center.update_security_health_analytics_custom_module + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_security_health_analytics_custom_module.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_security_health_analytics_custom_module.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_security_health_analytics_custom_module.js` + + +----- + + + + ### Security_center.update_security_marks View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_security_marks.js). diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_security_health_analytics_custom_module.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_security_health_analytics_custom_module.js new file mode 100644 index 00000000000..1bd26975723 --- /dev/null +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.create_security_health_analytics_custom_module.js @@ -0,0 +1,71 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, securityHealthAnalyticsCustomModule) { + // [START securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Resource name of the new custom module's parent. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" + */ + // const parent = 'abc123' + /** + * Required. SecurityHealthAnalytics custom module to create. The provided + * name is ignored and reset with provided parent information and + * server-generated ID. + */ + // const securityHealthAnalyticsCustomModule = {} + + // Imports the Securitycenter library + const {SecurityCenterClient} = require('@google-cloud/security-center').v1; + + // Instantiates a client + const securitycenterClient = new SecurityCenterClient(); + + async function callCreateSecurityHealthAnalyticsCustomModule() { + // Construct request + const request = { + parent, + securityHealthAnalyticsCustomModule, + }; + + // Run request + const response = await securitycenterClient.createSecurityHealthAnalyticsCustomModule(request); + console.log(response); + } + + callCreateSecurityHealthAnalyticsCustomModule(); + // [END securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_security_health_analytics_custom_module.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_security_health_analytics_custom_module.js new file mode 100644 index 00000000000..86a77685ef9 --- /dev/null +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.delete_security_health_analytics_custom_module.js @@ -0,0 +1,65 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the custom module to delete. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", + * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", + * or + * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" + */ + // const name = 'abc123' + + // Imports the Securitycenter library + const {SecurityCenterClient} = require('@google-cloud/security-center').v1; + + // Instantiates a client + const securitycenterClient = new SecurityCenterClient(); + + async function callDeleteSecurityHealthAnalyticsCustomModule() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await securitycenterClient.deleteSecurityHealthAnalyticsCustomModule(request); + console.log(response); + } + + callDeleteSecurityHealthAnalyticsCustomModule(); + // [END securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_effective_security_health_analytics_custom_module.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_effective_security_health_analytics_custom_module.js new file mode 100644 index 00000000000..476cc6aaf3f --- /dev/null +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_effective_security_health_analytics_custom_module.js @@ -0,0 +1,65 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the effective custom module to get. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + * or + * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}" + */ + // const name = 'abc123' + + // Imports the Securitycenter library + const {SecurityCenterClient} = require('@google-cloud/security-center').v1; + + // Instantiates a client + const securitycenterClient = new SecurityCenterClient(); + + async function callGetEffectiveSecurityHealthAnalyticsCustomModule() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await securitycenterClient.getEffectiveSecurityHealthAnalyticsCustomModule(request); + console.log(response); + } + + callGetEffectiveSecurityHealthAnalyticsCustomModule(); + // [END securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_security_health_analytics_custom_module.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_security_health_analytics_custom_module.js new file mode 100644 index 00000000000..1c231328f48 --- /dev/null +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.get_security_health_analytics_custom_module.js @@ -0,0 +1,65 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of the custom module to get. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", + * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", + * or + * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" + */ + // const name = 'abc123' + + // Imports the Securitycenter library + const {SecurityCenterClient} = require('@google-cloud/security-center').v1; + + // Instantiates a client + const securitycenterClient = new SecurityCenterClient(); + + async function callGetSecurityHealthAnalyticsCustomModule() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await securitycenterClient.getSecurityHealthAnalyticsCustomModule(request); + console.log(response); + } + + callGetSecurityHealthAnalyticsCustomModule(); + // [END securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_descendant_security_health_analytics_custom_modules.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_descendant_security_health_analytics_custom_modules.js new file mode 100644 index 00000000000..778c97b4877 --- /dev/null +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_descendant_security_health_analytics_custom_modules.js @@ -0,0 +1,75 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of parent to list descendant custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" + */ + // const parent = 'abc123' + /** + * The maximum number of results to return in a single response. Default is + * 10, minimum is 1, maximum is 1000. + */ + // const pageSize = 1234 + /** + * The value returned by the last call indicating a continuation + */ + // const pageToken = 'abc123' + + // Imports the Securitycenter library + const {SecurityCenterClient} = require('@google-cloud/security-center').v1; + + // Instantiates a client + const securitycenterClient = new SecurityCenterClient(); + + async function callListDescendantSecurityHealthAnalyticsCustomModules() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await securitycenterClient.listDescendantSecurityHealthAnalyticsCustomModulesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListDescendantSecurityHealthAnalyticsCustomModules(); + // [END securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_effective_security_health_analytics_custom_modules.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_effective_security_health_analytics_custom_modules.js new file mode 100644 index 00000000000..5eac21f2c77 --- /dev/null +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_effective_security_health_analytics_custom_modules.js @@ -0,0 +1,75 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of parent to list effective custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" + */ + // const parent = 'abc123' + /** + * The maximum number of results to return in a single response. Default is + * 10, minimum is 1, maximum is 1000. + */ + // const pageSize = 1234 + /** + * The value returned by the last call indicating a continuation + */ + // const pageToken = 'abc123' + + // Imports the Securitycenter library + const {SecurityCenterClient} = require('@google-cloud/security-center').v1; + + // Instantiates a client + const securitycenterClient = new SecurityCenterClient(); + + async function callListEffectiveSecurityHealthAnalyticsCustomModules() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await securitycenterClient.listEffectiveSecurityHealthAnalyticsCustomModulesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListEffectiveSecurityHealthAnalyticsCustomModules(); + // [END securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_security_health_analytics_custom_modules.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_security_health_analytics_custom_modules.js new file mode 100644 index 00000000000..513f96d67aa --- /dev/null +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.list_security_health_analytics_custom_modules.js @@ -0,0 +1,75 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Name of parent to list custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" + */ + // const parent = 'abc123' + /** + * The maximum number of results to return in a single response. Default is + * 10, minimum is 1, maximum is 1000. + */ + // const pageSize = 1234 + /** + * The value returned by the last call indicating a continuation + */ + // const pageToken = 'abc123' + + // Imports the Securitycenter library + const {SecurityCenterClient} = require('@google-cloud/security-center').v1; + + // Instantiates a client + const securitycenterClient = new SecurityCenterClient(); + + async function callListSecurityHealthAnalyticsCustomModules() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await securitycenterClient.listSecurityHealthAnalyticsCustomModulesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListSecurityHealthAnalyticsCustomModules(); + // [END securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_security_health_analytics_custom_module.js b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_security_health_analytics_custom_module.js new file mode 100644 index 00000000000..f23ceaf32a2 --- /dev/null +++ b/packages/google-cloud-securitycenter/samples/generated/v1/security_center.update_security_health_analytics_custom_module.js @@ -0,0 +1,65 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(securityHealthAnalyticsCustomModule) { + // [START securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The SecurityHealthAnalytics custom module to update. + */ + // const securityHealthAnalyticsCustomModule = {} + /** + * The list of fields to update. + */ + // const updateMask = {} + + // Imports the Securitycenter library + const {SecurityCenterClient} = require('@google-cloud/security-center').v1; + + // Instantiates a client + const securitycenterClient = new SecurityCenterClient(); + + async function callUpdateSecurityHealthAnalyticsCustomModule() { + // Construct request + const request = { + securityHealthAnalyticsCustomModule, + }; + + // Run request + const response = await securitycenterClient.updateSecurityHealthAnalyticsCustomModule(request); + console.log(response); + } + + callUpdateSecurityHealthAnalyticsCustomModule(); + // [END securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata.google.cloud.securitycenter.v1.json b/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata.google.cloud.securitycenter.v1.json index 981f1def66d..be3fc9a3e1c 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata.google.cloud.securitycenter.v1.json +++ b/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata.google.cloud.securitycenter.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-securitycenter", - "version": "7.2.0", + "version": "7.2.1", "language": "TYPESCRIPT", "apis": [ { @@ -59,6 +59,50 @@ } } }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_async", + "title": "SecurityCenter createSecurityHealthAnalyticsCustomModule Sample", + "origin": "API_DEFINITION", + "description": " Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.", + "canonical": true, + "file": "security_center.create_security_health_analytics_custom_module.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSecurityHealthAnalyticsCustomModule", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "security_health_analytics_custom_module", + "type": ".google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule" + } + ], + "resultType": ".google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" + }, + "method": { + "shortName": "CreateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + } + }, { "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSource_async", "title": "SecurityCenter createSource Sample", @@ -327,6 +371,46 @@ } } }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_async", + "title": "SecurityCenter deleteSecurityHealthAnalyticsCustomModule Sample", + "origin": "API_DEFINITION", + "description": " Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.", + "canonical": true, + "file": "security_center.delete_security_health_analytics_custom_module.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteSecurityHealthAnalyticsCustomModule", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" + }, + "method": { + "shortName": "DeleteSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + } + }, { "regionTag": "securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_async", "title": "SecurityCenter getBigQueryExport Sample", @@ -531,6 +615,86 @@ } } }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_async", + "title": "SecurityCenter getEffectiveSecurityHealthAnalyticsCustomModule Sample", + "origin": "API_DEFINITION", + "description": " Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.", + "canonical": true, + "file": "security_center.get_effective_security_health_analytics_custom_module.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveSecurityHealthAnalyticsCustomModule", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" + }, + "method": { + "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + } + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_async", + "title": "SecurityCenter getSecurityHealthAnalyticsCustomModule Sample", + "origin": "API_DEFINITION", + "description": " Retrieves a SecurityHealthAnalyticsCustomModule.", + "canonical": true, + "file": "security_center.get_security_health_analytics_custom_module.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSecurityHealthAnalyticsCustomModule", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" + }, + "method": { + "shortName": "GetSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + } + }, { "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSource_async", "title": "SecurityCenter getSource Sample", @@ -767,6 +931,54 @@ } } }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_async", + "title": "SecurityCenter listDescendantSecurityHealthAnalyticsCustomModules Sample", + "origin": "API_DEFINITION", + "description": " Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent\u2019s CRM descendants.", + "canonical": true, + "file": "security_center.list_descendant_security_health_analytics_custom_modules.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListDescendantSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantSecurityHealthAnalyticsCustomModules", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" + }, + "method": { + "shortName": "ListDescendantSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + } + }, { "regionTag": "securitycenter_v1_generated_SecurityCenter_ListFindings_async", "title": "SecurityCenter listFindings Sample", @@ -931,6 +1143,102 @@ } } }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_async", + "title": "SecurityCenter listEffectiveSecurityHealthAnalyticsCustomModules Sample", + "origin": "API_DEFINITION", + "description": " Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.", + "canonical": true, + "file": "security_center.list_effective_security_health_analytics_custom_modules.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveSecurityHealthAnalyticsCustomModules", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" + }, + "method": { + "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + } + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_async", + "title": "SecurityCenter listSecurityHealthAnalyticsCustomModules Sample", + "origin": "API_DEFINITION", + "description": " Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.", + "canonical": true, + "file": "security_center.list_security_health_analytics_custom_modules.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSecurityHealthAnalyticsCustomModules", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" + }, + "method": { + "shortName": "ListSecurityHealthAnalyticsCustomModules", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSecurityHealthAnalyticsCustomModules", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + } + }, { "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSources_async", "title": "SecurityCenter listSources Sample", @@ -1423,6 +1731,50 @@ } } }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_async", + "title": "SecurityCenter updateSecurityHealthAnalyticsCustomModule Sample", + "origin": "API_DEFINITION", + "description": " Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update mask. Updating the enablement state is supported on both resident and inherited modules (though resident modules cannot have an enablement state of \u201cinherited\u201d). Updating the display name and custom config of a module is supported on resident modules only.", + "canonical": true, + "file": "security_center.update_security_health_analytics_custom_module.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityHealthAnalyticsCustomModule", + "async": true, + "parameters": [ + { + "name": "security_health_analytics_custom_module", + "type": ".google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule", + "client": { + "shortName": "SecurityCenterClient", + "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" + }, + "method": { + "shortName": "UpdateSecurityHealthAnalyticsCustomModule", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityHealthAnalyticsCustomModule", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + } + }, { "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSource_async", "title": "SecurityCenter updateSource Sample", diff --git a/packages/google-cloud-securitycenter/samples/generated/v1beta1/snippet_metadata.google.cloud.securitycenter.v1beta1.json b/packages/google-cloud-securitycenter/samples/generated/v1beta1/snippet_metadata.google.cloud.securitycenter.v1beta1.json index e04e8e37d8d..72b89e8887d 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1beta1/snippet_metadata.google.cloud.securitycenter.v1beta1.json +++ b/packages/google-cloud-securitycenter/samples/generated/v1beta1/snippet_metadata.google.cloud.securitycenter.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-securitycenter", - "version": "7.2.0", + "version": "7.2.1", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-securitycenter/samples/generated/v1p1beta1/snippet_metadata.google.cloud.securitycenter.v1p1beta1.json b/packages/google-cloud-securitycenter/samples/generated/v1p1beta1/snippet_metadata.google.cloud.securitycenter.v1p1beta1.json index 32f0cabb54f..e86dad841f0 100644 --- a/packages/google-cloud-securitycenter/samples/generated/v1p1beta1/snippet_metadata.google.cloud.securitycenter.v1p1beta1.json +++ b/packages/google-cloud-securitycenter/samples/generated/v1p1beta1/snippet_metadata.google.cloud.securitycenter.v1p1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-securitycenter", - "version": "7.2.0", + "version": "7.2.1", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-securitycenter/src/v1/gapic_metadata.json b/packages/google-cloud-securitycenter/src/v1/gapic_metadata.json index adec8cae59d..8abf26ce403 100644 --- a/packages/google-cloud-securitycenter/src/v1/gapic_metadata.json +++ b/packages/google-cloud-securitycenter/src/v1/gapic_metadata.json @@ -10,6 +10,11 @@ "grpc": { "libraryClient": "SecurityCenterClient", "rpcs": { + "CreateSecurityHealthAnalyticsCustomModule": { + "methods": [ + "createSecurityHealthAnalyticsCustomModule" + ] + }, "CreateSource": { "methods": [ "createSource" @@ -40,6 +45,11 @@ "deleteNotificationConfig" ] }, + "DeleteSecurityHealthAnalyticsCustomModule": { + "methods": [ + "deleteSecurityHealthAnalyticsCustomModule" + ] + }, "GetBigQueryExport": { "methods": [ "getBigQueryExport" @@ -65,6 +75,16 @@ "getOrganizationSettings" ] }, + "GetEffectiveSecurityHealthAnalyticsCustomModule": { + "methods": [ + "getEffectiveSecurityHealthAnalyticsCustomModule" + ] + }, + "GetSecurityHealthAnalyticsCustomModule": { + "methods": [ + "getSecurityHealthAnalyticsCustomModule" + ] + }, "GetSource": { "methods": [ "getSource" @@ -115,6 +135,11 @@ "updateOrganizationSettings" ] }, + "UpdateSecurityHealthAnalyticsCustomModule": { + "methods": [ + "updateSecurityHealthAnalyticsCustomModule" + ] + }, "UpdateSource": { "methods": [ "updateSource" @@ -171,6 +196,13 @@ "listAssetsAsync" ] }, + "ListDescendantSecurityHealthAnalyticsCustomModules": { + "methods": [ + "listDescendantSecurityHealthAnalyticsCustomModules", + "listDescendantSecurityHealthAnalyticsCustomModulesStream", + "listDescendantSecurityHealthAnalyticsCustomModulesAsync" + ] + }, "ListFindings": { "methods": [ "listFindings", @@ -192,6 +224,20 @@ "listNotificationConfigsAsync" ] }, + "ListEffectiveSecurityHealthAnalyticsCustomModules": { + "methods": [ + "listEffectiveSecurityHealthAnalyticsCustomModules", + "listEffectiveSecurityHealthAnalyticsCustomModulesStream", + "listEffectiveSecurityHealthAnalyticsCustomModulesAsync" + ] + }, + "ListSecurityHealthAnalyticsCustomModules": { + "methods": [ + "listSecurityHealthAnalyticsCustomModules", + "listSecurityHealthAnalyticsCustomModulesStream", + "listSecurityHealthAnalyticsCustomModulesAsync" + ] + }, "ListSources": { "methods": [ "listSources", @@ -211,6 +257,11 @@ "grpc-fallback": { "libraryClient": "SecurityCenterClient", "rpcs": { + "CreateSecurityHealthAnalyticsCustomModule": { + "methods": [ + "createSecurityHealthAnalyticsCustomModule" + ] + }, "CreateSource": { "methods": [ "createSource" @@ -241,6 +292,11 @@ "deleteNotificationConfig" ] }, + "DeleteSecurityHealthAnalyticsCustomModule": { + "methods": [ + "deleteSecurityHealthAnalyticsCustomModule" + ] + }, "GetBigQueryExport": { "methods": [ "getBigQueryExport" @@ -266,6 +322,16 @@ "getOrganizationSettings" ] }, + "GetEffectiveSecurityHealthAnalyticsCustomModule": { + "methods": [ + "getEffectiveSecurityHealthAnalyticsCustomModule" + ] + }, + "GetSecurityHealthAnalyticsCustomModule": { + "methods": [ + "getSecurityHealthAnalyticsCustomModule" + ] + }, "GetSource": { "methods": [ "getSource" @@ -316,6 +382,11 @@ "updateOrganizationSettings" ] }, + "UpdateSecurityHealthAnalyticsCustomModule": { + "methods": [ + "updateSecurityHealthAnalyticsCustomModule" + ] + }, "UpdateSource": { "methods": [ "updateSource" @@ -372,6 +443,13 @@ "listAssetsAsync" ] }, + "ListDescendantSecurityHealthAnalyticsCustomModules": { + "methods": [ + "listDescendantSecurityHealthAnalyticsCustomModules", + "listDescendantSecurityHealthAnalyticsCustomModulesStream", + "listDescendantSecurityHealthAnalyticsCustomModulesAsync" + ] + }, "ListFindings": { "methods": [ "listFindings", @@ -393,6 +471,20 @@ "listNotificationConfigsAsync" ] }, + "ListEffectiveSecurityHealthAnalyticsCustomModules": { + "methods": [ + "listEffectiveSecurityHealthAnalyticsCustomModules", + "listEffectiveSecurityHealthAnalyticsCustomModulesStream", + "listEffectiveSecurityHealthAnalyticsCustomModulesAsync" + ] + }, + "ListSecurityHealthAnalyticsCustomModules": { + "methods": [ + "listSecurityHealthAnalyticsCustomModules", + "listSecurityHealthAnalyticsCustomModulesStream", + "listSecurityHealthAnalyticsCustomModulesAsync" + ] + }, "ListSources": { "methods": [ "listSources", diff --git a/packages/google-cloud-securitycenter/src/v1/security_center_client.ts b/packages/google-cloud-securitycenter/src/v1/security_center_client.ts index 4255621daa3..1f7a46bb19b 100644 --- a/packages/google-cloud-securitycenter/src/v1/security_center_client.ts +++ b/packages/google-cloud-securitycenter/src/v1/security_center_client.ts @@ -196,6 +196,14 @@ export class SecurityCenterClient { folderNotificationConfigPathTemplate: new this._gaxModule.PathTemplate( 'folders/{folder}/notificationConfigs/{notification_config}' ), + folderSecurityHealthAnalyticsSettingsCustomModulePathTemplate: + new this._gaxModule.PathTemplate( + 'folders/{folder}/securityHealthAnalyticsSettings/customModules/{custom_module}' + ), + folderSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate: + new this._gaxModule.PathTemplate( + 'folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}' + ), folderSourcePathTemplate: new this._gaxModule.PathTemplate( 'folders/{folder}/sources/{source}' ), @@ -230,6 +238,18 @@ export class SecurityCenterClient { new this._gaxModule.PathTemplate( 'organizations/{organization}/notificationConfigs/{notification_config}' ), + organizationSecurityHealthAnalyticsSettingsPathTemplate: + new this._gaxModule.PathTemplate( + 'organizations/{organization}/securityHealthAnalyticsSettings' + ), + organizationSecurityHealthAnalyticsSettingsCustomModulePathTemplate: + new this._gaxModule.PathTemplate( + 'organizations/{organization}/securityHealthAnalyticsSettings/customModules/{custom_module}' + ), + organizationSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate: + new this._gaxModule.PathTemplate( + 'organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}' + ), organizationSettingsPathTemplate: new this._gaxModule.PathTemplate( 'organizations/{organization}/organizationSettings' ), @@ -262,6 +282,14 @@ export class SecurityCenterClient { projectNotificationConfigPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/notificationConfigs/{notification_config}' ), + projectSecurityHealthAnalyticsSettingsCustomModulePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/securityHealthAnalyticsSettings/customModules/{custom_module}' + ), + projectSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}' + ), projectSourcePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/sources/{source}' ), @@ -297,6 +325,12 @@ export class SecurityCenterClient { 'nextPageToken', 'listAssetsResults' ), + listDescendantSecurityHealthAnalyticsCustomModules: + new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'securityHealthAnalyticsCustomModules' + ), listFindings: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -312,6 +346,18 @@ export class SecurityCenterClient { 'nextPageToken', 'notificationConfigs' ), + listEffectiveSecurityHealthAnalyticsCustomModules: + new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'effectiveSecurityHealthAnalyticsCustomModules' + ), + listSecurityHealthAnalyticsCustomModules: + new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'securityHealthAnalyticsCustomModules' + ), listSources: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -433,24 +479,31 @@ export class SecurityCenterClient { // and create an API call method for each. const securityCenterStubMethods = [ 'bulkMuteFindings', + 'createSecurityHealthAnalyticsCustomModule', 'createSource', 'createFinding', 'createMuteConfig', 'createNotificationConfig', 'deleteMuteConfig', 'deleteNotificationConfig', + 'deleteSecurityHealthAnalyticsCustomModule', 'getBigQueryExport', 'getIamPolicy', 'getMuteConfig', 'getNotificationConfig', 'getOrganizationSettings', + 'getEffectiveSecurityHealthAnalyticsCustomModule', + 'getSecurityHealthAnalyticsCustomModule', 'getSource', 'groupAssets', 'groupFindings', 'listAssets', + 'listDescendantSecurityHealthAnalyticsCustomModules', 'listFindings', 'listMuteConfigs', 'listNotificationConfigs', + 'listEffectiveSecurityHealthAnalyticsCustomModules', + 'listSecurityHealthAnalyticsCustomModules', 'listSources', 'runAssetDiscovery', 'setFindingState', @@ -462,6 +515,7 @@ export class SecurityCenterClient { 'updateMuteConfig', 'updateNotificationConfig', 'updateOrganizationSettings', + 'updateSecurityHealthAnalyticsCustomModule', 'updateSource', 'updateSecurityMarks', 'createBigQueryExport', @@ -554,6 +608,117 @@ export class SecurityCenterClient { // ------------------- // -- Service calls -- // ------------------- + /** + * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the + * given CRM parent, and also creates inherited + * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given + * parent. These modules are enabled by default. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Resource name of the new custom module's parent. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" + * @param {google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule} request.securityHealthAnalyticsCustomModule + * Required. SecurityHealthAnalytics custom module to create. The provided + * name is ignored and reset with provided parent information and + * server-generated ID. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule | SecurityHealthAnalyticsCustomModule}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/security_center.create_security_health_analytics_custom_module.js + * region_tag:securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_async + */ + createSecurityHealthAnalyticsCustomModule( + request?: protos.google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + ( + | protos.google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest + | undefined + ), + {} | undefined + ] + >; + createSecurityHealthAnalyticsCustomModule( + request: protos.google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + | protos.google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createSecurityHealthAnalyticsCustomModule( + request: protos.google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest, + callback: Callback< + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + | protos.google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createSecurityHealthAnalyticsCustomModule( + request?: protos.google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + | protos.google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + | protos.google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + ( + | protos.google.cloud.securitycenter.v1.ICreateSecurityHealthAnalyticsCustomModuleRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createSecurityHealthAnalyticsCustomModule( + request, + options, + callback + ); + } /** * Creates a source. * @@ -1171,6 +1336,113 @@ export class SecurityCenterClient { callback ); } + /** + * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its + * descendants in the CRM hierarchy. This method is only supported for + * resident custom modules. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Name of the custom module to delete. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", + * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", + * or + * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.protobuf.Empty | Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/security_center.delete_security_health_analytics_custom_module.js + * region_tag:securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_async + */ + deleteSecurityHealthAnalyticsCustomModule( + request?: protos.google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest + | undefined + ), + {} | undefined + ] + >; + deleteSecurityHealthAnalyticsCustomModule( + request: protos.google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteSecurityHealthAnalyticsCustomModule( + request: protos.google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteSecurityHealthAnalyticsCustomModule( + request?: protos.google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.securitycenter.v1.IDeleteSecurityHealthAnalyticsCustomModuleRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteSecurityHealthAnalyticsCustomModule( + request, + options, + callback + ); + } /** * Gets a BigQuery export. * @@ -1655,76 +1927,85 @@ export class SecurityCenterClient { ); } /** - * Gets a source. + * Retrieves an EffectiveSecurityHealthAnalyticsCustomModule. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. Relative resource name of the source. Its format is - * "organizations/[organization_id]/source/[source_id]". + * Required. Name of the effective custom module to get. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + * or + * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link google.cloud.securitycenter.v1.Source | Source}. + * The first element of the array is an object representing {@link google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule | EffectiveSecurityHealthAnalyticsCustomModule}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/security_center.get_source.js - * region_tag:securitycenter_v1_generated_SecurityCenter_GetSource_async + * @example include:samples/generated/v1/security_center.get_effective_security_health_analytics_custom_module.js + * region_tag:securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_async */ - getSource( - request?: protos.google.cloud.securitycenter.v1.IGetSourceRequest, + getEffectiveSecurityHealthAnalyticsCustomModule( + request?: protos.google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.securitycenter.v1.ISource, - protos.google.cloud.securitycenter.v1.IGetSourceRequest | undefined, + protos.google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule, + ( + | protos.google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest + | undefined + ), {} | undefined ] >; - getSource( - request: protos.google.cloud.securitycenter.v1.IGetSourceRequest, + getEffectiveSecurityHealthAnalyticsCustomModule( + request: protos.google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest, options: CallOptions, callback: Callback< - protos.google.cloud.securitycenter.v1.ISource, - | protos.google.cloud.securitycenter.v1.IGetSourceRequest + protos.google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule, + | protos.google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest | null | undefined, {} | null | undefined > ): void; - getSource( - request: protos.google.cloud.securitycenter.v1.IGetSourceRequest, + getEffectiveSecurityHealthAnalyticsCustomModule( + request: protos.google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest, callback: Callback< - protos.google.cloud.securitycenter.v1.ISource, - | protos.google.cloud.securitycenter.v1.IGetSourceRequest + protos.google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule, + | protos.google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest | null | undefined, {} | null | undefined > ): void; - getSource( - request?: protos.google.cloud.securitycenter.v1.IGetSourceRequest, + getEffectiveSecurityHealthAnalyticsCustomModule( + request?: protos.google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.securitycenter.v1.ISource, - | protos.google.cloud.securitycenter.v1.IGetSourceRequest + protos.google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule, + | protos.google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.securitycenter.v1.ISource, - | protos.google.cloud.securitycenter.v1.IGetSourceRequest + protos.google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule, + | protos.google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.securitycenter.v1.ISource, - protos.google.cloud.securitycenter.v1.IGetSourceRequest | undefined, + protos.google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule, + ( + | protos.google.cloud.securitycenter.v1.IGetEffectiveSecurityHealthAnalyticsCustomModuleRequest + | undefined + ), {} | undefined ] > | void { @@ -1744,87 +2025,92 @@ export class SecurityCenterClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.getSource(request, options, callback); + return this.innerApiCalls.getEffectiveSecurityHealthAnalyticsCustomModule( + request, + options, + callback + ); } /** - * Updates the state of a finding. + * Retrieves a SecurityHealthAnalyticsCustomModule. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The [relative resource - * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) - * of the finding. Example: - * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", - * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". - * @param {google.cloud.securitycenter.v1.Finding.State} request.state - * Required. The desired State of the finding. - * @param {google.protobuf.Timestamp} request.startTime - * Required. The time at which the updated state takes effect. + * Required. Name of the custom module to get. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", + * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", + * or + * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link google.cloud.securitycenter.v1.Finding | Finding}. + * The first element of the array is an object representing {@link google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule | SecurityHealthAnalyticsCustomModule}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/security_center.set_finding_state.js - * region_tag:securitycenter_v1_generated_SecurityCenter_SetFindingState_async + * @example include:samples/generated/v1/security_center.get_security_health_analytics_custom_module.js + * region_tag:securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_async */ - setFindingState( - request?: protos.google.cloud.securitycenter.v1.ISetFindingStateRequest, + getSecurityHealthAnalyticsCustomModule( + request?: protos.google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.securitycenter.v1.IFinding, - protos.google.cloud.securitycenter.v1.ISetFindingStateRequest | undefined, + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + ( + | protos.google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest + | undefined + ), {} | undefined ] >; - setFindingState( - request: protos.google.cloud.securitycenter.v1.ISetFindingStateRequest, + getSecurityHealthAnalyticsCustomModule( + request: protos.google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest, options: CallOptions, callback: Callback< - protos.google.cloud.securitycenter.v1.IFinding, - | protos.google.cloud.securitycenter.v1.ISetFindingStateRequest + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + | protos.google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest | null | undefined, {} | null | undefined > ): void; - setFindingState( - request: protos.google.cloud.securitycenter.v1.ISetFindingStateRequest, + getSecurityHealthAnalyticsCustomModule( + request: protos.google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest, callback: Callback< - protos.google.cloud.securitycenter.v1.IFinding, - | protos.google.cloud.securitycenter.v1.ISetFindingStateRequest + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + | protos.google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest | null | undefined, {} | null | undefined > ): void; - setFindingState( - request?: protos.google.cloud.securitycenter.v1.ISetFindingStateRequest, + getSecurityHealthAnalyticsCustomModule( + request?: protos.google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.securitycenter.v1.IFinding, - | protos.google.cloud.securitycenter.v1.ISetFindingStateRequest + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + | protos.google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.securitycenter.v1.IFinding, - | protos.google.cloud.securitycenter.v1.ISetFindingStateRequest + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + | protos.google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.securitycenter.v1.IFinding, - protos.google.cloud.securitycenter.v1.ISetFindingStateRequest | undefined, + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + ( + | protos.google.cloud.securitycenter.v1.IGetSecurityHealthAnalyticsCustomModuleRequest + | undefined + ), {} | undefined ] > | void { @@ -1844,7 +2130,203 @@ export class SecurityCenterClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.setFindingState(request, options, callback); + return this.innerApiCalls.getSecurityHealthAnalyticsCustomModule( + request, + options, + callback + ); + } + /** + * Gets a source. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Relative resource name of the source. Its format is + * "organizations/[organization_id]/source/[source_id]". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.cloud.securitycenter.v1.Source | Source}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/security_center.get_source.js + * region_tag:securitycenter_v1_generated_SecurityCenter_GetSource_async + */ + getSource( + request?: protos.google.cloud.securitycenter.v1.IGetSourceRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.securitycenter.v1.ISource, + protos.google.cloud.securitycenter.v1.IGetSourceRequest | undefined, + {} | undefined + ] + >; + getSource( + request: protos.google.cloud.securitycenter.v1.IGetSourceRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.securitycenter.v1.ISource, + | protos.google.cloud.securitycenter.v1.IGetSourceRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getSource( + request: protos.google.cloud.securitycenter.v1.IGetSourceRequest, + callback: Callback< + protos.google.cloud.securitycenter.v1.ISource, + | protos.google.cloud.securitycenter.v1.IGetSourceRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getSource( + request?: protos.google.cloud.securitycenter.v1.IGetSourceRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.securitycenter.v1.ISource, + | protos.google.cloud.securitycenter.v1.IGetSourceRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.securitycenter.v1.ISource, + | protos.google.cloud.securitycenter.v1.IGetSourceRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.securitycenter.v1.ISource, + protos.google.cloud.securitycenter.v1.IGetSourceRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getSource(request, options, callback); + } + /** + * Updates the state of a finding. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The [relative resource + * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) + * of the finding. Example: + * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", + * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", + * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". + * @param {google.cloud.securitycenter.v1.Finding.State} request.state + * Required. The desired State of the finding. + * @param {google.protobuf.Timestamp} request.startTime + * Required. The time at which the updated state takes effect. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.cloud.securitycenter.v1.Finding | Finding}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/security_center.set_finding_state.js + * region_tag:securitycenter_v1_generated_SecurityCenter_SetFindingState_async + */ + setFindingState( + request?: protos.google.cloud.securitycenter.v1.ISetFindingStateRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.securitycenter.v1.IFinding, + protos.google.cloud.securitycenter.v1.ISetFindingStateRequest | undefined, + {} | undefined + ] + >; + setFindingState( + request: protos.google.cloud.securitycenter.v1.ISetFindingStateRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.securitycenter.v1.IFinding, + | protos.google.cloud.securitycenter.v1.ISetFindingStateRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setFindingState( + request: protos.google.cloud.securitycenter.v1.ISetFindingStateRequest, + callback: Callback< + protos.google.cloud.securitycenter.v1.IFinding, + | protos.google.cloud.securitycenter.v1.ISetFindingStateRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setFindingState( + request?: protos.google.cloud.securitycenter.v1.ISetFindingStateRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.securitycenter.v1.IFinding, + | protos.google.cloud.securitycenter.v1.ISetFindingStateRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.securitycenter.v1.IFinding, + | protos.google.cloud.securitycenter.v1.ISetFindingStateRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.securitycenter.v1.IFinding, + protos.google.cloud.securitycenter.v1.ISetFindingStateRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.setFindingState(request, options, callback); } /** * Updates the mute state of a finding. @@ -2641,79 +3123,87 @@ export class SecurityCenterClient { ); } /** - * Updates a source. + * Updates the SecurityHealthAnalyticsCustomModule under the given name based + * on the given update mask. Updating the enablement state is supported on + * both resident and inherited modules (though resident modules cannot have an + * enablement state of “inherited”). Updating the display name and custom + * config of a module is supported on resident modules only. * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.securitycenter.v1.Source} request.source - * Required. The source resource to update. + * @param {google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule} request.securityHealthAnalyticsCustomModule + * Required. The SecurityHealthAnalytics custom module to update. * @param {google.protobuf.FieldMask} request.updateMask - * The FieldMask to use when updating the source resource. - * - * If empty all mutable fields will be updated. + * The list of fields to update. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link google.cloud.securitycenter.v1.Source | Source}. + * The first element of the array is an object representing {@link google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule | SecurityHealthAnalyticsCustomModule}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/security_center.update_source.js - * region_tag:securitycenter_v1_generated_SecurityCenter_UpdateSource_async + * @example include:samples/generated/v1/security_center.update_security_health_analytics_custom_module.js + * region_tag:securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_async */ - updateSource( - request?: protos.google.cloud.securitycenter.v1.IUpdateSourceRequest, + updateSecurityHealthAnalyticsCustomModule( + request?: protos.google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.securitycenter.v1.ISource, - protos.google.cloud.securitycenter.v1.IUpdateSourceRequest | undefined, + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + ( + | protos.google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest + | undefined + ), {} | undefined ] >; - updateSource( - request: protos.google.cloud.securitycenter.v1.IUpdateSourceRequest, + updateSecurityHealthAnalyticsCustomModule( + request: protos.google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest, options: CallOptions, callback: Callback< - protos.google.cloud.securitycenter.v1.ISource, - | protos.google.cloud.securitycenter.v1.IUpdateSourceRequest + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + | protos.google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest | null | undefined, {} | null | undefined > ): void; - updateSource( - request: protos.google.cloud.securitycenter.v1.IUpdateSourceRequest, + updateSecurityHealthAnalyticsCustomModule( + request: protos.google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest, callback: Callback< - protos.google.cloud.securitycenter.v1.ISource, - | protos.google.cloud.securitycenter.v1.IUpdateSourceRequest + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + | protos.google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest | null | undefined, {} | null | undefined > ): void; - updateSource( - request?: protos.google.cloud.securitycenter.v1.IUpdateSourceRequest, + updateSecurityHealthAnalyticsCustomModule( + request?: protos.google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.securitycenter.v1.ISource, - | protos.google.cloud.securitycenter.v1.IUpdateSourceRequest + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + | protos.google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.securitycenter.v1.ISource, - | protos.google.cloud.securitycenter.v1.IUpdateSourceRequest + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + | protos.google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.securitycenter.v1.ISource, - protos.google.cloud.securitycenter.v1.IUpdateSourceRequest | undefined, + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule, + ( + | protos.google.cloud.securitycenter.v1.IUpdateSecurityHealthAnalyticsCustomModuleRequest + | undefined + ), {} | undefined ] > | void { @@ -2730,38 +3220,138 @@ export class SecurityCenterClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'source.name': request.source!.name ?? '', + 'security_health_analytics_custom_module.name': + request.securityHealthAnalyticsCustomModule!.name ?? '', }); this.initialize(); - return this.innerApiCalls.updateSource(request, options, callback); + return this.innerApiCalls.updateSecurityHealthAnalyticsCustomModule( + request, + options, + callback + ); } /** - * Updates security marks. + * Updates a source. * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.securitycenter.v1.SecurityMarks} request.securityMarks - * Required. The security marks resource to update. + * @param {google.cloud.securitycenter.v1.Source} request.source + * Required. The source resource to update. * @param {google.protobuf.FieldMask} request.updateMask - * The FieldMask to use when updating the security marks resource. + * The FieldMask to use when updating the source resource. * - * The field mask must not contain duplicate fields. - * If empty or set to "marks", all marks will be replaced. Individual - * marks can be updated using "marks.". - * @param {google.protobuf.Timestamp} request.startTime - * The time at which the updated SecurityMarks take effect. - * If not set uses current server time. Updates will be applied to the - * SecurityMarks that are active immediately preceding this time. Must be - * earlier or equal to the server time. + * If empty all mutable fields will be updated. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing {@link google.cloud.securitycenter.v1.SecurityMarks | SecurityMarks}. + * The first element of the array is an object representing {@link google.cloud.securitycenter.v1.Source | Source}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/security_center.update_security_marks.js - * region_tag:securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_async + * @example include:samples/generated/v1/security_center.update_source.js + * region_tag:securitycenter_v1_generated_SecurityCenter_UpdateSource_async + */ + updateSource( + request?: protos.google.cloud.securitycenter.v1.IUpdateSourceRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.securitycenter.v1.ISource, + protos.google.cloud.securitycenter.v1.IUpdateSourceRequest | undefined, + {} | undefined + ] + >; + updateSource( + request: protos.google.cloud.securitycenter.v1.IUpdateSourceRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.securitycenter.v1.ISource, + | protos.google.cloud.securitycenter.v1.IUpdateSourceRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateSource( + request: protos.google.cloud.securitycenter.v1.IUpdateSourceRequest, + callback: Callback< + protos.google.cloud.securitycenter.v1.ISource, + | protos.google.cloud.securitycenter.v1.IUpdateSourceRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateSource( + request?: protos.google.cloud.securitycenter.v1.IUpdateSourceRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.securitycenter.v1.ISource, + | protos.google.cloud.securitycenter.v1.IUpdateSourceRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.securitycenter.v1.ISource, + | protos.google.cloud.securitycenter.v1.IUpdateSourceRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.securitycenter.v1.ISource, + protos.google.cloud.securitycenter.v1.IUpdateSourceRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'source.name': request.source!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateSource(request, options, callback); + } + /** + * Updates security marks. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.securitycenter.v1.SecurityMarks} request.securityMarks + * Required. The security marks resource to update. + * @param {google.protobuf.FieldMask} request.updateMask + * The FieldMask to use when updating the security marks resource. + * + * The field mask must not contain duplicate fields. + * If empty or set to "marks", all marks will be replaced. Individual + * marks can be updated using "marks.". + * @param {google.protobuf.Timestamp} request.startTime + * The time at which the updated SecurityMarks take effect. + * If not set uses current server time. Updates will be applied to the + * SecurityMarks that are active immediately preceding this time. Must be + * earlier or equal to the server time. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.cloud.securitycenter.v1.SecurityMarks | SecurityMarks}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/security_center.update_security_marks.js + * region_tag:securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_async */ updateSecurityMarks( request?: protos.google.cloud.securitycenter.v1.IUpdateSecurityMarksRequest, @@ -5141,6 +5731,217 @@ export class SecurityCenterClient { callSettings ) as AsyncIterable; } + /** + * Returns a list of all resident SecurityHealthAnalyticsCustomModules under + * the given CRM parent and all of the parent’s CRM descendants. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Name of parent to list descendant custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" + * @param {number} request.pageSize + * The maximum number of results to return in a single response. Default is + * 10, minimum is 1, maximum is 1000. + * @param {string} request.pageToken + * The value returned by the last call indicating a continuation + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule | SecurityHealthAnalyticsCustomModule}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listDescendantSecurityHealthAnalyticsCustomModulesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDescendantSecurityHealthAnalyticsCustomModules( + request?: protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule[], + protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest | null, + protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesResponse + ] + >; + listDescendantSecurityHealthAnalyticsCustomModules( + request: protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest, + | protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesResponse + | null + | undefined, + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule + > + ): void; + listDescendantSecurityHealthAnalyticsCustomModules( + request: protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest, + callback: PaginationCallback< + protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest, + | protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesResponse + | null + | undefined, + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule + > + ): void; + listDescendantSecurityHealthAnalyticsCustomModules( + request?: protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest, + | protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesResponse + | null + | undefined, + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule + >, + callback?: PaginationCallback< + protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest, + | protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesResponse + | null + | undefined, + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule + > + ): Promise< + [ + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule[], + protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest | null, + protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listDescendantSecurityHealthAnalyticsCustomModules( + request, + options, + callback + ); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Name of parent to list descendant custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" + * @param {number} request.pageSize + * The maximum number of results to return in a single response. Default is + * 10, minimum is 1, maximum is 1000. + * @param {string} request.pageToken + * The value returned by the last call indicating a continuation + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule | SecurityHealthAnalyticsCustomModule} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listDescendantSecurityHealthAnalyticsCustomModulesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDescendantSecurityHealthAnalyticsCustomModulesStream( + request?: protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = + this._defaults['listDescendantSecurityHealthAnalyticsCustomModules']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listDescendantSecurityHealthAnalyticsCustomModules.createStream( + this.innerApiCalls + .listDescendantSecurityHealthAnalyticsCustomModules as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listDescendantSecurityHealthAnalyticsCustomModules`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Name of parent to list descendant custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" + * @param {number} request.pageSize + * The maximum number of results to return in a single response. Default is + * 10, minimum is 1, maximum is 1000. + * @param {string} request.pageToken + * The value returned by the last call indicating a continuation + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * {@link google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule | SecurityHealthAnalyticsCustomModule}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/security_center.list_descendant_security_health_analytics_custom_modules.js + * region_tag:securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_async + */ + listDescendantSecurityHealthAnalyticsCustomModulesAsync( + request?: protos.google.cloud.securitycenter.v1.IListDescendantSecurityHealthAnalyticsCustomModulesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = + this._defaults['listDescendantSecurityHealthAnalyticsCustomModules']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listDescendantSecurityHealthAnalyticsCustomModules.asyncIterate( + this.innerApiCalls[ + 'listDescendantSecurityHealthAnalyticsCustomModules' + ] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } /** * Lists an organization or source's findings. * @@ -5930,95 +6731,516 @@ export class SecurityCenterClient { const defaultCallSettings = this._defaults['listMuteConfigs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listMuteConfigs.asyncIterate( - this.innerApiCalls['listMuteConfigs'] as GaxCall, + return this.descriptors.page.listMuteConfigs.asyncIterate( + this.innerApiCalls['listMuteConfigs'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists notification configs. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent in which to list the notification + * configurations. Its format is "organizations/[organization_id]", + * "folders/[folder_id]", or "projects/[project_id]". + * @param {string} request.pageToken + * The value returned by the last `ListNotificationConfigsResponse`; indicates + * that this is a continuation of a prior `ListNotificationConfigs` call, and + * that the system should return the next page of data. + * @param {number} request.pageSize + * The maximum number of results to return in a single response. Default is + * 10, minimum is 1, maximum is 1000. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link google.cloud.securitycenter.v1.NotificationConfig | NotificationConfig}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listNotificationConfigsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listNotificationConfigs( + request?: protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.securitycenter.v1.INotificationConfig[], + protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest | null, + protos.google.cloud.securitycenter.v1.IListNotificationConfigsResponse + ] + >; + listNotificationConfigs( + request: protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, + | protos.google.cloud.securitycenter.v1.IListNotificationConfigsResponse + | null + | undefined, + protos.google.cloud.securitycenter.v1.INotificationConfig + > + ): void; + listNotificationConfigs( + request: protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, + callback: PaginationCallback< + protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, + | protos.google.cloud.securitycenter.v1.IListNotificationConfigsResponse + | null + | undefined, + protos.google.cloud.securitycenter.v1.INotificationConfig + > + ): void; + listNotificationConfigs( + request?: protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, + | protos.google.cloud.securitycenter.v1.IListNotificationConfigsResponse + | null + | undefined, + protos.google.cloud.securitycenter.v1.INotificationConfig + >, + callback?: PaginationCallback< + protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, + | protos.google.cloud.securitycenter.v1.IListNotificationConfigsResponse + | null + | undefined, + protos.google.cloud.securitycenter.v1.INotificationConfig + > + ): Promise< + [ + protos.google.cloud.securitycenter.v1.INotificationConfig[], + protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest | null, + protos.google.cloud.securitycenter.v1.IListNotificationConfigsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listNotificationConfigs( + request, + options, + callback + ); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent in which to list the notification + * configurations. Its format is "organizations/[organization_id]", + * "folders/[folder_id]", or "projects/[project_id]". + * @param {string} request.pageToken + * The value returned by the last `ListNotificationConfigsResponse`; indicates + * that this is a continuation of a prior `ListNotificationConfigs` call, and + * that the system should return the next page of data. + * @param {number} request.pageSize + * The maximum number of results to return in a single response. Default is + * 10, minimum is 1, maximum is 1000. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link google.cloud.securitycenter.v1.NotificationConfig | NotificationConfig} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listNotificationConfigsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listNotificationConfigsStream( + request?: protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listNotificationConfigs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listNotificationConfigs.createStream( + this.innerApiCalls.listNotificationConfigs as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listNotificationConfigs`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent in which to list the notification + * configurations. Its format is "organizations/[organization_id]", + * "folders/[folder_id]", or "projects/[project_id]". + * @param {string} request.pageToken + * The value returned by the last `ListNotificationConfigsResponse`; indicates + * that this is a continuation of a prior `ListNotificationConfigs` call, and + * that the system should return the next page of data. + * @param {number} request.pageSize + * The maximum number of results to return in a single response. Default is + * 10, minimum is 1, maximum is 1000. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * {@link google.cloud.securitycenter.v1.NotificationConfig | NotificationConfig}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/security_center.list_notification_configs.js + * region_tag:securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async + */ + listNotificationConfigsAsync( + request?: protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listNotificationConfigs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listNotificationConfigs.asyncIterate( + this.innerApiCalls['listNotificationConfigs'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the + * given parent. This includes resident modules defined at the scope of the + * parent, and inherited modules, inherited from CRM ancestors. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Name of parent to list effective custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" + * @param {number} request.pageSize + * The maximum number of results to return in a single response. Default is + * 10, minimum is 1, maximum is 1000. + * @param {string} request.pageToken + * The value returned by the last call indicating a continuation + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule | EffectiveSecurityHealthAnalyticsCustomModule}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listEffectiveSecurityHealthAnalyticsCustomModulesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listEffectiveSecurityHealthAnalyticsCustomModules( + request?: protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule[], + protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest | null, + protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesResponse + ] + >; + listEffectiveSecurityHealthAnalyticsCustomModules( + request: protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + | protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesResponse + | null + | undefined, + protos.google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule + > + ): void; + listEffectiveSecurityHealthAnalyticsCustomModules( + request: protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + callback: PaginationCallback< + protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + | protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesResponse + | null + | undefined, + protos.google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule + > + ): void; + listEffectiveSecurityHealthAnalyticsCustomModules( + request?: protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + | protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesResponse + | null + | undefined, + protos.google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule + >, + callback?: PaginationCallback< + protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + | protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesResponse + | null + | undefined, + protos.google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule + > + ): Promise< + [ + protos.google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule[], + protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest | null, + protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listEffectiveSecurityHealthAnalyticsCustomModules( + request, + options, + callback + ); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Name of parent to list effective custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" + * @param {number} request.pageSize + * The maximum number of results to return in a single response. Default is + * 10, minimum is 1, maximum is 1000. + * @param {string} request.pageToken + * The value returned by the last call indicating a continuation + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule | EffectiveSecurityHealthAnalyticsCustomModule} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listEffectiveSecurityHealthAnalyticsCustomModulesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listEffectiveSecurityHealthAnalyticsCustomModulesStream( + request?: protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = + this._defaults['listEffectiveSecurityHealthAnalyticsCustomModules']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listEffectiveSecurityHealthAnalyticsCustomModules.createStream( + this.innerApiCalls + .listEffectiveSecurityHealthAnalyticsCustomModules as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listEffectiveSecurityHealthAnalyticsCustomModules`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Name of parent to list effective custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" + * @param {number} request.pageSize + * The maximum number of results to return in a single response. Default is + * 10, minimum is 1, maximum is 1000. + * @param {string} request.pageToken + * The value returned by the last call indicating a continuation + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * {@link google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule | EffectiveSecurityHealthAnalyticsCustomModule}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/security_center.list_effective_security_health_analytics_custom_modules.js + * region_tag:securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_async + */ + listEffectiveSecurityHealthAnalyticsCustomModulesAsync( + request?: protos.google.cloud.securitycenter.v1.IListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = + this._defaults['listEffectiveSecurityHealthAnalyticsCustomModules']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listEffectiveSecurityHealthAnalyticsCustomModules.asyncIterate( + this.innerApiCalls[ + 'listEffectiveSecurityHealthAnalyticsCustomModules' + ] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists notification configs. + * Returns a list of all SecurityHealthAnalyticsCustomModules for the given + * parent. This includes resident modules defined at the scope of the parent, + * and inherited modules, inherited from CRM ancestors. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent in which to list the notification - * configurations. Its format is "organizations/[organization_id]", - * "folders/[folder_id]", or "projects/[project_id]". - * @param {string} request.pageToken - * The value returned by the last `ListNotificationConfigsResponse`; indicates - * that this is a continuation of a prior `ListNotificationConfigs` call, and - * that the system should return the next page of data. + * Required. Name of parent to list custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" * @param {number} request.pageSize * The maximum number of results to return in a single response. Default is * 10, minimum is 1, maximum is 1000. + * @param {string} request.pageToken + * The value returned by the last call indicating a continuation * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.cloud.securitycenter.v1.NotificationConfig | NotificationConfig}. + * The first element of the array is Array of {@link google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule | SecurityHealthAnalyticsCustomModule}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listNotificationConfigsAsync()` + * We recommend using `listSecurityHealthAnalyticsCustomModulesAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listNotificationConfigs( - request?: protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, + listSecurityHealthAnalyticsCustomModules( + request?: protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.securitycenter.v1.INotificationConfig[], - protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest | null, - protos.google.cloud.securitycenter.v1.IListNotificationConfigsResponse + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule[], + protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest | null, + protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesResponse ] >; - listNotificationConfigs( - request: protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, + listSecurityHealthAnalyticsCustomModules( + request: protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, - | protos.google.cloud.securitycenter.v1.IListNotificationConfigsResponse + protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest, + | protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesResponse | null | undefined, - protos.google.cloud.securitycenter.v1.INotificationConfig + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule > ): void; - listNotificationConfigs( - request: protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, + listSecurityHealthAnalyticsCustomModules( + request: protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest, callback: PaginationCallback< - protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, - | protos.google.cloud.securitycenter.v1.IListNotificationConfigsResponse + protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest, + | protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesResponse | null | undefined, - protos.google.cloud.securitycenter.v1.INotificationConfig + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule > ): void; - listNotificationConfigs( - request?: protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, + listSecurityHealthAnalyticsCustomModules( + request?: protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, - | protos.google.cloud.securitycenter.v1.IListNotificationConfigsResponse + protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest, + | protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesResponse | null | undefined, - protos.google.cloud.securitycenter.v1.INotificationConfig + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule >, callback?: PaginationCallback< - protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, - | protos.google.cloud.securitycenter.v1.IListNotificationConfigsResponse + protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest, + | protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesResponse | null | undefined, - protos.google.cloud.securitycenter.v1.INotificationConfig + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule > ): Promise< [ - protos.google.cloud.securitycenter.v1.INotificationConfig[], - protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest | null, - protos.google.cloud.securitycenter.v1.IListNotificationConfigsResponse + protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule[], + protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest | null, + protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesResponse ] > | void { request = request || {}; @@ -6037,7 +7259,7 @@ export class SecurityCenterClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listNotificationConfigs( + return this.innerApiCalls.listSecurityHealthAnalyticsCustomModules( request, options, callback @@ -6049,30 +7271,29 @@ export class SecurityCenterClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent in which to list the notification - * configurations. Its format is "organizations/[organization_id]", - * "folders/[folder_id]", or "projects/[project_id]". - * @param {string} request.pageToken - * The value returned by the last `ListNotificationConfigsResponse`; indicates - * that this is a continuation of a prior `ListNotificationConfigs` call, and - * that the system should return the next page of data. + * Required. Name of parent to list custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" * @param {number} request.pageSize * The maximum number of results to return in a single response. Default is * 10, minimum is 1, maximum is 1000. + * @param {string} request.pageToken + * The value returned by the last call indicating a continuation * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.cloud.securitycenter.v1.NotificationConfig | NotificationConfig} on 'data' event. + * An object stream which emits an object representing {@link google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule | SecurityHealthAnalyticsCustomModule} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listNotificationConfigsAsync()` + * We recommend using `listSecurityHealthAnalyticsCustomModulesAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listNotificationConfigsStream( - request?: protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, + listSecurityHealthAnalyticsCustomModulesStream( + request?: protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest, options?: CallOptions ): Transform { request = request || {}; @@ -6083,50 +7304,50 @@ export class SecurityCenterClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listNotificationConfigs']; + const defaultCallSettings = + this._defaults['listSecurityHealthAnalyticsCustomModules']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listNotificationConfigs.createStream( - this.innerApiCalls.listNotificationConfigs as GaxCall, + return this.descriptors.page.listSecurityHealthAnalyticsCustomModules.createStream( + this.innerApiCalls.listSecurityHealthAnalyticsCustomModules as GaxCall, request, callSettings ); } /** - * Equivalent to `listNotificationConfigs`, but returns an iterable object. + * Equivalent to `listSecurityHealthAnalyticsCustomModules`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the parent in which to list the notification - * configurations. Its format is "organizations/[organization_id]", - * "folders/[folder_id]", or "projects/[project_id]". - * @param {string} request.pageToken - * The value returned by the last `ListNotificationConfigsResponse`; indicates - * that this is a continuation of a prior `ListNotificationConfigs` call, and - * that the system should return the next page of data. + * Required. Name of parent to list custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" * @param {number} request.pageSize * The maximum number of results to return in a single response. Default is * 10, minimum is 1, maximum is 1000. + * @param {string} request.pageToken + * The value returned by the last call indicating a continuation * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.cloud.securitycenter.v1.NotificationConfig | NotificationConfig}. The API will be called under the hood as needed, once per the page, + * {@link google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule | SecurityHealthAnalyticsCustomModule}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1/security_center.list_notification_configs.js - * region_tag:securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async + * @example include:samples/generated/v1/security_center.list_security_health_analytics_custom_modules.js + * region_tag:securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_async */ - listNotificationConfigsAsync( - request?: protos.google.cloud.securitycenter.v1.IListNotificationConfigsRequest, + listSecurityHealthAnalyticsCustomModulesAsync( + request?: protos.google.cloud.securitycenter.v1.IListSecurityHealthAnalyticsCustomModulesRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -6135,14 +7356,15 @@ export class SecurityCenterClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listNotificationConfigs']; + const defaultCallSettings = + this._defaults['listSecurityHealthAnalyticsCustomModules']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listNotificationConfigs.asyncIterate( - this.innerApiCalls['listNotificationConfigs'] as GaxCall, + return this.descriptors.page.listSecurityHealthAnalyticsCustomModules.asyncIterate( + this.innerApiCalls['listSecurityHealthAnalyticsCustomModules'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** * Lists all sources belonging to an organization. @@ -6948,6 +8170,104 @@ export class SecurityCenterClient { ).notification_config; } + /** + * Return a fully-qualified folderSecurityHealthAnalyticsSettingsCustomModule resource name string. + * + * @param {string} folder + * @param {string} custom_module + * @returns {string} Resource name string. + */ + folderSecurityHealthAnalyticsSettingsCustomModulePath( + folder: string, + customModule: string + ) { + return this.pathTemplates.folderSecurityHealthAnalyticsSettingsCustomModulePathTemplate.render( + { + folder: folder, + custom_module: customModule, + } + ); + } + + /** + * Parse the folder from FolderSecurityHealthAnalyticsSettingsCustomModule resource. + * + * @param {string} folderSecurityHealthAnalyticsSettingsCustomModuleName + * A fully-qualified path representing folder_securityHealthAnalyticsSettings_custom_module resource. + * @returns {string} A string representing the folder. + */ + matchFolderFromFolderSecurityHealthAnalyticsSettingsCustomModuleName( + folderSecurityHealthAnalyticsSettingsCustomModuleName: string + ) { + return this.pathTemplates.folderSecurityHealthAnalyticsSettingsCustomModulePathTemplate.match( + folderSecurityHealthAnalyticsSettingsCustomModuleName + ).folder; + } + + /** + * Parse the custom_module from FolderSecurityHealthAnalyticsSettingsCustomModule resource. + * + * @param {string} folderSecurityHealthAnalyticsSettingsCustomModuleName + * A fully-qualified path representing folder_securityHealthAnalyticsSettings_custom_module resource. + * @returns {string} A string representing the custom_module. + */ + matchCustomModuleFromFolderSecurityHealthAnalyticsSettingsCustomModuleName( + folderSecurityHealthAnalyticsSettingsCustomModuleName: string + ) { + return this.pathTemplates.folderSecurityHealthAnalyticsSettingsCustomModulePathTemplate.match( + folderSecurityHealthAnalyticsSettingsCustomModuleName + ).custom_module; + } + + /** + * Return a fully-qualified folderSecurityHealthAnalyticsSettingsEffectiveCustomModule resource name string. + * + * @param {string} folder + * @param {string} effective_custom_module + * @returns {string} Resource name string. + */ + folderSecurityHealthAnalyticsSettingsEffectiveCustomModulePath( + folder: string, + effectiveCustomModule: string + ) { + return this.pathTemplates.folderSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate.render( + { + folder: folder, + effective_custom_module: effectiveCustomModule, + } + ); + } + + /** + * Parse the folder from FolderSecurityHealthAnalyticsSettingsEffectiveCustomModule resource. + * + * @param {string} folderSecurityHealthAnalyticsSettingsEffectiveCustomModuleName + * A fully-qualified path representing folder_securityHealthAnalyticsSettings_effective_custom_module resource. + * @returns {string} A string representing the folder. + */ + matchFolderFromFolderSecurityHealthAnalyticsSettingsEffectiveCustomModuleName( + folderSecurityHealthAnalyticsSettingsEffectiveCustomModuleName: string + ) { + return this.pathTemplates.folderSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate.match( + folderSecurityHealthAnalyticsSettingsEffectiveCustomModuleName + ).folder; + } + + /** + * Parse the effective_custom_module from FolderSecurityHealthAnalyticsSettingsEffectiveCustomModule resource. + * + * @param {string} folderSecurityHealthAnalyticsSettingsEffectiveCustomModuleName + * A fully-qualified path representing folder_securityHealthAnalyticsSettings_effective_custom_module resource. + * @returns {string} A string representing the effective_custom_module. + */ + matchEffectiveCustomModuleFromFolderSecurityHealthAnalyticsSettingsEffectiveCustomModuleName( + folderSecurityHealthAnalyticsSettingsEffectiveCustomModuleName: string + ) { + return this.pathTemplates.folderSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate.match( + folderSecurityHealthAnalyticsSettingsEffectiveCustomModuleName + ).effective_custom_module; + } + /** * Return a fully-qualified folderSource resource name string. * @@ -7436,6 +8756,133 @@ export class SecurityCenterClient { ).notification_config; } + /** + * Return a fully-qualified organizationSecurityHealthAnalyticsSettings resource name string. + * + * @param {string} organization + * @returns {string} Resource name string. + */ + organizationSecurityHealthAnalyticsSettingsPath(organization: string) { + return this.pathTemplates.organizationSecurityHealthAnalyticsSettingsPathTemplate.render( + { + organization: organization, + } + ); + } + + /** + * Parse the organization from OrganizationSecurityHealthAnalyticsSettings resource. + * + * @param {string} organizationSecurityHealthAnalyticsSettingsName + * A fully-qualified path representing organization_securityHealthAnalyticsSettings resource. + * @returns {string} A string representing the organization. + */ + matchOrganizationFromOrganizationSecurityHealthAnalyticsSettingsName( + organizationSecurityHealthAnalyticsSettingsName: string + ) { + return this.pathTemplates.organizationSecurityHealthAnalyticsSettingsPathTemplate.match( + organizationSecurityHealthAnalyticsSettingsName + ).organization; + } + + /** + * Return a fully-qualified organizationSecurityHealthAnalyticsSettingsCustomModule resource name string. + * + * @param {string} organization + * @param {string} custom_module + * @returns {string} Resource name string. + */ + organizationSecurityHealthAnalyticsSettingsCustomModulePath( + organization: string, + customModule: string + ) { + return this.pathTemplates.organizationSecurityHealthAnalyticsSettingsCustomModulePathTemplate.render( + { + organization: organization, + custom_module: customModule, + } + ); + } + + /** + * Parse the organization from OrganizationSecurityHealthAnalyticsSettingsCustomModule resource. + * + * @param {string} organizationSecurityHealthAnalyticsSettingsCustomModuleName + * A fully-qualified path representing organization_securityHealthAnalyticsSettings_custom_module resource. + * @returns {string} A string representing the organization. + */ + matchOrganizationFromOrganizationSecurityHealthAnalyticsSettingsCustomModuleName( + organizationSecurityHealthAnalyticsSettingsCustomModuleName: string + ) { + return this.pathTemplates.organizationSecurityHealthAnalyticsSettingsCustomModulePathTemplate.match( + organizationSecurityHealthAnalyticsSettingsCustomModuleName + ).organization; + } + + /** + * Parse the custom_module from OrganizationSecurityHealthAnalyticsSettingsCustomModule resource. + * + * @param {string} organizationSecurityHealthAnalyticsSettingsCustomModuleName + * A fully-qualified path representing organization_securityHealthAnalyticsSettings_custom_module resource. + * @returns {string} A string representing the custom_module. + */ + matchCustomModuleFromOrganizationSecurityHealthAnalyticsSettingsCustomModuleName( + organizationSecurityHealthAnalyticsSettingsCustomModuleName: string + ) { + return this.pathTemplates.organizationSecurityHealthAnalyticsSettingsCustomModulePathTemplate.match( + organizationSecurityHealthAnalyticsSettingsCustomModuleName + ).custom_module; + } + + /** + * Return a fully-qualified organizationSecurityHealthAnalyticsSettingsEffectiveCustomModule resource name string. + * + * @param {string} organization + * @param {string} effective_custom_module + * @returns {string} Resource name string. + */ + organizationSecurityHealthAnalyticsSettingsEffectiveCustomModulePath( + organization: string, + effectiveCustomModule: string + ) { + return this.pathTemplates.organizationSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate.render( + { + organization: organization, + effective_custom_module: effectiveCustomModule, + } + ); + } + + /** + * Parse the organization from OrganizationSecurityHealthAnalyticsSettingsEffectiveCustomModule resource. + * + * @param {string} organizationSecurityHealthAnalyticsSettingsEffectiveCustomModuleName + * A fully-qualified path representing organization_securityHealthAnalyticsSettings_effective_custom_module resource. + * @returns {string} A string representing the organization. + */ + matchOrganizationFromOrganizationSecurityHealthAnalyticsSettingsEffectiveCustomModuleName( + organizationSecurityHealthAnalyticsSettingsEffectiveCustomModuleName: string + ) { + return this.pathTemplates.organizationSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate.match( + organizationSecurityHealthAnalyticsSettingsEffectiveCustomModuleName + ).organization; + } + + /** + * Parse the effective_custom_module from OrganizationSecurityHealthAnalyticsSettingsEffectiveCustomModule resource. + * + * @param {string} organizationSecurityHealthAnalyticsSettingsEffectiveCustomModuleName + * A fully-qualified path representing organization_securityHealthAnalyticsSettings_effective_custom_module resource. + * @returns {string} A string representing the effective_custom_module. + */ + matchEffectiveCustomModuleFromOrganizationSecurityHealthAnalyticsSettingsEffectiveCustomModuleName( + organizationSecurityHealthAnalyticsSettingsEffectiveCustomModuleName: string + ) { + return this.pathTemplates.organizationSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate.match( + organizationSecurityHealthAnalyticsSettingsEffectiveCustomModuleName + ).effective_custom_module; + } + /** * Return a fully-qualified organizationSettings resource name string. * @@ -7924,6 +9371,104 @@ export class SecurityCenterClient { ).notification_config; } + /** + * Return a fully-qualified projectSecurityHealthAnalyticsSettingsCustomModule resource name string. + * + * @param {string} project + * @param {string} custom_module + * @returns {string} Resource name string. + */ + projectSecurityHealthAnalyticsSettingsCustomModulePath( + project: string, + customModule: string + ) { + return this.pathTemplates.projectSecurityHealthAnalyticsSettingsCustomModulePathTemplate.render( + { + project: project, + custom_module: customModule, + } + ); + } + + /** + * Parse the project from ProjectSecurityHealthAnalyticsSettingsCustomModule resource. + * + * @param {string} projectSecurityHealthAnalyticsSettingsCustomModuleName + * A fully-qualified path representing project_securityHealthAnalyticsSettings_custom_module resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectSecurityHealthAnalyticsSettingsCustomModuleName( + projectSecurityHealthAnalyticsSettingsCustomModuleName: string + ) { + return this.pathTemplates.projectSecurityHealthAnalyticsSettingsCustomModulePathTemplate.match( + projectSecurityHealthAnalyticsSettingsCustomModuleName + ).project; + } + + /** + * Parse the custom_module from ProjectSecurityHealthAnalyticsSettingsCustomModule resource. + * + * @param {string} projectSecurityHealthAnalyticsSettingsCustomModuleName + * A fully-qualified path representing project_securityHealthAnalyticsSettings_custom_module resource. + * @returns {string} A string representing the custom_module. + */ + matchCustomModuleFromProjectSecurityHealthAnalyticsSettingsCustomModuleName( + projectSecurityHealthAnalyticsSettingsCustomModuleName: string + ) { + return this.pathTemplates.projectSecurityHealthAnalyticsSettingsCustomModulePathTemplate.match( + projectSecurityHealthAnalyticsSettingsCustomModuleName + ).custom_module; + } + + /** + * Return a fully-qualified projectSecurityHealthAnalyticsSettingsEffectiveCustomModule resource name string. + * + * @param {string} project + * @param {string} effective_custom_module + * @returns {string} Resource name string. + */ + projectSecurityHealthAnalyticsSettingsEffectiveCustomModulePath( + project: string, + effectiveCustomModule: string + ) { + return this.pathTemplates.projectSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate.render( + { + project: project, + effective_custom_module: effectiveCustomModule, + } + ); + } + + /** + * Parse the project from ProjectSecurityHealthAnalyticsSettingsEffectiveCustomModule resource. + * + * @param {string} projectSecurityHealthAnalyticsSettingsEffectiveCustomModuleName + * A fully-qualified path representing project_securityHealthAnalyticsSettings_effective_custom_module resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectSecurityHealthAnalyticsSettingsEffectiveCustomModuleName( + projectSecurityHealthAnalyticsSettingsEffectiveCustomModuleName: string + ) { + return this.pathTemplates.projectSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate.match( + projectSecurityHealthAnalyticsSettingsEffectiveCustomModuleName + ).project; + } + + /** + * Parse the effective_custom_module from ProjectSecurityHealthAnalyticsSettingsEffectiveCustomModule resource. + * + * @param {string} projectSecurityHealthAnalyticsSettingsEffectiveCustomModuleName + * A fully-qualified path representing project_securityHealthAnalyticsSettings_effective_custom_module resource. + * @returns {string} A string representing the effective_custom_module. + */ + matchEffectiveCustomModuleFromProjectSecurityHealthAnalyticsSettingsEffectiveCustomModuleName( + projectSecurityHealthAnalyticsSettingsEffectiveCustomModuleName: string + ) { + return this.pathTemplates.projectSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate.match( + projectSecurityHealthAnalyticsSettingsEffectiveCustomModuleName + ).effective_custom_module; + } + /** * Return a fully-qualified projectSource resource name string. * diff --git a/packages/google-cloud-securitycenter/src/v1/security_center_client_config.json b/packages/google-cloud-securitycenter/src/v1/security_center_client_config.json index 149e8338b1e..e87538464a8 100644 --- a/packages/google-cloud-securitycenter/src/v1/security_center_client_config.json +++ b/packages/google-cloud-securitycenter/src/v1/security_center_client_config.json @@ -24,6 +24,11 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "CreateSecurityHealthAnalyticsCustomModule": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "CreateSource": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", @@ -52,6 +57,11 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "DeleteSecurityHealthAnalyticsCustomModule": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "GetBigQueryExport": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" @@ -75,6 +85,16 @@ "retry_codes_name": "idempotent", "retry_params_name": "default" }, + "GetEffectiveSecurityHealthAnalyticsCustomModule": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetSecurityHealthAnalyticsCustomModule": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, "GetSource": { "timeout_millis": 60000, "retry_codes_name": "idempotent", @@ -95,6 +115,11 @@ "retry_codes_name": "idempotent", "retry_params_name": "default" }, + "ListDescendantSecurityHealthAnalyticsCustomModules": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, "ListFindings": { "timeout_millis": 480000, "retry_codes_name": "idempotent", @@ -109,6 +134,16 @@ "retry_codes_name": "idempotent", "retry_params_name": "default" }, + "ListEffectiveSecurityHealthAnalyticsCustomModules": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListSecurityHealthAnalyticsCustomModules": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, "ListSources": { "timeout_millis": 60000, "retry_codes_name": "idempotent", @@ -161,6 +196,11 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "UpdateSecurityHealthAnalyticsCustomModule": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "UpdateSource": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", diff --git a/packages/google-cloud-securitycenter/src/v1/security_center_proto_list.json b/packages/google-cloud-securitycenter/src/v1/security_center_proto_list.json index b9720dfd4fc..7210315576c 100644 --- a/packages/google-cloud-securitycenter/src/v1/security_center_proto_list.json +++ b/packages/google-cloud-securitycenter/src/v1/security_center_proto_list.json @@ -7,6 +7,7 @@ "../../protos/google/cloud/securitycenter/v1/contact_details.proto", "../../protos/google/cloud/securitycenter/v1/container.proto", "../../protos/google/cloud/securitycenter/v1/database.proto", + "../../protos/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.proto", "../../protos/google/cloud/securitycenter/v1/exfiltration.proto", "../../protos/google/cloud/securitycenter/v1/external_system.proto", "../../protos/google/cloud/securitycenter/v1/file.proto", @@ -25,6 +26,8 @@ "../../protos/google/cloud/securitycenter/v1/process.proto", "../../protos/google/cloud/securitycenter/v1/resource.proto", "../../protos/google/cloud/securitycenter/v1/run_asset_discovery_response.proto", + "../../protos/google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto", + "../../protos/google/cloud/securitycenter/v1/security_health_analytics_custom_module.proto", "../../protos/google/cloud/securitycenter/v1/security_marks.proto", "../../protos/google/cloud/securitycenter/v1/securitycenter_service.proto", "../../protos/google/cloud/securitycenter/v1/source.proto", diff --git a/packages/google-cloud-securitycenter/test/gapic_security_center_v1.ts b/packages/google-cloud-securitycenter/test/gapic_security_center_v1.ts index 4dff999bd45..fa568bd278d 100644 --- a/packages/google-cloud-securitycenter/test/gapic_security_center_v1.ts +++ b/packages/google-cloud-securitycenter/test/gapic_security_center_v1.ts @@ -259,6 +259,149 @@ describe('v1.SecurityCenterClient', () => { }); }); + describe('createSecurityHealthAnalyticsCustomModule', () => { + it('invokes createSecurityHealthAnalyticsCustomModule without error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() + ); + client.innerApiCalls.createSecurityHealthAnalyticsCustomModule = + stubSimpleCall(expectedResponse); + const [response] = await client.createSecurityHealthAnalyticsCustomModule( + request + ); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls + .createSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .createSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createSecurityHealthAnalyticsCustomModule without error using callback', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() + ); + client.innerApiCalls.createSecurityHealthAnalyticsCustomModule = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createSecurityHealthAnalyticsCustomModule( + request, + ( + err?: Error | null, + result?: protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls + .createSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .createSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createSecurityHealthAnalyticsCustomModule with error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createSecurityHealthAnalyticsCustomModule = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.createSecurityHealthAnalyticsCustomModule(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls + .createSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .createSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createSecurityHealthAnalyticsCustomModule with closed client', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createSecurityHealthAnalyticsCustomModule(request), + expectedError + ); + }); + }); + describe('createSource', () => { it('invokes createSource without error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ @@ -1053,6 +1196,149 @@ describe('v1.SecurityCenterClient', () => { }); }); + describe('deleteSecurityHealthAnalyticsCustomModule', () => { + it('invokes deleteSecurityHealthAnalyticsCustomModule without error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteSecurityHealthAnalyticsCustomModule = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteSecurityHealthAnalyticsCustomModule( + request + ); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls + .deleteSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .deleteSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteSecurityHealthAnalyticsCustomModule without error using callback', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteSecurityHealthAnalyticsCustomModule = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteSecurityHealthAnalyticsCustomModule( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls + .deleteSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .deleteSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteSecurityHealthAnalyticsCustomModule with error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteSecurityHealthAnalyticsCustomModule = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.deleteSecurityHealthAnalyticsCustomModule(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls + .deleteSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .deleteSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteSecurityHealthAnalyticsCustomModule with closed client', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.deleteSecurityHealthAnalyticsCustomModule(request), + expectedError + ); + }); + }); + describe('getBigQueryExport', () => { it('invokes getBigQueryExport without error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ @@ -1717,64 +2003,68 @@ describe('v1.SecurityCenterClient', () => { }); }); - describe('getSource', () => { - it('invokes getSource without error', async () => { + describe('getEffectiveSecurityHealthAnalyticsCustomModule', () => { + it('invokes getEffectiveSecurityHealthAnalyticsCustomModule without error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.GetSourceRequest() + new protos.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.GetSourceRequest', + '.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.Source() + new protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule() ); - client.innerApiCalls.getSource = stubSimpleCall(expectedResponse); - const [response] = await client.getSource(request); + client.innerApiCalls.getEffectiveSecurityHealthAnalyticsCustomModule = + stubSimpleCall(expectedResponse); + const [response] = + await client.getEffectiveSecurityHealthAnalyticsCustomModule(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getSource as SinonStub + client.innerApiCalls + .getEffectiveSecurityHealthAnalyticsCustomModule as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getSource as SinonStub + client.innerApiCalls + .getEffectiveSecurityHealthAnalyticsCustomModule as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getSource without error using callback', async () => { + it('invokes getEffectiveSecurityHealthAnalyticsCustomModule without error using callback', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.GetSourceRequest() + new protos.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.GetSourceRequest', + '.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.Source() + new protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule() ); - client.innerApiCalls.getSource = + client.innerApiCalls.getEffectiveSecurityHealthAnalyticsCustomModule = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getSource( + client.getEffectiveSecurityHealthAnalyticsCustomModule( request, ( err?: Error | null, - result?: protos.google.cloud.securitycenter.v1.ISource | null + result?: protos.google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule | null ) => { if (err) { reject(err); @@ -1787,72 +2077,347 @@ describe('v1.SecurityCenterClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getSource as SinonStub + client.innerApiCalls + .getEffectiveSecurityHealthAnalyticsCustomModule as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getSource as SinonStub + client.innerApiCalls + .getEffectiveSecurityHealthAnalyticsCustomModule as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getSource with error', async () => { + it('invokes getEffectiveSecurityHealthAnalyticsCustomModule with error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.GetSourceRequest() + new protos.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.GetSourceRequest', + '.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getSource = stubSimpleCall(undefined, expectedError); - await assert.rejects(client.getSource(request), expectedError); + client.innerApiCalls.getEffectiveSecurityHealthAnalyticsCustomModule = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getEffectiveSecurityHealthAnalyticsCustomModule(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.getSource as SinonStub + client.innerApiCalls + .getEffectiveSecurityHealthAnalyticsCustomModule as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getSource as SinonStub + client.innerApiCalls + .getEffectiveSecurityHealthAnalyticsCustomModule as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getSource with closed client', async () => { + it('invokes getEffectiveSecurityHealthAnalyticsCustomModule with closed client', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.GetSourceRequest() + new protos.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.GetSourceRequest', + '.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects(client.getSource(request), expectedError); + await assert.rejects( + client.getEffectiveSecurityHealthAnalyticsCustomModule(request), + expectedError + ); }); }); - describe('setFindingState', () => { - it('invokes setFindingState without error', async () => { + describe('getSecurityHealthAnalyticsCustomModule', () => { + it('invokes getSecurityHealthAnalyticsCustomModule without error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.SetFindingStateRequest() + new protos.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() + ); + client.innerApiCalls.getSecurityHealthAnalyticsCustomModule = + stubSimpleCall(expectedResponse); + const [response] = await client.getSecurityHealthAnalyticsCustomModule( + request + ); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getSecurityHealthAnalyticsCustomModule without error using callback', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() + ); + client.innerApiCalls.getSecurityHealthAnalyticsCustomModule = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getSecurityHealthAnalyticsCustomModule( + request, + ( + err?: Error | null, + result?: protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getSecurityHealthAnalyticsCustomModule with error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getSecurityHealthAnalyticsCustomModule = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getSecurityHealthAnalyticsCustomModule(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.getSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getSecurityHealthAnalyticsCustomModule with closed client', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getSecurityHealthAnalyticsCustomModule(request), + expectedError + ); + }); + }); + + describe('getSource', () => { + it('invokes getSource without error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.GetSourceRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetSourceRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.Source() + ); + client.innerApiCalls.getSource = stubSimpleCall(expectedResponse); + const [response] = await client.getSource(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getSource as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getSource as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getSource without error using callback', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.GetSourceRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetSourceRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.Source() + ); + client.innerApiCalls.getSource = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getSource( + request, + ( + err?: Error | null, + result?: protos.google.cloud.securitycenter.v1.ISource | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getSource as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getSource as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getSource with error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.GetSourceRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetSourceRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getSource = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getSource(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getSource as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getSource as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getSource with closed client', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.GetSourceRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetSourceRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getSource(request), expectedError); + }); + }); + + describe('setFindingState', () => { + it('invokes setFindingState without error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.SetFindingStateRequest() ); const defaultValue1 = getTypeDefaultValue( '.google.cloud.securitycenter.v1.SetFindingStateRequest', @@ -3047,49 +3612,196 @@ describe('v1.SecurityCenterClient', () => { }); }); - describe('updateSource', () => { - it('invokes updateSource without error', async () => { + describe('updateSecurityHealthAnalyticsCustomModule', () => { + it('invokes updateSecurityHealthAnalyticsCustomModule without error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.UpdateSourceRequest() + new protos.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest() ); - request.source ??= {}; + request.securityHealthAnalyticsCustomModule ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.UpdateSourceRequest', - ['source', 'name'] + '.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest', + ['securityHealthAnalyticsCustomModule', 'name'] ); - request.source.name = defaultValue1; - const expectedHeaderRequestParams = `source.name=${defaultValue1}`; + request.securityHealthAnalyticsCustomModule.name = defaultValue1; + const expectedHeaderRequestParams = `security_health_analytics_custom_module.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.Source() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() + ); + client.innerApiCalls.updateSecurityHealthAnalyticsCustomModule = + stubSimpleCall(expectedResponse); + const [response] = await client.updateSecurityHealthAnalyticsCustomModule( + request ); - client.innerApiCalls.updateSource = stubSimpleCall(expectedResponse); - const [response] = await client.updateSource(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateSource as SinonStub + client.innerApiCalls + .updateSecurityHealthAnalyticsCustomModule as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateSource as SinonStub + client.innerApiCalls + .updateSecurityHealthAnalyticsCustomModule as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateSource without error using callback', async () => { + it('invokes updateSecurityHealthAnalyticsCustomModule without error using callback', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.UpdateSourceRequest() + new protos.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest() ); - request.source ??= {}; + request.securityHealthAnalyticsCustomModule ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest', + ['securityHealthAnalyticsCustomModule', 'name'] + ); + request.securityHealthAnalyticsCustomModule.name = defaultValue1; + const expectedHeaderRequestParams = `security_health_analytics_custom_module.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() + ); + client.innerApiCalls.updateSecurityHealthAnalyticsCustomModule = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateSecurityHealthAnalyticsCustomModule( + request, + ( + err?: Error | null, + result?: protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls + .updateSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .updateSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateSecurityHealthAnalyticsCustomModule with error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest() + ); + request.securityHealthAnalyticsCustomModule ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest', + ['securityHealthAnalyticsCustomModule', 'name'] + ); + request.securityHealthAnalyticsCustomModule.name = defaultValue1; + const expectedHeaderRequestParams = `security_health_analytics_custom_module.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateSecurityHealthAnalyticsCustomModule = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.updateSecurityHealthAnalyticsCustomModule(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls + .updateSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .updateSecurityHealthAnalyticsCustomModule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateSecurityHealthAnalyticsCustomModule with closed client', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest() + ); + request.securityHealthAnalyticsCustomModule ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest', + ['securityHealthAnalyticsCustomModule', 'name'] + ); + request.securityHealthAnalyticsCustomModule.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateSecurityHealthAnalyticsCustomModule(request), + expectedError + ); + }); + }); + + describe('updateSource', () => { + it('invokes updateSource without error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.UpdateSourceRequest() + ); + request.source ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateSourceRequest', + ['source', 'name'] + ); + request.source.name = defaultValue1; + const expectedHeaderRequestParams = `source.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.Source() + ); + client.innerApiCalls.updateSource = stubSimpleCall(expectedResponse); + const [response] = await client.updateSource(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateSource as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateSource as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateSource without error using callback', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.UpdateSourceRequest() + ); + request.source ??= {}; const defaultValue1 = getTypeDefaultValue( '.google.cloud.securitycenter.v1.UpdateSourceRequest', ['source', 'name'] @@ -5102,81 +5814,87 @@ describe('v1.SecurityCenterClient', () => { }); }); - describe('listFindings', () => { - it('invokes listFindings without error', async () => { + describe('listDescendantSecurityHealthAnalyticsCustomModules', () => { + it('invokes listDescendantSecurityHealthAnalyticsCustomModules without error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsRequest() + new protos.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListFindingsRequest', + '.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), ]; - client.innerApiCalls.listFindings = stubSimpleCall(expectedResponse); - const [response] = await client.listFindings(request); + client.innerApiCalls.listDescendantSecurityHealthAnalyticsCustomModules = + stubSimpleCall(expectedResponse); + const [response] = + await client.listDescendantSecurityHealthAnalyticsCustomModules( + request + ); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listFindings as SinonStub + client.innerApiCalls + .listDescendantSecurityHealthAnalyticsCustomModules as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listFindings as SinonStub + client.innerApiCalls + .listDescendantSecurityHealthAnalyticsCustomModules as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listFindings without error using callback', async () => { + it('invokes listDescendantSecurityHealthAnalyticsCustomModules without error using callback', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsRequest() + new protos.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListFindingsRequest', + '.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), ]; - client.innerApiCalls.listFindings = + client.innerApiCalls.listDescendantSecurityHealthAnalyticsCustomModules = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listFindings( + client.listDescendantSecurityHealthAnalyticsCustomModules( request, ( err?: Error | null, result?: - | protos.google.cloud.securitycenter.v1.ListFindingsResponse.IListFindingsResult[] + | protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule[] | null ) => { if (err) { @@ -5190,82 +5908,90 @@ describe('v1.SecurityCenterClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listFindings as SinonStub + client.innerApiCalls + .listDescendantSecurityHealthAnalyticsCustomModules as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listFindings as SinonStub + client.innerApiCalls + .listDescendantSecurityHealthAnalyticsCustomModules as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listFindings with error', async () => { + it('invokes listDescendantSecurityHealthAnalyticsCustomModules with error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsRequest() + new protos.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListFindingsRequest', + '.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listFindings = stubSimpleCall( - undefined, + client.innerApiCalls.listDescendantSecurityHealthAnalyticsCustomModules = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.listDescendantSecurityHealthAnalyticsCustomModules(request), expectedError ); - await assert.rejects(client.listFindings(request), expectedError); const actualRequest = ( - client.innerApiCalls.listFindings as SinonStub + client.innerApiCalls + .listDescendantSecurityHealthAnalyticsCustomModules as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listFindings as SinonStub + client.innerApiCalls + .listDescendantSecurityHealthAnalyticsCustomModules as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listFindingsStream without error', async () => { + it('invokes listDescendantSecurityHealthAnalyticsCustomModulesStream without error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsRequest() + new protos.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListFindingsRequest', + '.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), ]; - client.descriptors.page.listFindings.createStream = + client.descriptors.page.listDescendantSecurityHealthAnalyticsCustomModules.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listFindingsStream(request); + const stream = + client.listDescendantSecurityHealthAnalyticsCustomModulesStream( + request + ); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult[] = + const responses: protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule[] = []; stream.on( 'data', ( - response: protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + response: protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule ) => { responses.push(response); } @@ -5280,12 +6006,24 @@ describe('v1.SecurityCenterClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listFindings.createStream as SinonStub) + ( + client.descriptors.page + .listDescendantSecurityHealthAnalyticsCustomModules + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listFindings, request) + .calledWith( + client.innerApiCalls + .listDescendantSecurityHealthAnalyticsCustomModules, + request + ) ); assert( - (client.descriptors.page.listFindings.createStream as SinonStub) + ( + client.descriptors.page + .listDescendantSecurityHealthAnalyticsCustomModules + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -5293,34 +6031,35 @@ describe('v1.SecurityCenterClient', () => { ); }); - it('invokes listFindingsStream with error', async () => { + it('invokes listDescendantSecurityHealthAnalyticsCustomModulesStream with error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsRequest() + new protos.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListFindingsRequest', + '.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listFindings.createStream = stubPageStreamingCall( - undefined, - expectedError - ); - const stream = client.listFindingsStream(request); + client.descriptors.page.listDescendantSecurityHealthAnalyticsCustomModules.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = + client.listDescendantSecurityHealthAnalyticsCustomModulesStream( + request + ); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult[] = + const responses: protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule[] = []; stream.on( 'data', ( - response: protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + response: protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule ) => { responses.push(response); } @@ -5334,12 +6073,24 @@ describe('v1.SecurityCenterClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listFindings.createStream as SinonStub) + ( + client.descriptors.page + .listDescendantSecurityHealthAnalyticsCustomModules + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listFindings, request) + .calledWith( + client.innerApiCalls + .listDescendantSecurityHealthAnalyticsCustomModules, + request + ) ); assert( - (client.descriptors.page.listFindings.createStream as SinonStub) + ( + client.descriptors.page + .listDescendantSecurityHealthAnalyticsCustomModules + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -5347,49 +6098,56 @@ describe('v1.SecurityCenterClient', () => { ); }); - it('uses async iteration with listFindings without error', async () => { + it('uses async iteration with listDescendantSecurityHealthAnalyticsCustomModules without error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsRequest() + new protos.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListFindingsRequest', + '.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), ]; - client.descriptors.page.listFindings.asyncIterate = + client.descriptors.page.listDescendantSecurityHealthAnalyticsCustomModules.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.securitycenter.v1.ListFindingsResponse.IListFindingsResult[] = + const responses: protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule[] = []; - const iterable = client.listFindingsAsync(request); + const iterable = + client.listDescendantSecurityHealthAnalyticsCustomModulesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listFindings.asyncIterate as SinonStub + client.descriptors.page + .listDescendantSecurityHealthAnalyticsCustomModules + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listFindings.asyncIterate as SinonStub) + ( + client.descriptors.page + .listDescendantSecurityHealthAnalyticsCustomModules + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -5397,27 +6155,28 @@ describe('v1.SecurityCenterClient', () => { ); }); - it('uses async iteration with listFindings with error', async () => { + it('uses async iteration with listDescendantSecurityHealthAnalyticsCustomModules with error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListFindingsRequest() + new protos.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListFindingsRequest', + '.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listFindings.asyncIterate = + client.descriptors.page.listDescendantSecurityHealthAnalyticsCustomModules.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listFindingsAsync(request); + const iterable = + client.listDescendantSecurityHealthAnalyticsCustomModulesAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.securitycenter.v1.ListFindingsResponse.IListFindingsResult[] = + const responses: protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -5425,12 +6184,18 @@ describe('v1.SecurityCenterClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listFindings.asyncIterate as SinonStub + client.descriptors.page + .listDescendantSecurityHealthAnalyticsCustomModules + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listFindings.asyncIterate as SinonStub) + ( + client.descriptors.page + .listDescendantSecurityHealthAnalyticsCustomModules + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -5439,80 +6204,82 @@ describe('v1.SecurityCenterClient', () => { }); }); - describe('listMuteConfigs', () => { - it('invokes listMuteConfigs without error', async () => { + describe('listFindings', () => { + it('invokes listFindings without error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() + new protos.google.cloud.securitycenter.v1.ListFindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + '.google.cloud.securitycenter.v1.ListFindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.securitycenter.v1.MuteConfig() + new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.MuteConfig() + new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.MuteConfig() + new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() ), ]; - client.innerApiCalls.listMuteConfigs = stubSimpleCall(expectedResponse); - const [response] = await client.listMuteConfigs(request); + client.innerApiCalls.listFindings = stubSimpleCall(expectedResponse); + const [response] = await client.listFindings(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listMuteConfigs as SinonStub + client.innerApiCalls.listFindings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listMuteConfigs as SinonStub + client.innerApiCalls.listFindings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listMuteConfigs without error using callback', async () => { + it('invokes listFindings without error using callback', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() + new protos.google.cloud.securitycenter.v1.ListFindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + '.google.cloud.securitycenter.v1.ListFindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.securitycenter.v1.MuteConfig() + new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.MuteConfig() + new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.MuteConfig() + new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() ), ]; - client.innerApiCalls.listMuteConfigs = + client.innerApiCalls.listFindings = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listMuteConfigs( + client.listFindings( request, ( err?: Error | null, - result?: protos.google.cloud.securitycenter.v1.IMuteConfig[] | null + result?: + | protos.google.cloud.securitycenter.v1.ListFindingsResponse.IListFindingsResult[] + | null ) => { if (err) { reject(err); @@ -5525,81 +6292,1117 @@ describe('v1.SecurityCenterClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listMuteConfigs as SinonStub + client.innerApiCalls.listFindings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listMuteConfigs as SinonStub + client.innerApiCalls.listFindings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listMuteConfigs with error', async () => { + it('invokes listFindings with error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() + new protos.google.cloud.securitycenter.v1.ListFindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + '.google.cloud.securitycenter.v1.ListFindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listMuteConfigs = stubSimpleCall( + client.innerApiCalls.listFindings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listFindings(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listFindings as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFindings as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listFindingsStream without error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListFindingsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListFindingsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + ), + ]; + client.descriptors.page.listFindings.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listFindingsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listFindings.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listFindings, request) + ); + assert( + (client.descriptors.page.listFindings.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listFindingsStream with error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListFindingsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListFindingsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listFindings.createStream = stubPageStreamingCall( undefined, expectedError ); - await assert.rejects(client.listMuteConfigs(request), expectedError); + const stream = client.listFindingsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listFindings.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listFindings, request) + ); + assert( + (client.descriptors.page.listFindings.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listFindings without error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListFindingsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListFindingsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult() + ), + ]; + client.descriptors.page.listFindings.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.securitycenter.v1.ListFindingsResponse.IListFindingsResult[] = + []; + const iterable = client.listFindingsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listFindings.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listFindings.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listFindings with error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListFindingsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListFindingsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listFindings.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listFindingsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.securitycenter.v1.ListFindingsResponse.IListFindingsResult[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listFindings.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listFindings.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listMuteConfigs', () => { + it('invokes listMuteConfigs without error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.MuteConfig() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.MuteConfig() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.MuteConfig() + ), + ]; + client.innerApiCalls.listMuteConfigs = stubSimpleCall(expectedResponse); + const [response] = await client.listMuteConfigs(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listMuteConfigs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listMuteConfigs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listMuteConfigs without error using callback', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.MuteConfig() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.MuteConfig() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.MuteConfig() + ), + ]; + client.innerApiCalls.listMuteConfigs = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listMuteConfigs( + request, + ( + err?: Error | null, + result?: protos.google.cloud.securitycenter.v1.IMuteConfig[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listMuteConfigs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listMuteConfigs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listMuteConfigs with error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listMuteConfigs = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listMuteConfigs(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listMuteConfigs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listMuteConfigs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listMuteConfigsStream without error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.MuteConfig() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.MuteConfig() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.MuteConfig() + ), + ]; + client.descriptors.page.listMuteConfigs.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listMuteConfigsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.securitycenter.v1.MuteConfig[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.securitycenter.v1.MuteConfig) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listMuteConfigs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listMuteConfigs, request) + ); + assert( + (client.descriptors.page.listMuteConfigs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listMuteConfigsStream with error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listMuteConfigs.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listMuteConfigsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.securitycenter.v1.MuteConfig[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.securitycenter.v1.MuteConfig) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listMuteConfigs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listMuteConfigs, request) + ); + assert( + (client.descriptors.page.listMuteConfigs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listMuteConfigs without error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.MuteConfig() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.MuteConfig() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.MuteConfig() + ), + ]; + client.descriptors.page.listMuteConfigs.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.securitycenter.v1.IMuteConfig[] = []; + const iterable = client.listMuteConfigsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listMuteConfigs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listMuteConfigs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listMuteConfigs with error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listMuteConfigs.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listMuteConfigsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.securitycenter.v1.IMuteConfig[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listMuteConfigs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listMuteConfigs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listNotificationConfigs', () => { + it('invokes listNotificationConfigs without error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.NotificationConfig() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.NotificationConfig() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.NotificationConfig() + ), + ]; + client.innerApiCalls.listNotificationConfigs = + stubSimpleCall(expectedResponse); + const [response] = await client.listNotificationConfigs(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listNotificationConfigs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listNotificationConfigs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listNotificationConfigs without error using callback', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.NotificationConfig() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.NotificationConfig() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.NotificationConfig() + ), + ]; + client.innerApiCalls.listNotificationConfigs = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listNotificationConfigs( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.securitycenter.v1.INotificationConfig[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listNotificationConfigs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listNotificationConfigs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listNotificationConfigs with error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listNotificationConfigs = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.listNotificationConfigs(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.listNotificationConfigs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listNotificationConfigs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listNotificationConfigsStream without error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.NotificationConfig() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.NotificationConfig() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.NotificationConfig() + ), + ]; + client.descriptors.page.listNotificationConfigs.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listNotificationConfigsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.securitycenter.v1.NotificationConfig[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.securitycenter.v1.NotificationConfig + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + ( + client.descriptors.page.listNotificationConfigs + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.listNotificationConfigs, request) + ); + assert( + ( + client.descriptors.page.listNotificationConfigs + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listNotificationConfigsStream with error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listNotificationConfigs.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listNotificationConfigsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.securitycenter.v1.NotificationConfig[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.securitycenter.v1.NotificationConfig + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + ( + client.descriptors.page.listNotificationConfigs + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.listNotificationConfigs, request) + ); + assert( + ( + client.descriptors.page.listNotificationConfigs + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listNotificationConfigs without error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.NotificationConfig() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.NotificationConfig() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.NotificationConfig() + ), + ]; + client.descriptors.page.listNotificationConfigs.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.securitycenter.v1.INotificationConfig[] = + []; + const iterable = client.listNotificationConfigsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listNotificationConfigs + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.listNotificationConfigs + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listNotificationConfigs with error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listNotificationConfigs.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listNotificationConfigsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.securitycenter.v1.INotificationConfig[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listNotificationConfigs + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.listNotificationConfigs + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listEffectiveSecurityHealthAnalyticsCustomModules', () => { + it('invokes listEffectiveSecurityHealthAnalyticsCustomModules without error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule() + ), + ]; + client.innerApiCalls.listEffectiveSecurityHealthAnalyticsCustomModules = + stubSimpleCall(expectedResponse); + const [response] = + await client.listEffectiveSecurityHealthAnalyticsCustomModules(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls + .listEffectiveSecurityHealthAnalyticsCustomModules as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .listEffectiveSecurityHealthAnalyticsCustomModules as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listEffectiveSecurityHealthAnalyticsCustomModules without error using callback', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule() + ), + generateSampleMessage( + new protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule() + ), + ]; + client.innerApiCalls.listEffectiveSecurityHealthAnalyticsCustomModules = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listEffectiveSecurityHealthAnalyticsCustomModules( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls + .listEffectiveSecurityHealthAnalyticsCustomModules as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls + .listEffectiveSecurityHealthAnalyticsCustomModules as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listEffectiveSecurityHealthAnalyticsCustomModules with error', async () => { + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listEffectiveSecurityHealthAnalyticsCustomModules = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.listEffectiveSecurityHealthAnalyticsCustomModules(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.listMuteConfigs as SinonStub + client.innerApiCalls + .listEffectiveSecurityHealthAnalyticsCustomModules as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listMuteConfigs as SinonStub + client.innerApiCalls + .listEffectiveSecurityHealthAnalyticsCustomModules as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listMuteConfigsStream without error', async () => { + it('invokes listEffectiveSecurityHealthAnalyticsCustomModulesStream without error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() + new protos.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + '.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.securitycenter.v1.MuteConfig() + new protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.MuteConfig() + new protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.MuteConfig() + new protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule() ), ]; - client.descriptors.page.listMuteConfigs.createStream = + client.descriptors.page.listEffectiveSecurityHealthAnalyticsCustomModules.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listMuteConfigsStream(request); + const stream = + client.listEffectiveSecurityHealthAnalyticsCustomModulesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.securitycenter.v1.MuteConfig[] = + const responses: protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule[] = []; stream.on( 'data', - (response: protos.google.cloud.securitycenter.v1.MuteConfig) => { + ( + response: protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + ) => { responses.push(response); } ); @@ -5613,12 +7416,24 @@ describe('v1.SecurityCenterClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listMuteConfigs.createStream as SinonStub) + ( + client.descriptors.page + .listEffectiveSecurityHealthAnalyticsCustomModules + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listMuteConfigs, request) + .calledWith( + client.innerApiCalls + .listEffectiveSecurityHealthAnalyticsCustomModules, + request + ) ); assert( - (client.descriptors.page.listMuteConfigs.createStream as SinonStub) + ( + client.descriptors.page + .listEffectiveSecurityHealthAnalyticsCustomModules + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -5626,31 +7441,34 @@ describe('v1.SecurityCenterClient', () => { ); }); - it('invokes listMuteConfigsStream with error', async () => { + it('invokes listEffectiveSecurityHealthAnalyticsCustomModulesStream with error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() + new protos.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + '.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listMuteConfigs.createStream = + client.descriptors.page.listEffectiveSecurityHealthAnalyticsCustomModules.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listMuteConfigsStream(request); + const stream = + client.listEffectiveSecurityHealthAnalyticsCustomModulesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.securitycenter.v1.MuteConfig[] = + const responses: protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule[] = []; stream.on( 'data', - (response: protos.google.cloud.securitycenter.v1.MuteConfig) => { + ( + response: protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + ) => { responses.push(response); } ); @@ -5663,12 +7481,24 @@ describe('v1.SecurityCenterClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listMuteConfigs.createStream as SinonStub) + ( + client.descriptors.page + .listEffectiveSecurityHealthAnalyticsCustomModules + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listMuteConfigs, request) + .calledWith( + client.innerApiCalls + .listEffectiveSecurityHealthAnalyticsCustomModules, + request + ) ); assert( - (client.descriptors.page.listMuteConfigs.createStream as SinonStub) + ( + client.descriptors.page + .listEffectiveSecurityHealthAnalyticsCustomModules + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -5676,48 +7506,56 @@ describe('v1.SecurityCenterClient', () => { ); }); - it('uses async iteration with listMuteConfigs without error', async () => { + it('uses async iteration with listEffectiveSecurityHealthAnalyticsCustomModules without error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() + new protos.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + '.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.securitycenter.v1.MuteConfig() + new protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.MuteConfig() + new protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.MuteConfig() + new protos.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule() ), ]; - client.descriptors.page.listMuteConfigs.asyncIterate = + client.descriptors.page.listEffectiveSecurityHealthAnalyticsCustomModules.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.securitycenter.v1.IMuteConfig[] = []; - const iterable = client.listMuteConfigsAsync(request); + const responses: protos.google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule[] = + []; + const iterable = + client.listEffectiveSecurityHealthAnalyticsCustomModulesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listMuteConfigs.asyncIterate as SinonStub + client.descriptors.page + .listEffectiveSecurityHealthAnalyticsCustomModules + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listMuteConfigs.asyncIterate as SinonStub) + ( + client.descriptors.page + .listEffectiveSecurityHealthAnalyticsCustomModules + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -5725,27 +7563,28 @@ describe('v1.SecurityCenterClient', () => { ); }); - it('uses async iteration with listMuteConfigs with error', async () => { + it('uses async iteration with listEffectiveSecurityHealthAnalyticsCustomModules with error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() + new protos.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + '.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listMuteConfigs.asyncIterate = + client.descriptors.page.listEffectiveSecurityHealthAnalyticsCustomModules.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listMuteConfigsAsync(request); + const iterable = + client.listEffectiveSecurityHealthAnalyticsCustomModulesAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.securitycenter.v1.IMuteConfig[] = + const responses: protos.google.cloud.securitycenter.v1.IEffectiveSecurityHealthAnalyticsCustomModule[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -5753,12 +7592,18 @@ describe('v1.SecurityCenterClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listMuteConfigs.asyncIterate as SinonStub + client.descriptors.page + .listEffectiveSecurityHealthAnalyticsCustomModules + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listMuteConfigs.asyncIterate as SinonStub) + ( + client.descriptors.page + .listEffectiveSecurityHealthAnalyticsCustomModules + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -5767,82 +7612,86 @@ describe('v1.SecurityCenterClient', () => { }); }); - describe('listNotificationConfigs', () => { - it('invokes listNotificationConfigs without error', async () => { + describe('listSecurityHealthAnalyticsCustomModules', () => { + it('invokes listSecurityHealthAnalyticsCustomModules without error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() + new protos.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.securitycenter.v1.NotificationConfig() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.NotificationConfig() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.NotificationConfig() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), ]; - client.innerApiCalls.listNotificationConfigs = + client.innerApiCalls.listSecurityHealthAnalyticsCustomModules = stubSimpleCall(expectedResponse); - const [response] = await client.listNotificationConfigs(request); + const [response] = await client.listSecurityHealthAnalyticsCustomModules( + request + ); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listNotificationConfigs as SinonStub + client.innerApiCalls + .listSecurityHealthAnalyticsCustomModules as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listNotificationConfigs as SinonStub + client.innerApiCalls + .listSecurityHealthAnalyticsCustomModules as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listNotificationConfigs without error using callback', async () => { + it('invokes listSecurityHealthAnalyticsCustomModules without error using callback', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() + new protos.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.securitycenter.v1.NotificationConfig() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.NotificationConfig() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.NotificationConfig() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), ]; - client.innerApiCalls.listNotificationConfigs = + client.innerApiCalls.listSecurityHealthAnalyticsCustomModules = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listNotificationConfigs( + client.listSecurityHealthAnalyticsCustomModules( request, ( err?: Error | null, result?: - | protos.google.cloud.securitycenter.v1.INotificationConfig[] + | protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule[] | null ) => { if (err) { @@ -5856,85 +7705,88 @@ describe('v1.SecurityCenterClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listNotificationConfigs as SinonStub + client.innerApiCalls + .listSecurityHealthAnalyticsCustomModules as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listNotificationConfigs as SinonStub + client.innerApiCalls + .listSecurityHealthAnalyticsCustomModules as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listNotificationConfigs with error', async () => { + it('invokes listSecurityHealthAnalyticsCustomModules with error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() + new protos.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listNotificationConfigs = stubSimpleCall( - undefined, - expectedError - ); + client.innerApiCalls.listSecurityHealthAnalyticsCustomModules = + stubSimpleCall(undefined, expectedError); await assert.rejects( - client.listNotificationConfigs(request), + client.listSecurityHealthAnalyticsCustomModules(request), expectedError ); const actualRequest = ( - client.innerApiCalls.listNotificationConfigs as SinonStub + client.innerApiCalls + .listSecurityHealthAnalyticsCustomModules as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listNotificationConfigs as SinonStub + client.innerApiCalls + .listSecurityHealthAnalyticsCustomModules as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listNotificationConfigsStream without error', async () => { + it('invokes listSecurityHealthAnalyticsCustomModulesStream without error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() + new protos.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.securitycenter.v1.NotificationConfig() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.NotificationConfig() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.NotificationConfig() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), ]; - client.descriptors.page.listNotificationConfigs.createStream = + client.descriptors.page.listSecurityHealthAnalyticsCustomModules.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listNotificationConfigsStream(request); + const stream = + client.listSecurityHealthAnalyticsCustomModulesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.securitycenter.v1.NotificationConfig[] = + const responses: protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule[] = []; stream.on( 'data', ( - response: protos.google.cloud.securitycenter.v1.NotificationConfig + response: protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule ) => { responses.push(response); } @@ -5950,15 +7802,18 @@ describe('v1.SecurityCenterClient', () => { assert.deepStrictEqual(responses, expectedResponse); assert( ( - client.descriptors.page.listNotificationConfigs + client.descriptors.page.listSecurityHealthAnalyticsCustomModules .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.listNotificationConfigs, request) + .calledWith( + client.innerApiCalls.listSecurityHealthAnalyticsCustomModules, + request + ) ); assert( ( - client.descriptors.page.listNotificationConfigs + client.descriptors.page.listSecurityHealthAnalyticsCustomModules .createStream as SinonStub ) .getCall(0) @@ -5968,32 +7823,33 @@ describe('v1.SecurityCenterClient', () => { ); }); - it('invokes listNotificationConfigsStream with error', async () => { + it('invokes listSecurityHealthAnalyticsCustomModulesStream with error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() + new protos.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listNotificationConfigs.createStream = + client.descriptors.page.listSecurityHealthAnalyticsCustomModules.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listNotificationConfigsStream(request); + const stream = + client.listSecurityHealthAnalyticsCustomModulesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.securitycenter.v1.NotificationConfig[] = + const responses: protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule[] = []; stream.on( 'data', ( - response: protos.google.cloud.securitycenter.v1.NotificationConfig + response: protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule ) => { responses.push(response); } @@ -6008,15 +7864,18 @@ describe('v1.SecurityCenterClient', () => { await assert.rejects(promise, expectedError); assert( ( - client.descriptors.page.listNotificationConfigs + client.descriptors.page.listSecurityHealthAnalyticsCustomModules .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.listNotificationConfigs, request) + .calledWith( + client.innerApiCalls.listSecurityHealthAnalyticsCustomModules, + request + ) ); assert( ( - client.descriptors.page.listNotificationConfigs + client.descriptors.page.listSecurityHealthAnalyticsCustomModules .createStream as SinonStub ) .getCall(0) @@ -6026,51 +7885,52 @@ describe('v1.SecurityCenterClient', () => { ); }); - it('uses async iteration with listNotificationConfigs without error', async () => { + it('uses async iteration with listSecurityHealthAnalyticsCustomModules without error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() + new protos.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.securitycenter.v1.NotificationConfig() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.NotificationConfig() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), generateSampleMessage( - new protos.google.cloud.securitycenter.v1.NotificationConfig() + new protos.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule() ), ]; - client.descriptors.page.listNotificationConfigs.asyncIterate = + client.descriptors.page.listSecurityHealthAnalyticsCustomModules.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.securitycenter.v1.INotificationConfig[] = + const responses: protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule[] = []; - const iterable = client.listNotificationConfigsAsync(request); + const iterable = + client.listSecurityHealthAnalyticsCustomModulesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listNotificationConfigs + client.descriptors.page.listSecurityHealthAnalyticsCustomModules .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( ( - client.descriptors.page.listNotificationConfigs + client.descriptors.page.listSecurityHealthAnalyticsCustomModules .asyncIterate as SinonStub ) .getCall(0) @@ -6080,27 +7940,28 @@ describe('v1.SecurityCenterClient', () => { ); }); - it('uses async iteration with listNotificationConfigs with error', async () => { + it('uses async iteration with listSecurityHealthAnalyticsCustomModules with error', async () => { const client = new securitycenterModule.v1.SecurityCenterClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() + new protos.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listNotificationConfigs.asyncIterate = + client.descriptors.page.listSecurityHealthAnalyticsCustomModules.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listNotificationConfigsAsync(request); + const iterable = + client.listSecurityHealthAnalyticsCustomModulesAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.securitycenter.v1.INotificationConfig[] = + const responses: protos.google.cloud.securitycenter.v1.ISecurityHealthAnalyticsCustomModule[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -6108,14 +7969,14 @@ describe('v1.SecurityCenterClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listNotificationConfigs + client.descriptors.page.listSecurityHealthAnalyticsCustomModules .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( ( - client.descriptors.page.listNotificationConfigs + client.descriptors.page.listSecurityHealthAnalyticsCustomModules .asyncIterate as SinonStub ) .getCall(0) @@ -7349,7 +9210,146 @@ describe('v1.SecurityCenterClient', () => { assert.strictEqual(result, 'folderValue'); assert( ( - client.pathTemplates.folderNotificationConfigPathTemplate + client.pathTemplates.folderNotificationConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNotificationConfigFromFolderNotificationConfigName', () => { + const result = + client.matchNotificationConfigFromFolderNotificationConfigName( + fakePath + ); + assert.strictEqual(result, 'notificationConfigValue'); + assert( + ( + client.pathTemplates.folderNotificationConfigPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('folderSecurityHealthAnalyticsSettingsCustomModule', () => { + const fakePath = + '/rendered/path/folderSecurityHealthAnalyticsSettingsCustomModule'; + const expectedParameters = { + folder: 'folderValue', + custom_module: 'customModuleValue', + }; + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.folderSecurityHealthAnalyticsSettingsCustomModulePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.folderSecurityHealthAnalyticsSettingsCustomModulePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('folderSecurityHealthAnalyticsSettingsCustomModulePath', () => { + const result = + client.folderSecurityHealthAnalyticsSettingsCustomModulePath( + 'folderValue', + 'customModuleValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .folderSecurityHealthAnalyticsSettingsCustomModulePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchFolderFromFolderSecurityHealthAnalyticsSettingsCustomModuleName', () => { + const result = + client.matchFolderFromFolderSecurityHealthAnalyticsSettingsCustomModuleName( + fakePath + ); + assert.strictEqual(result, 'folderValue'); + assert( + ( + client.pathTemplates + .folderSecurityHealthAnalyticsSettingsCustomModulePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchCustomModuleFromFolderSecurityHealthAnalyticsSettingsCustomModuleName', () => { + const result = + client.matchCustomModuleFromFolderSecurityHealthAnalyticsSettingsCustomModuleName( + fakePath + ); + assert.strictEqual(result, 'customModuleValue'); + assert( + ( + client.pathTemplates + .folderSecurityHealthAnalyticsSettingsCustomModulePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('folderSecurityHealthAnalyticsSettingsEffectiveCustomModule', () => { + const fakePath = + '/rendered/path/folderSecurityHealthAnalyticsSettingsEffectiveCustomModule'; + const expectedParameters = { + folder: 'folderValue', + effective_custom_module: 'effectiveCustomModuleValue', + }; + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.folderSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.folderSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('folderSecurityHealthAnalyticsSettingsEffectiveCustomModulePath', () => { + const result = + client.folderSecurityHealthAnalyticsSettingsEffectiveCustomModulePath( + 'folderValue', + 'effectiveCustomModuleValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .folderSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchFolderFromFolderSecurityHealthAnalyticsSettingsEffectiveCustomModuleName', () => { + const result = + client.matchFolderFromFolderSecurityHealthAnalyticsSettingsEffectiveCustomModuleName( + fakePath + ); + assert.strictEqual(result, 'folderValue'); + assert( + ( + client.pathTemplates + .folderSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate .match as SinonStub ) .getCall(-1) @@ -7357,15 +9357,16 @@ describe('v1.SecurityCenterClient', () => { ); }); - it('matchNotificationConfigFromFolderNotificationConfigName', () => { + it('matchEffectiveCustomModuleFromFolderSecurityHealthAnalyticsSettingsEffectiveCustomModuleName', () => { const result = - client.matchNotificationConfigFromFolderNotificationConfigName( + client.matchEffectiveCustomModuleFromFolderSecurityHealthAnalyticsSettingsEffectiveCustomModuleName( fakePath ); - assert.strictEqual(result, 'notificationConfigValue'); + assert.strictEqual(result, 'effectiveCustomModuleValue'); assert( ( - client.pathTemplates.folderNotificationConfigPathTemplate + client.pathTemplates + .folderSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate .match as SinonStub ) .getCall(-1) @@ -8026,6 +10027,197 @@ describe('v1.SecurityCenterClient', () => { }); }); + describe('organizationSecurityHealthAnalyticsSettings', () => { + const fakePath = + '/rendered/path/organizationSecurityHealthAnalyticsSettings'; + const expectedParameters = { + organization: 'organizationValue', + }; + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.organizationSecurityHealthAnalyticsSettingsPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.organizationSecurityHealthAnalyticsSettingsPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('organizationSecurityHealthAnalyticsSettingsPath', () => { + const result = + client.organizationSecurityHealthAnalyticsSettingsPath( + 'organizationValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .organizationSecurityHealthAnalyticsSettingsPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchOrganizationFromOrganizationSecurityHealthAnalyticsSettingsName', () => { + const result = + client.matchOrganizationFromOrganizationSecurityHealthAnalyticsSettingsName( + fakePath + ); + assert.strictEqual(result, 'organizationValue'); + assert( + ( + client.pathTemplates + .organizationSecurityHealthAnalyticsSettingsPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('organizationSecurityHealthAnalyticsSettingsCustomModule', () => { + const fakePath = + '/rendered/path/organizationSecurityHealthAnalyticsSettingsCustomModule'; + const expectedParameters = { + organization: 'organizationValue', + custom_module: 'customModuleValue', + }; + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.organizationSecurityHealthAnalyticsSettingsCustomModulePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.organizationSecurityHealthAnalyticsSettingsCustomModulePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('organizationSecurityHealthAnalyticsSettingsCustomModulePath', () => { + const result = + client.organizationSecurityHealthAnalyticsSettingsCustomModulePath( + 'organizationValue', + 'customModuleValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .organizationSecurityHealthAnalyticsSettingsCustomModulePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchOrganizationFromOrganizationSecurityHealthAnalyticsSettingsCustomModuleName', () => { + const result = + client.matchOrganizationFromOrganizationSecurityHealthAnalyticsSettingsCustomModuleName( + fakePath + ); + assert.strictEqual(result, 'organizationValue'); + assert( + ( + client.pathTemplates + .organizationSecurityHealthAnalyticsSettingsCustomModulePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchCustomModuleFromOrganizationSecurityHealthAnalyticsSettingsCustomModuleName', () => { + const result = + client.matchCustomModuleFromOrganizationSecurityHealthAnalyticsSettingsCustomModuleName( + fakePath + ); + assert.strictEqual(result, 'customModuleValue'); + assert( + ( + client.pathTemplates + .organizationSecurityHealthAnalyticsSettingsCustomModulePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('organizationSecurityHealthAnalyticsSettingsEffectiveCustomModule', () => { + const fakePath = + '/rendered/path/organizationSecurityHealthAnalyticsSettingsEffectiveCustomModule'; + const expectedParameters = { + organization: 'organizationValue', + effective_custom_module: 'effectiveCustomModuleValue', + }; + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.organizationSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.organizationSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('organizationSecurityHealthAnalyticsSettingsEffectiveCustomModulePath', () => { + const result = + client.organizationSecurityHealthAnalyticsSettingsEffectiveCustomModulePath( + 'organizationValue', + 'effectiveCustomModuleValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .organizationSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchOrganizationFromOrganizationSecurityHealthAnalyticsSettingsEffectiveCustomModuleName', () => { + const result = + client.matchOrganizationFromOrganizationSecurityHealthAnalyticsSettingsEffectiveCustomModuleName( + fakePath + ); + assert.strictEqual(result, 'organizationValue'); + assert( + ( + client.pathTemplates + .organizationSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEffectiveCustomModuleFromOrganizationSecurityHealthAnalyticsSettingsEffectiveCustomModuleName', () => { + const result = + client.matchEffectiveCustomModuleFromOrganizationSecurityHealthAnalyticsSettingsEffectiveCustomModuleName( + fakePath + ); + assert.strictEqual(result, 'effectiveCustomModuleValue'); + assert( + ( + client.pathTemplates + .organizationSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('organizationSettings', () => { const fakePath = '/rendered/path/organizationSettings'; const expectedParameters = { @@ -8693,6 +10885,146 @@ describe('v1.SecurityCenterClient', () => { }); }); + describe('projectSecurityHealthAnalyticsSettingsCustomModule', () => { + const fakePath = + '/rendered/path/projectSecurityHealthAnalyticsSettingsCustomModule'; + const expectedParameters = { + project: 'projectValue', + custom_module: 'customModuleValue', + }; + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectSecurityHealthAnalyticsSettingsCustomModulePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectSecurityHealthAnalyticsSettingsCustomModulePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectSecurityHealthAnalyticsSettingsCustomModulePath', () => { + const result = + client.projectSecurityHealthAnalyticsSettingsCustomModulePath( + 'projectValue', + 'customModuleValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectSecurityHealthAnalyticsSettingsCustomModulePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectSecurityHealthAnalyticsSettingsCustomModuleName', () => { + const result = + client.matchProjectFromProjectSecurityHealthAnalyticsSettingsCustomModuleName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectSecurityHealthAnalyticsSettingsCustomModulePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchCustomModuleFromProjectSecurityHealthAnalyticsSettingsCustomModuleName', () => { + const result = + client.matchCustomModuleFromProjectSecurityHealthAnalyticsSettingsCustomModuleName( + fakePath + ); + assert.strictEqual(result, 'customModuleValue'); + assert( + ( + client.pathTemplates + .projectSecurityHealthAnalyticsSettingsCustomModulePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectSecurityHealthAnalyticsSettingsEffectiveCustomModule', () => { + const fakePath = + '/rendered/path/projectSecurityHealthAnalyticsSettingsEffectiveCustomModule'; + const expectedParameters = { + project: 'projectValue', + effective_custom_module: 'effectiveCustomModuleValue', + }; + const client = new securitycenterModule.v1.SecurityCenterClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectSecurityHealthAnalyticsSettingsEffectiveCustomModulePath', () => { + const result = + client.projectSecurityHealthAnalyticsSettingsEffectiveCustomModulePath( + 'projectValue', + 'effectiveCustomModuleValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectSecurityHealthAnalyticsSettingsEffectiveCustomModuleName', () => { + const result = + client.matchProjectFromProjectSecurityHealthAnalyticsSettingsEffectiveCustomModuleName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEffectiveCustomModuleFromProjectSecurityHealthAnalyticsSettingsEffectiveCustomModuleName', () => { + const result = + client.matchEffectiveCustomModuleFromProjectSecurityHealthAnalyticsSettingsEffectiveCustomModuleName( + fakePath + ); + assert.strictEqual(result, 'effectiveCustomModuleValue'); + assert( + ( + client.pathTemplates + .projectSecurityHealthAnalyticsSettingsEffectiveCustomModulePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectSource', () => { const fakePath = '/rendered/path/projectSource'; const expectedParameters = {