1- // Copyright 2019 Google LLC.
1+ // Copyright 2020 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
1111// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212// See the License for the specific language governing permissions and
1313// limitations under the License.
14- //
1514
1615syntax = "proto3" ;
1716
1817package google.cloud.securitycenter.v1beta1 ;
1918
2019import "google/api/field_behavior.proto" ;
20+ import "google/api/resource.proto" ;
2121import "google/cloud/securitycenter/v1beta1/security_marks.proto" ;
2222import "google/protobuf/struct.proto" ;
2323import "google/protobuf/timestamp.proto" ;
@@ -27,25 +27,31 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/
2727option java_multiple_files = true ;
2828option java_package = "com.google.cloud.securitycenter.v1beta1" ;
2929
30- // Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
31- // Platform (GCP) resource.
30+ // Security Command Center representation of a Google Cloud
31+ // resource.
3232//
33- // The Asset is a Cloud SCC resource that captures information about a single
34- // GCP resource. All modifications to an Asset are only within the context of
35- // Cloud SCC and don't affect the referenced GCP resource.
33+ // The Asset is a Security Command Center resource that captures information
34+ // about a single Google Cloud resource. All modifications to an Asset are only
35+ // within the context of Security Command Center and don't affect the referenced
36+ // Google Cloud resource.
3637message Asset {
37- // Cloud SCC managed properties. These properties are managed by Cloud SCC and
38- // cannot be modified by the user.
38+ option (google.api.resource ) = {
39+ type : "securitycenter.googleapis.com/Asset"
40+ pattern : "organizations/{organization}/assets/{asset}"
41+ };
42+
43+ // Security Command Center managed properties. These properties are managed by
44+ // Security Command Center and cannot be modified by the user.
3945 message SecurityCenterProperties {
40- // Immutable. The full resource name of the GCP resource this asset
46+ // Immutable. The full resource name of the Google Cloud resource this asset
4147 // represents. This field is immutable after create time. See:
4248 // https://cloud.google.com/apis/design/resource_names#full_resource_name
4349 string resource_name = 1 [(google.api.field_behavior ) = IMMUTABLE ];
4450
45- // The type of the GCP resource. Examples include: APPLICATION,
51+ // The type of the Google Cloud resource. Examples include: APPLICATION,
4652 // PROJECT, and ORGANIZATION. This is a case insensitive field defined by
47- // Cloud SCC and/or the producer of the resource and is immutable
48- // after create time.
53+ // Security Command Center and/or the producer of the resource and is
54+ // immutable after create time.
4955 string resource_type = 2 ;
5056
5157 // The full resource name of the immediate parent of the resource. See:
@@ -66,22 +72,22 @@ message Asset {
6672 // "organizations/{organization_id}/assets/{asset_id}".
6773 string name = 1 ;
6874
69- // Cloud SCC managed properties. These properties are managed by
70- // Cloud SCC and cannot be modified by the user.
75+ // Security Command Center managed properties. These properties are managed by
76+ // Security Command Center and cannot be modified by the user.
7177 SecurityCenterProperties security_center_properties = 2 ;
7278
7379 // Resource managed properties. These properties are managed and defined by
74- // the GCP resource and cannot be modified by the user.
80+ // the Google Cloud resource and cannot be modified by the user.
7581 map <string , google.protobuf.Value > resource_properties = 7 ;
7682
7783 // User specified security marks. These marks are entirely managed by the user
7884 // and come from the SecurityMarks resource that belongs to the asset.
7985 SecurityMarks security_marks = 8 ;
8086
81- // The time at which the asset was created in Cloud SCC .
87+ // The time at which the asset was created in Security Command Center .
8288 google.protobuf.Timestamp create_time = 9 ;
8389
84- // The time at which the asset was last updated, added, or deleted in Cloud
85- // SCC .
90+ // The time at which the asset was last updated, added, or deleted in Security
91+ // Command Center .
8692 google.protobuf.Timestamp update_time = 10 ;
8793}
0 commit comments