asset.proto 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/cloud/securitycenter/v1beta1/security_marks.proto";
  19. import "google/protobuf/struct.proto";
  20. import "google/protobuf/timestamp.proto";
  21. option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter";
  22. option java_multiple_files = true;
  23. option java_package = "com.google.cloud.securitycenter.v1beta1";
  24. // Security Command Center representation of a Google Cloud
  25. // resource.
  26. //
  27. // The Asset is a Security Command Center resource that captures information
  28. // about a single Google Cloud resource. All modifications to an Asset are only
  29. // within the context of Security Command Center and don't affect the referenced
  30. // Google Cloud resource.
  31. message Asset {
  32. option (google.api.resource) = {
  33. type: "securitycenter.googleapis.com/Asset"
  34. pattern: "organizations/{organization}/assets/{asset}"
  35. };
  36. // Security Command Center managed properties. These properties are managed by
  37. // Security Command Center and cannot be modified by the user.
  38. message SecurityCenterProperties {
  39. // Immutable. The full resource name of the Google Cloud resource this asset
  40. // represents. This field is immutable after create time. See:
  41. // https://cloud.google.com/apis/design/resource_names#full_resource_name
  42. string resource_name = 1 [(google.api.field_behavior) = IMMUTABLE];
  43. // The type of the Google Cloud resource. Examples include: APPLICATION,
  44. // PROJECT, and ORGANIZATION. This is a case insensitive field defined by
  45. // Security Command Center and/or the producer of the resource and is
  46. // immutable after create time.
  47. string resource_type = 2;
  48. // The full resource name of the immediate parent of the resource. See:
  49. // https://cloud.google.com/apis/design/resource_names#full_resource_name
  50. string resource_parent = 3;
  51. // The full resource name of the project the resource belongs to. See:
  52. // https://cloud.google.com/apis/design/resource_names#full_resource_name
  53. string resource_project = 4;
  54. // Owners of the Google Cloud resource.
  55. repeated string resource_owners = 5;
  56. }
  57. // The relative resource name of this asset. See:
  58. // https://cloud.google.com/apis/design/resource_names#relative_resource_name
  59. // Example:
  60. // "organizations/{organization_id}/assets/{asset_id}".
  61. string name = 1;
  62. // Security Command Center managed properties. These properties are managed by
  63. // Security Command Center and cannot be modified by the user.
  64. SecurityCenterProperties security_center_properties = 2;
  65. // Resource managed properties. These properties are managed and defined by
  66. // the Google Cloud resource and cannot be modified by the user.
  67. map<string, google.protobuf.Value> resource_properties = 7;
  68. // User specified security marks. These marks are entirely managed by the user
  69. // and come from the SecurityMarks resource that belongs to the asset.
  70. SecurityMarks security_marks = 8;
  71. // The time at which the asset was created in Security Command Center.
  72. google.protobuf.Timestamp create_time = 9;
  73. // The time at which the asset was last updated, added, or deleted in Security
  74. // Command Center.
  75. google.protobuf.Timestamp update_time = 10;
  76. }