google-cloud-security_center-v2 0.a → 0.2.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 (119) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/security_center/v2/rest.rb +37 -0
  6. data/lib/google/cloud/security_center/v2/security_center/client.rb +4771 -0
  7. data/lib/google/cloud/security_center/v2/security_center/credentials.rb +51 -0
  8. data/lib/google/cloud/security_center/v2/security_center/operations.rb +809 -0
  9. data/lib/google/cloud/security_center/v2/security_center/paths.rb +973 -0
  10. data/lib/google/cloud/security_center/v2/security_center/rest/client.rb +4390 -0
  11. data/lib/google/cloud/security_center/v2/security_center/rest/operations.rb +901 -0
  12. data/lib/google/cloud/security_center/v2/security_center/rest/service_stub.rb +3165 -0
  13. data/lib/google/cloud/security_center/v2/security_center/rest.rb +53 -0
  14. data/lib/google/cloud/security_center/v2/security_center.rb +56 -0
  15. data/lib/google/cloud/security_center/v2/version.rb +7 -2
  16. data/lib/google/cloud/security_center/v2.rb +45 -0
  17. data/lib/google/cloud/securitycenter/v2/access_pb.rb +44 -0
  18. data/lib/google/cloud/securitycenter/v2/application_pb.rb +42 -0
  19. data/lib/google/cloud/securitycenter/v2/attack_exposure_pb.rb +47 -0
  20. data/lib/google/cloud/securitycenter/v2/attack_path_pb.rb +49 -0
  21. data/lib/google/cloud/securitycenter/v2/backup_disaster_recovery_pb.rb +45 -0
  22. data/lib/google/cloud/securitycenter/v2/bigquery_export_pb.rb +47 -0
  23. data/lib/google/cloud/securitycenter/v2/cloud_dlp_data_profile_pb.rb +45 -0
  24. data/lib/google/cloud/securitycenter/v2/cloud_dlp_inspection_pb.rb +44 -0
  25. data/lib/google/cloud/securitycenter/v2/compliance_pb.rb +42 -0
  26. data/lib/google/cloud/securitycenter/v2/connection_pb.rb +43 -0
  27. data/lib/google/cloud/securitycenter/v2/contact_details_pb.rb +43 -0
  28. data/lib/google/cloud/securitycenter/v2/container_pb.rb +47 -0
  29. data/lib/google/cloud/securitycenter/v2/database_pb.rb +42 -0
  30. data/lib/google/cloud/securitycenter/v2/exfiltration_pb.rb +43 -0
  31. data/lib/google/cloud/securitycenter/v2/external_system_pb.rb +47 -0
  32. data/lib/google/cloud/securitycenter/v2/file_pb.rb +43 -0
  33. data/lib/google/cloud/securitycenter/v2/finding_pb.rb +109 -0
  34. data/lib/google/cloud/securitycenter/v2/group_membership_pb.rb +43 -0
  35. data/lib/google/cloud/securitycenter/v2/iam_binding_pb.rb +43 -0
  36. data/lib/google/cloud/securitycenter/v2/indicator_pb.rb +47 -0
  37. data/lib/google/cloud/securitycenter/v2/kernel_rootkit_pb.rb +42 -0
  38. data/lib/google/cloud/securitycenter/v2/kubernetes_pb.rb +57 -0
  39. data/lib/google/cloud/securitycenter/v2/label_pb.rb +42 -0
  40. data/lib/google/cloud/securitycenter/v2/load_balancer_pb.rb +42 -0
  41. data/lib/google/cloud/securitycenter/v2/log_entry_pb.rb +46 -0
  42. data/lib/google/cloud/securitycenter/v2/mitre_attack_pb.rb +44 -0
  43. data/lib/google/cloud/securitycenter/v2/mute_config_pb.rb +48 -0
  44. data/lib/google/cloud/securitycenter/v2/notification_config_pb.rb +46 -0
  45. data/lib/google/cloud/securitycenter/v2/notification_message_pb.rb +47 -0
  46. data/lib/google/cloud/securitycenter/v2/org_policy_pb.rb +44 -0
  47. data/lib/google/cloud/securitycenter/v2/process_pb.rb +46 -0
  48. data/lib/google/cloud/securitycenter/v2/resource_pb.rb +44 -0
  49. data/lib/google/cloud/securitycenter/v2/resource_value_config_pb.rb +49 -0
  50. data/lib/google/cloud/securitycenter/v2/security_marks_pb.rb +44 -0
  51. data/lib/google/cloud/securitycenter/v2/security_posture_pb.rb +43 -0
  52. data/lib/google/cloud/securitycenter/v2/securitycenter_service_pb.rb +128 -0
  53. data/lib/google/cloud/securitycenter/v2/securitycenter_service_services_pb.rb +167 -0
  54. data/lib/google/cloud/securitycenter/v2/simulation_pb.rb +49 -0
  55. data/lib/google/cloud/securitycenter/v2/source_pb.rb +44 -0
  56. data/lib/google/cloud/securitycenter/v2/toxic_combination_pb.rb +42 -0
  57. data/lib/google/cloud/securitycenter/v2/valued_resource_pb.rb +46 -0
  58. data/lib/google/cloud/securitycenter/v2/vulnerability_pb.rb +58 -0
  59. data/lib/google-cloud-security_center-v2.rb +21 -0
  60. data/proto_docs/README.md +4 -0
  61. data/proto_docs/google/api/client.rb +399 -0
  62. data/proto_docs/google/api/field_behavior.rb +85 -0
  63. data/proto_docs/google/api/launch_stage.rb +71 -0
  64. data/proto_docs/google/api/resource.rb +222 -0
  65. data/proto_docs/google/api/routing.rb +459 -0
  66. data/proto_docs/google/cloud/securitycenter/v2/access.rb +120 -0
  67. data/proto_docs/google/cloud/securitycenter/v2/application.rb +40 -0
  68. data/proto_docs/google/cloud/securitycenter/v2/attack_exposure.rb +73 -0
  69. data/proto_docs/google/cloud/securitycenter/v2/attack_path.rb +147 -0
  70. data/proto_docs/google/cloud/securitycenter/v2/backup_disaster_recovery.rb +90 -0
  71. data/proto_docs/google/cloud/securitycenter/v2/bigquery_export.rb +96 -0
  72. data/proto_docs/google/cloud/securitycenter/v2/cloud_dlp_data_profile.rb +52 -0
  73. data/proto_docs/google/cloud/securitycenter/v2/cloud_dlp_inspection.rb +50 -0
  74. data/proto_docs/google/cloud/securitycenter/v2/compliance.rb +43 -0
  75. data/proto_docs/google/cloud/securitycenter/v2/connection.rb +70 -0
  76. data/proto_docs/google/cloud/securitycenter/v2/contact_details.rb +44 -0
  77. data/proto_docs/google/cloud/securitycenter/v2/container.rb +49 -0
  78. data/proto_docs/google/cloud/securitycenter/v2/database.rb +67 -0
  79. data/proto_docs/google/cloud/securitycenter/v2/exfiltration.rb +64 -0
  80. data/proto_docs/google/cloud/securitycenter/v2/external_system.rb +106 -0
  81. data/proto_docs/google/cloud/securitycenter/v2/file.rb +72 -0
  82. data/proto_docs/google/cloud/securitycenter/v2/finding.rb +427 -0
  83. data/proto_docs/google/cloud/securitycenter/v2/group_membership.rb +48 -0
  84. data/proto_docs/google/cloud/securitycenter/v2/iam_binding.rb +56 -0
  85. data/proto_docs/google/cloud/securitycenter/v2/indicator.rb +112 -0
  86. data/proto_docs/google/cloud/securitycenter/v2/kernel_rootkit.rb +66 -0
  87. data/proto_docs/google/cloud/securitycenter/v2/kubernetes.rb +241 -0
  88. data/proto_docs/google/cloud/securitycenter/v2/label.rb +41 -0
  89. data/proto_docs/google/cloud/securitycenter/v2/load_balancer.rb +36 -0
  90. data/proto_docs/google/cloud/securitycenter/v2/log_entry.rb +58 -0
  91. data/proto_docs/google/cloud/securitycenter/v2/mitre_attack.rb +285 -0
  92. data/proto_docs/google/cloud/securitycenter/v2/mute_config.rb +100 -0
  93. data/proto_docs/google/cloud/securitycenter/v2/notification_config.rb +90 -0
  94. data/proto_docs/google/cloud/securitycenter/v2/notification_message.rb +42 -0
  95. data/proto_docs/google/cloud/securitycenter/v2/org_policy.rb +37 -0
  96. data/proto_docs/google/cloud/securitycenter/v2/process.rb +79 -0
  97. data/proto_docs/google/cloud/securitycenter/v2/resource.rb +42 -0
  98. data/proto_docs/google/cloud/securitycenter/v2/resource_value_config.rb +122 -0
  99. data/proto_docs/google/cloud/securitycenter/v2/security_marks.rb +84 -0
  100. data/proto_docs/google/cloud/securitycenter/v2/security_posture.rb +83 -0
  101. data/proto_docs/google/cloud/securitycenter/v2/securitycenter_service.rb +1136 -0
  102. data/proto_docs/google/cloud/securitycenter/v2/simulation.rb +43 -0
  103. data/proto_docs/google/cloud/securitycenter/v2/source.rb +65 -0
  104. data/proto_docs/google/cloud/securitycenter/v2/toxic_combination.rb +46 -0
  105. data/proto_docs/google/cloud/securitycenter/v2/valued_resource.rb +86 -0
  106. data/proto_docs/google/cloud/securitycenter/v2/vulnerability.rb +333 -0
  107. data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
  108. data/proto_docs/google/iam/v1/options.rb +50 -0
  109. data/proto_docs/google/iam/v1/policy.rb +426 -0
  110. data/proto_docs/google/longrunning/operations.rb +164 -0
  111. data/proto_docs/google/protobuf/any.rb +145 -0
  112. data/proto_docs/google/protobuf/duration.rb +98 -0
  113. data/proto_docs/google/protobuf/empty.rb +34 -0
  114. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  115. data/proto_docs/google/protobuf/struct.rb +96 -0
  116. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  117. data/proto_docs/google/rpc/status.rb +48 -0
  118. data/proto_docs/google/type/expr.rb +75 -0
  119. metadata +173 -10
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/securitycenter/v2/security_posture.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n5google/cloud/securitycenter/v2/security_posture.proto\x12\x1egoogle.cloud.securitycenter.v2\"\xe8\x02\n\x0fSecurityPosture\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0brevision_id\x18\x02 \x01(\t\x12#\n\x1bposture_deployment_resource\x18\x03 \x01(\t\x12\x1a\n\x12posture_deployment\x18\x04 \x01(\t\x12\x16\n\x0e\x63hanged_policy\x18\x05 \x01(\t\x12\x12\n\npolicy_set\x18\x06 \x01(\t\x12\x0e\n\x06policy\x18\x07 \x01(\t\x12`\n\x14policy_drift_details\x18\x08 \x03(\x0b\x32\x42.google.cloud.securitycenter.v2.SecurityPosture.PolicyDriftDetails\x1aS\n\x12PolicyDriftDetails\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x16\n\x0e\x65xpected_value\x18\x02 \x01(\t\x12\x16\n\x0e\x64\x65tected_value\x18\x03 \x01(\tB\xee\x01\n\"com.google.cloud.securitycenter.v2B\x14SecurityPostureProtoP\x01ZJcloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V2\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V2\xea\x02!Google::Cloud::SecurityCenter::V2b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
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}"
28
+ end
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."
32
+ end
33
+
34
+ module Google
35
+ module Cloud
36
+ module SecurityCenter
37
+ module V2
38
+ SecurityPosture = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.SecurityPosture").msgclass
39
+ SecurityPosture::PolicyDriftDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.SecurityPosture.PolicyDriftDetails").msgclass
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,128 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/securitycenter/v2/securitycenter_service.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/api/routing_pb'
12
+ require 'google/cloud/securitycenter/v2/attack_path_pb'
13
+ require 'google/cloud/securitycenter/v2/bigquery_export_pb'
14
+ require 'google/cloud/securitycenter/v2/external_system_pb'
15
+ require 'google/cloud/securitycenter/v2/finding_pb'
16
+ require 'google/cloud/securitycenter/v2/mute_config_pb'
17
+ require 'google/cloud/securitycenter/v2/notification_config_pb'
18
+ require 'google/cloud/securitycenter/v2/resource_value_config_pb'
19
+ require 'google/cloud/securitycenter/v2/security_marks_pb'
20
+ require 'google/cloud/securitycenter/v2/simulation_pb'
21
+ require 'google/cloud/securitycenter/v2/source_pb'
22
+ require 'google/cloud/securitycenter/v2/valued_resource_pb'
23
+ require 'google/iam/v1/iam_policy_pb'
24
+ require 'google/iam/v1/policy_pb'
25
+ require 'google/longrunning/operations_pb'
26
+ require 'google/protobuf/empty_pb'
27
+ require 'google/protobuf/field_mask_pb'
28
+ require 'google/protobuf/struct_pb'
29
+
30
+
31
+ descriptor_data = "\n;google/cloud/securitycenter/v2/securitycenter_service.proto\x12\x1egoogle.cloud.securitycenter.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a\x30google/cloud/securitycenter/v2/attack_path.proto\x1a\x34google/cloud/securitycenter/v2/bigquery_export.proto\x1a\x34google/cloud/securitycenter/v2/external_system.proto\x1a,google/cloud/securitycenter/v2/finding.proto\x1a\x30google/cloud/securitycenter/v2/mute_config.proto\x1a\x38google/cloud/securitycenter/v2/notification_config.proto\x1a:google/cloud/securitycenter/v2/resource_value_config.proto\x1a\x33google/cloud/securitycenter/v2/security_marks.proto\x1a/google/cloud/securitycenter/v2/simulation.proto\x1a+google/cloud/securitycenter/v2/source.proto\x1a\x34google/cloud/securitycenter/v2/valued_resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xcc\x01\n&BatchCreateResourceValueConfigsRequest\x12I\n\x06parent\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\x12\x31securitycenter.googleapis.com/ResourceValueConfig\x12W\n\x08requests\x18\x02 \x03(\x0b\x32@.google.cloud.securitycenter.v2.CreateResourceValueConfigRequestB\x03\xe0\x41\x02\"~\n\'BatchCreateResourceValueConfigsResponse\x12S\n\x16resource_value_configs\x18\x01 \x03(\x0b\x32\x33.google.cloud.securitycenter.v2.ResourceValueConfig\"D\n\x17\x42ulkMuteFindingsRequest\x12\x19\n\x06parent\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\"\x1a\n\x18\x42ulkMuteFindingsResponse\"\xd4\x01\n\x1b\x43reateBigQueryExportRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,securitycenter.googleapis.com/BigQueryExport\x12M\n\x10\x62ig_query_export\x18\x02 \x01(\x0b\x32..google.cloud.securitycenter.v2.BigQueryExportB\x03\xe0\x41\x02\x12 \n\x13\x62ig_query_export_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xac\x01\n\x14\x43reateFindingRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$securitycenter.googleapis.com/Source\x12\x17\n\nfinding_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12=\n\x07\x66inding\x18\x03 \x01(\x0b\x32\'.google.cloud.securitycenter.v2.FindingB\x03\xe0\x41\x02\"\xbe\x01\n\x17\x43reateMuteConfigRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(securitycenter.googleapis.com/MuteConfig\x12\x44\n\x0bmute_config\x18\x02 \x01(\x0b\x32*.google.cloud.securitycenter.v2.MuteConfigB\x03\xe0\x41\x02\x12\x1b\n\x0emute_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xd9\x01\n\x1f\x43reateNotificationConfigRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30securitycenter.googleapis.com/NotificationConfig\x12\x16\n\tconfig_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12T\n\x13notification_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.securitycenter.v2.NotificationConfigB\x03\xe0\x41\x02\"\xc6\x01\n CreateResourceValueConfigRequest\x12I\n\x06parent\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\x12\x31securitycenter.googleapis.com/ResourceValueConfig\x12W\n\x15resource_value_config\x18\x02 \x01(\x0b\x32\x33.google.cloud.securitycenter.v2.ResourceValueConfigB\x03\xe0\x41\x02\"\x9c\x01\n\x13\x43reateSourceRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0cloudresourcemanager.googleapis.com/Organization\x12;\n\x06source\x18\x02 \x01(\x0b\x32&.google.cloud.securitycenter.v2.SourceB\x03\xe0\x41\x02\"a\n\x1b\x44\x65leteBigQueryExportRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,securitycenter.googleapis.com/BigQueryExport\"Y\n\x17\x44\x65leteMuteConfigRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(securitycenter.googleapis.com/MuteConfig\"i\n\x1f\x44\x65leteNotificationConfigRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0securitycenter.googleapis.com/NotificationConfig\"k\n DeleteResourceValueConfigRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1securitycenter.googleapis.com/ResourceValueConfig\"^\n\x18GetBigQueryExportRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,securitycenter.googleapis.com/BigQueryExport\"V\n\x14GetMuteConfigRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(securitycenter.googleapis.com/MuteConfig\"f\n\x1cGetNotificationConfigRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0securitycenter.googleapis.com/NotificationConfig\"h\n\x1dGetResourceValueConfigRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1securitycenter.googleapis.com/ResourceValueConfig\"N\n\x10GetSourceRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$securitycenter.googleapis.com/Source\"\xa2\x01\n\x14GroupFindingsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$securitycenter.googleapis.com/Source\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x15\n\x08group_by\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x07 \x01(\t\x12\x11\n\tpage_size\x18\x08 \x01(\x05\"\x8b\x01\n\x15GroupFindingsResponse\x12\x45\n\x10group_by_results\x18\x01 \x03(\x0b\x32+.google.cloud.securitycenter.v2.GroupResult\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x12\x12\n\ntotal_size\x18\x04 \x01(\x05\"\xb8\x01\n\x0bGroupResult\x12O\n\nproperties\x18\x01 \x03(\x0b\x32;.google.cloud.securitycenter.v2.GroupResult.PropertiesEntry\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x1aI\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"\x91\x01\n\x16ListAttackPathsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(securitycenter.googleapis.com/AttackPath\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\"t\n\x17ListAttackPathsResponse\x12@\n\x0c\x61ttack_paths\x18\x01 \x03(\x0b\x32*.google.cloud.securitycenter.v2.AttackPath\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"V\n\x14GetSimulationRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(securitycenter.googleapis.com/Simulation\"^\n\x18GetValuedResourceRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,securitycenter.googleapis.com/ValuedResource\"\x89\x01\n\x1aListBigQueryExportsRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,securitycenter.googleapis.com/BigQueryExport\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x81\x01\n\x1bListBigQueryExportsResponse\x12I\n\x11\x62ig_query_exports\x18\x01 \x03(\x0b\x32..google.cloud.securitycenter.v2.BigQueryExport\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xcc\x01\n\x13ListFindingsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$securitycenter.googleapis.com/Source\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x10\n\x08order_by\x18\x03 \x01(\t\x12.\n\nfield_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x12\n\npage_token\x18\x08 \x01(\t\x12\x11\n\tpage_size\x18\t \x01(\x05\"\xa3\x03\n\x14ListFindingsResponse\x12\x66\n\x15list_findings_results\x18\x01 \x03(\x0b\x32G.google.cloud.securitycenter.v2.ListFindingsResponse.ListFindingsResult\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x12\x12\n\ntotal_size\x18\x04 \x01(\x05\x1a\xf5\x01\n\x12ListFindingsResult\x12\x38\n\x07\x66inding\x18\x01 \x01(\x0b\x32\'.google.cloud.securitycenter.v2.Finding\x12g\n\x08resource\x18\x03 \x01(\x0b\x32P.google.cloud.securitycenter.v2.ListFindingsResponse.ListFindingsResult.ResourceB\x03\xe0\x41\x03\x1a<\n\x08Resource\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\"\x81\x01\n\x16ListMuteConfigsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(securitycenter.googleapis.com/MuteConfig\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x17ListMuteConfigsResponse\x12@\n\x0cmute_configs\x18\x01 \x03(\x0b\x32*.google.cloud.securitycenter.v2.MuteConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x91\x01\n\x1eListNotificationConfigsRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30securitycenter.googleapis.com/NotificationConfig\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"\x8c\x01\n\x1fListNotificationConfigsResponse\x12P\n\x14notification_configs\x18\x01 \x03(\x0b\x32\x32.google.cloud.securitycenter.v2.NotificationConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x93\x01\n\x1fListResourceValueConfigsRequest\x12I\n\x06parent\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\x12\x31securitycenter.googleapis.com/ResourceValueConfig\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x90\x01\n ListResourceValueConfigsResponse\x12S\n\x16resource_value_configs\x18\x01 \x03(\x0b\x32\x33.google.cloud.securitycenter.v2.ResourceValueConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"y\n\x12ListSourcesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$securitycenter.googleapis.com/Source\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x07 \x01(\x05\"g\n\x13ListSourcesResponse\x12\x37\n\x07sources\x18\x01 \x03(\x0b\x32&.google.cloud.securitycenter.v2.Source\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb0\x01\n\x1aListValuedResourcesRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,securitycenter.googleapis.com/ValuedResource\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x94\x01\n\x1bListValuedResourcesResponse\x12H\n\x10valued_resources\x18\x01 \x03(\x0b\x32..google.cloud.securitycenter.v2.ValuedResource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"\x98\x01\n\x16SetFindingStateRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%securitycenter.googleapis.com/Finding\x12\x41\n\x05state\x18\x02 \x01(\x0e\x32-.google.cloud.securitycenter.v2.Finding.StateB\x03\xe0\x41\x02\"\x8e\x01\n\x0eSetMuteRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%securitycenter.googleapis.com/Finding\x12?\n\x04mute\x18\x02 \x01(\x0e\x32,.google.cloud.securitycenter.v2.Finding.MuteB\x03\xe0\x41\x02\"\x9d\x01\n\x1bUpdateBigQueryExportRequest\x12M\n\x10\x62ig_query_export\x18\x01 \x01(\x0b\x32..google.cloud.securitycenter.v2.BigQueryExportB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x9c\x01\n\x1bUpdateExternalSystemRequest\x12L\n\x0f\x65xternal_system\x18\x01 \x01(\x0b\x32..google.cloud.securitycenter.v2.ExternalSystemB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x86\x01\n\x14UpdateFindingRequest\x12=\n\x07\x66inding\x18\x01 \x01(\x0b\x32\'.google.cloud.securitycenter.v2.FindingB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x90\x01\n\x17UpdateMuteConfigRequest\x12\x44\n\x0bmute_config\x18\x01 \x01(\x0b\x32*.google.cloud.securitycenter.v2.MuteConfigB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xa8\x01\n\x1fUpdateNotificationConfigRequest\x12T\n\x13notification_config\x18\x01 \x01(\x0b\x32\x32.google.cloud.securitycenter.v2.NotificationConfigB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xac\x01\n UpdateResourceValueConfigRequest\x12W\n\x15resource_value_config\x18\x01 \x01(\x0b\x32\x33.google.cloud.securitycenter.v2.ResourceValueConfigB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x99\x01\n\x1aUpdateSecurityMarksRequest\x12J\n\x0esecurity_marks\x18\x01 \x01(\x0b\x32-.google.cloud.securitycenter.v2.SecurityMarksB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x83\x01\n\x13UpdateSourceRequest\x12;\n\x06source\x18\x01 \x01(\x0b\x32&.google.cloud.securitycenter.v2.SourceB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask2\xc5{\n\x0eSecurityCenter\x12\x8e\x02\n\x1f\x42\x61tchCreateResourceValueConfigs\x12\x46.google.cloud.securitycenter.v2.BatchCreateResourceValueConfigsRequest\x1aG.google.cloud.securitycenter.v2.BatchCreateResourceValueConfigsResponse\"Z\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02\x42\"=/v2/{parent=organizations/*}/resourceValueConfigs:batchCreate:\x01*\x12\x9a\x04\n\x10\x42ulkMuteFindings\x12\x37.google.cloud.securitycenter.v2.BulkMuteFindingsRequest\x1a\x1d.google.longrunning.Operation\"\xad\x03\xca\x41P\n7google.cloud.securitycenter.v2.BulkMuteFindingsResponse\x12\x15google.protobuf.Empty\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xca\x02\"./v2/{parent=organizations/*}/findings:bulkMute:\x01*Z?\":/v2/{parent=organizations/*/locations/*}/findings:bulkMute:\x01*Z-\"(/v2/{parent=folders/*}/findings:bulkMute:\x01*Z9\"4/v2/{parent=folders/*/locations/*}/findings:bulkMute:\x01*Z.\")/v2/{parent=projects/*}/findings:bulkMute:\x01*Z:\"5/v2/{parent=projects/*/locations/*}/findings:bulkMute:\x01*\x12\x98\x03\n\x14\x43reateBigQueryExport\x12;.google.cloud.securitycenter.v2.CreateBigQueryExportRequest\x1a..google.cloud.securitycenter.v2.BigQueryExport\"\x92\x02\xda\x41+parent,big_query_export,big_query_export_id\x82\xd3\xe4\x93\x02\xdd\x01\"8/v2/{parent=organizations/*/locations/*}/bigQueryExports:\x10\x62ig_query_exportZF\"2/v2/{parent=folders/*/locations/*}/bigQueryExports:\x10\x62ig_query_exportZG\"3/v2/{parent=projects/*/locations/*}/bigQueryExports:\x10\x62ig_query_export\x12\x96\x02\n\rCreateFinding\x12\x34.google.cloud.securitycenter.v2.CreateFindingRequest\x1a\'.google.cloud.securitycenter.v2.Finding\"\xa5\x01\xda\x41\x19parent,finding,finding_id\x82\xd3\xe4\x93\x02\x82\x01\";/v2/{parent=organizations/*/sources/*/locations/*}/findings:\x07\x66indingZ:\"//v2/{parent=organizations/*/sources/*}/findings:\x07\x66inding\x12\x99\x05\n\x10\x43reateMuteConfig\x12\x37.google.cloud.securitycenter.v2.CreateMuteConfigRequest\x1a*.google.cloud.securitycenter.v2.MuteConfig\"\x9f\x04\xda\x41!parent,mute_config,mute_config_id\x82\xd3\xe4\x93\x02\xe2\x02\"4/v2/{parent=organizations/*/locations/*}/muteConfigs:\x0bmute_configZ=\"./v2/{parent=folders/*/locations/*}/muteConfigs:\x0bmute_configZ>\"//v2/{parent=projects/*/locations/*}/muteConfigs:\x0bmute_configZ7\"(/v2/{parent=organizations/*}/muteConfigs:\x0bmute_configZ1\"\"/v2/{parent=folders/*}/muteConfigs:\x0bmute_configZ2\"#/v2/{parent=projects/*}/muteConfigs:\x0bmute_config\x8a\xd3\xe4\x93\x02\x8b\x01\x12+\n\x06parent\x12!projects/*/locations/{location=*}\x12\x30\n\x06parent\x12&organizations/*/locations/{location=*}\x12*\n\x06parent\x12 folders/*/locations/{location=*}\x12\xb2\x03\n\x18\x43reateNotificationConfig\x12?.google.cloud.securitycenter.v2.CreateNotificationConfigRequest\x1a\x32.google.cloud.securitycenter.v2.NotificationConfig\"\xa0\x02\xda\x41$parent,notification_config,config_id\x82\xd3\xe4\x93\x02\xf2\x01\"</v2/{parent=organizations/*/locations/*}/notificationConfigs:\x13notification_configZM\"6/v2/{parent=folders/*/locations/*}/notificationConfigs:\x13notification_configZN\"7/v2/{parent=projects/*/locations/*}/notificationConfigs:\x13notification_config\x12\xb1\x01\n\x0c\x43reateSource\x12\x33.google.cloud.securitycenter.v2.CreateSourceRequest\x1a&.google.cloud.securitycenter.v2.Source\"D\xda\x41\rparent,source\x82\xd3\xe4\x93\x02.\"$/v2/{parent=organizations/*}/sources:\x06source\x12\xa3\x02\n\x14\x44\x65leteBigQueryExport\x12;.google.cloud.securitycenter.v2.DeleteBigQueryExportRequest\x1a\x16.google.protobuf.Empty\"\xb5\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xa7\x01*8/v2/{name=organizations/*/locations/*/bigQueryExports/*}Z4*2/v2/{name=folders/*/locations/*/bigQueryExports/*}Z5*3/v2/{name=projects/*/locations/*/bigQueryExports/*}\x12\xbe\x04\n\x10\x44\x65leteMuteConfig\x12\x37.google.cloud.securitycenter.v2.DeleteMuteConfigRequest\x1a\x16.google.protobuf.Empty\"\xd8\x03\xda\x41\x04name\x82\xd3\xe4\x93\x02\x94\x02*(/v2/{name=organizations/*/muteConfigs/*}Z6*4/v2/{name=organizations/*/locations/*/muteConfigs/*}Z$*\"/v2/{name=folders/*/muteConfigs/*}Z0*./v2/{name=folders/*/locations/*/muteConfigs/*}Z%*#/v2/{name=projects/*/muteConfigs/*}Z1*//v2/{name=projects/*/locations/*/muteConfigs/*}\x8a\xd3\xe4\x93\x02\xaf\x01\x12\x37\n\x04name\x12/projects/*/locations/{location=*}/muteConfigs/*\x12<\n\x04name\x12\x34organizations/*/locations/{location=*}/muteConfigs/*\x12\x36\n\x04name\x12.folders/*/locations/{location=*}/muteConfigs/*\x12\xb7\x02\n\x18\x44\x65leteNotificationConfig\x12?.google.cloud.securitycenter.v2.DeleteNotificationConfigRequest\x1a\x16.google.protobuf.Empty\"\xc1\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xb3\x01*</v2/{name=organizations/*/locations/*/notificationConfigs/*}Z8*6/v2/{name=folders/*/locations/*/notificationConfigs/*}Z9*7/v2/{name=projects/*/locations/*/notificationConfigs/*}\x12\xb7\x01\n\x19\x44\x65leteResourceValueConfig\x12@.google.cloud.securitycenter.v2.DeleteResourceValueConfigRequest\x1a\x16.google.protobuf.Empty\"@\xda\x41\x04name\x82\xd3\xe4\x93\x02\x33*1/v2/{name=organizations/*/resourceValueConfigs/*}\x12\xb5\x02\n\x11GetBigQueryExport\x12\x38.google.cloud.securitycenter.v2.GetBigQueryExportRequest\x1a..google.cloud.securitycenter.v2.BigQueryExport\"\xb5\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xa7\x01\x12\x38/v2/{name=organizations/*/locations/*/bigQueryExports/*}Z4\x12\x32/v2/{name=folders/*/locations/*/bigQueryExports/*}Z5\x12\x33/v2/{name=projects/*/locations/*/bigQueryExports/*}\x12\xaa\x01\n\rGetSimulation\x12\x34.google.cloud.securitycenter.v2.GetSimulationRequest\x1a*.google.cloud.securitycenter.v2.Simulation\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v2/{name=organizations/*/simulations/*}\x12\xc8\x01\n\x11GetValuedResource\x12\x38.google.cloud.securitycenter.v2.GetValuedResourceRequest\x1a..google.cloud.securitycenter.v2.ValuedResource\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<\x12:/v2/{name=organizations/*/simulations/*/valuedResources/*}\x12\x96\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"K\xda\x41\x08resource\x82\xd3\xe4\x93\x02:\"5/v2/{resource=organizations/*/sources/*}:getIamPolicy:\x01*\x12\xcc\x04\n\rGetMuteConfig\x12\x34.google.cloud.securitycenter.v2.GetMuteConfigRequest\x1a*.google.cloud.securitycenter.v2.MuteConfig\"\xd8\x03\xda\x41\x04name\x82\xd3\xe4\x93\x02\x94\x02\x12(/v2/{name=organizations/*/muteConfigs/*}Z6\x12\x34/v2/{name=organizations/*/locations/*/muteConfigs/*}Z$\x12\"/v2/{name=folders/*/muteConfigs/*}Z0\x12./v2/{name=folders/*/locations/*/muteConfigs/*}Z%\x12#/v2/{name=projects/*/muteConfigs/*}Z1\x12//v2/{name=projects/*/locations/*/muteConfigs/*}\x8a\xd3\xe4\x93\x02\xaf\x01\x12\x37\n\x04name\x12/projects/*/locations/{location=*}/muteConfigs/*\x12<\n\x04name\x12\x34organizations/*/locations/{location=*}/muteConfigs/*\x12\x36\n\x04name\x12.folders/*/locations/{location=*}/muteConfigs/*\x12\xcd\x02\n\x15GetNotificationConfig\x12<.google.cloud.securitycenter.v2.GetNotificationConfigRequest\x1a\x32.google.cloud.securitycenter.v2.NotificationConfig\"\xc1\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xb3\x01\x12</v2/{name=organizations/*/locations/*/notificationConfigs/*}Z8\x12\x36/v2/{name=folders/*/locations/*/notificationConfigs/*}Z9\x12\x37/v2/{name=projects/*/locations/*/notificationConfigs/*}\x12\xce\x01\n\x16GetResourceValueConfig\x12=.google.cloud.securitycenter.v2.GetResourceValueConfigRequest\x1a\x33.google.cloud.securitycenter.v2.ResourceValueConfig\"@\xda\x41\x04name\x82\xd3\xe4\x93\x02\x33\x12\x31/v2/{name=organizations/*/resourceValueConfigs/*}\x12\x9a\x01\n\tGetSource\x12\x30.google.cloud.securitycenter.v2.GetSourceRequest\x1a&.google.cloud.securitycenter.v2.Source\"3\xda\x41\x04name\x82\xd3\xe4\x93\x02&\x12$/v2/{name=organizations/*/sources/*}\x12\x8c\x04\n\rGroupFindings\x12\x34.google.cloud.securitycenter.v2.GroupFindingsRequest\x1a\x35.google.cloud.securitycenter.v2.GroupFindingsResponse\"\x8d\x03\xda\x41\x0fparent,group_by\x82\xd3\xe4\x93\x02\xf4\x02\"5/v2/{parent=organizations/*/sources/*}/findings:group:\x01*ZF\"A/v2/{parent=organizations/*/sources/*/locations/*}/findings:group:\x01*Z4\"//v2/{parent=folders/*/sources/*}/findings:group:\x01*Z@\";/v2/{parent=folders/*/sources/*/locations/*}/findings:group:\x01*Z5\"0/v2/{parent=projects/*/sources/*}/findings:group:\x01*ZA\"</v2/{parent=projects/*/sources/*/locations/*}/findings:group:\x01*\x12\xeb\x02\n\x0fListAttackPaths\x12\x36.google.cloud.securitycenter.v2.ListAttackPathsRequest\x1a\x37.google.cloud.securitycenter.v2.ListAttackPathsResponse\"\xe6\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xd6\x01\x12\x36/v2/{parent=organizations/*/simulations/*}/attackPathsZJ\x12H/v2/{parent=organizations/*/simulations/*/valuedResources/*}/attackPathsZP\x12N/v2/{parent=organizations/*/simulations/*/attackExposureResults/*}/attackPaths\x12\xc8\x02\n\x13ListBigQueryExports\x12:.google.cloud.securitycenter.v2.ListBigQueryExportsRequest\x1a;.google.cloud.securitycenter.v2.ListBigQueryExportsResponse\"\xb7\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xa7\x01\x12\x38/v2/{parent=organizations/*/locations/*}/bigQueryExportsZ4\x12\x32/v2/{parent=folders/*/locations/*}/bigQueryExportsZ5\x12\x33/v2/{parent=projects/*/locations/*}/bigQueryExports\x12\xca\x03\n\x0cListFindings\x12\x33.google.cloud.securitycenter.v2.ListFindingsRequest\x1a\x34.google.cloud.securitycenter.v2.ListFindingsResponse\"\xce\x02\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xbe\x02\x12//v2/{parent=organizations/*/sources/*}/findingsZ=\x12;/v2/{parent=organizations/*/sources/*/locations/*}/findingsZ+\x12)/v2/{parent=folders/*/sources/*}/findingsZ7\x12\x35/v2/{parent=folders/*/sources/*/locations/*}/findingsZ,\x12*/v2/{parent=projects/*/sources/*}/findingsZ8\x12\x36/v2/{parent=projects/*/sources/*/locations/*}/findings\x12\xdf\x04\n\x0fListMuteConfigs\x12\x36.google.cloud.securitycenter.v2.ListMuteConfigsRequest\x1a\x37.google.cloud.securitycenter.v2.ListMuteConfigsResponse\"\xda\x03\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x94\x02\x12(/v2/{parent=organizations/*}/muteConfigsZ6\x12\x34/v2/{parent=organizations/*/locations/*}/muteConfigsZ$\x12\"/v2/{parent=folders/*}/muteConfigsZ0\x12./v2/{parent=folders/*/locations/*}/muteConfigsZ%\x12#/v2/{parent=projects/*}/muteConfigsZ1\x12//v2/{parent=projects/*/locations/*}/muteConfigs\x8a\xd3\xe4\x93\x02\xaf\x01\x12\x37\n\x06parent\x12-projects/*/locations/{location=*}/muteConfigs\x12<\n\x06parent\x12\x32organizations/*/locations/{location=*}/muteConfigs\x12\x36\n\x06parent\x12,folders/*/locations/{location=*}/muteConfigs\x12\xe0\x02\n\x17ListNotificationConfigs\x12>.google.cloud.securitycenter.v2.ListNotificationConfigsRequest\x1a?.google.cloud.securitycenter.v2.ListNotificationConfigsResponse\"\xc3\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xb3\x01\x12</v2/{parent=organizations/*/locations/*}/notificationConfigsZ8\x12\x36/v2/{parent=folders/*/locations/*}/notificationConfigsZ9\x12\x37/v2/{parent=projects/*/locations/*}/notificationConfigs\x12\xe1\x01\n\x18ListResourceValueConfigs\x12?.google.cloud.securitycenter.v2.ListResourceValueConfigsRequest\x1a@.google.cloud.securitycenter.v2.ListResourceValueConfigsResponse\"B\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x33\x12\x31/v2/{parent=organizations/*}/resourceValueConfigs\x12\xf2\x01\n\x0bListSources\x12\x32.google.cloud.securitycenter.v2.ListSourcesRequest\x1a\x33.google.cloud.securitycenter.v2.ListSourcesResponse\"z\xda\x41\x06parent\x82\xd3\xe4\x93\x02k\x12$/v2/{parent=organizations/*}/sourcesZ \x12\x1e/v2/{parent=folders/*}/sourcesZ!\x12\x1f/v2/{parent=projects/*}/sources\x12\xb3\x02\n\x13ListValuedResources\x12:.google.cloud.securitycenter.v2.ListValuedResourcesRequest\x1a;.google.cloud.securitycenter.v2.ListValuedResourcesResponse\"\xa2\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x92\x01\x12:/v2/{parent=organizations/*/simulations/*}/valuedResourcesZT\x12R/v2/{parent=organizations/*/simulations/*/attackExposureResults/*}/valuedResources\x12\x8f\x04\n\x0fSetFindingState\x12\x36.google.cloud.securitycenter.v2.SetFindingStateRequest\x1a\'.google.cloud.securitycenter.v2.Finding\"\x9a\x03\xda\x41\nname,state\x82\xd3\xe4\x93\x02\x86\x03\"8/v2/{name=organizations/*/sources/*/findings/*}:setState:\x01*ZI\"D/v2/{name=organizations/*/sources/*/locations/*/findings/*}:setState:\x01*Z7\"2/v2/{name=folders/*/sources/*/findings/*}:setState:\x01*ZC\">/v2/{name=folders/*/sources/*/locations/*/findings/*}:setState:\x01*Z8\"3/v2/{name=projects/*/sources/*/findings/*}:setState:\x01*ZD\"?/v2/{name=projects/*/sources/*/locations/*/findings/*}:setState:\x01*\x12\x9d\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"R\xda\x41\x0fresource,policy\x82\xd3\xe4\x93\x02:\"5/v2/{resource=organizations/*/sources/*}:setIamPolicy:\x01*\x12\xf8\x03\n\x07SetMute\x12..google.cloud.securitycenter.v2.SetMuteRequest\x1a\'.google.cloud.securitycenter.v2.Finding\"\x93\x03\xda\x41\tname,mute\x82\xd3\xe4\x93\x02\x80\x03\"7/v2/{name=organizations/*/sources/*/findings/*}:setMute:\x01*ZH\"C/v2/{name=organizations/*/sources/*/locations/*/findings/*}:setMute:\x01*Z6\"1/v2/{name=folders/*/sources/*/findings/*}:setMute:\x01*ZB\"=/v2/{name=folders/*/sources/*/locations/*/findings/*}:setMute:\x01*Z7\"2/v2/{name=projects/*/sources/*/findings/*}:setMute:\x01*ZC\">/v2/{name=projects/*/sources/*/locations/*/findings/*}:setMute:\x01*\x12\xc8\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"]\xda\x41\x14resource,permissions\x82\xd3\xe4\x93\x02@\";/v2/{resource=organizations/*/sources/*}:testIamPermissions:\x01*\x12\xbc\x03\n\x14UpdateBigQueryExport\x12;.google.cloud.securitycenter.v2.UpdateBigQueryExportRequest\x1a..google.cloud.securitycenter.v2.BigQueryExport\"\xb6\x02\xda\x41\x1c\x62ig_query_export,update_mask\x82\xd3\xe4\x93\x02\x90\x02\x32I/v2/{big_query_export.name=organizations/*/locations/*/bigQueryExports/*}:\x10\x62ig_query_exportZW2C/v2/{big_query_export.name=folders/*/locations/*/bigQueryExports/*}:\x10\x62ig_query_exportZX2D/v2/{big_query_export.name=projects/*/locations/*/bigQueryExports/*}:\x10\x62ig_query_export\x12\x9b\x06\n\x14UpdateExternalSystem\x12;.google.cloud.securitycenter.v2.UpdateExternalSystemRequest\x1a..google.cloud.securitycenter.v2.ExternalSystem\"\x95\x05\xda\x41\x1b\x65xternal_system,update_mask\x82\xd3\xe4\x93\x02\xf0\x04\x32Q/v2/{external_system.name=organizations/*/sources/*/findings/*/externalSystems/*}:\x0f\x65xternal_systemZp2]/v2/{external_system.name=organizations/*/sources/*/locations/*/findings/*/externalSystems/*}:\x0f\x65xternal_systemZ^2K/v2/{external_system.name=folders/*/sources/*/findings/*/externalSystems/*}:\x0f\x65xternal_systemZj2W/v2/{external_system.name=folders/*/sources/*/locations/*/findings/*/externalSystems/*}:\x0f\x65xternal_systemZ_2L/v2/{external_system.name=projects/*/sources/*/findings/*/externalSystems/*}:\x0f\x65xternal_systemZk2X/v2/{external_system.name=projects/*/sources/*/locations/*/findings/*/externalSystems/*}:\x0f\x65xternal_system\x12\xb2\x04\n\rUpdateFinding\x12\x34.google.cloud.securitycenter.v2.UpdateFindingRequest\x1a\'.google.cloud.securitycenter.v2.Finding\"\xc1\x03\xda\x41\x13\x66inding,update_mask\x82\xd3\xe4\x93\x02\xa4\x03\x32\x37/v2/{finding.name=organizations/*/sources/*/findings/*}:\x07\x66indingZN2C/v2/{finding.name=organizations/*/sources/*/locations/*/findings/*}:\x07\x66indingZ<21/v2/{finding.name=folders/*/sources/*/findings/*}:\x07\x66indingZH2=/v2/{finding.name=folders/*/sources/*/locations/*/findings/*}:\x07\x66indingZ=22/v2/{finding.name=projects/*/sources/*/findings/*}:\x07\x66indingZI2>/v2/{finding.name=projects/*/sources/*/locations/*/findings/*}:\x07\x66inding\x12\x9f\x06\n\x10UpdateMuteConfig\x12\x37.google.cloud.securitycenter.v2.UpdateMuteConfigRequest\x1a*.google.cloud.securitycenter.v2.MuteConfig\"\xa5\x05\xda\x41\x17mute_config,update_mask\x82\xd3\xe4\x93\x02\xaa\x03\x32\x34/v2/{mute_config.name=organizations/*/muteConfigs/*}:\x0bmute_configZO2@/v2/{mute_config.name=organizations/*/locations/*/muteConfigs/*}:\x0bmute_configZ=2./v2/{mute_config.name=folders/*/muteConfigs/*}:\x0bmute_configZI2:/v2/{mute_config.name=folders/*/locations/*/muteConfigs/*}:\x0bmute_configZ>2//v2/{mute_config.name=projects/*/muteConfigs/*}:\x0bmute_configZJ2;/v2/{mute_config.name=projects/*/locations/*/muteConfigs/*}:\x0bmute_config\x8a\xd3\xe4\x93\x02\xd3\x01\x12\x43\n\x10mute_config.name\x12/projects/*/locations/{location=*}/muteConfigs/*\x12H\n\x10mute_config.name\x12\x34organizations/*/locations/{location=*}/muteConfigs/*\x12\x42\n\x10mute_config.name\x12.folders/*/locations/{location=*}/muteConfigs/*\x12\xe9\x03\n\x18UpdateNotificationConfig\x12?.google.cloud.securitycenter.v2.UpdateNotificationConfigRequest\x1a\x32.google.cloud.securitycenter.v2.NotificationConfig\"\xd7\x02\xda\x41\x1fnotification_config,update_mask\x82\xd3\xe4\x93\x02\xae\x02\x32P/v2/{notification_config.name=organizations/*/locations/*/notificationConfigs/*}:\x13notification_configZa2J/v2/{notification_config.name=folders/*/locations/*/notificationConfigs/*}:\x13notification_configZb2K/v2/{notification_config.name=projects/*/locations/*/notificationConfigs/*}:\x13notification_config\x12\x9f\x02\n\x19UpdateResourceValueConfig\x12@.google.cloud.securitycenter.v2.UpdateResourceValueConfigRequest\x1a\x33.google.cloud.securitycenter.v2.ResourceValueConfig\"\x8a\x01\xda\x41!resource_value_config,update_mask\x82\xd3\xe4\x93\x02`2G/v2/{resource_value_config.name=organizations/*/resourceValueConfigs/*}:\x15resource_value_config\x12\xe4\x07\n\x13UpdateSecurityMarks\x12:.google.cloud.securitycenter.v2.UpdateSecurityMarksRequest\x1a-.google.cloud.securitycenter.v2.SecurityMarks\"\xe1\x06\xda\x41\x1asecurity_marks,update_mask\x82\xd3\xe4\x93\x02\xbd\x06\x32L/v2/{security_marks.name=organizations/*/sources/*/findings/*/securityMarks}:\x0esecurity_marksZR2@/v2/{security_marks.name=organizations/*/assets/*/securityMarks}:\x0esecurity_marksZj2X/v2/{security_marks.name=organizations/*/sources/*/locations/*/findings/*/securityMarks}:\x0esecurity_marksZX2F/v2/{security_marks.name=folders/*/sources/*/findings/*/securityMarks}:\x0esecurity_marksZL2:/v2/{security_marks.name=folders/*/assets/*/securityMarks}:\x0esecurity_marksZd2R/v2/{security_marks.name=folders/*/sources/*/locations/*/findings/*/securityMarks}:\x0esecurity_marksZY2G/v2/{security_marks.name=projects/*/sources/*/findings/*/securityMarks}:\x0esecurity_marksZM2;/v2/{security_marks.name=projects/*/assets/*/securityMarks}:\x0esecurity_marksZe2S/v2/{security_marks.name=projects/*/sources/*/locations/*/findings/*/securityMarks}:\x0esecurity_marks\x12\xbd\x01\n\x0cUpdateSource\x12\x33.google.cloud.securitycenter.v2.UpdateSourceRequest\x1a&.google.cloud.securitycenter.v2.Source\"P\xda\x41\x12source,update_mask\x82\xd3\xe4\x93\x02\x35\x32+/v2/{source.name=organizations/*/sources/*}:\x06source\x1aQ\xca\x41\x1dsecuritycenter.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb6\x03\n\"com.google.cloud.securitycenter.v2B\x1aSecuritycenterServiceProtoP\x01ZJcloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V2\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V2\xea\x02!Google::Cloud::SecurityCenter::V2\xea\x41g\n2securitycenter.googleapis.com/OrganizationLocation\x12\x31organizations/{organization}/locations/{location}\xea\x41U\n,securitycenter.googleapis.com/FolderLocation\x12%folders/{folder}/locations/{location}b\x06proto3"
32
+
33
+ pool = Google::Protobuf::DescriptorPool.generated_pool
34
+
35
+ begin
36
+ pool.add_serialized_file(descriptor_data)
37
+ rescue TypeError
38
+ # Compatibility code: will be removed in the next major version.
39
+ require 'google/protobuf/descriptor_pb'
40
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
41
+ parsed.clear_dependency
42
+ serialized = parsed.class.encode(parsed)
43
+ file = pool.add_serialized_file(serialized)
44
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
45
+ imports = [
46
+ ["google.cloud.securitycenter.v2.ResourceValueConfig", "google/cloud/securitycenter/v2/resource_value_config.proto"],
47
+ ["google.cloud.securitycenter.v2.BigQueryExport", "google/cloud/securitycenter/v2/bigquery_export.proto"],
48
+ ["google.cloud.securitycenter.v2.Finding", "google/cloud/securitycenter/v2/finding.proto"],
49
+ ["google.cloud.securitycenter.v2.MuteConfig", "google/cloud/securitycenter/v2/mute_config.proto"],
50
+ ["google.cloud.securitycenter.v2.NotificationConfig", "google/cloud/securitycenter/v2/notification_config.proto"],
51
+ ["google.cloud.securitycenter.v2.Source", "google/cloud/securitycenter/v2/source.proto"],
52
+ ["google.protobuf.Value", "google/protobuf/struct.proto"],
53
+ ["google.cloud.securitycenter.v2.AttackPath", "google/cloud/securitycenter/v2/attack_path.proto"],
54
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
55
+ ["google.cloud.securitycenter.v2.ValuedResource", "google/cloud/securitycenter/v2/valued_resource.proto"],
56
+ ["google.cloud.securitycenter.v2.ExternalSystem", "google/cloud/securitycenter/v2/external_system.proto"],
57
+ ["google.cloud.securitycenter.v2.SecurityMarks", "google/cloud/securitycenter/v2/security_marks.proto"],
58
+ ]
59
+ imports.each do |type_name, expected_filename|
60
+ import_file = pool.lookup(type_name).file_descriptor
61
+ if import_file.name != expected_filename
62
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
63
+ end
64
+ end
65
+ warn "Each proto file must use a consistent fully-qualified name."
66
+ warn "This will become an error in the next major version."
67
+ end
68
+
69
+ module Google
70
+ module Cloud
71
+ module SecurityCenter
72
+ module V2
73
+ BatchCreateResourceValueConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.BatchCreateResourceValueConfigsRequest").msgclass
74
+ BatchCreateResourceValueConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.BatchCreateResourceValueConfigsResponse").msgclass
75
+ BulkMuteFindingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.BulkMuteFindingsRequest").msgclass
76
+ BulkMuteFindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.BulkMuteFindingsResponse").msgclass
77
+ CreateBigQueryExportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.CreateBigQueryExportRequest").msgclass
78
+ CreateFindingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.CreateFindingRequest").msgclass
79
+ CreateMuteConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.CreateMuteConfigRequest").msgclass
80
+ CreateNotificationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.CreateNotificationConfigRequest").msgclass
81
+ CreateResourceValueConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.CreateResourceValueConfigRequest").msgclass
82
+ CreateSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.CreateSourceRequest").msgclass
83
+ DeleteBigQueryExportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.DeleteBigQueryExportRequest").msgclass
84
+ DeleteMuteConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.DeleteMuteConfigRequest").msgclass
85
+ DeleteNotificationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.DeleteNotificationConfigRequest").msgclass
86
+ DeleteResourceValueConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.DeleteResourceValueConfigRequest").msgclass
87
+ GetBigQueryExportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.GetBigQueryExportRequest").msgclass
88
+ GetMuteConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.GetMuteConfigRequest").msgclass
89
+ GetNotificationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.GetNotificationConfigRequest").msgclass
90
+ GetResourceValueConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.GetResourceValueConfigRequest").msgclass
91
+ GetSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.GetSourceRequest").msgclass
92
+ GroupFindingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.GroupFindingsRequest").msgclass
93
+ GroupFindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.GroupFindingsResponse").msgclass
94
+ GroupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.GroupResult").msgclass
95
+ ListAttackPathsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListAttackPathsRequest").msgclass
96
+ ListAttackPathsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListAttackPathsResponse").msgclass
97
+ GetSimulationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.GetSimulationRequest").msgclass
98
+ GetValuedResourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.GetValuedResourceRequest").msgclass
99
+ ListBigQueryExportsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListBigQueryExportsRequest").msgclass
100
+ ListBigQueryExportsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListBigQueryExportsResponse").msgclass
101
+ ListFindingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListFindingsRequest").msgclass
102
+ ListFindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListFindingsResponse").msgclass
103
+ ListFindingsResponse::ListFindingsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListFindingsResponse.ListFindingsResult").msgclass
104
+ ListFindingsResponse::ListFindingsResult::Resource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListFindingsResponse.ListFindingsResult.Resource").msgclass
105
+ ListMuteConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListMuteConfigsRequest").msgclass
106
+ ListMuteConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListMuteConfigsResponse").msgclass
107
+ ListNotificationConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListNotificationConfigsRequest").msgclass
108
+ ListNotificationConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListNotificationConfigsResponse").msgclass
109
+ ListResourceValueConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListResourceValueConfigsRequest").msgclass
110
+ ListResourceValueConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListResourceValueConfigsResponse").msgclass
111
+ ListSourcesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListSourcesRequest").msgclass
112
+ ListSourcesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListSourcesResponse").msgclass
113
+ ListValuedResourcesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListValuedResourcesRequest").msgclass
114
+ ListValuedResourcesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ListValuedResourcesResponse").msgclass
115
+ SetFindingStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.SetFindingStateRequest").msgclass
116
+ SetMuteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.SetMuteRequest").msgclass
117
+ UpdateBigQueryExportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.UpdateBigQueryExportRequest").msgclass
118
+ UpdateExternalSystemRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.UpdateExternalSystemRequest").msgclass
119
+ UpdateFindingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.UpdateFindingRequest").msgclass
120
+ UpdateMuteConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.UpdateMuteConfigRequest").msgclass
121
+ UpdateNotificationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.UpdateNotificationConfigRequest").msgclass
122
+ UpdateResourceValueConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.UpdateResourceValueConfigRequest").msgclass
123
+ UpdateSecurityMarksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.UpdateSecurityMarksRequest").msgclass
124
+ UpdateSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.UpdateSourceRequest").msgclass
125
+ end
126
+ end
127
+ end
128
+ end
@@ -0,0 +1,167 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/securitycenter/v2/securitycenter_service.proto for package 'Google.Cloud.SecurityCenter.V2'
3
+ # Original file comments:
4
+ # Copyright 2023 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/securitycenter/v2/securitycenter_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module SecurityCenter
25
+ module V2
26
+ module SecurityCenter
27
+ # V2 APIs for Security Center service.
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.securitycenter.v2.SecurityCenter'
35
+
36
+ # Creates a ResourceValueConfig for an organization. Maps user's tags to
37
+ # difference resource values for use by the attack path simulation.
38
+ rpc :BatchCreateResourceValueConfigs, ::Google::Cloud::SecurityCenter::V2::BatchCreateResourceValueConfigsRequest, ::Google::Cloud::SecurityCenter::V2::BatchCreateResourceValueConfigsResponse
39
+ # Kicks off an LRO to bulk mute findings for a parent based on a filter. If
40
+ # no location is specified, findings are muted in global. The parent
41
+ # can be either an organization, folder, or project. The findings matched by
42
+ # the filter will be muted after the LRO is done.
43
+ rpc :BulkMuteFindings, ::Google::Cloud::SecurityCenter::V2::BulkMuteFindingsRequest, ::Google::Longrunning::Operation
44
+ # Creates a BigQuery export.
45
+ rpc :CreateBigQueryExport, ::Google::Cloud::SecurityCenter::V2::CreateBigQueryExportRequest, ::Google::Cloud::SecurityCenter::V2::BigQueryExport
46
+ # Creates a finding in a location. The corresponding source must exist for
47
+ # finding creation to succeed.
48
+ rpc :CreateFinding, ::Google::Cloud::SecurityCenter::V2::CreateFindingRequest, ::Google::Cloud::SecurityCenter::V2::Finding
49
+ # Creates a mute config.
50
+ rpc :CreateMuteConfig, ::Google::Cloud::SecurityCenter::V2::CreateMuteConfigRequest, ::Google::Cloud::SecurityCenter::V2::MuteConfig
51
+ # Creates a notification config.
52
+ rpc :CreateNotificationConfig, ::Google::Cloud::SecurityCenter::V2::CreateNotificationConfigRequest, ::Google::Cloud::SecurityCenter::V2::NotificationConfig
53
+ # Creates a source.
54
+ rpc :CreateSource, ::Google::Cloud::SecurityCenter::V2::CreateSourceRequest, ::Google::Cloud::SecurityCenter::V2::Source
55
+ # Deletes an existing BigQuery export.
56
+ rpc :DeleteBigQueryExport, ::Google::Cloud::SecurityCenter::V2::DeleteBigQueryExportRequest, ::Google::Protobuf::Empty
57
+ # Deletes an existing mute config. If no location is specified, default is
58
+ # global.
59
+ rpc :DeleteMuteConfig, ::Google::Cloud::SecurityCenter::V2::DeleteMuteConfigRequest, ::Google::Protobuf::Empty
60
+ # Deletes a notification config.
61
+ rpc :DeleteNotificationConfig, ::Google::Cloud::SecurityCenter::V2::DeleteNotificationConfigRequest, ::Google::Protobuf::Empty
62
+ # Deletes a ResourceValueConfig.
63
+ rpc :DeleteResourceValueConfig, ::Google::Cloud::SecurityCenter::V2::DeleteResourceValueConfigRequest, ::Google::Protobuf::Empty
64
+ # Gets a BigQuery export.
65
+ rpc :GetBigQueryExport, ::Google::Cloud::SecurityCenter::V2::GetBigQueryExportRequest, ::Google::Cloud::SecurityCenter::V2::BigQueryExport
66
+ # Get the simulation by name or the latest simulation for the given
67
+ # organization.
68
+ rpc :GetSimulation, ::Google::Cloud::SecurityCenter::V2::GetSimulationRequest, ::Google::Cloud::SecurityCenter::V2::Simulation
69
+ # Get the valued resource by name
70
+ rpc :GetValuedResource, ::Google::Cloud::SecurityCenter::V2::GetValuedResourceRequest, ::Google::Cloud::SecurityCenter::V2::ValuedResource
71
+ # Gets the access control policy on the specified Source.
72
+ rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
73
+ # Gets a mute config. If no location is specified, default is
74
+ # global.
75
+ rpc :GetMuteConfig, ::Google::Cloud::SecurityCenter::V2::GetMuteConfigRequest, ::Google::Cloud::SecurityCenter::V2::MuteConfig
76
+ # Gets a notification config.
77
+ rpc :GetNotificationConfig, ::Google::Cloud::SecurityCenter::V2::GetNotificationConfigRequest, ::Google::Cloud::SecurityCenter::V2::NotificationConfig
78
+ # Gets a ResourceValueConfig.
79
+ rpc :GetResourceValueConfig, ::Google::Cloud::SecurityCenter::V2::GetResourceValueConfigRequest, ::Google::Cloud::SecurityCenter::V2::ResourceValueConfig
80
+ # Gets a source.
81
+ rpc :GetSource, ::Google::Cloud::SecurityCenter::V2::GetSourceRequest, ::Google::Cloud::SecurityCenter::V2::Source
82
+ # Filters an organization or source's findings and groups them by their
83
+ # specified properties in a location. If no location is specified, findings
84
+ # are assumed to be in global
85
+ #
86
+ # To group across all sources provide a `-` as the source id.
87
+ # The following list shows some examples:
88
+ #
89
+ # + `/v2/organizations/{organization_id}/sources/-/findings`
90
+ # +
91
+ # `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings`
92
+ # + `/v2/folders/{folder_id}/sources/-/findings`
93
+ # + `/v2/folders/{folder_id}/sources/-/locations/{location_id}/findings`
94
+ # + `/v2/projects/{project_id}/sources/-/findings`
95
+ # + `/v2/projects/{project_id}/sources/-/locations/{location_id}/findings`
96
+ rpc :GroupFindings, ::Google::Cloud::SecurityCenter::V2::GroupFindingsRequest, ::Google::Cloud::SecurityCenter::V2::GroupFindingsResponse
97
+ # Lists the attack paths for a set of simulation results or valued resources
98
+ # and filter.
99
+ rpc :ListAttackPaths, ::Google::Cloud::SecurityCenter::V2::ListAttackPathsRequest, ::Google::Cloud::SecurityCenter::V2::ListAttackPathsResponse
100
+ # Lists BigQuery exports. Note that when requesting BigQuery exports at a
101
+ # given level all exports under that level are also returned e.g. if
102
+ # requesting BigQuery exports under a folder, then all BigQuery exports
103
+ # immediately under the folder plus the ones created under the projects
104
+ # within the folder are returned.
105
+ rpc :ListBigQueryExports, ::Google::Cloud::SecurityCenter::V2::ListBigQueryExportsRequest, ::Google::Cloud::SecurityCenter::V2::ListBigQueryExportsResponse
106
+ # Lists an organization or source's findings.
107
+ #
108
+ # To list across all sources for a given location provide a `-` as the source
109
+ # id. If no location is specified, finding are assumed to be in global.
110
+ # The following list shows some examples:
111
+ #
112
+ # + `/v2/organizations/{organization_id}/sources/-/findings`
113
+ # +
114
+ # `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings`
115
+ rpc :ListFindings, ::Google::Cloud::SecurityCenter::V2::ListFindingsRequest, ::Google::Cloud::SecurityCenter::V2::ListFindingsResponse
116
+ # Lists mute configs. If no location is specified, default is
117
+ # global.
118
+ rpc :ListMuteConfigs, ::Google::Cloud::SecurityCenter::V2::ListMuteConfigsRequest, ::Google::Cloud::SecurityCenter::V2::ListMuteConfigsResponse
119
+ # Lists notification configs.
120
+ rpc :ListNotificationConfigs, ::Google::Cloud::SecurityCenter::V2::ListNotificationConfigsRequest, ::Google::Cloud::SecurityCenter::V2::ListNotificationConfigsResponse
121
+ # Lists all ResourceValueConfigs.
122
+ rpc :ListResourceValueConfigs, ::Google::Cloud::SecurityCenter::V2::ListResourceValueConfigsRequest, ::Google::Cloud::SecurityCenter::V2::ListResourceValueConfigsResponse
123
+ # Lists all sources belonging to an organization.
124
+ rpc :ListSources, ::Google::Cloud::SecurityCenter::V2::ListSourcesRequest, ::Google::Cloud::SecurityCenter::V2::ListSourcesResponse
125
+ # Lists the valued resources for a set of simulation results and filter.
126
+ rpc :ListValuedResources, ::Google::Cloud::SecurityCenter::V2::ListValuedResourcesRequest, ::Google::Cloud::SecurityCenter::V2::ListValuedResourcesResponse
127
+ # Updates the state of a finding. If no location is specified, finding is
128
+ # assumed to be in global
129
+ rpc :SetFindingState, ::Google::Cloud::SecurityCenter::V2::SetFindingStateRequest, ::Google::Cloud::SecurityCenter::V2::Finding
130
+ # Sets the access control policy on the specified Source.
131
+ rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
132
+ # Updates the mute state of a finding. If no location is specified, finding
133
+ # is assumed to be in global
134
+ rpc :SetMute, ::Google::Cloud::SecurityCenter::V2::SetMuteRequest, ::Google::Cloud::SecurityCenter::V2::Finding
135
+ # Returns the permissions that a caller has on the specified source.
136
+ rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
137
+ # Updates a BigQuery export.
138
+ rpc :UpdateBigQueryExport, ::Google::Cloud::SecurityCenter::V2::UpdateBigQueryExportRequest, ::Google::Cloud::SecurityCenter::V2::BigQueryExport
139
+ # Updates external system. This is for a given finding. If no location is
140
+ # specified, finding is assumed to be in global
141
+ rpc :UpdateExternalSystem, ::Google::Cloud::SecurityCenter::V2::UpdateExternalSystemRequest, ::Google::Cloud::SecurityCenter::V2::ExternalSystem
142
+ # Creates or updates a finding. If no location is specified, finding is
143
+ # assumed to be in global. The corresponding source must exist for a finding
144
+ # creation to succeed.
145
+ rpc :UpdateFinding, ::Google::Cloud::SecurityCenter::V2::UpdateFindingRequest, ::Google::Cloud::SecurityCenter::V2::Finding
146
+ # Updates a mute config. If no location is specified, default is
147
+ # global.
148
+ rpc :UpdateMuteConfig, ::Google::Cloud::SecurityCenter::V2::UpdateMuteConfigRequest, ::Google::Cloud::SecurityCenter::V2::MuteConfig
149
+ # Updates a notification config. The following update
150
+ # fields are allowed: description, pubsub_topic, streaming_config.filter
151
+ rpc :UpdateNotificationConfig, ::Google::Cloud::SecurityCenter::V2::UpdateNotificationConfigRequest, ::Google::Cloud::SecurityCenter::V2::NotificationConfig
152
+ # Updates an existing ResourceValueConfigs with new rules.
153
+ rpc :UpdateResourceValueConfig, ::Google::Cloud::SecurityCenter::V2::UpdateResourceValueConfigRequest, ::Google::Cloud::SecurityCenter::V2::ResourceValueConfig
154
+ # Updates security marks. For Finding Security marks, if no location is
155
+ # specified, finding is assumed to be in global. Assets Security Marks can
156
+ # only be accessed through global endpoint.
157
+ rpc :UpdateSecurityMarks, ::Google::Cloud::SecurityCenter::V2::UpdateSecurityMarksRequest, ::Google::Cloud::SecurityCenter::V2::SecurityMarks
158
+ # Updates a source.
159
+ rpc :UpdateSource, ::Google::Cloud::SecurityCenter::V2::UpdateSourceRequest, ::Google::Cloud::SecurityCenter::V2::Source
160
+ end
161
+
162
+ Stub = Service.rpc_stub_class
163
+ end
164
+ end
165
+ end
166
+ end
167
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/securitycenter/v2/simulation.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+ require 'google/cloud/securitycenter/v2/valued_resource_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+
12
+
13
+ descriptor_data = "\n/google/cloud/securitycenter/v2/simulation.proto\x12\x1egoogle.cloud.securitycenter.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/securitycenter/v2/valued_resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb5\x02\n\nSimulation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x64\n\x1fresource_value_configs_metadata\x18\x03 \x03(\x0b\x32;.google.cloud.securitycenter.v2.ResourceValueConfigMetadata:}\xea\x41z\n(securitycenter.googleapis.com/Simulation\x12\x35organizations/{organization}/simulations/{simulation}*\x0bsimulations2\nsimulationB\xe9\x01\n\"com.google.cloud.securitycenter.v2B\x0fSimulationProtoP\x01ZJcloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V2\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V2\xea\x02!Google::Cloud::SecurityCenter::V2b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError
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.v2.ResourceValueConfigMetadata", "google/cloud/securitycenter/v2/valued_resource.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}"
35
+ end
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."
39
+ end
40
+
41
+ module Google
42
+ module Cloud
43
+ module SecurityCenter
44
+ module V2
45
+ Simulation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.Simulation").msgclass
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/securitycenter/v2/source.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/resource_pb'
8
+
9
+
10
+ descriptor_data = "\n+google/cloud/securitycenter/v2/source.proto\x12\x1egoogle.cloud.securitycenter.v2\x1a\x19google/api/resource.proto\"\xfd\x01\n\x06Source\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x16\n\x0e\x63\x61nonical_name\x18\x04 \x01(\t:\xa1\x01\xea\x41\x9d\x01\n$securitycenter.googleapis.com/Source\x12-organizations/{organization}/sources/{source}\x12!folders/{folder}/sources/{source}\x12#projects/{project}/sources/{source}B\xe5\x01\n\"com.google.cloud.securitycenter.v2B\x0bSourceProtoP\x01ZJcloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V2\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V2\xea\x02!Google::Cloud::SecurityCenter::V2b\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
+ ]
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}"
30
+ end
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."
34
+ end
35
+
36
+ module Google
37
+ module Cloud
38
+ module SecurityCenter
39
+ module V2
40
+ Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.Source").msgclass
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/securitycenter/v2/toxic_combination.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n6google/cloud/securitycenter/v2/toxic_combination.proto\x12\x1egoogle.cloud.securitycenter.v2\"K\n\x10ToxicCombination\x12\x1d\n\x15\x61ttack_exposure_score\x18\x01 \x01(\x01\x12\x18\n\x10related_findings\x18\x02 \x03(\tB\xef\x01\n\"com.google.cloud.securitycenter.v2B\x15ToxicCombinationProtoP\x01ZJcloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V2\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V2\xea\x02!Google::Cloud::SecurityCenter::V2b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
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}"
28
+ end
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."
32
+ end
33
+
34
+ module Google
35
+ module Cloud
36
+ module SecurityCenter
37
+ module V2
38
+ ToxicCombination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ToxicCombination").msgclass
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/securitycenter/v2/valued_resource.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/resource_pb'
8
+
9
+
10
+ descriptor_data = "\n4google/cloud/securitycenter/v2/valued_resource.proto\x12\x1egoogle.cloud.securitycenter.v2\x1a\x19google/api/resource.proto\"\xd8\x04\n\x0eValuedResource\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08resource\x18\x02 \x01(\t\x12\x15\n\rresource_type\x18\x03 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\t\x12T\n\x0eresource_value\x18\x05 \x01(\x0e\x32<.google.cloud.securitycenter.v2.ValuedResource.ResourceValue\x12\x15\n\rexposed_score\x18\x06 \x01(\x01\x12`\n\x1bresource_value_configs_used\x18\x07 \x03(\x0b\x32;.google.cloud.securitycenter.v2.ResourceValueConfigMetadata\"{\n\rResourceValue\x12\x1e\n\x1aRESOURCE_VALUE_UNSPECIFIED\x10\x00\x12\x16\n\x12RESOURCE_VALUE_LOW\x10\x01\x12\x19\n\x15RESOURCE_VALUE_MEDIUM\x10\x02\x12\x17\n\x13RESOURCE_VALUE_HIGH\x10\x03:\xac\x01\xea\x41\xa8\x01\n,securitycenter.googleapis.com/ValuedResource\x12Worganizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}*\x0fvaluedResources2\x0evaluedResource\"+\n\x1bResourceValueConfigMetadata\x12\x0c\n\x04name\x18\x01 \x01(\tB\xed\x01\n\"com.google.cloud.securitycenter.v2B\x13ValuedResourceProtoP\x01ZJcloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V2\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V2\xea\x02!Google::Cloud::SecurityCenter::V2b\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
+ ]
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}"
30
+ end
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."
34
+ end
35
+
36
+ module Google
37
+ module Cloud
38
+ module SecurityCenter
39
+ module V2
40
+ ValuedResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ValuedResource").msgclass
41
+ ValuedResource::ResourceValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ValuedResource.ResourceValue").enummodule
42
+ ResourceValueConfigMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v2.ResourceValueConfigMetadata").msgclass
43
+ end
44
+ end
45
+ end
46
+ end