google-cloud-security_center-v1 0.39.0 → 0.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/security_center/v1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/cloud_armor_pb.rb +49 -0
- data/lib/google/cloud/securitycenter/v1/finding_pb.rb +5 -1
- data/lib/google/cloud/securitycenter/v1/notebook_pb.rb +45 -0
- data/proto_docs/google/cloud/securitycenter/v1/cloud_armor.rb +128 -0
- data/proto_docs/google/cloud/securitycenter/v1/finding.rb +6 -0
- data/proto_docs/google/cloud/securitycenter/v1/notebook.rb +46 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c70b54573673db277dfe98210b64d56ca41e385345a6aab42135a2ac2fde7b42
|
4
|
+
data.tar.gz: 8965356453cdbfb9fe939d452c83a54361a452aa806dbbe55da4f9a0969110e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 592a4880e731336c6e89d8f5be4614b904258cff1859bb0509c9556f80c958b14e105fff280bab7db615b323f4e29dce949b4bc930c26c999b66fac5c23c8116
|
7
|
+
data.tar.gz: 04bd7096250a9881c15ef10a5796f74052bc2efa2cef7e676c2500edd1fcfb6c9affa41abf2f2c0b1a82a7d24cf2cd999b50b1c2f823fb9ecb47b2fd3bb118bb
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/securitycenter/v1/cloud_armor.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/duration_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n0google/cloud/securitycenter/v1/cloud_armor.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x1egoogle/protobuf/duration.proto\"\xde\x02\n\nCloudArmor\x12G\n\x0fsecurity_policy\x18\x01 \x01(\x0b\x32..google.cloud.securitycenter.v1.SecurityPolicy\x12:\n\x08requests\x18\x02 \x01(\x0b\x32(.google.cloud.securitycenter.v1.Requests\x12O\n\x13\x61\x64\x61ptive_protection\x18\x03 \x01(\x0b\x32\x32.google.cloud.securitycenter.v1.AdaptiveProtection\x12\x36\n\x06\x61ttack\x18\x04 \x01(\x0b\x32&.google.cloud.securitycenter.v1.Attack\x12\x15\n\rthreat_vector\x18\x05 \x01(\t\x12+\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\"=\n\x0eSecurityPolicy\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0f\n\x07preview\x18\x03 \x01(\x08\"j\n\x08Requests\x12\r\n\x05ratio\x18\x01 \x01(\x01\x12\x1a\n\x12short_term_allowed\x18\x02 \x01(\x05\x12\x19\n\x11long_term_allowed\x18\x03 \x01(\x05\x12\x18\n\x10long_term_denied\x18\x04 \x01(\x05\"(\n\x12\x41\x64\x61ptiveProtection\x12\x12\n\nconfidence\x18\x01 \x01(\x01\"H\n\x06\x41ttack\x12\x12\n\nvolume_pps\x18\x01 \x01(\x05\x12\x12\n\nvolume_bps\x18\x02 \x01(\x05\x12\x16\n\x0e\x63lassification\x18\x03 \x01(\tB\xe9\x01\n\"com.google.cloud.securitycenter.v1B\x0f\x43loudArmorProtoP\x01ZJcloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V1\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V1\xea\x02!Google::Cloud::SecurityCenter::V1b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
35
|
+
end
|
36
|
+
|
37
|
+
module Google
|
38
|
+
module Cloud
|
39
|
+
module SecurityCenter
|
40
|
+
module V1
|
41
|
+
CloudArmor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.CloudArmor").msgclass
|
42
|
+
SecurityPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.SecurityPolicy").msgclass
|
43
|
+
Requests = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Requests").msgclass
|
44
|
+
AdaptiveProtection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.AdaptiveProtection").msgclass
|
45
|
+
Attack = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Attack").msgclass
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -9,6 +9,7 @@ require 'google/api/resource_pb'
|
|
9
9
|
require 'google/cloud/securitycenter/v1/access_pb'
|
10
10
|
require 'google/cloud/securitycenter/v1/application_pb'
|
11
11
|
require 'google/cloud/securitycenter/v1/backup_disaster_recovery_pb'
|
12
|
+
require 'google/cloud/securitycenter/v1/cloud_armor_pb'
|
12
13
|
require 'google/cloud/securitycenter/v1/cloud_dlp_data_profile_pb'
|
13
14
|
require 'google/cloud/securitycenter/v1/cloud_dlp_inspection_pb'
|
14
15
|
require 'google/cloud/securitycenter/v1/compliance_pb'
|
@@ -26,6 +27,7 @@ require 'google/cloud/securitycenter/v1/kubernetes_pb'
|
|
26
27
|
require 'google/cloud/securitycenter/v1/load_balancer_pb'
|
27
28
|
require 'google/cloud/securitycenter/v1/log_entry_pb'
|
28
29
|
require 'google/cloud/securitycenter/v1/mitre_attack_pb'
|
30
|
+
require 'google/cloud/securitycenter/v1/notebook_pb'
|
29
31
|
require 'google/cloud/securitycenter/v1/org_policy_pb'
|
30
32
|
require 'google/cloud/securitycenter/v1/process_pb'
|
31
33
|
require 'google/cloud/securitycenter/v1/security_marks_pb'
|
@@ -35,7 +37,7 @@ require 'google/protobuf/struct_pb'
|
|
35
37
|
require 'google/protobuf/timestamp_pb'
|
36
38
|
|
37
39
|
|
38
|
-
descriptor_data = "\n,google/cloud/securitycenter/v1/finding.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/securitycenter/v1/access.proto\x1a\x30google/cloud/securitycenter/v1/application.proto\x1a=google/cloud/securitycenter/v1/backup_disaster_recovery.proto\x1a;google/cloud/securitycenter/v1/cloud_dlp_data_profile.proto\x1a\x39google/cloud/securitycenter/v1/cloud_dlp_inspection.proto\x1a/google/cloud/securitycenter/v1/compliance.proto\x1a/google/cloud/securitycenter/v1/connection.proto\x1a\x34google/cloud/securitycenter/v1/contact_details.proto\x1a.google/cloud/securitycenter/v1/container.proto\x1a-google/cloud/securitycenter/v1/database.proto\x1a\x31google/cloud/securitycenter/v1/exfiltration.proto\x1a\x34google/cloud/securitycenter/v1/external_system.proto\x1a)google/cloud/securitycenter/v1/file.proto\x1a\x30google/cloud/securitycenter/v1/iam_binding.proto\x1a.google/cloud/securitycenter/v1/indicator.proto\x1a\x33google/cloud/securitycenter/v1/kernel_rootkit.proto\x1a/google/cloud/securitycenter/v1/kubernetes.proto\x1a\x32google/cloud/securitycenter/v1/load_balancer.proto\x1a.google/cloud/securitycenter/v1/log_entry.proto\x1a\x31google/cloud/securitycenter/v1/mitre_attack.proto\x1a/google/cloud/securitycenter/v1/org_policy.proto\x1a,google/cloud/securitycenter/v1/process.proto\x1a\x33google/cloud/securitycenter/v1/security_marks.proto\x1a\x35google/cloud/securitycenter/v1/security_posture.proto\x1a\x32google/cloud/securitycenter/v1/vulnerability.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
40
|
+
descriptor_data = "\n,google/cloud/securitycenter/v1/finding.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/securitycenter/v1/access.proto\x1a\x30google/cloud/securitycenter/v1/application.proto\x1a=google/cloud/securitycenter/v1/backup_disaster_recovery.proto\x1a\x30google/cloud/securitycenter/v1/cloud_armor.proto\x1a;google/cloud/securitycenter/v1/cloud_dlp_data_profile.proto\x1a\x39google/cloud/securitycenter/v1/cloud_dlp_inspection.proto\x1a/google/cloud/securitycenter/v1/compliance.proto\x1a/google/cloud/securitycenter/v1/connection.proto\x1a\x34google/cloud/securitycenter/v1/contact_details.proto\x1a.google/cloud/securitycenter/v1/container.proto\x1a-google/cloud/securitycenter/v1/database.proto\x1a\x31google/cloud/securitycenter/v1/exfiltration.proto\x1a\x34google/cloud/securitycenter/v1/external_system.proto\x1a)google/cloud/securitycenter/v1/file.proto\x1a\x30google/cloud/securitycenter/v1/iam_binding.proto\x1a.google/cloud/securitycenter/v1/indicator.proto\x1a\x33google/cloud/securitycenter/v1/kernel_rootkit.proto\x1a/google/cloud/securitycenter/v1/kubernetes.proto\x1a\x32google/cloud/securitycenter/v1/load_balancer.proto\x1a.google/cloud/securitycenter/v1/log_entry.proto\x1a\x31google/cloud/securitycenter/v1/mitre_attack.proto\x1a-google/cloud/securitycenter/v1/notebook.proto\x1a/google/cloud/securitycenter/v1/org_policy.proto\x1a,google/cloud/securitycenter/v1/process.proto\x1a\x33google/cloud/securitycenter/v1/security_marks.proto\x1a\x35google/cloud/securitycenter/v1/security_posture.proto\x1a\x32google/cloud/securitycenter/v1/vulnerability.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9f\x1b\n\x07\x46inding\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06parent\x18\x02 \x01(\t\x12\x15\n\rresource_name\x18\x03 \x01(\t\x12<\n\x05state\x18\x04 \x01(\x0e\x32-.google.cloud.securitycenter.v1.Finding.State\x12\x10\n\x08\x63\x61tegory\x18\x05 \x01(\t\x12\x14\n\x0c\x65xternal_uri\x18\x06 \x01(\t\x12X\n\x11source_properties\x18\x07 \x03(\x0b\x32=.google.cloud.securitycenter.v1.Finding.SourcePropertiesEntry\x12J\n\x0esecurity_marks\x18\x08 \x01(\x0b\x32-.google.cloud.securitycenter.v1.SecurityMarksB\x03\xe0\x41\x03\x12.\n\nevent_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x08severity\x18\x0c \x01(\x0e\x32\x30.google.cloud.securitycenter.v1.Finding.Severity\x12\x16\n\x0e\x63\x61nonical_name\x18\x0e \x01(\t\x12:\n\x04mute\x18\x0f \x01(\x0e\x32,.google.cloud.securitycenter.v1.Finding.Mute\x12K\n\rfinding_class\x18\x11 \x01(\x0e\x32\x34.google.cloud.securitycenter.v1.Finding.FindingClass\x12<\n\tindicator\x18\x12 \x01(\x0b\x32).google.cloud.securitycenter.v1.Indicator\x12\x44\n\rvulnerability\x18\x14 \x01(\x0b\x32-.google.cloud.securitycenter.v1.Vulnerability\x12\x39\n\x10mute_update_time\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12[\n\x10\x65xternal_systems\x18\x16 \x03(\x0b\x32<.google.cloud.securitycenter.v1.Finding.ExternalSystemsEntryB\x03\xe0\x41\x03\x12\x41\n\x0cmitre_attack\x18\x19 \x01(\x0b\x32+.google.cloud.securitycenter.v1.MitreAttack\x12\x36\n\x06\x61\x63\x63\x65ss\x18\x1a \x01(\x0b\x32&.google.cloud.securitycenter.v1.Access\x12?\n\x0b\x63onnections\x18\x1f \x03(\x0b\x32*.google.cloud.securitycenter.v1.Connection\x12\x16\n\x0emute_initiator\x18\x1c \x01(\t\x12:\n\tprocesses\x18\x1e \x03(\x0b\x32\'.google.cloud.securitycenter.v1.Process\x12L\n\x08\x63ontacts\x18! \x03(\x0b\x32\x35.google.cloud.securitycenter.v1.Finding.ContactsEntryB\x03\xe0\x41\x03\x12?\n\x0b\x63ompliances\x18\" \x03(\x0b\x32*.google.cloud.securitycenter.v1.Compliance\x12 \n\x13parent_display_name\x18$ \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18% \x01(\t\x12\x42\n\x0c\x65xfiltration\x18& \x01(\x0b\x32,.google.cloud.securitycenter.v1.Exfiltration\x12@\n\x0ciam_bindings\x18\' \x03(\x0b\x32*.google.cloud.securitycenter.v1.IamBinding\x12\x12\n\nnext_steps\x18( \x01(\t\x12\x13\n\x0bmodule_name\x18) \x01(\t\x12=\n\ncontainers\x18* \x03(\x0b\x32).google.cloud.securitycenter.v1.Container\x12>\n\nkubernetes\x18+ \x01(\x0b\x32*.google.cloud.securitycenter.v1.Kubernetes\x12:\n\x08\x64\x61tabase\x18, \x01(\x0b\x32(.google.cloud.securitycenter.v1.Database\x12\x33\n\x05\x66iles\x18. \x03(\x0b\x32$.google.cloud.securitycenter.v1.File\x12P\n\x14\x63loud_dlp_inspection\x18\x30 \x01(\x0b\x32\x32.google.cloud.securitycenter.v1.CloudDlpInspection\x12S\n\x16\x63loud_dlp_data_profile\x18\x31 \x01(\x0b\x32\x33.google.cloud.securitycenter.v1.CloudDlpDataProfile\x12\x45\n\x0ekernel_rootkit\x18\x32 \x01(\x0b\x32-.google.cloud.securitycenter.v1.KernelRootkit\x12?\n\x0corg_policies\x18\x33 \x03(\x0b\x32).google.cloud.securitycenter.v1.OrgPolicy\x12@\n\x0b\x61pplication\x18\x35 \x01(\x0b\x32+.google.cloud.securitycenter.v1.Application\x12X\n\x18\x62\x61\x63kup_disaster_recovery\x18\x37 \x01(\x0b\x32\x36.google.cloud.securitycenter.v1.BackupDisasterRecovery\x12I\n\x10security_posture\x18\x38 \x01(\x0b\x32/.google.cloud.securitycenter.v1.SecurityPosture\x12=\n\x0blog_entries\x18\x39 \x03(\x0b\x32(.google.cloud.securitycenter.v1.LogEntry\x12\x44\n\x0eload_balancers\x18: \x03(\x0b\x32,.google.cloud.securitycenter.v1.LoadBalancer\x12?\n\x0b\x63loud_armor\x18; \x01(\x0b\x32*.google.cloud.securitycenter.v1.CloudArmor\x12:\n\x08notebook\x18? \x01(\x0b\x32(.google.cloud.securitycenter.v1.Notebook\x1aO\n\x15SourcePropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\x1a\x66\n\x14\x45xternalSystemsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12=\n\x05value\x18\x02 \x01(\x0b\x32..google.cloud.securitycenter.v1.ExternalSystem:\x02\x38\x01\x1a_\n\rContactsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12=\n\x05value\x18\x02 \x01(\x0b\x32..google.cloud.securitycenter.v1.ContactDetails:\x02\x38\x01\"8\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02\"Q\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43RITICAL\x10\x01\x12\x08\n\x04HIGH\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\x07\n\x03LOW\x10\x04\"C\n\x04Mute\x12\x14\n\x10MUTE_UNSPECIFIED\x10\x00\x12\t\n\x05MUTED\x10\x01\x12\x0b\n\x07UNMUTED\x10\x02\x12\r\n\tUNDEFINED\x10\x04\"\x99\x01\n\x0c\x46indingClass\x12\x1d\n\x19\x46INDING_CLASS_UNSPECIFIED\x10\x00\x12\n\n\x06THREAT\x10\x01\x12\x11\n\rVULNERABILITY\x10\x02\x12\x14\n\x10MISCONFIGURATION\x10\x03\x12\x0f\n\x0bOBSERVATION\x10\x04\x12\r\n\tSCC_ERROR\x10\x05\x12\x15\n\x11POSTURE_VIOLATION\x10\x06:\xdb\x01\xea\x41\xd7\x01\n%securitycenter.googleapis.com/Finding\x12@organizations/{organization}/sources/{source}/findings/{finding}\x12\x34\x66olders/{folder}/sources/{source}/findings/{finding}\x12\x36projects/{project}/sources/{source}/findings/{finding}B\xd8\x01\n\"com.google.cloud.securitycenter.v1P\x01ZJcloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V1\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V1\xea\x02!Google::Cloud::SecurityCenter::V1b\x06proto3"
|
39
41
|
|
40
42
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
41
43
|
|
@@ -74,6 +76,8 @@ rescue TypeError
|
|
74
76
|
["google.cloud.securitycenter.v1.SecurityPosture", "google/cloud/securitycenter/v1/security_posture.proto"],
|
75
77
|
["google.cloud.securitycenter.v1.LogEntry", "google/cloud/securitycenter/v1/log_entry.proto"],
|
76
78
|
["google.cloud.securitycenter.v1.LoadBalancer", "google/cloud/securitycenter/v1/load_balancer.proto"],
|
79
|
+
["google.cloud.securitycenter.v1.CloudArmor", "google/cloud/securitycenter/v1/cloud_armor.proto"],
|
80
|
+
["google.cloud.securitycenter.v1.Notebook", "google/cloud/securitycenter/v1/notebook.proto"],
|
77
81
|
["google.protobuf.Value", "google/protobuf/struct.proto"],
|
78
82
|
["google.cloud.securitycenter.v1.ExternalSystem", "google/cloud/securitycenter/v1/external_system.proto"],
|
79
83
|
["google.cloud.securitycenter.v1.ContactDetails", "google/cloud/securitycenter/v1/contact_details.proto"],
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/securitycenter/v1/notebook.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n-google/cloud/securitycenter/v1/notebook.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"x\n\x08Notebook\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x13\n\x0blast_author\x18\x03 \x01(\t\x12\x38\n\x14notebook_update_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\xe7\x01\n\"com.google.cloud.securitycenter.v1B\rNotebookProtoP\x01ZJcloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V1\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V1\xea\x02!Google::Cloud::SecurityCenter::V1b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
35
|
+
end
|
36
|
+
|
37
|
+
module Google
|
38
|
+
module Cloud
|
39
|
+
module SecurityCenter
|
40
|
+
module V1
|
41
|
+
Notebook = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Notebook").msgclass
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,128 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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
|
+
# Fields related to Google Cloud Armor findings.
|
25
|
+
# @!attribute [rw] security_policy
|
26
|
+
# @return [::Google::Cloud::SecurityCenter::V1::SecurityPolicy]
|
27
|
+
# Information about the [Google Cloud Armor security
|
28
|
+
# policy](https://cloud.google.com/armor/docs/security-policy-overview)
|
29
|
+
# relevant to the finding.
|
30
|
+
# @!attribute [rw] requests
|
31
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Requests]
|
32
|
+
# Information about incoming requests evaluated by [Google Cloud Armor
|
33
|
+
# security
|
34
|
+
# policies](https://cloud.google.com/armor/docs/security-policy-overview).
|
35
|
+
# @!attribute [rw] adaptive_protection
|
36
|
+
# @return [::Google::Cloud::SecurityCenter::V1::AdaptiveProtection]
|
37
|
+
# Information about potential Layer 7 DDoS attacks identified by [Google
|
38
|
+
# Cloud Armor Adaptive
|
39
|
+
# Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).
|
40
|
+
# @!attribute [rw] attack
|
41
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Attack]
|
42
|
+
# Information about DDoS attack volume and classification.
|
43
|
+
# @!attribute [rw] threat_vector
|
44
|
+
# @return [::String]
|
45
|
+
# Distinguish between volumetric & protocol DDoS attack and
|
46
|
+
# application layer attacks. For example, “L3_4” for Layer 3 and Layer 4 DDoS
|
47
|
+
# attacks, or “L_7” for Layer 7 DDoS attacks.
|
48
|
+
# @!attribute [rw] duration
|
49
|
+
# @return [::Google::Protobuf::Duration]
|
50
|
+
# Duration of attack from the start until the current moment (updated every 5
|
51
|
+
# minutes).
|
52
|
+
class CloudArmor
|
53
|
+
include ::Google::Protobuf::MessageExts
|
54
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
55
|
+
end
|
56
|
+
|
57
|
+
# Information about the [Google Cloud Armor security
|
58
|
+
# policy](https://cloud.google.com/armor/docs/security-policy-overview)
|
59
|
+
# relevant to the finding.
|
60
|
+
# @!attribute [rw] name
|
61
|
+
# @return [::String]
|
62
|
+
# The name of the Google Cloud Armor security policy, for example,
|
63
|
+
# "my-security-policy".
|
64
|
+
# @!attribute [rw] type
|
65
|
+
# @return [::String]
|
66
|
+
# The type of Google Cloud Armor security policy for example, ‘backend
|
67
|
+
# security policy’, ‘edge security policy’, ‘network edge security policy’,
|
68
|
+
# or ‘always-on DDoS protection’.
|
69
|
+
# @!attribute [rw] preview
|
70
|
+
# @return [::Boolean]
|
71
|
+
# Whether or not the associated rule or policy is in preview mode.
|
72
|
+
class SecurityPolicy
|
73
|
+
include ::Google::Protobuf::MessageExts
|
74
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
75
|
+
end
|
76
|
+
|
77
|
+
# Information about the requests relevant to the finding.
|
78
|
+
# @!attribute [rw] ratio
|
79
|
+
# @return [::Float]
|
80
|
+
# For 'Increasing deny ratio', the ratio is the denied traffic divided by the
|
81
|
+
# allowed traffic. For 'Allowed traffic spike', the ratio is the allowed
|
82
|
+
# traffic in the short term divided by allowed traffic in the long term.
|
83
|
+
# @!attribute [rw] short_term_allowed
|
84
|
+
# @return [::Integer]
|
85
|
+
# Allowed RPS (requests per second) in the short term.
|
86
|
+
# @!attribute [rw] long_term_allowed
|
87
|
+
# @return [::Integer]
|
88
|
+
# Allowed RPS (requests per second) over the long term.
|
89
|
+
# @!attribute [rw] long_term_denied
|
90
|
+
# @return [::Integer]
|
91
|
+
# Denied RPS (requests per second) over the long term.
|
92
|
+
class Requests
|
93
|
+
include ::Google::Protobuf::MessageExts
|
94
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
|
+
end
|
96
|
+
|
97
|
+
# Information about [Google Cloud Armor Adaptive
|
98
|
+
# Protection](https://cloud.google.com/armor/docs/cloud-armor-overview#google-cloud-armor-adaptive-protection).
|
99
|
+
# @!attribute [rw] confidence
|
100
|
+
# @return [::Float]
|
101
|
+
# A score of 0 means that there is low confidence that the detected event is
|
102
|
+
# an actual attack. A score of 1 means that there is high confidence that the
|
103
|
+
# detected event is an attack. See the [Adaptive Protection
|
104
|
+
# documentation](https://cloud.google.com/armor/docs/adaptive-protection-overview#configure-alert-tuning)
|
105
|
+
# for further explanation.
|
106
|
+
class AdaptiveProtection
|
107
|
+
include ::Google::Protobuf::MessageExts
|
108
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
109
|
+
end
|
110
|
+
|
111
|
+
# Information about DDoS attack volume and classification.
|
112
|
+
# @!attribute [rw] volume_pps
|
113
|
+
# @return [::Integer]
|
114
|
+
# Total PPS (packets per second) volume of attack.
|
115
|
+
# @!attribute [rw] volume_bps
|
116
|
+
# @return [::Integer]
|
117
|
+
# Total BPS (bytes per second) volume of attack.
|
118
|
+
# @!attribute [rw] classification
|
119
|
+
# @return [::String]
|
120
|
+
# Type of attack, for example, ‘SYN-flood’, ‘NTP-udp’, or ‘CHARGEN-udp’.
|
121
|
+
class Attack
|
122
|
+
include ::Google::Protobuf::MessageExts
|
123
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
@@ -230,6 +230,12 @@ module Google
|
|
230
230
|
# @!attribute [rw] load_balancers
|
231
231
|
# @return [::Array<::Google::Cloud::SecurityCenter::V1::LoadBalancer>]
|
232
232
|
# The load balancers associated with the finding.
|
233
|
+
# @!attribute [rw] cloud_armor
|
234
|
+
# @return [::Google::Cloud::SecurityCenter::V1::CloudArmor]
|
235
|
+
# Fields related to Cloud Armor findings.
|
236
|
+
# @!attribute [rw] notebook
|
237
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Notebook]
|
238
|
+
# Notebook associated with the finding.
|
233
239
|
class Finding
|
234
240
|
include ::Google::Protobuf::MessageExts
|
235
241
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 a Jupyter notebook IPYNB file, such as a [Colab Enterprise
|
25
|
+
# notebook](https://cloud.google.com/colab/docs/introduction) file, that is
|
26
|
+
# associated with a finding.
|
27
|
+
# @!attribute [rw] name
|
28
|
+
# @return [::String]
|
29
|
+
# The name of the notebook.
|
30
|
+
# @!attribute [rw] service
|
31
|
+
# @return [::String]
|
32
|
+
# The source notebook service, for example, "Colab Enterprise".
|
33
|
+
# @!attribute [rw] last_author
|
34
|
+
# @return [::String]
|
35
|
+
# The user ID of the latest author to modify the notebook.
|
36
|
+
# @!attribute [rw] notebook_update_time
|
37
|
+
# @return [::Google::Protobuf::Timestamp]
|
38
|
+
# The most recent time the notebook was updated.
|
39
|
+
class Notebook
|
40
|
+
include ::Google::Protobuf::MessageExts
|
41
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-security_center-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.40.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- lib/google/cloud/securitycenter/v1/asset_pb.rb
|
90
90
|
- lib/google/cloud/securitycenter/v1/backup_disaster_recovery_pb.rb
|
91
91
|
- lib/google/cloud/securitycenter/v1/bigquery_export_pb.rb
|
92
|
+
- lib/google/cloud/securitycenter/v1/cloud_armor_pb.rb
|
92
93
|
- lib/google/cloud/securitycenter/v1/cloud_dlp_data_profile_pb.rb
|
93
94
|
- lib/google/cloud/securitycenter/v1/cloud_dlp_inspection_pb.rb
|
94
95
|
- lib/google/cloud/securitycenter/v1/compliance_pb.rb
|
@@ -111,6 +112,7 @@ files:
|
|
111
112
|
- lib/google/cloud/securitycenter/v1/log_entry_pb.rb
|
112
113
|
- lib/google/cloud/securitycenter/v1/mitre_attack_pb.rb
|
113
114
|
- lib/google/cloud/securitycenter/v1/mute_config_pb.rb
|
115
|
+
- lib/google/cloud/securitycenter/v1/notebook_pb.rb
|
114
116
|
- lib/google/cloud/securitycenter/v1/notification_config_pb.rb
|
115
117
|
- lib/google/cloud/securitycenter/v1/notification_message_pb.rb
|
116
118
|
- lib/google/cloud/securitycenter/v1/org_policy_pb.rb
|
@@ -136,6 +138,7 @@ files:
|
|
136
138
|
- proto_docs/google/cloud/securitycenter/v1/asset.rb
|
137
139
|
- proto_docs/google/cloud/securitycenter/v1/backup_disaster_recovery.rb
|
138
140
|
- proto_docs/google/cloud/securitycenter/v1/bigquery_export.rb
|
141
|
+
- proto_docs/google/cloud/securitycenter/v1/cloud_armor.rb
|
139
142
|
- proto_docs/google/cloud/securitycenter/v1/cloud_dlp_data_profile.rb
|
140
143
|
- proto_docs/google/cloud/securitycenter/v1/cloud_dlp_inspection.rb
|
141
144
|
- proto_docs/google/cloud/securitycenter/v1/compliance.rb
|
@@ -158,6 +161,7 @@ files:
|
|
158
161
|
- proto_docs/google/cloud/securitycenter/v1/log_entry.rb
|
159
162
|
- proto_docs/google/cloud/securitycenter/v1/mitre_attack.rb
|
160
163
|
- proto_docs/google/cloud/securitycenter/v1/mute_config.rb
|
164
|
+
- proto_docs/google/cloud/securitycenter/v1/notebook.rb
|
161
165
|
- proto_docs/google/cloud/securitycenter/v1/notification_config.rb
|
162
166
|
- proto_docs/google/cloud/securitycenter/v1/notification_message.rb
|
163
167
|
- proto_docs/google/cloud/securitycenter/v1/org_policy.rb
|