google-cloud-security_center-v1 0.7.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/security_center/v1/security_center/client.rb +132 -127
- data/lib/google/cloud/security_center/v1/security_center/operations.rb +34 -25
- data/lib/google/cloud/security_center/v1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/asset_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/finding_pb.rb +15 -2
- data/lib/google/cloud/securitycenter/v1/folder_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/indicator_pb.rb +24 -0
- data/lib/google/cloud/securitycenter/v1/notification_config_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/notification_message_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/organization_settings_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/resource_pb.rb +3 -2
- data/lib/google/cloud/securitycenter/v1/run_asset_discovery_response_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/security_marks_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/source_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/vulnerability_pb.rb +86 -0
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/securitycenter/v1/finding.rb +35 -0
- data/proto_docs/google/cloud/securitycenter/v1/indicator.rb +41 -0
- data/proto_docs/google/cloud/securitycenter/v1/resource.rb +3 -0
- data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +22 -23
- data/proto_docs/google/cloud/securitycenter/v1/vulnerability.rb +226 -0
- data/proto_docs/google/type/expr.rb +35 -12
- metadata +8 -4
@@ -82,7 +82,7 @@ module Google
|
|
82
82
|
# Create credentials
|
83
83
|
credentials = @config.credentials
|
84
84
|
credentials ||= Credentials.default scope: @config.scope
|
85
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
85
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
86
86
|
credentials = Credentials.new credentials, scope: @config.scope
|
87
87
|
end
|
88
88
|
@quota_project_id = @config.quota_project
|
@@ -169,7 +169,9 @@ module Google
|
|
169
169
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
170
170
|
metadata: metadata,
|
171
171
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
172
|
-
|
172
|
+
|
173
|
+
options.apply_defaults timeout: @config.timeout,
|
174
|
+
metadata: @config.metadata,
|
173
175
|
retry_policy: @config.retry_policy
|
174
176
|
|
175
177
|
@operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -239,7 +241,9 @@ module Google
|
|
239
241
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
240
242
|
metadata: metadata,
|
241
243
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
242
|
-
|
244
|
+
|
245
|
+
options.apply_defaults timeout: @config.timeout,
|
246
|
+
metadata: @config.metadata,
|
243
247
|
retry_policy: @config.retry_policy
|
244
248
|
|
245
249
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -309,7 +313,9 @@ module Google
|
|
309
313
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
310
314
|
metadata: metadata,
|
311
315
|
retry_policy: @config.rpcs.delete_operation.retry_policy
|
312
|
-
|
316
|
+
|
317
|
+
options.apply_defaults timeout: @config.timeout,
|
318
|
+
metadata: @config.metadata,
|
313
319
|
retry_policy: @config.retry_policy
|
314
320
|
|
315
321
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
@@ -384,7 +390,9 @@ module Google
|
|
384
390
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
385
391
|
metadata: metadata,
|
386
392
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
387
|
-
|
393
|
+
|
394
|
+
options.apply_defaults timeout: @config.timeout,
|
395
|
+
metadata: @config.metadata,
|
388
396
|
retry_policy: @config.retry_policy
|
389
397
|
|
390
398
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -396,9 +404,9 @@ module Google
|
|
396
404
|
end
|
397
405
|
|
398
406
|
##
|
399
|
-
# Waits
|
400
|
-
#
|
401
|
-
#
|
407
|
+
# Waits until the specified long-running operation is done or reaches at most
|
408
|
+
# a specified timeout, returning the latest state. If the operation is
|
409
|
+
# already done, the latest state is immediately returned. If the timeout
|
402
410
|
# specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
|
403
411
|
# timeout is used. If the server does not support this method, it returns
|
404
412
|
# `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -456,7 +464,9 @@ module Google
|
|
456
464
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
457
465
|
metadata: metadata,
|
458
466
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|
459
|
-
|
467
|
+
|
468
|
+
options.apply_defaults timeout: @config.timeout,
|
469
|
+
metadata: @config.metadata,
|
460
470
|
retry_policy: @config.retry_policy
|
461
471
|
|
462
472
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
@@ -481,22 +491,21 @@ module Google
|
|
481
491
|
# Configuration can be applied globally to all clients, or to a single client
|
482
492
|
# on construction.
|
483
493
|
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
# end
|
494
|
+
# @example
|
495
|
+
#
|
496
|
+
# # Modify the global config, setting the timeout for
|
497
|
+
# # list_operations to 20 seconds,
|
498
|
+
# # and all remaining timeouts to 10 seconds.
|
499
|
+
# ::Google::Longrunning::Operations::Client.configure do |config|
|
500
|
+
# config.timeout = 10.0
|
501
|
+
# config.rpcs.list_operations.timeout = 20.0
|
502
|
+
# end
|
503
|
+
#
|
504
|
+
# # Apply the above configuration only to a new client.
|
505
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
506
|
+
# config.timeout = 10.0
|
507
|
+
# config.rpcs.list_operations.timeout = 20.0
|
508
|
+
# end
|
500
509
|
#
|
501
510
|
# @!attribute [rw] endpoint
|
502
511
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1/asset.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/cloud/securitycenter/v1/folder_pb'
|
8
6
|
require 'google/cloud/securitycenter/v1/security_marks_pb'
|
9
7
|
require 'google/protobuf/struct_pb'
|
10
8
|
require 'google/protobuf/timestamp_pb'
|
11
9
|
require 'google/api/annotations_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/securitycenter/v1/asset.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.cloud.securitycenter.v1.Asset" do
|
@@ -1,14 +1,16 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1/finding.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
6
|
+
require 'google/cloud/securitycenter/v1/indicator_pb'
|
8
7
|
require 'google/cloud/securitycenter/v1/security_marks_pb'
|
8
|
+
require 'google/cloud/securitycenter/v1/vulnerability_pb'
|
9
9
|
require 'google/protobuf/struct_pb'
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
11
11
|
require 'google/api/annotations_pb'
|
12
|
+
require 'google/protobuf'
|
13
|
+
|
12
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
15
|
add_file("google/cloud/securitycenter/v1/finding.proto", :syntax => :proto3) do
|
14
16
|
add_message "google.cloud.securitycenter.v1.Finding" do
|
@@ -24,6 +26,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
24
26
|
optional :create_time, :message, 10, "google.protobuf.Timestamp"
|
25
27
|
optional :severity, :enum, 12, "google.cloud.securitycenter.v1.Finding.Severity"
|
26
28
|
optional :canonical_name, :string, 14
|
29
|
+
optional :finding_class, :enum, 17, "google.cloud.securitycenter.v1.Finding.FindingClass"
|
30
|
+
optional :indicator, :message, 18, "google.cloud.securitycenter.v1.Indicator"
|
31
|
+
optional :vulnerability, :message, 20, "google.cloud.securitycenter.v1.Vulnerability"
|
27
32
|
end
|
28
33
|
add_enum "google.cloud.securitycenter.v1.Finding.State" do
|
29
34
|
value :STATE_UNSPECIFIED, 0
|
@@ -37,6 +42,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
37
42
|
value :MEDIUM, 3
|
38
43
|
value :LOW, 4
|
39
44
|
end
|
45
|
+
add_enum "google.cloud.securitycenter.v1.Finding.FindingClass" do
|
46
|
+
value :FINDING_CLASS_UNSPECIFIED, 0
|
47
|
+
value :THREAT, 1
|
48
|
+
value :VULNERABILITY, 2
|
49
|
+
value :MISCONFIGURATION, 3
|
50
|
+
value :OBSERVATION, 4
|
51
|
+
end
|
40
52
|
end
|
41
53
|
end
|
42
54
|
|
@@ -47,6 +59,7 @@ module Google
|
|
47
59
|
Finding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Finding").msgclass
|
48
60
|
Finding::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Finding.State").enummodule
|
49
61
|
Finding::Severity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Finding.Severity").enummodule
|
62
|
+
Finding::FindingClass = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Finding.FindingClass").enummodule
|
50
63
|
end
|
51
64
|
end
|
52
65
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1/folder.proto
|
3
3
|
|
4
|
+
require 'google/api/annotations_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/api/annotations_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/cloud/securitycenter/v1/folder.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.cloud.securitycenter.v1.Folder" do
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/securitycenter/v1/indicator.proto
|
3
|
+
|
4
|
+
require 'google/api/annotations_pb'
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("google/cloud/securitycenter/v1/indicator.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.securitycenter.v1.Indicator" do
|
10
|
+
repeated :ip_addresses, :string, 1
|
11
|
+
repeated :domains, :string, 2
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module Google
|
17
|
+
module Cloud
|
18
|
+
module SecurityCenter
|
19
|
+
module V1
|
20
|
+
Indicator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Indicator").msgclass
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1/notification_config.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/securitycenter/v1/notification_config.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.cloud.securitycenter.v1.NotificationConfig" do
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1/notification_message.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/cloud/securitycenter/v1/finding_pb'
|
7
5
|
require 'google/cloud/securitycenter/v1/resource_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/securitycenter/v1/notification_message.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.cloud.securitycenter.v1.NotificationMessage" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1/organization_settings.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/securitycenter/v1/organization_settings.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.securitycenter.v1.OrganizationSettings" do
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1/resource.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/cloud/securitycenter/v1/folder_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/securitycenter/v1/resource.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.cloud.securitycenter.v1.Resource" do
|
@@ -14,6 +14,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
14
14
|
optional :project_display_name, :string, 3
|
15
15
|
optional :parent, :string, 4
|
16
16
|
optional :parent_display_name, :string, 5
|
17
|
+
optional :type, :string, 6
|
17
18
|
repeated :folders, :message, 7, "google.cloud.securitycenter.v1.Folder"
|
18
19
|
end
|
19
20
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1/run_asset_discovery_response.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/protobuf/duration_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/securitycenter/v1/run_asset_discovery_response.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.securitycenter.v1.RunAssetDiscoveryResponse" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1/security_marks.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/securitycenter/v1/security_marks.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.securitycenter.v1.SecurityMarks" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1/securitycenter_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/cloud/securitycenter/v1/run_asset_discovery_response_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
8
6
|
require 'google/api/client_pb'
|
@@ -23,6 +21,8 @@ require 'google/protobuf/empty_pb'
|
|
23
21
|
require 'google/protobuf/field_mask_pb'
|
24
22
|
require 'google/protobuf/struct_pb'
|
25
23
|
require 'google/protobuf/timestamp_pb'
|
24
|
+
require 'google/protobuf'
|
25
|
+
|
26
26
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
27
27
|
add_file("google/cloud/securitycenter/v1/securitycenter_service.proto", :syntax => :proto3) do
|
28
28
|
add_message "google.cloud.securitycenter.v1.CreateFindingRequest" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1/source.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/securitycenter/v1/source.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.securitycenter.v1.Source" do
|
@@ -0,0 +1,86 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/securitycenter/v1/vulnerability.proto
|
3
|
+
|
4
|
+
require 'google/api/annotations_pb'
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("google/cloud/securitycenter/v1/vulnerability.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.securitycenter.v1.Vulnerability" do
|
10
|
+
optional :cve, :message, 1, "google.cloud.securitycenter.v1.Cve"
|
11
|
+
end
|
12
|
+
add_message "google.cloud.securitycenter.v1.Cve" do
|
13
|
+
optional :id, :string, 1
|
14
|
+
repeated :references, :message, 2, "google.cloud.securitycenter.v1.Reference"
|
15
|
+
optional :cvssv3, :message, 3, "google.cloud.securitycenter.v1.Cvssv3"
|
16
|
+
end
|
17
|
+
add_message "google.cloud.securitycenter.v1.Reference" do
|
18
|
+
optional :source, :string, 1
|
19
|
+
optional :uri, :string, 2
|
20
|
+
end
|
21
|
+
add_message "google.cloud.securitycenter.v1.Cvssv3" do
|
22
|
+
optional :base_score, :double, 1
|
23
|
+
optional :attack_vector, :enum, 5, "google.cloud.securitycenter.v1.Cvssv3.AttackVector"
|
24
|
+
optional :attack_complexity, :enum, 6, "google.cloud.securitycenter.v1.Cvssv3.AttackComplexity"
|
25
|
+
optional :privileges_required, :enum, 7, "google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired"
|
26
|
+
optional :user_interaction, :enum, 8, "google.cloud.securitycenter.v1.Cvssv3.UserInteraction"
|
27
|
+
optional :scope, :enum, 9, "google.cloud.securitycenter.v1.Cvssv3.Scope"
|
28
|
+
optional :confidentiality_impact, :enum, 10, "google.cloud.securitycenter.v1.Cvssv3.Impact"
|
29
|
+
optional :integrity_impact, :enum, 11, "google.cloud.securitycenter.v1.Cvssv3.Impact"
|
30
|
+
optional :availability_impact, :enum, 12, "google.cloud.securitycenter.v1.Cvssv3.Impact"
|
31
|
+
end
|
32
|
+
add_enum "google.cloud.securitycenter.v1.Cvssv3.AttackVector" do
|
33
|
+
value :ATTACK_VECTOR_UNSPECIFIED, 0
|
34
|
+
value :ATTACK_VECTOR_NETWORK, 1
|
35
|
+
value :ATTACK_VECTOR_ADJACENT, 2
|
36
|
+
value :ATTACK_VECTOR_LOCAL, 3
|
37
|
+
value :ATTACK_VECTOR_PHYSICAL, 4
|
38
|
+
end
|
39
|
+
add_enum "google.cloud.securitycenter.v1.Cvssv3.AttackComplexity" do
|
40
|
+
value :ATTACK_COMPLEXITY_UNSPECIFIED, 0
|
41
|
+
value :ATTACK_COMPLEXITY_LOW, 1
|
42
|
+
value :ATTACK_COMPLEXITY_HIGH, 2
|
43
|
+
end
|
44
|
+
add_enum "google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired" do
|
45
|
+
value :PRIVILEGES_REQUIRED_UNSPECIFIED, 0
|
46
|
+
value :PRIVILEGES_REQUIRED_NONE, 1
|
47
|
+
value :PRIVILEGES_REQUIRED_LOW, 2
|
48
|
+
value :PRIVILEGES_REQUIRED_HIGH, 3
|
49
|
+
end
|
50
|
+
add_enum "google.cloud.securitycenter.v1.Cvssv3.UserInteraction" do
|
51
|
+
value :USER_INTERACTION_UNSPECIFIED, 0
|
52
|
+
value :USER_INTERACTION_NONE, 1
|
53
|
+
value :USER_INTERACTION_REQUIRED, 2
|
54
|
+
end
|
55
|
+
add_enum "google.cloud.securitycenter.v1.Cvssv3.Scope" do
|
56
|
+
value :SCOPE_UNSPECIFIED, 0
|
57
|
+
value :SCOPE_UNCHANGED, 1
|
58
|
+
value :SCOPE_CHANGED, 2
|
59
|
+
end
|
60
|
+
add_enum "google.cloud.securitycenter.v1.Cvssv3.Impact" do
|
61
|
+
value :IMPACT_UNSPECIFIED, 0
|
62
|
+
value :IMPACT_HIGH, 1
|
63
|
+
value :IMPACT_LOW, 2
|
64
|
+
value :IMPACT_NONE, 3
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
module Google
|
70
|
+
module Cloud
|
71
|
+
module SecurityCenter
|
72
|
+
module V1
|
73
|
+
Vulnerability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Vulnerability").msgclass
|
74
|
+
Cve = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Cve").msgclass
|
75
|
+
Reference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Reference").msgclass
|
76
|
+
Cvssv3 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Cvssv3").msgclass
|
77
|
+
Cvssv3::AttackVector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Cvssv3.AttackVector").enummodule
|
78
|
+
Cvssv3::AttackComplexity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Cvssv3.AttackComplexity").enummodule
|
79
|
+
Cvssv3::PrivilegesRequired = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired").enummodule
|
80
|
+
Cvssv3::UserInteraction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Cvssv3.UserInteraction").enummodule
|
81
|
+
Cvssv3::Scope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Cvssv3.Scope").enummodule
|
82
|
+
Cvssv3::Impact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Cvssv3.Impact").enummodule
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
@@ -96,6 +96,21 @@ module Google
|
|
96
96
|
# "projects/\\{project_number}/sources/\\{source_id}/findings/\\{finding_id}",
|
97
97
|
# depending on the closest CRM ancestor of the resource associated with the
|
98
98
|
# finding.
|
99
|
+
# @!attribute [rw] finding_class
|
100
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Finding::FindingClass]
|
101
|
+
# The class of the finding.
|
102
|
+
# @!attribute [rw] indicator
|
103
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Indicator]
|
104
|
+
# Represents what's commonly known as an Indicator of compromise (IoC) in
|
105
|
+
# computer forensics. This is an artifact observed on a network or in an
|
106
|
+
# operating system that, with high confidence, indicates a computer
|
107
|
+
# intrusion.
|
108
|
+
# Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise
|
109
|
+
# @!attribute [rw] vulnerability
|
110
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Vulnerability]
|
111
|
+
# Represents vulnerability specific fields like cve, cvss scores etc.
|
112
|
+
# CVE stands for Common Vulnerabilities and Exposures
|
113
|
+
# (https://cve.mitre.org/about/)
|
99
114
|
class Finding
|
100
115
|
include ::Google::Protobuf::MessageExts
|
101
116
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -180,6 +195,26 @@ module Google
|
|
180
195
|
# is not able to access data, execute code, or create resources.
|
181
196
|
LOW = 4
|
182
197
|
end
|
198
|
+
|
199
|
+
# Represents what kind of Finding it is.
|
200
|
+
module FindingClass
|
201
|
+
# Unspecified finding class.
|
202
|
+
FINDING_CLASS_UNSPECIFIED = 0
|
203
|
+
|
204
|
+
# Describes unwanted or malicious activity.
|
205
|
+
THREAT = 1
|
206
|
+
|
207
|
+
# Describes a potential weakness in software that increases risk to
|
208
|
+
# Confidentiality & Integrity & Availability.
|
209
|
+
VULNERABILITY = 2
|
210
|
+
|
211
|
+
# Describes a potential weakness in cloud resource/asset configuration that
|
212
|
+
# increases risk.
|
213
|
+
MISCONFIGURATION = 3
|
214
|
+
|
215
|
+
# Describes a security observation that is for informational purposes.
|
216
|
+
OBSERVATION = 4
|
217
|
+
end
|
183
218
|
end
|
184
219
|
end
|
185
220
|
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module SecurityCenter
|
23
|
+
module V1
|
24
|
+
# Represents what's commonly known as an Indicator of compromise (IoC) in
|
25
|
+
# computer forensics. This is an artifact observed on a network or in an
|
26
|
+
# operating system that, with high confidence, indicates a computer intrusion.
|
27
|
+
# Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise
|
28
|
+
# @!attribute [rw] ip_addresses
|
29
|
+
# @return [::Array<::String>]
|
30
|
+
# List of ip addresses associated to the Finding.
|
31
|
+
# @!attribute [rw] domains
|
32
|
+
# @return [::Array<::String>]
|
33
|
+
# List of domains associated to the Finding.
|
34
|
+
class Indicator
|
35
|
+
include ::Google::Protobuf::MessageExts
|
36
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -38,6 +38,9 @@ module Google
|
|
38
38
|
# @!attribute [rw] parent_display_name
|
39
39
|
# @return [::String]
|
40
40
|
# The human readable name of resource's parent.
|
41
|
+
# @!attribute [rw] type
|
42
|
+
# @return [::String]
|
43
|
+
# The full resource type of the resource.
|
41
44
|
# @!attribute [r] folders
|
42
45
|
# @return [::Array<::Google::Cloud::SecurityCenter::V1::Folder>]
|
43
46
|
# Output only. Contains a Folder message for each folder in the assets ancestry.
|