google-cloud-security_center-v1 0.28.0 → 0.29.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/security_center/v1/security_center/client.rb +4 -2
  3. data/lib/google/cloud/security_center/v1/security_center/operations.rb +3 -1
  4. data/lib/google/cloud/security_center/v1/security_center/rest/client.rb +4 -2
  5. data/lib/google/cloud/security_center/v1/security_center/rest/operations.rb +7 -5
  6. data/lib/google/cloud/security_center/v1/security_center/rest/service_stub.rb +44 -44
  7. data/lib/google/cloud/security_center/v1/version.rb +1 -1
  8. data/lib/google/cloud/securitycenter/v1/access_pb.rb +24 -20
  9. data/lib/google/cloud/securitycenter/v1/asset_pb.rb +28 -25
  10. data/lib/google/cloud/securitycenter/v1/bigquery_export_pb.rb +25 -11
  11. data/lib/google/cloud/securitycenter/v1/cloud_dlp_data_profile_pb.rb +24 -4
  12. data/lib/google/cloud/securitycenter/v1/cloud_dlp_inspection_pb.rb +24 -7
  13. data/lib/google/cloud/securitycenter/v1/compliance_pb.rb +24 -6
  14. data/lib/google/cloud/securitycenter/v1/connection_pb.rb +24 -16
  15. data/lib/google/cloud/securitycenter/v1/contact_details_pb.rb +24 -7
  16. data/lib/google/cloud/securitycenter/v1/container_pb.rb +25 -7
  17. data/lib/google/cloud/securitycenter/v1/database_pb.rb +24 -8
  18. data/lib/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module_pb.rb +25 -12
  19. data/lib/google/cloud/securitycenter/v1/exfiltration_pb.rb +24 -9
  20. data/lib/google/cloud/securitycenter/v1/external_system_pb.rb +25 -8
  21. data/lib/google/cloud/securitycenter/v1/file_pb.rb +24 -9
  22. data/lib/google/cloud/securitycenter/v1/finding_pb.rb +45 -67
  23. data/lib/google/cloud/securitycenter/v1/folder_pb.rb +24 -5
  24. data/lib/google/cloud/securitycenter/v1/iam_binding_pb.rb +24 -11
  25. data/lib/google/cloud/securitycenter/v1/indicator_pb.rb +24 -24
  26. data/lib/google/cloud/securitycenter/v1/kernel_rootkit_pb.rb +24 -12
  27. data/lib/google/cloud/securitycenter/v1/kubernetes_pb.rb +26 -58
  28. data/lib/google/cloud/securitycenter/v1/label_pb.rb +24 -5
  29. data/lib/google/cloud/securitycenter/v1/mitre_attack_pb.rb +24 -63
  30. data/lib/google/cloud/securitycenter/v1/mute_config_pb.rb +25 -10
  31. data/lib/google/cloud/securitycenter/v1/notification_config_pb.rb +24 -13
  32. data/lib/google/cloud/securitycenter/v1/notification_message_pb.rb +26 -8
  33. data/lib/google/cloud/securitycenter/v1/organization_settings_pb.rb +24 -16
  34. data/lib/google/cloud/securitycenter/v1/process_pb.rb +25 -17
  35. data/lib/google/cloud/securitycenter/v1/resource_pb.rb +25 -11
  36. data/lib/google/cloud/securitycenter/v1/run_asset_discovery_response_pb.rb +25 -11
  37. data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_config_pb.rb +25 -26
  38. data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_module_pb.rb +26 -16
  39. data/lib/google/cloud/securitycenter/v1/security_marks_pb.rb +24 -6
  40. data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +40 -279
  41. data/lib/google/cloud/securitycenter/v1/source_pb.rb +24 -7
  42. data/lib/google/cloud/securitycenter/v1/vulnerability_pb.rb +24 -59
  43. data/proto_docs/google/api/client.rb +10 -1
  44. data/proto_docs/google/protobuf/any.rb +7 -4
  45. data/proto_docs/google/protobuf/struct.rb +1 -1
  46. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  47. metadata +4 -4
@@ -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
@@ -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_marks.proto
3
4
 
@@ -5,14 +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/security_marks.proto", :syntax => :proto3) do
10
- add_message "google.cloud.securitycenter.v1.SecurityMarks" do
11
- optional :name, :string, 1
12
- map :marks, :string, :string, 2
13
- optional :canonical_name, :string, 3
9
+
10
+ descriptor_data = "\n3google/cloud/securitycenter/v1/security_marks.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x19google/api/resource.proto\"\xd5\x04\n\rSecurityMarks\x12\x0c\n\x04name\x18\x01 \x01(\t\x12G\n\x05marks\x18\x02 \x03(\x0b\x32\x38.google.cloud.securitycenter.v1.SecurityMarks.MarksEntry\x12\x16\n\x0e\x63\x61nonical_name\x18\x03 \x01(\t\x1a,\n\nMarksEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xa6\x03\xea\x41\xa2\x03\n+securitycenter.googleapis.com/SecurityMarks\x12\x39organizations/{organization}/assets/{asset}/securityMarks\x12Norganizations/{organization}/sources/{source}/findings/{finding}/securityMarks\x12-folders/{folder}/assets/{asset}/securityMarks\x12/projects/{project}/assets/{asset}/securityMarks\x12\x42\x66olders/{folder}/sources/{source}/findings/{finding}/securityMarks\x12\x44projects/{project}/sources/{source}/findings/{finding}/securityMarksB\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}"
14
30
  end
15
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."
16
34
  end
17
35
 
18
36
  module Google