mute_config.proto 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.securitycenter.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/timestamp.proto";
  19. option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "MuteConfigProto";
  23. option java_package = "com.google.cloud.securitycenter.v1";
  24. option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
  25. option ruby_package = "Google::Cloud::SecurityCenter::V1";
  26. // A mute config is a Cloud SCC resource that contains the configuration
  27. // to mute create/update events of findings.
  28. message MuteConfig {
  29. option (google.api.resource) = {
  30. type: "securitycenter.googleapis.com/MuteConfig"
  31. pattern: "organizations/{organization}/muteConfigs/{mute_config}"
  32. pattern: "folders/{folder}/muteConfigs/{mute_config}"
  33. pattern: "projects/{project}/muteConfigs/{mute_config}"
  34. };
  35. // This field will be ignored if provided on config creation. Format
  36. // "organizations/{organization}/muteConfigs/{mute_config}"
  37. // "folders/{folder}/muteConfigs/{mute_config}"
  38. // "projects/{project}/muteConfigs/{mute_config}"
  39. string name = 1;
  40. // The human readable name to be displayed for the mute config.
  41. string display_name = 2 [deprecated = true];
  42. // A description of the mute config.
  43. string description = 3;
  44. // Required. An expression that defines the filter to apply across create/update events
  45. // of findings. While creating a filter string, be mindful of the
  46. // scope in which the mute configuration is being created. E.g., If a filter
  47. // contains project = X but is created under the project = Y scope, it might
  48. // not match any findings.
  49. //
  50. // The following field and operator combinations are supported:
  51. //
  52. // * severity: `=`, `:`
  53. // * category: `=`, `:`
  54. // * resource.name: `=`, `:`
  55. // * resource.project_name: `=`, `:`
  56. // * resource.project_display_name: `=`, `:`
  57. // * resource.folders.resource_folder: `=`, `:`
  58. // * resource.parent_name: `=`, `:`
  59. // * resource.parent_display_name: `=`, `:`
  60. // * resource.type: `=`, `:`
  61. // * finding_class: `=`, `:`
  62. // * indicator.ip_addresses: `=`, `:`
  63. // * indicator.domains: `=`, `:`
  64. string filter = 4 [(google.api.field_behavior) = REQUIRED];
  65. // Output only. The time at which the mute config was created.
  66. // This field is set by the server and will be ignored if provided on config
  67. // creation.
  68. google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  69. // Output only. The most recent time at which the mute config was updated.
  70. // This field is set by the server and will be ignored if provided on config
  71. // creation or update.
  72. google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  73. // Output only. Email address of the user who last edited the mute config.
  74. // This field is set by the server and will be ignored if provided on config
  75. // creation or update.
  76. string most_recent_editor = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  77. }