xref: /aosp_15_r20/external/googleapis/google/cloud/securitycenter/v1/database.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1*d5c09012SAndroid Build Coastguard Worker// Copyright 2023 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.v1;
18*d5c09012SAndroid Build Coastguard Worker
19*d5c09012SAndroid Build Coastguard Workeroption csharp_namespace = "Google.Cloud.SecurityCenter.V1";
20*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb";
21*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true;
22*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "DatabaseProto";
23*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.securitycenter.v1";
24*d5c09012SAndroid Build Coastguard Workeroption php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
25*d5c09012SAndroid Build Coastguard Workeroption ruby_package = "Google::Cloud::SecurityCenter::V1";
26*d5c09012SAndroid Build Coastguard Worker
27*d5c09012SAndroid Build Coastguard Worker// Represents database access information, such as queries. A database may be a
28*d5c09012SAndroid Build Coastguard Worker// sub-resource of an instance (as in the case of Cloud SQL instances or Cloud
29*d5c09012SAndroid Build Coastguard Worker// Spanner instances), or the database instance itself. Some database resources
30*d5c09012SAndroid Build Coastguard Worker// might not have the [full resource
31*d5c09012SAndroid Build Coastguard Worker// name](https://google.aip.dev/122#full-resource-names) populated because these
32*d5c09012SAndroid Build Coastguard Worker// resource types, such as Cloud SQL databases, are not yet supported by Cloud
33*d5c09012SAndroid Build Coastguard Worker// Asset Inventory. In these cases only the display name is provided.
34*d5c09012SAndroid Build Coastguard Workermessage Database {
35*d5c09012SAndroid Build Coastguard Worker  // Some database resources may not have the [full resource
36*d5c09012SAndroid Build Coastguard Worker  // name](https://google.aip.dev/122#full-resource-names) populated because
37*d5c09012SAndroid Build Coastguard Worker  // these resource types are not yet supported by Cloud Asset Inventory (e.g.
38*d5c09012SAndroid Build Coastguard Worker  // Cloud SQL databases). In these cases only the display name will be
39*d5c09012SAndroid Build Coastguard Worker  // provided.
40*d5c09012SAndroid Build Coastguard Worker  // The [full resource name](https://google.aip.dev/122#full-resource-names) of
41*d5c09012SAndroid Build Coastguard Worker  // the database that the user connected to, if it is supported by Cloud Asset
42*d5c09012SAndroid Build Coastguard Worker  // Inventory.
43*d5c09012SAndroid Build Coastguard Worker  string name = 1;
44*d5c09012SAndroid Build Coastguard Worker
45*d5c09012SAndroid Build Coastguard Worker  // The human-readable name of the database that the user connected to.
46*d5c09012SAndroid Build Coastguard Worker  string display_name = 2;
47*d5c09012SAndroid Build Coastguard Worker
48*d5c09012SAndroid Build Coastguard Worker  // The username used to connect to the database. The username might not be an
49*d5c09012SAndroid Build Coastguard Worker  // IAM principal and does not have a set format.
50*d5c09012SAndroid Build Coastguard Worker  string user_name = 3;
51*d5c09012SAndroid Build Coastguard Worker
52*d5c09012SAndroid Build Coastguard Worker  // The SQL statement that is associated with the database access.
53*d5c09012SAndroid Build Coastguard Worker  string query = 4;
54*d5c09012SAndroid Build Coastguard Worker
55*d5c09012SAndroid Build Coastguard Worker  // The target usernames, roles, or groups of an SQL privilege grant, which is
56*d5c09012SAndroid Build Coastguard Worker  // not an IAM policy change.
57*d5c09012SAndroid Build Coastguard Worker  repeated string grantees = 5;
58*d5c09012SAndroid Build Coastguard Worker
59*d5c09012SAndroid Build Coastguard Worker  // The version of the database, for example, POSTGRES_14.
60*d5c09012SAndroid Build Coastguard Worker  // See [the complete
61*d5c09012SAndroid Build Coastguard Worker  // list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion).
62*d5c09012SAndroid Build Coastguard Worker  string version = 6;
63*d5c09012SAndroid Build Coastguard Worker}
64