sensitive_action_payload.proto 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.sensitiveaction.logging.v1;
  16. import "google/cloud/securitycenter/v1/access.proto";
  17. import "google/protobuf/timestamp.proto";
  18. option csharp_namespace = "Google.Cloud.SensitiveAction.Logging.V1";
  19. option go_package = "google.golang.org/genproto/googleapis/cloud/sensitiveaction/logging/v1;logging";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "SensitiveActionPayloadProto";
  22. option java_package = "com.google.cloud.sensitiveaction.logging.v1";
  23. option php_namespace = "Google\\Cloud\\SensitiveAction\\Logging\\V1";
  24. option ruby_package = "Google::Cloud::SensitiveAction::Logging::V1";
  25. // Payload proto for sensitiveaction.googleapis.com/action
  26. // Platform Log event that describes a sensitive action
  27. message SensitiveAction {
  28. // Used to reference a specific Cloud Logging LogEntry.
  29. message SourceLogId {
  30. // The GCP resource (organization, folder, or project) that the LogEntry
  31. // came from.
  32. string resource_container = 1;
  33. // The timestamp of the LogEntry.
  34. google.protobuf.Timestamp log_time = 2;
  35. // The insert_id of the LogEntry.
  36. string insert_id = 3;
  37. // A link to the Cloud Logging dashboard with a query for the LogEntry.
  38. string query_uri = 4;
  39. }
  40. // The type of action (eg. "change_organization_policy").
  41. string action_type = 1;
  42. // The time this action was detected.
  43. google.protobuf.Timestamp action_time = 2;
  44. // GCP resources that are involved in the action.
  45. repeated string affected_resources = 3;
  46. // Cloud Logging entries that were used to identify the action.
  47. repeated SourceLogId source_log_ids = 4;
  48. // Link to documentation where you can learn more about sensitive actions.
  49. string learn_more_uri = 5;
  50. // Access details associated to the sensitive action.
  51. google.cloud.securitycenter.v1.Access access = 6;
  52. }