google-cloud-security_center-v1 0.28.0 → 0.29.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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/security_center/v1/version.rb +1 -1
  3. data/lib/google/cloud/securitycenter/v1/access_pb.rb +24 -20
  4. data/lib/google/cloud/securitycenter/v1/asset_pb.rb +28 -25
  5. data/lib/google/cloud/securitycenter/v1/bigquery_export_pb.rb +25 -11
  6. data/lib/google/cloud/securitycenter/v1/cloud_dlp_data_profile_pb.rb +24 -4
  7. data/lib/google/cloud/securitycenter/v1/cloud_dlp_inspection_pb.rb +24 -7
  8. data/lib/google/cloud/securitycenter/v1/compliance_pb.rb +24 -6
  9. data/lib/google/cloud/securitycenter/v1/connection_pb.rb +24 -16
  10. data/lib/google/cloud/securitycenter/v1/contact_details_pb.rb +24 -7
  11. data/lib/google/cloud/securitycenter/v1/container_pb.rb +25 -7
  12. data/lib/google/cloud/securitycenter/v1/database_pb.rb +24 -8
  13. data/lib/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module_pb.rb +25 -12
  14. data/lib/google/cloud/securitycenter/v1/exfiltration_pb.rb +24 -9
  15. data/lib/google/cloud/securitycenter/v1/external_system_pb.rb +25 -8
  16. data/lib/google/cloud/securitycenter/v1/file_pb.rb +24 -9
  17. data/lib/google/cloud/securitycenter/v1/finding_pb.rb +45 -67
  18. data/lib/google/cloud/securitycenter/v1/folder_pb.rb +24 -5
  19. data/lib/google/cloud/securitycenter/v1/iam_binding_pb.rb +24 -11
  20. data/lib/google/cloud/securitycenter/v1/indicator_pb.rb +24 -24
  21. data/lib/google/cloud/securitycenter/v1/kernel_rootkit_pb.rb +24 -12
  22. data/lib/google/cloud/securitycenter/v1/kubernetes_pb.rb +26 -58
  23. data/lib/google/cloud/securitycenter/v1/label_pb.rb +24 -5
  24. data/lib/google/cloud/securitycenter/v1/mitre_attack_pb.rb +24 -63
  25. data/lib/google/cloud/securitycenter/v1/mute_config_pb.rb +25 -10
  26. data/lib/google/cloud/securitycenter/v1/notification_config_pb.rb +24 -13
  27. data/lib/google/cloud/securitycenter/v1/notification_message_pb.rb +26 -8
  28. data/lib/google/cloud/securitycenter/v1/organization_settings_pb.rb +24 -16
  29. data/lib/google/cloud/securitycenter/v1/process_pb.rb +25 -17
  30. data/lib/google/cloud/securitycenter/v1/resource_pb.rb +25 -11
  31. data/lib/google/cloud/securitycenter/v1/run_asset_discovery_response_pb.rb +25 -11
  32. data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_config_pb.rb +25 -26
  33. data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_module_pb.rb +26 -16
  34. data/lib/google/cloud/securitycenter/v1/security_marks_pb.rb +24 -6
  35. data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +40 -279
  36. data/lib/google/cloud/securitycenter/v1/source_pb.rb +24 -7
  37. data/lib/google/cloud/securitycenter/v1/vulnerability_pb.rb +24 -59
  38. data/proto_docs/google/api/client.rb +10 -1
  39. data/proto_docs/google/protobuf/any.rb +7 -4
  40. data/proto_docs/google/protobuf/struct.rb +1 -1
  41. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  42. metadata +4 -4
@@ -1,73 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/mitre_attack.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/securitycenter/v1/mitre_attack.proto", :syntax => :proto3) do
8
- add_message "google.cloud.securitycenter.v1.MitreAttack" do
9
- optional :primary_tactic, :enum, 1, "google.cloud.securitycenter.v1.MitreAttack.Tactic"
10
- repeated :primary_techniques, :enum, 2, "google.cloud.securitycenter.v1.MitreAttack.Technique"
11
- repeated :additional_tactics, :enum, 3, "google.cloud.securitycenter.v1.MitreAttack.Tactic"
12
- repeated :additional_techniques, :enum, 4, "google.cloud.securitycenter.v1.MitreAttack.Technique"
13
- optional :version, :string, 5
14
- end
15
- add_enum "google.cloud.securitycenter.v1.MitreAttack.Tactic" do
16
- value :TACTIC_UNSPECIFIED, 0
17
- value :RECONNAISSANCE, 1
18
- value :RESOURCE_DEVELOPMENT, 2
19
- value :INITIAL_ACCESS, 5
20
- value :EXECUTION, 3
21
- value :PERSISTENCE, 6
22
- value :PRIVILEGE_ESCALATION, 8
23
- value :DEFENSE_EVASION, 7
24
- value :CREDENTIAL_ACCESS, 9
25
- value :DISCOVERY, 10
26
- value :LATERAL_MOVEMENT, 11
27
- value :COLLECTION, 12
28
- value :COMMAND_AND_CONTROL, 4
29
- value :EXFILTRATION, 13
30
- value :IMPACT, 14
31
- end
32
- add_enum "google.cloud.securitycenter.v1.MitreAttack.Technique" do
33
- value :TECHNIQUE_UNSPECIFIED, 0
34
- value :ACTIVE_SCANNING, 1
35
- value :SCANNING_IP_BLOCKS, 2
36
- value :INGRESS_TOOL_TRANSFER, 3
37
- value :NATIVE_API, 4
38
- value :SHARED_MODULES, 5
39
- value :COMMAND_AND_SCRIPTING_INTERPRETER, 6
40
- value :UNIX_SHELL, 7
41
- value :RESOURCE_HIJACKING, 8
42
- value :PROXY, 9
43
- value :EXTERNAL_PROXY, 10
44
- value :MULTI_HOP_PROXY, 11
45
- value :DYNAMIC_RESOLUTION, 12
46
- value :UNSECURED_CREDENTIALS, 13
47
- value :VALID_ACCOUNTS, 14
48
- value :LOCAL_ACCOUNTS, 15
49
- value :CLOUD_ACCOUNTS, 16
50
- value :NETWORK_DENIAL_OF_SERVICE, 17
51
- value :PERMISSION_GROUPS_DISCOVERY, 18
52
- value :CLOUD_GROUPS, 19
53
- value :EXFILTRATION_OVER_WEB_SERVICE, 20
54
- value :EXFILTRATION_TO_CLOUD_STORAGE, 21
55
- value :ACCOUNT_MANIPULATION, 22
56
- value :SSH_AUTHORIZED_KEYS, 23
57
- value :CREATE_OR_MODIFY_SYSTEM_PROCESS, 24
58
- value :STEAL_WEB_SESSION_COOKIE, 25
59
- value :MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE, 26
60
- value :EXPLOIT_PUBLIC_FACING_APPLICATION, 27
61
- value :MODIFY_AUTHENTICATION_PROCESS, 28
62
- value :DATA_DESTRUCTION, 29
63
- value :DOMAIN_POLICY_MODIFICATION, 30
64
- value :IMPAIR_DEFENSES, 31
65
- value :NETWORK_SERVICE_DISCOVERY, 32
66
- value :ACCESS_TOKEN_MANIPULATION, 33
67
- value :ABUSE_ELEVATION_CONTROL_MECHANISM, 34
68
- value :DEFAULT_ACCOUNTS, 35
7
+
8
+ descriptor_data = "\n1google/cloud/securitycenter/v1/mitre_attack.proto\x12\x1egoogle.cloud.securitycenter.v1\"\xe8\x0c\n\x0bMitreAttack\x12J\n\x0eprimary_tactic\x18\x01 \x01(\x0e\x32\x32.google.cloud.securitycenter.v1.MitreAttack.Tactic\x12Q\n\x12primary_techniques\x18\x02 \x03(\x0e\x32\x35.google.cloud.securitycenter.v1.MitreAttack.Technique\x12N\n\x12\x61\x64\x64itional_tactics\x18\x03 \x03(\x0e\x32\x32.google.cloud.securitycenter.v1.MitreAttack.Tactic\x12T\n\x15\x61\x64\x64itional_techniques\x18\x04 \x03(\x0e\x32\x35.google.cloud.securitycenter.v1.MitreAttack.Technique\x12\x0f\n\x07version\x18\x05 \x01(\t\"\xb4\x02\n\x06Tactic\x12\x16\n\x12TACTIC_UNSPECIFIED\x10\x00\x12\x12\n\x0eRECONNAISSANCE\x10\x01\x12\x18\n\x14RESOURCE_DEVELOPMENT\x10\x02\x12\x12\n\x0eINITIAL_ACCESS\x10\x05\x12\r\n\tEXECUTION\x10\x03\x12\x0f\n\x0bPERSISTENCE\x10\x06\x12\x18\n\x14PRIVILEGE_ESCALATION\x10\x08\x12\x13\n\x0f\x44\x45\x46\x45NSE_EVASION\x10\x07\x12\x15\n\x11\x43REDENTIAL_ACCESS\x10\t\x12\r\n\tDISCOVERY\x10\n\x12\x14\n\x10LATERAL_MOVEMENT\x10\x0b\x12\x0e\n\nCOLLECTION\x10\x0c\x12\x17\n\x13\x43OMMAND_AND_CONTROL\x10\x04\x12\x10\n\x0c\x45XFILTRATION\x10\r\x12\n\n\x06IMPACT\x10\x0e\"\xcb\x07\n\tTechnique\x12\x19\n\x15TECHNIQUE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x41\x43TIVE_SCANNING\x10\x01\x12\x16\n\x12SCANNING_IP_BLOCKS\x10\x02\x12\x19\n\x15INGRESS_TOOL_TRANSFER\x10\x03\x12\x0e\n\nNATIVE_API\x10\x04\x12\x12\n\x0eSHARED_MODULES\x10\x05\x12%\n!COMMAND_AND_SCRIPTING_INTERPRETER\x10\x06\x12\x0e\n\nUNIX_SHELL\x10\x07\x12\x16\n\x12RESOURCE_HIJACKING\x10\x08\x12\t\n\x05PROXY\x10\t\x12\x12\n\x0e\x45XTERNAL_PROXY\x10\n\x12\x13\n\x0fMULTI_HOP_PROXY\x10\x0b\x12\x16\n\x12\x44YNAMIC_RESOLUTION\x10\x0c\x12\x19\n\x15UNSECURED_CREDENTIALS\x10\r\x12\x12\n\x0eVALID_ACCOUNTS\x10\x0e\x12\x12\n\x0eLOCAL_ACCOUNTS\x10\x0f\x12\x12\n\x0e\x43LOUD_ACCOUNTS\x10\x10\x12\x1d\n\x19NETWORK_DENIAL_OF_SERVICE\x10\x11\x12\x1f\n\x1bPERMISSION_GROUPS_DISCOVERY\x10\x12\x12\x10\n\x0c\x43LOUD_GROUPS\x10\x13\x12!\n\x1d\x45XFILTRATION_OVER_WEB_SERVICE\x10\x14\x12!\n\x1d\x45XFILTRATION_TO_CLOUD_STORAGE\x10\x15\x12\x18\n\x14\x41\x43\x43OUNT_MANIPULATION\x10\x16\x12\x17\n\x13SSH_AUTHORIZED_KEYS\x10\x17\x12#\n\x1f\x43REATE_OR_MODIFY_SYSTEM_PROCESS\x10\x18\x12\x1c\n\x18STEAL_WEB_SESSION_COOKIE\x10\x19\x12\'\n#MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE\x10\x1a\x12%\n!EXPLOIT_PUBLIC_FACING_APPLICATION\x10\x1b\x12!\n\x1dMODIFY_AUTHENTICATION_PROCESS\x10\x1c\x12\x14\n\x10\x44\x41TA_DESTRUCTION\x10\x1d\x12\x1e\n\x1a\x44OMAIN_POLICY_MODIFICATION\x10\x1e\x12\x13\n\x0fIMPAIR_DEFENSES\x10\x1f\x12\x1d\n\x19NETWORK_SERVICE_DISCOVERY\x10 \x12\x1d\n\x19\x41\x43\x43\x45SS_TOKEN_MANIPULATION\x10!\x12%\n!ABUSE_ELEVATION_CONTROL_MECHANISM\x10\"\x12\x14\n\x10\x44\x45\x46\x41ULT_ACCOUNTS\x10#B\xea\x01\n\"com.google.cloud.securitycenter.v1B\x10MitreAttackProtoP\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"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
69
28
  end
70
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
71
32
  end
72
33
 
73
34
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/mute_config.proto
3
4
 
@@ -7,18 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/securitycenter/v1/mute_config.proto", :syntax => :proto3) do
12
- add_message "google.cloud.securitycenter.v1.MuteConfig" do
13
- optional :name, :string, 1
14
- optional :display_name, :string, 2
15
- optional :description, :string, 3
16
- optional :filter, :string, 4
17
- optional :create_time, :message, 5, "google.protobuf.Timestamp"
18
- optional :update_time, :message, 6, "google.protobuf.Timestamp"
19
- optional :most_recent_editor, :string, 7
11
+
12
+ descriptor_data = "\n0google/cloud/securitycenter/v1/mute_config.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xae\x03\n\nMuteConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x02\x18\x01\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\x12most_recent_editor\x18\x07 \x01(\tB\x03\xe0\x41\x03:\xc0\x01\xea\x41\xbc\x01\n(securitycenter.googleapis.com/MuteConfig\x12\x36organizations/{organization}/muteConfigs/{mute_config}\x12*folders/{folder}/muteConfigs/{mute_config}\x12,projects/{project}/muteConfigs/{mute_config}B\xe9\x01\n\"com.google.cloud.securitycenter.v1B\x0fMuteConfigProtoP\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"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
20
33
  end
21
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
22
37
  end
23
38
 
24
39
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/notification_config.proto
3
4
 
@@ -6,21 +7,31 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/securitycenter/v1/notification_config.proto", :syntax => :proto3) do
11
- add_message "google.cloud.securitycenter.v1.NotificationConfig" do
12
- optional :name, :string, 1
13
- optional :description, :string, 2
14
- optional :pubsub_topic, :string, 3
15
- optional :service_account, :string, 4
16
- oneof :notify_config do
17
- optional :streaming_config, :message, 5, "google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig"
18
- end
19
- end
20
- add_message "google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig" do
21
- optional :filter, :string, 1
10
+
11
+ descriptor_data = "\n8google/cloud/securitycenter/v1/notification_config.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9c\x04\n\x12NotificationConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x36\n\x0cpubsub_topic\x18\x03 \x01(\tB \xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x1c\n\x0fservice_account\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12^\n\x10streaming_config\x18\x05 \x01(\x0b\x32\x42.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigH\x00\x1a!\n\x0fStreamingConfig\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t:\xf8\x01\xea\x41\xf4\x01\n0securitycenter.googleapis.com/NotificationConfig\x12\x46organizations/{organization}/notificationConfigs/{notification_config}\x12:folders/{folder}/notificationConfigs/{notification_config}\x12<projects/{project}/notificationConfigs/{notification_config}B\x0f\n\rnotify_configB\xb4\x02\n\"com.google.cloud.securitycenter.v1B\x17NotificationConfigProtoP\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::V1\xea\x41@\n\x1bpubsub.googleapis.com/Topic\x12!projects/{project}/topics/{topic}b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
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}"
22
31
  end
23
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."
24
35
  end
25
36
 
26
37
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/notification_message.proto
3
4
 
@@ -6,16 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/cloud/securitycenter/v1/finding_pb'
7
8
  require 'google/cloud/securitycenter/v1/resource_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/securitycenter/v1/notification_message.proto", :syntax => :proto3) do
11
- add_message "google.cloud.securitycenter.v1.NotificationMessage" do
12
- optional :notification_config_name, :string, 1
13
- optional :resource, :message, 3, "google.cloud.securitycenter.v1.Resource"
14
- oneof :event do
15
- optional :finding, :message, 2, "google.cloud.securitycenter.v1.Finding"
16
- end
10
+
11
+ descriptor_data = "\n9google/cloud/securitycenter/v1/notification_message.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a,google/cloud/securitycenter/v1/finding.proto\x1a-google/cloud/securitycenter/v1/resource.proto\"\xb8\x01\n\x13NotificationMessage\x12 \n\x18notification_config_name\x18\x01 \x01(\t\x12:\n\x07\x66inding\x18\x02 \x01(\x0b\x32\'.google.cloud.securitycenter.v1.FindingH\x00\x12:\n\x08resource\x18\x03 \x01(\x0b\x32(.google.cloud.securitycenter.v1.ResourceB\x07\n\x05\x65ventB\xf2\x01\n\"com.google.cloud.securitycenter.v1B\x18NotificationMessageProtoP\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"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.cloud.securitycenter.v1.Finding", "google/cloud/securitycenter/v1/finding.proto"],
27
+ ["google.cloud.securitycenter.v1.Resource", "google/cloud/securitycenter/v1/resource.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
17
33
  end
18
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
19
37
  end
20
38
 
21
39
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/organization_settings.proto
3
4
 
@@ -5,24 +6,31 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/api/resource_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/securitycenter/v1/organization_settings.proto", :syntax => :proto3) do
10
- add_message "google.cloud.securitycenter.v1.OrganizationSettings" do
11
- optional :name, :string, 1
12
- optional :enable_asset_discovery, :bool, 2
13
- optional :asset_discovery_config, :message, 3, "google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig"
14
- end
15
- add_message "google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig" do
16
- repeated :project_ids, :string, 1
17
- optional :inclusion_mode, :enum, 2, "google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode"
18
- repeated :folder_ids, :string, 3
19
- end
20
- add_enum "google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode" do
21
- value :INCLUSION_MODE_UNSPECIFIED, 0
22
- value :INCLUDE_ONLY, 1
23
- value :EXCLUDE, 2
9
+
10
+ descriptor_data = "\n:google/cloud/securitycenter/v1/organization_settings.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x19google/api/resource.proto\"\x9e\x04\n\x14OrganizationSettings\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1e\n\x16\x65nable_asset_discovery\x18\x02 \x01(\x08\x12i\n\x16\x61sset_discovery_config\x18\x03 \x01(\x0b\x32I.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig\x1a\x80\x02\n\x14\x41ssetDiscoveryConfig\x12\x13\n\x0bproject_ids\x18\x01 \x03(\t\x12o\n\x0einclusion_mode\x18\x02 \x01(\x0e\x32W.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode\x12\x12\n\nfolder_ids\x18\x03 \x03(\t\"N\n\rInclusionMode\x12\x1e\n\x1aINCLUSION_MODE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINCLUDE_ONLY\x10\x01\x12\x0b\n\x07\x45XCLUDE\x10\x02:j\xea\x41g\n2securitycenter.googleapis.com/OrganizationSettings\x12\x31organizations/{organization}/organizationSettingsB\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"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
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
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
24
30
  end
25
31
  end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
26
34
  end
27
35
 
28
36
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/process.proto
3
4
 
@@ -5,25 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/cloud/securitycenter/v1/file_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/securitycenter/v1/process.proto", :syntax => :proto3) do
10
- add_message "google.cloud.securitycenter.v1.Process" do
11
- optional :name, :string, 12
12
- optional :binary, :message, 3, "google.cloud.securitycenter.v1.File"
13
- repeated :libraries, :message, 4, "google.cloud.securitycenter.v1.File"
14
- optional :script, :message, 5, "google.cloud.securitycenter.v1.File"
15
- repeated :args, :string, 6
16
- optional :arguments_truncated, :bool, 7
17
- repeated :env_variables, :message, 8, "google.cloud.securitycenter.v1.EnvironmentVariable"
18
- optional :env_variables_truncated, :bool, 9
19
- optional :pid, :int64, 10
20
- optional :parent_pid, :int64, 11
21
- end
22
- add_message "google.cloud.securitycenter.v1.EnvironmentVariable" do
23
- optional :name, :string, 1
24
- optional :val, :string, 2
9
+
10
+ descriptor_data = "\n,google/cloud/securitycenter/v1/process.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a)google/cloud/securitycenter/v1/file.proto\"\xf5\x02\n\x07Process\x12\x0c\n\x04name\x18\x0c \x01(\t\x12\x34\n\x06\x62inary\x18\x03 \x01(\x0b\x32$.google.cloud.securitycenter.v1.File\x12\x37\n\tlibraries\x18\x04 \x03(\x0b\x32$.google.cloud.securitycenter.v1.File\x12\x34\n\x06script\x18\x05 \x01(\x0b\x32$.google.cloud.securitycenter.v1.File\x12\x0c\n\x04\x61rgs\x18\x06 \x03(\t\x12\x1b\n\x13\x61rguments_truncated\x18\x07 \x01(\x08\x12J\n\renv_variables\x18\x08 \x03(\x0b\x32\x33.google.cloud.securitycenter.v1.EnvironmentVariable\x12\x1f\n\x17\x65nv_variables_truncated\x18\t \x01(\x08\x12\x0b\n\x03pid\x18\n \x01(\x03\x12\x12\n\nparent_pid\x18\x0b \x01(\x03\"0\n\x13\x45nvironmentVariable\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03val\x18\x02 \x01(\tB\xe6\x01\n\"com.google.cloud.securitycenter.v1B\x0cProcessProtoP\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 => e
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.cloud.securitycenter.v1.File", "google/cloud/securitycenter/v1/file.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}"
25
31
  end
26
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."
27
35
  end
28
36
 
29
37
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/resource.proto
3
4
 
@@ -6,19 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/cloud/securitycenter/v1/folder_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/securitycenter/v1/resource.proto", :syntax => :proto3) do
11
- add_message "google.cloud.securitycenter.v1.Resource" do
12
- optional :name, :string, 1
13
- optional :display_name, :string, 8
14
- optional :type, :string, 6
15
- optional :project, :string, 2
16
- optional :project_display_name, :string, 3
17
- optional :parent, :string, 4
18
- optional :parent_display_name, :string, 5
19
- repeated :folders, :message, 7, "google.cloud.securitycenter.v1.Folder"
10
+
11
+ descriptor_data = "\n-google/cloud/securitycenter/v1/resource.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a+google/cloud/securitycenter/v1/folder.proto\"\xd6\x01\n\x08Resource\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x08 \x01(\t\x12\x0c\n\x04type\x18\x06 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12\x1c\n\x14project_display_name\x18\x03 \x01(\t\x12\x0e\n\x06parent\x18\x04 \x01(\t\x12\x1b\n\x13parent_display_name\x18\x05 \x01(\t\x12<\n\x07\x66olders\x18\x07 \x03(\x0b\x32&.google.cloud.securitycenter.v1.FolderB\x03\xe0\x41\x03\x42\xe7\x01\n\"com.google.cloud.securitycenter.v1B\rResourceProtoP\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"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.cloud.securitycenter.v1.Folder", "google/cloud/securitycenter/v1/folder.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
20
32
  end
21
33
  end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
22
36
  end
23
37
 
24
38
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/run_asset_discovery_response.proto
3
4
 
@@ -5,19 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/duration_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/securitycenter/v1/run_asset_discovery_response.proto", :syntax => :proto3) do
10
- add_message "google.cloud.securitycenter.v1.RunAssetDiscoveryResponse" do
11
- optional :state, :enum, 1, "google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State"
12
- optional :duration, :message, 2, "google.protobuf.Duration"
13
- end
14
- add_enum "google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State" do
15
- value :STATE_UNSPECIFIED, 0
16
- value :COMPLETED, 1
17
- value :SUPERSEDED, 2
18
- value :TERMINATED, 3
9
+
10
+ descriptor_data = "\nAgoogle/cloud/securitycenter/v1/run_asset_discovery_response.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x1egoogle/protobuf/duration.proto\"\xe7\x01\n\x19RunAssetDiscoveryResponse\x12N\n\x05state\x18\x01 \x01(\x0e\x32?.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"M\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tCOMPLETED\x10\x01\x12\x0e\n\nSUPERSEDED\x10\x02\x12\x0e\n\nTERMINATED\x10\x03\x42\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"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
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}"
19
31
  end
20
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."
21
35
  end
22
36
 
23
37
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto
3
4
 
@@ -5,34 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/type/expr_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto", :syntax => :proto3) do
10
- add_message "google.cloud.securitycenter.v1.CustomConfig" do
11
- optional :predicate, :message, 1, "google.type.Expr"
12
- optional :custom_output, :message, 2, "google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec"
13
- optional :resource_selector, :message, 3, "google.cloud.securitycenter.v1.CustomConfig.ResourceSelector"
14
- optional :severity, :enum, 4, "google.cloud.securitycenter.v1.CustomConfig.Severity"
15
- optional :description, :string, 5
16
- optional :recommendation, :string, 6
17
- end
18
- add_message "google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec" do
19
- repeated :properties, :message, 1, "google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property"
20
- end
21
- add_message "google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property" do
22
- optional :name, :string, 1
23
- optional :value_expression, :message, 2, "google.type.Expr"
24
- end
25
- add_message "google.cloud.securitycenter.v1.CustomConfig.ResourceSelector" do
26
- repeated :resource_types, :string, 1
27
- end
28
- add_enum "google.cloud.securitycenter.v1.CustomConfig.Severity" do
29
- value :SEVERITY_UNSPECIFIED, 0
30
- value :CRITICAL, 1
31
- value :HIGH, 2
32
- value :MEDIUM, 3
33
- value :LOW, 4
9
+
10
+ descriptor_data = "\nLgoogle/cloud/securitycenter/v1/security_health_analytics_custom_config.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x16google/type/expr.proto\"\x91\x05\n\x0c\x43ustomConfig\x12$\n\tpredicate\x18\x01 \x01(\x0b\x32\x11.google.type.Expr\x12T\n\rcustom_output\x18\x02 \x01(\x0b\x32=.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec\x12X\n\x11resource_selector\x18\x03 \x01(\x0b\x32=.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector\x12G\n\x08severity\x18\x04 \x01(\x0e\x32\x35.google.cloud.securitycenter.v1.CustomConfig.Severity\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x16\n\x0erecommendation\x18\x06 \x01(\t\x1a\xb5\x01\n\x10\x43ustomOutputSpec\x12Z\n\nproperties\x18\x01 \x03(\x0b\x32\x46.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property\x1a\x45\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12+\n\x10value_expression\x18\x02 \x01(\x0b\x32\x11.google.type.Expr\x1a*\n\x10ResourceSelector\x12\x16\n\x0eresource_types\x18\x01 \x03(\t\"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\x42\x82\x02\n\"com.google.cloud.securitycenter.v1B(SecurityHealthAnalyticsCustomConfigProtoP\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 => e
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.type.Expr", "google/type/expr.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}"
34
31
  end
35
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."
36
35
  end
37
36
 
38
37
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/securitycenter/v1/security_health_analytics_custom_module.proto
3
4
 
@@ -8,24 +9,33 @@ require 'google/api/resource_pb'
8
9
  require 'google/cloud/securitycenter/v1/security_health_analytics_custom_config_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/securitycenter/v1/security_health_analytics_custom_module.proto", :syntax => :proto3) do
13
- add_message "google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule" do
14
- optional :name, :string, 1
15
- optional :display_name, :string, 2
16
- optional :enablement_state, :enum, 4, "google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState"
17
- optional :update_time, :message, 5, "google.protobuf.Timestamp"
18
- optional :last_editor, :string, 6
19
- optional :ancestor_module, :string, 7
20
- optional :custom_config, :message, 8, "google.cloud.securitycenter.v1.CustomConfig"
21
- end
22
- add_enum "google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState" do
23
- value :ENABLEMENT_STATE_UNSPECIFIED, 0
24
- value :ENABLED, 1
25
- value :DISABLED, 2
26
- value :INHERITED, 3
12
+
13
+ descriptor_data = "\nLgoogle/cloud/securitycenter/v1/security_health_analytics_custom_module.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1aLgoogle/cloud/securitycenter/v1/security_health_analytics_custom_config.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdd\x06\n#SecurityHealthAnalyticsCustomModule\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12m\n\x10\x65nablement_state\x18\x04 \x01(\x0e\x32S.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x0blast_editor\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x62\n\x0f\x61ncestor_module\x18\x07 \x01(\tBI\xe0\x41\x03\xfa\x41\x43\nAsecuritycenter.googleapis.com/SecurityHealthAnalyticsCustomModule\x12\x43\n\rcustom_config\x18\x08 \x01(\x0b\x32,.google.cloud.securitycenter.v1.CustomConfig\"]\n\x0f\x45nablementState\x12 \n\x1c\x45NABLEMENT_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\r\n\tINHERITED\x10\x03:\xc5\x02\xea\x41\xc1\x02\nAsecuritycenter.googleapis.com/SecurityHealthAnalyticsCustomModule\x12Zorganizations/{organization}/securityHealthAnalyticsSettings/customModules/{custom_module}\x12Nfolders/{folder}/securityHealthAnalyticsSettings/customModules/{custom_module}\x12Pprojects/{project}/securityHealthAnalyticsSettings/customModules/{custom_module}B\xe9\x03\n\"com.google.cloud.securitycenter.v1B(SecurityHealthAnalyticsCustomModuleProtoP\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::V1\xea\x41\xe3\x01\n=securitycenter.googleapis.com/SecurityHealthAnalyticsSettings\x12<organizations/{organization}/securityHealthAnalyticsSettings\x12\x30\x66olders/{folder}/securityHealthAnalyticsSettings\x12\x32projects/{project}/securityHealthAnalyticsSettingsb\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.cloud.securitycenter.v1.CustomConfig", "google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
27
35
  end
28
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
29
39
  end
30
40
 
31
41
  module Google