security_marks.proto 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Copyright 2020 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.v1beta1;
  16. import "google/api/resource.proto";
  17. option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter";
  18. option java_multiple_files = true;
  19. option java_package = "com.google.cloud.securitycenter.v1beta1";
  20. // User specified security marks that are attached to the parent Security
  21. // Command Center resource. Security marks are scoped within a Security Command
  22. // Center organization -- they can be modified and viewed by all users who have
  23. // proper permissions on the organization.
  24. message SecurityMarks {
  25. option (google.api.resource) = {
  26. type: "securitycenter.googleapis.com/SecurityMarks"
  27. pattern: "organizations/{organization}/assets/{asset}/securityMarks"
  28. pattern: "organizations/{organization}/sources/{source}/findings/{finding}/securityMarks"
  29. };
  30. // The relative resource name of the SecurityMarks. See:
  31. // https://cloud.google.com/apis/design/resource_names#relative_resource_name
  32. // Examples:
  33. // "organizations/{organization_id}/assets/{asset_id}/securityMarks"
  34. // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks".
  35. string name = 1;
  36. // Mutable user specified security marks belonging to the parent resource.
  37. // Constraints are as follows:
  38. //
  39. // * Keys and values are treated as case insensitive
  40. // * Keys must be between 1 - 256 characters (inclusive)
  41. // * Keys must be letters, numbers, underscores, or dashes
  42. // * Values have leading and trailing whitespace trimmed, remaining
  43. // characters must be between 1 - 4096 characters (inclusive)
  44. map<string, string> marks = 2;
  45. }