Skip to content

Commit 698ad3d

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add Backup DR field to finding's list of attributes
PiperOrigin-RevId: 609040971
1 parent 9e35c62 commit 698ad3d

3 files changed

Lines changed: 93 additions & 0 deletions

File tree

google/cloud/securitycenter/v1/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ proto_library(
2424
"access.proto",
2525
"application.proto",
2626
"asset.proto",
27+
"backup_disaster_recovery.proto",
2728
"bigquery_export.proto",
2829
"cloud_dlp_data_profile.proto",
2930
"cloud_dlp_inspection.proto",
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
// Copyright 2024 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+
15+
syntax = "proto3";
16+
17+
package google.cloud.securitycenter.v1;
18+
19+
import "google/protobuf/timestamp.proto";
20+
21+
option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
22+
option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb";
23+
option java_multiple_files = true;
24+
option java_outer_classname = "BackupDisasterRecoveryProto";
25+
option java_package = "com.google.cloud.securitycenter.v1";
26+
option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
27+
option ruby_package = "Google::Cloud::SecurityCenter::V1";
28+
29+
// Information related to Google Cloud Backup and DR Service findings.
30+
message BackupDisasterRecovery {
31+
// The name of a Backup and DR template which comprises one or more backup
32+
// policies. See the [Backup and DR
33+
// documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp)
34+
// for more information. For example, `snap-ov`.
35+
string backup_template = 1;
36+
37+
// The names of Backup and DR policies that are associated with a template
38+
// and that define when to run a backup, how frequently to run a backup, and
39+
// how long to retain the backup image. For example, `onvaults`.
40+
repeated string policies = 2;
41+
42+
// The name of a Backup and DR host, which is managed by the backup and
43+
// recovery appliance and known to the management console. The host can be of
44+
// type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file
45+
// system, etc.), vCenter, or an ESX server. See the [Backup and DR
46+
// documentation on
47+
// hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications)
48+
// for more information. For example, `centos7-01`.
49+
string host = 3;
50+
51+
// The names of Backup and DR applications. An application is a VM, database,
52+
// or file system on a managed host monitored by a backup and recovery
53+
// appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`,
54+
// `centos7-01-vol02`.
55+
repeated string applications = 4;
56+
57+
// The name of the Backup and DR storage pool that the backup and recovery
58+
// appliance is storing data in. The storage pool could be of type Cloud,
59+
// Primary, Snapshot, or OnVault. See the [Backup and DR documentation on
60+
// storage
61+
// pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools).
62+
// For example, `DiskPoolOne`.
63+
string storage_pool = 5;
64+
65+
// The names of Backup and DR advanced policy options of a policy applying to
66+
// an application. See the [Backup and DR documentation on policy
67+
// options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings).
68+
// For example, `skipofflineappsincongrp, nounmap`.
69+
repeated string policy_options = 6;
70+
71+
// The name of the Backup and DR resource profile that specifies the storage
72+
// media for backups of application and VM data. See the [Backup and DR
73+
// documentation on
74+
// profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile).
75+
// For example, `GCP`.
76+
string profile = 7;
77+
78+
// The name of the Backup and DR appliance that captures, moves, and manages
79+
// the lifecycle of backup data. For example, `backup-server-57137`.
80+
string appliance = 8;
81+
82+
// The backup type of the Backup and DR image.
83+
// For example, `Snapshot`, `Remote Snapshot`, `OnVault`.
84+
string backup_type = 9;
85+
86+
// The timestamp at which the Backup and DR backup was created.
87+
google.protobuf.Timestamp backup_create_time = 10;
88+
}

google/cloud/securitycenter/v1/finding.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/cloud/securitycenter/v1/access.proto";
2222
import "google/cloud/securitycenter/v1/application.proto";
23+
import "google/cloud/securitycenter/v1/backup_disaster_recovery.proto";
2324
import "google/cloud/securitycenter/v1/cloud_dlp_data_profile.proto";
2425
import "google/cloud/securitycenter/v1/cloud_dlp_inspection.proto";
2526
import "google/cloud/securitycenter/v1/compliance.proto";
@@ -363,4 +364,7 @@ message Finding {
363364

364365
// Represents an application associated with the finding.
365366
Application application = 53;
367+
368+
// Fields related to Backup and DR findings.
369+
BackupDisasterRecovery backup_disaster_recovery = 55;
366370
}

0 commit comments

Comments
 (0)