Skip to content

Commit b7b3dfd

Browse files
Google APIscopybara-github
authored andcommitted
feat: released securitycenter/v1 SHA custom modules cloud libraries: Create, Get, List, Update, Delete
The Security Health Analytics (SHA) custom modules API is now released for general availability track. Create, Get, GetEffective, List, ListEffective, ListDescendant, Update, and Delete are available in the cloud client library. PiperOrigin-RevId: 523462834
1 parent b79d42a commit b7b3dfd

36 files changed

Lines changed: 840 additions & 116 deletions

google/cloud/securitycenter/v1/BUILD.bazel

Lines changed: 94 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -9,45 +9,14 @@
99
# * extra_protoc_file_parameters
1010
# The complete list of preserved parameters can be found in the source code.
1111

12+
# This is an API workspace, having public visibility by default makes perfect sense.
13+
package(default_visibility = ["//visibility:public"])
14+
1215
##############################################################################
1316
# Common
1417
##############################################################################
1518
load("@rules_proto//proto:defs.bzl", "proto_library")
16-
load(
17-
"@com_google_googleapis_imports//:imports.bzl",
18-
"cc_grpc_library",
19-
"cc_proto_library",
20-
"csharp_gapic_assembly_pkg",
21-
"csharp_gapic_library",
22-
"csharp_grpc_library",
23-
"csharp_proto_library",
24-
"go_gapic_assembly_pkg",
25-
"go_gapic_library",
26-
"go_proto_library",
27-
"go_test",
28-
"java_gapic_assembly_gradle_pkg",
29-
"java_gapic_library",
30-
"java_gapic_test",
31-
"java_grpc_library",
32-
"java_proto_library",
33-
"nodejs_gapic_assembly_pkg",
34-
"nodejs_gapic_library",
35-
"php_gapic_assembly_pkg",
36-
"php_gapic_library",
37-
"php_grpc_library",
38-
"php_proto_library",
39-
"proto_library_with_info",
40-
"py_gapic_assembly_pkg",
41-
"py_gapic_library",
42-
"py_test",
43-
"ruby_cloud_gapic_library",
44-
"ruby_gapic_assembly_pkg",
45-
"ruby_grpc_library",
46-
"ruby_proto_library",
47-
)
48-
49-
# This is an API workspace, having public visibility by default makes perfect sense.
50-
package(default_visibility = ["//visibility:public"])
19+
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
5120

5221
proto_library(
5322
name = "securitycenter_proto",
@@ -60,6 +29,7 @@ proto_library(
6029
"contact_details.proto",
6130
"container.proto",
6231
"database.proto",
32+
"effective_security_health_analytics_custom_module.proto",
6333
"exfiltration.proto",
6434
"external_system.proto",
6535
"file.proto",
@@ -78,6 +48,8 @@ proto_library(
7848
"process.proto",
7949
"resource.proto",
8050
"run_asset_discovery_response.proto",
51+
"security_health_analytics_custom_config.proto",
52+
"security_health_analytics_custom_module.proto",
8153
"security_marks.proto",
8254
"securitycenter_service.proto",
8355
"source.proto",
@@ -91,6 +63,7 @@ proto_library(
9163
"//google/iam/v1:iam_policy_proto",
9264
"//google/iam/v1:policy_proto",
9365
"//google/longrunning:operations_proto",
66+
"//google/type:expr_proto",
9467
"@com_google_protobuf//:duration_proto",
9568
"@com_google_protobuf//:empty_proto",
9669
"@com_google_protobuf//:field_mask_proto",
@@ -107,6 +80,18 @@ proto_library_with_info(
10780
],
10881
)
10982

83+
##############################################################################
84+
# Java
85+
##############################################################################
86+
load(
87+
"@com_google_googleapis_imports//:imports.bzl",
88+
"java_gapic_assembly_gradle_pkg",
89+
"java_gapic_library",
90+
"java_gapic_test",
91+
"java_grpc_library",
92+
"java_proto_library",
93+
)
94+
11095
java_proto_library(
11196
name = "securitycenter_java_proto",
11297
deps = [":securitycenter_proto"],
@@ -126,8 +111,8 @@ java_gapic_library(
126111
rest_numeric_enums = True,
127112
service_yaml = "securitycenter_v1.yaml",
128113
test_deps = [
129-
":securitycenter_java_grpc",
130114
"//google/iam/v1:iam_java_grpc",
115+
":securitycenter_java_grpc",
131116
],
132117
transport = "grpc+rest",
133118
deps = [
@@ -159,6 +144,17 @@ java_gapic_assembly_gradle_pkg(
159144
],
160145
)
161146

147+
##############################################################################
148+
# Go
149+
##############################################################################
150+
load(
151+
"@com_google_googleapis_imports//:imports.bzl",
152+
"go_gapic_assembly_pkg",
153+
"go_gapic_library",
154+
"go_proto_library",
155+
"go_test",
156+
)
157+
162158
go_proto_library(
163159
name = "securitycenter_go_proto",
164160
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
@@ -168,6 +164,7 @@ go_proto_library(
168164
"//google/api:annotations_go_proto",
169165
"//google/iam/v1:iam_go_proto",
170166
"//google/longrunning:longrunning_go_proto",
167+
"//google/type:expr_go_proto",
171168
],
172169
)
173170

@@ -210,6 +207,16 @@ go_gapic_assembly_pkg(
210207
],
211208
)
212209

210+
##############################################################################
211+
# Python
212+
##############################################################################
213+
load(
214+
"@com_google_googleapis_imports//:imports.bzl",
215+
"py_gapic_assembly_pkg",
216+
"py_gapic_library",
217+
"py_test",
218+
)
219+
213220
py_gapic_library(
214221
name = "securitycenter_py_gapic",
215222
srcs = [":securitycenter_proto"],
@@ -240,6 +247,17 @@ py_gapic_assembly_pkg(
240247
],
241248
)
242249

250+
##############################################################################
251+
# PHP
252+
##############################################################################
253+
load(
254+
"@com_google_googleapis_imports//:imports.bzl",
255+
"php_gapic_assembly_pkg",
256+
"php_gapic_library",
257+
"php_grpc_library",
258+
"php_proto_library",
259+
)
260+
243261
php_proto_library(
244262
name = "securitycenter_php_proto",
245263
deps = [":securitycenter_proto"],
@@ -274,6 +292,15 @@ php_gapic_assembly_pkg(
274292
],
275293
)
276294

295+
##############################################################################
296+
# Node.js
297+
##############################################################################
298+
load(
299+
"@com_google_googleapis_imports//:imports.bzl",
300+
"nodejs_gapic_assembly_pkg",
301+
"nodejs_gapic_library",
302+
)
303+
277304
nodejs_gapic_library(
278305
name = "securitycenter_nodejs_gapic",
279306
package_name = "@google-cloud/security-center",
@@ -295,6 +322,17 @@ nodejs_gapic_assembly_pkg(
295322
],
296323
)
297324

325+
##############################################################################
326+
# Ruby
327+
##############################################################################
328+
load(
329+
"@com_google_googleapis_imports//:imports.bzl",
330+
"ruby_cloud_gapic_library",
331+
"ruby_gapic_assembly_pkg",
332+
"ruby_grpc_library",
333+
"ruby_proto_library",
334+
)
335+
298336
ruby_proto_library(
299337
name = "securitycenter_ruby_proto",
300338
deps = [":securitycenter_proto"],
@@ -338,6 +376,17 @@ ruby_gapic_assembly_pkg(
338376
],
339377
)
340378

379+
##############################################################################
380+
# C#
381+
##############################################################################
382+
load(
383+
"@com_google_googleapis_imports//:imports.bzl",
384+
"csharp_gapic_assembly_pkg",
385+
"csharp_gapic_library",
386+
"csharp_grpc_library",
387+
"csharp_proto_library",
388+
)
389+
341390
csharp_proto_library(
342391
name = "securitycenter_csharp_proto",
343392
deps = [":securitycenter_proto"],
@@ -373,6 +422,15 @@ csharp_gapic_assembly_pkg(
373422
],
374423
)
375424

425+
##############################################################################
426+
# C++
427+
##############################################################################
428+
load(
429+
"@com_google_googleapis_imports//:imports.bzl",
430+
"cc_grpc_library",
431+
"cc_proto_library",
432+
)
433+
376434
cc_proto_library(
377435
name = "securitycenter_cc_proto",
378436
deps = [":securitycenter_proto"],

google/cloud/securitycenter/v1/access.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 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.
@@ -106,4 +106,4 @@ message ServiceAccountDelegationInfo {
106106
message Geolocation {
107107
// A CLDR.
108108
string region_code = 1;
109-
}
109+
}

google/cloud/securitycenter/v1/asset.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 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.

google/cloud/securitycenter/v1/bigquery_export.proto

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 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.
@@ -78,22 +78,24 @@ message BigQueryExport {
7878
// (0-9), or underscores (_).
7979
string dataset = 4;
8080

81-
// Output only. The time at which the big query export was created.
81+
// Output only. The time at which the BigQuery export was created.
8282
// This field is set by the server and will be ignored if provided on export
8383
// on creation.
84-
google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
84+
google.protobuf.Timestamp create_time = 5
85+
[(google.api.field_behavior) = OUTPUT_ONLY];
8586

86-
// Output only. The most recent time at which the big export was updated.
87+
// Output only. The most recent time at which the BigQuery export was updated.
8788
// This field is set by the server and will be ignored if provided on export
8889
// creation or update.
89-
google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
90+
google.protobuf.Timestamp update_time = 6
91+
[(google.api.field_behavior) = OUTPUT_ONLY];
9092

91-
// Output only. Email address of the user who last edited the big query export.
93+
// Output only. Email address of the user who last edited the BigQuery export.
9294
// This field is set by the server and will be ignored if provided on export
9395
// creation or update.
9496
string most_recent_editor = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
9597

96-
// Output only. The service account that needs permission to create table, upload data to
97-
// the big query dataset.
98+
// Output only. The service account that needs permission to create table and
99+
// upload data to the BigQuery dataset.
98100
string principal = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
99101
}

google/cloud/securitycenter/v1/compliance.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 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.

google/cloud/securitycenter/v1/connection.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 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.

google/cloud/securitycenter/v1/contact_details.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 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.
@@ -30,8 +30,8 @@ message ContactDetails {
3030
repeated Contact contacts = 1;
3131
}
3232

33-
// Representa a single contact's email address
33+
// The email address of a contact.
3434
message Contact {
35-
// An email address e.g. "[email protected]"
35+
// An email address. For example, "`[email protected]`".
3636
string email = 1;
3737
}

google/cloud/securitycenter/v1/container.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 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.

google/cloud/securitycenter/v1/database.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 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.
@@ -29,7 +29,7 @@ option ruby_package = "Google::Cloud::SecurityCenter::V1";
2929
// instances or Cloud Spanner instances), or the database instance itself.
3030
// Some database resources may not have the full resource name populated
3131
// because these resource types are not yet supported by Cloud Asset Inventory
32-
// (e.g. CloudSQL databases). In these cases only the display name will be
32+
// (e.g. CloudSQL databases). In these cases only the display name will be
3333
// provided.
3434
message Database {
3535
// The full resource name of the database the user connected to, if it is

0 commit comments

Comments
 (0)