xref: /aosp_15_r20/external/googleapis/google/cloud/securitycenter/v1beta1/asset.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1*d5c09012SAndroid Build Coastguard Worker// Copyright 2020 Google LLC
2*d5c09012SAndroid Build Coastguard Worker//
3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*d5c09012SAndroid Build Coastguard Worker//
7*d5c09012SAndroid Build Coastguard Worker//     http://www.apache.org/licenses/LICENSE-2.0
8*d5c09012SAndroid Build Coastguard Worker//
9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*d5c09012SAndroid Build Coastguard Worker// limitations under the License.
14*d5c09012SAndroid Build Coastguard Worker
15*d5c09012SAndroid Build Coastguard Workersyntax = "proto3";
16*d5c09012SAndroid Build Coastguard Worker
17*d5c09012SAndroid Build Coastguard Workerpackage google.cloud.securitycenter.v1beta1;
18*d5c09012SAndroid Build Coastguard Worker
19*d5c09012SAndroid Build Coastguard Workerimport "google/api/field_behavior.proto";
20*d5c09012SAndroid Build Coastguard Workerimport "google/api/resource.proto";
21*d5c09012SAndroid Build Coastguard Workerimport "google/cloud/securitycenter/v1beta1/security_marks.proto";
22*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/struct.proto";
23*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/timestamp.proto";
24*d5c09012SAndroid Build Coastguard Worker
25*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb;securitycenterpb";
26*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true;
27*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.securitycenter.v1beta1";
28*d5c09012SAndroid Build Coastguard Worker
29*d5c09012SAndroid Build Coastguard Worker// Security Command Center representation of a Google Cloud
30*d5c09012SAndroid Build Coastguard Worker// resource.
31*d5c09012SAndroid Build Coastguard Worker//
32*d5c09012SAndroid Build Coastguard Worker// The Asset is a Security Command Center resource that captures information
33*d5c09012SAndroid Build Coastguard Worker// about a single Google Cloud resource. All modifications to an Asset are only
34*d5c09012SAndroid Build Coastguard Worker// within the context of Security Command Center and don't affect the referenced
35*d5c09012SAndroid Build Coastguard Worker// Google Cloud resource.
36*d5c09012SAndroid Build Coastguard Workermessage Asset {
37*d5c09012SAndroid Build Coastguard Worker  option (google.api.resource) = {
38*d5c09012SAndroid Build Coastguard Worker    type: "securitycenter.googleapis.com/Asset"
39*d5c09012SAndroid Build Coastguard Worker    pattern: "organizations/{organization}/assets/{asset}"
40*d5c09012SAndroid Build Coastguard Worker  };
41*d5c09012SAndroid Build Coastguard Worker
42*d5c09012SAndroid Build Coastguard Worker  // Security Command Center managed properties. These properties are managed by
43*d5c09012SAndroid Build Coastguard Worker  // Security Command Center and cannot be modified by the user.
44*d5c09012SAndroid Build Coastguard Worker  message SecurityCenterProperties {
45*d5c09012SAndroid Build Coastguard Worker    // Immutable. The full resource name of the Google Cloud resource this asset
46*d5c09012SAndroid Build Coastguard Worker    // represents. This field is immutable after create time. See:
47*d5c09012SAndroid Build Coastguard Worker    // https://cloud.google.com/apis/design/resource_names#full_resource_name
48*d5c09012SAndroid Build Coastguard Worker    string resource_name = 1 [(google.api.field_behavior) = IMMUTABLE];
49*d5c09012SAndroid Build Coastguard Worker
50*d5c09012SAndroid Build Coastguard Worker    // The type of the Google Cloud resource. Examples include: APPLICATION,
51*d5c09012SAndroid Build Coastguard Worker    // PROJECT, and ORGANIZATION. This is a case insensitive field defined by
52*d5c09012SAndroid Build Coastguard Worker    // Security Command Center and/or the producer of the resource and is
53*d5c09012SAndroid Build Coastguard Worker    // immutable after create time.
54*d5c09012SAndroid Build Coastguard Worker    string resource_type = 2;
55*d5c09012SAndroid Build Coastguard Worker
56*d5c09012SAndroid Build Coastguard Worker    // The full resource name of the immediate parent of the resource. See:
57*d5c09012SAndroid Build Coastguard Worker    // https://cloud.google.com/apis/design/resource_names#full_resource_name
58*d5c09012SAndroid Build Coastguard Worker    string resource_parent = 3;
59*d5c09012SAndroid Build Coastguard Worker
60*d5c09012SAndroid Build Coastguard Worker    // The full resource name of the project the resource belongs to. See:
61*d5c09012SAndroid Build Coastguard Worker    // https://cloud.google.com/apis/design/resource_names#full_resource_name
62*d5c09012SAndroid Build Coastguard Worker    string resource_project = 4;
63*d5c09012SAndroid Build Coastguard Worker
64*d5c09012SAndroid Build Coastguard Worker    // Owners of the Google Cloud resource.
65*d5c09012SAndroid Build Coastguard Worker    repeated string resource_owners = 5;
66*d5c09012SAndroid Build Coastguard Worker  }
67*d5c09012SAndroid Build Coastguard Worker
68*d5c09012SAndroid Build Coastguard Worker  // The relative resource name of this asset. See:
69*d5c09012SAndroid Build Coastguard Worker  // https://cloud.google.com/apis/design/resource_names#relative_resource_name
70*d5c09012SAndroid Build Coastguard Worker  // Example:
71*d5c09012SAndroid Build Coastguard Worker  // "organizations/{organization_id}/assets/{asset_id}".
72*d5c09012SAndroid Build Coastguard Worker  string name = 1;
73*d5c09012SAndroid Build Coastguard Worker
74*d5c09012SAndroid Build Coastguard Worker  // Security Command Center managed properties. These properties are managed by
75*d5c09012SAndroid Build Coastguard Worker  // Security Command Center and cannot be modified by the user.
76*d5c09012SAndroid Build Coastguard Worker  SecurityCenterProperties security_center_properties = 2;
77*d5c09012SAndroid Build Coastguard Worker
78*d5c09012SAndroid Build Coastguard Worker  // Resource managed properties. These properties are managed and defined by
79*d5c09012SAndroid Build Coastguard Worker  // the Google Cloud resource and cannot be modified by the user.
80*d5c09012SAndroid Build Coastguard Worker  map<string, google.protobuf.Value> resource_properties = 7;
81*d5c09012SAndroid Build Coastguard Worker
82*d5c09012SAndroid Build Coastguard Worker  // User specified security marks. These marks are entirely managed by the user
83*d5c09012SAndroid Build Coastguard Worker  // and come from the SecurityMarks resource that belongs to the asset.
84*d5c09012SAndroid Build Coastguard Worker  SecurityMarks security_marks = 8;
85*d5c09012SAndroid Build Coastguard Worker
86*d5c09012SAndroid Build Coastguard Worker  // The time at which the asset was created in Security Command Center.
87*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Timestamp create_time = 9;
88*d5c09012SAndroid Build Coastguard Worker
89*d5c09012SAndroid Build Coastguard Worker  // The time at which the asset was last updated, added, or deleted in Security
90*d5c09012SAndroid Build Coastguard Worker  // Command Center.
91*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Timestamp update_time = 10;
92*d5c09012SAndroid Build Coastguard Worker}
93