security_marks.proto 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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/resource.proto";
  17. option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
  18. option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter";
  19. option java_multiple_files = true;
  20. option java_package = "com.google.cloud.securitycenter.v1";
  21. option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
  22. option ruby_package = "Google::Cloud::SecurityCenter::V1";
  23. // User specified security marks that are attached to the parent Security
  24. // Command Center resource. Security marks are scoped within a Security Command
  25. // Center organization -- they can be modified and viewed by all users who have
  26. // proper permissions on the organization.
  27. message SecurityMarks {
  28. option (google.api.resource) = {
  29. type: "securitycenter.googleapis.com/SecurityMarks"
  30. pattern: "organizations/{organization}/assets/{asset}/securityMarks"
  31. pattern: "organizations/{organization}/sources/{source}/findings/{finding}/securityMarks"
  32. pattern: "folders/{folder}/assets/{asset}/securityMarks"
  33. pattern: "projects/{project}/assets/{asset}/securityMarks"
  34. pattern: "folders/{folder}/sources/{source}/findings/{finding}/securityMarks"
  35. pattern: "projects/{project}/sources/{source}/findings/{finding}/securityMarks"
  36. };
  37. // The relative resource name of the SecurityMarks. See:
  38. // https://cloud.google.com/apis/design/resource_names#relative_resource_name
  39. // Examples:
  40. // "organizations/{organization_id}/assets/{asset_id}/securityMarks"
  41. // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks".
  42. string name = 1;
  43. // Mutable user specified security marks belonging to the parent resource.
  44. // Constraints are as follows:
  45. //
  46. // * Keys and values are treated as case insensitive
  47. // * Keys must be between 1 - 256 characters (inclusive)
  48. // * Keys must be letters, numbers, underscores, or dashes
  49. // * Values have leading and trailing whitespace trimmed, remaining
  50. // characters must be between 1 - 4096 characters (inclusive)
  51. map<string, string> marks = 2;
  52. // The canonical name of the marks.
  53. // Examples:
  54. // "organizations/{organization_id}/assets/{asset_id}/securityMarks"
  55. // "folders/{folder_id}/assets/{asset_id}/securityMarks"
  56. // "projects/{project_number}/assets/{asset_id}/securityMarks"
  57. // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks"
  58. // "folders/{folder_id}/sources/{source_id}/findings/{finding_id}/securityMarks"
  59. // "projects/{project_number}/sources/{source_id}/findings/{finding_id}/securityMarks"
  60. string canonical_name = 3;
  61. }