google-cloud-security_center-v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +71 -0
  6. data/lib/google/cloud/common_resources_pb.rb +15 -0
  7. data/lib/google/cloud/security_center/v1/security_center/client.rb +2673 -0
  8. data/lib/google/cloud/security_center/v1/security_center/credentials.rb +51 -0
  9. data/lib/google/cloud/security_center/v1/security_center/operations.rb +564 -0
  10. data/lib/google/cloud/security_center/v1/security_center/paths.rb +172 -0
  11. data/lib/google/cloud/security_center/v1/security_center.rb +50 -0
  12. data/lib/google/cloud/security_center/v1/version.rb +28 -0
  13. data/lib/google/cloud/security_center/v1.rb +35 -0
  14. data/lib/google/cloud/securitycenter/v1/asset_pb.rb +48 -0
  15. data/lib/google/cloud/securitycenter/v1/finding_pb.rb +43 -0
  16. data/lib/google/cloud/securitycenter/v1/notification_config_pb.rb +35 -0
  17. data/lib/google/cloud/securitycenter/v1/notification_message_pb.rb +27 -0
  18. data/lib/google/cloud/securitycenter/v1/organization_settings_pb.rb +37 -0
  19. data/lib/google/cloud/securitycenter/v1/run_asset_discovery_response_pb.rb +32 -0
  20. data/lib/google/cloud/securitycenter/v1/security_marks_pb.rb +25 -0
  21. data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +237 -0
  22. data/lib/google/cloud/securitycenter/v1/securitycenter_service_services_pb.rb +105 -0
  23. data/lib/google/cloud/securitycenter/v1/source_pb.rb +26 -0
  24. data/lib/google-cloud-security_center-v1.rb +21 -0
  25. data/proto_docs/README.md +4 -0
  26. data/proto_docs/google/api/field_behavior.rb +59 -0
  27. data/proto_docs/google/api/resource.rb +247 -0
  28. data/proto_docs/google/cloud/securitycenter/v1/asset.rb +127 -0
  29. data/proto_docs/google/cloud/securitycenter/v1/finding.rb +113 -0
  30. data/proto_docs/google/cloud/securitycenter/v1/notification_config.rb +85 -0
  31. data/proto_docs/google/cloud/securitycenter/v1/notification_message.rb +39 -0
  32. data/proto_docs/google/cloud/securitycenter/v1/organization_settings.rb +82 -0
  33. data/proto_docs/google/cloud/securitycenter/v1/run_asset_discovery_response.rb +54 -0
  34. data/proto_docs/google/cloud/securitycenter/v1/security_marks.rb +61 -0
  35. data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +1015 -0
  36. data/proto_docs/google/cloud/securitycenter/v1/source.rb +57 -0
  37. data/proto_docs/google/iam/v1/iam_policy.rb +80 -0
  38. data/proto_docs/google/iam/v1/options.rb +40 -0
  39. data/proto_docs/google/iam/v1/policy.rb +248 -0
  40. data/proto_docs/google/longrunning/operations.rb +150 -0
  41. data/proto_docs/google/protobuf/any.rb +138 -0
  42. data/proto_docs/google/protobuf/duration.rb +98 -0
  43. data/proto_docs/google/protobuf/empty.rb +36 -0
  44. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  45. data/proto_docs/google/protobuf/struct.rb +96 -0
  46. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  47. data/proto_docs/google/rpc/status.rb +46 -0
  48. data/proto_docs/google/type/expr.rb +52 -0
  49. metadata +222 -0
@@ -0,0 +1,172 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module SecurityCenter
23
+ module V1
24
+ module SecurityCenter
25
+ # Path helper methods for the SecurityCenter API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Finding resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `organizations/{organization}/sources/{source}/findings/{finding}`
33
+ #
34
+ # @param organization [String]
35
+ # @param source [String]
36
+ # @param finding [String]
37
+ #
38
+ # @return [String]
39
+ def finding_path organization:, source:, finding:
40
+ raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
41
+ raise ArgumentError, "source cannot contain /" if source.to_s.include? "/"
42
+
43
+ "organizations/#{organization}/sources/#{source}/findings/#{finding}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified NotificationConfig resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `organizations/{organization}/notificationConfigs/{notification_config}`
52
+ #
53
+ # @param organization [String]
54
+ # @param notification_config [String]
55
+ #
56
+ # @return [String]
57
+ def notification_config_path organization:, notification_config:
58
+ raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
59
+
60
+ "organizations/#{organization}/notificationConfigs/#{notification_config}"
61
+ end
62
+
63
+ ##
64
+ # Create a fully-qualified Organization resource string.
65
+ #
66
+ # The resource will be in the following format:
67
+ #
68
+ # `organizations/{organization}`
69
+ #
70
+ # @param organization [String]
71
+ #
72
+ # @return [String]
73
+ def organization_path organization:
74
+ "organizations/#{organization}"
75
+ end
76
+
77
+ ##
78
+ # Create a fully-qualified OrganizationSettings resource string.
79
+ #
80
+ # The resource will be in the following format:
81
+ #
82
+ # `organizations/{organization}/organizationSettings`
83
+ #
84
+ # @param organization [String]
85
+ #
86
+ # @return [String]
87
+ def organization_settings_path organization:
88
+ "organizations/#{organization}/organizationSettings"
89
+ end
90
+
91
+ ##
92
+ # Create a fully-qualified SecurityMarks resource string.
93
+ #
94
+ # @overload security_marks_path(organization:, asset:)
95
+ # The resource will be in the following format:
96
+ #
97
+ # `organizations/{organization}/assets/{asset}/securityMarks`
98
+ #
99
+ # @param organization [String]
100
+ # @param asset [String]
101
+ #
102
+ # @overload security_marks_path(organization:, source:, finding:)
103
+ # The resource will be in the following format:
104
+ #
105
+ # `organizations/{organization}/sources/{source}/findings/{finding}/securityMarks`
106
+ #
107
+ # @param organization [String]
108
+ # @param source [String]
109
+ # @param finding [String]
110
+ #
111
+ # @return [String]
112
+ def security_marks_path **args
113
+ resources = {
114
+ "asset:organization" => (proc do |organization:, asset:|
115
+ raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
116
+
117
+ "organizations/#{organization}/assets/#{asset}/securityMarks"
118
+ end),
119
+ "finding:organization:source" => (proc do |organization:, source:, finding:|
120
+ raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
121
+ raise ArgumentError, "source cannot contain /" if source.to_s.include? "/"
122
+
123
+ "organizations/#{organization}/sources/#{source}/findings/#{finding}/securityMarks"
124
+ end)
125
+ }
126
+
127
+ resource = resources[args.keys.sort.join(":")]
128
+ raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
129
+ resource.call(**args)
130
+ end
131
+
132
+ ##
133
+ # Create a fully-qualified Source resource string.
134
+ #
135
+ # The resource will be in the following format:
136
+ #
137
+ # `organizations/{organization}/sources/{source}`
138
+ #
139
+ # @param organization [String]
140
+ # @param source [String]
141
+ #
142
+ # @return [String]
143
+ def source_path organization:, source:
144
+ raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
145
+
146
+ "organizations/#{organization}/sources/#{source}"
147
+ end
148
+
149
+ ##
150
+ # Create a fully-qualified Topic resource string.
151
+ #
152
+ # The resource will be in the following format:
153
+ #
154
+ # `projects/{project}/topics/{topic}`
155
+ #
156
+ # @param project [String]
157
+ # @param topic [String]
158
+ #
159
+ # @return [String]
160
+ def topic_path project:, topic:
161
+ raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
162
+
163
+ "projects/#{project}/topics/#{topic}"
164
+ end
165
+
166
+ extend self
167
+ end
168
+ end
169
+ end
170
+ end
171
+ end
172
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/security_center/v1/version"
24
+
25
+ require "google/cloud/security_center/v1/security_center/credentials"
26
+ require "google/cloud/security_center/v1/security_center/paths"
27
+ require "google/cloud/security_center/v1/security_center/operations"
28
+ require "google/cloud/security_center/v1/security_center/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module SecurityCenter
33
+ module V1
34
+ ##
35
+ # V1 APIs for Security Center service.
36
+ #
37
+ # To load this service and instantiate a client:
38
+ #
39
+ # require "google/cloud/security_center/v1/security_center"
40
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
41
+ #
42
+ module SecurityCenter
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+
49
+ helper_path = ::File.join __dir__, "security_center", "helpers.rb"
50
+ require "google/cloud/security_center/v1/security_center/helpers" if ::File.file? helper_path
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module SecurityCenter
23
+ module V1
24
+ VERSION = "0.1.0"
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/security_center/v1/security_center"
20
+ require "google/cloud/security_center/v1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module SecurityCenter
25
+ ##
26
+ # To load this package, including all its services, and instantiate a client:
27
+ #
28
+ # require "google/cloud/security_center/v1"
29
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
30
+ #
31
+ module V1
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,48 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/securitycenter/v1/asset.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/cloud/securitycenter/v1/security_marks_pb'
9
+ require 'google/protobuf/struct_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_file("google/cloud/securitycenter/v1/asset.proto", :syntax => :proto3) do
13
+ add_message "google.cloud.securitycenter.v1.Asset" do
14
+ optional :name, :string, 1
15
+ optional :security_center_properties, :message, 2, "google.cloud.securitycenter.v1.Asset.SecurityCenterProperties"
16
+ map :resource_properties, :string, :message, 7, "google.protobuf.Value"
17
+ optional :security_marks, :message, 8, "google.cloud.securitycenter.v1.SecurityMarks"
18
+ optional :create_time, :message, 9, "google.protobuf.Timestamp"
19
+ optional :update_time, :message, 10, "google.protobuf.Timestamp"
20
+ optional :iam_policy, :message, 11, "google.cloud.securitycenter.v1.Asset.IamPolicy"
21
+ end
22
+ add_message "google.cloud.securitycenter.v1.Asset.SecurityCenterProperties" do
23
+ optional :resource_name, :string, 1
24
+ optional :resource_type, :string, 2
25
+ optional :resource_parent, :string, 3
26
+ optional :resource_project, :string, 4
27
+ repeated :resource_owners, :string, 5
28
+ optional :resource_display_name, :string, 6
29
+ optional :resource_parent_display_name, :string, 7
30
+ optional :resource_project_display_name, :string, 8
31
+ end
32
+ add_message "google.cloud.securitycenter.v1.Asset.IamPolicy" do
33
+ optional :policy_blob, :string, 1
34
+ end
35
+ end
36
+ end
37
+
38
+ module Google
39
+ module Cloud
40
+ module SecurityCenter
41
+ module V1
42
+ Asset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Asset").msgclass
43
+ Asset::SecurityCenterProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Asset.SecurityCenterProperties").msgclass
44
+ Asset::IamPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Asset.IamPolicy").msgclass
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,43 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/securitycenter/v1/finding.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+ require 'google/cloud/securitycenter/v1/security_marks_pb'
10
+ require 'google/protobuf/struct_pb'
11
+ require 'google/protobuf/timestamp_pb'
12
+ Google::Protobuf::DescriptorPool.generated_pool.build do
13
+ add_file("google/cloud/securitycenter/v1/finding.proto", :syntax => :proto3) do
14
+ add_message "google.cloud.securitycenter.v1.Finding" do
15
+ optional :name, :string, 1
16
+ optional :parent, :string, 2
17
+ optional :resource_name, :string, 3
18
+ optional :state, :enum, 4, "google.cloud.securitycenter.v1.Finding.State"
19
+ optional :category, :string, 5
20
+ optional :external_uri, :string, 6
21
+ map :source_properties, :string, :message, 7, "google.protobuf.Value"
22
+ optional :security_marks, :message, 8, "google.cloud.securitycenter.v1.SecurityMarks"
23
+ optional :event_time, :message, 9, "google.protobuf.Timestamp"
24
+ optional :create_time, :message, 10, "google.protobuf.Timestamp"
25
+ end
26
+ add_enum "google.cloud.securitycenter.v1.Finding.State" do
27
+ value :STATE_UNSPECIFIED, 0
28
+ value :ACTIVE, 1
29
+ value :INACTIVE, 2
30
+ end
31
+ end
32
+ end
33
+
34
+ module Google
35
+ module Cloud
36
+ module SecurityCenter
37
+ module V1
38
+ Finding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Finding").msgclass
39
+ Finding::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Finding.State").enummodule
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,35 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/securitycenter/v1/notification_config.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
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
22
+ end
23
+ end
24
+ end
25
+
26
+ module Google
27
+ module Cloud
28
+ module SecurityCenter
29
+ module V1
30
+ NotificationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.NotificationConfig").msgclass
31
+ NotificationConfig::StreamingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig").msgclass
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,27 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/securitycenter/v1/notification_message.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/cloud/securitycenter/v1/finding_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("google/cloud/securitycenter/v1/notification_message.proto", :syntax => :proto3) do
10
+ add_message "google.cloud.securitycenter.v1.NotificationMessage" do
11
+ optional :notification_config_name, :string, 1
12
+ oneof :event do
13
+ optional :finding, :message, 2, "google.cloud.securitycenter.v1.Finding"
14
+ end
15
+ end
16
+ end
17
+ end
18
+
19
+ module Google
20
+ module Cloud
21
+ module SecurityCenter
22
+ module V1
23
+ NotificationMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.NotificationMessage").msgclass
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,37 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/securitycenter/v1/organization_settings.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/resource_pb'
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
+ end
19
+ add_enum "google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode" do
20
+ value :INCLUSION_MODE_UNSPECIFIED, 0
21
+ value :INCLUDE_ONLY, 1
22
+ value :EXCLUDE, 2
23
+ end
24
+ end
25
+ end
26
+
27
+ module Google
28
+ module Cloud
29
+ module SecurityCenter
30
+ module V1
31
+ OrganizationSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.OrganizationSettings").msgclass
32
+ OrganizationSettings::AssetDiscoveryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig").msgclass
33
+ OrganizationSettings::AssetDiscoveryConfig::InclusionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode").enummodule
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,32 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/securitycenter/v1/run_asset_discovery_response.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/protobuf/duration_pb'
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
19
+ end
20
+ end
21
+ end
22
+
23
+ module Google
24
+ module Cloud
25
+ module SecurityCenter
26
+ module V1
27
+ RunAssetDiscoveryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.RunAssetDiscoveryResponse").msgclass
28
+ RunAssetDiscoveryResponse::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State").enummodule
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,25 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/securitycenter/v1/security_marks.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/resource_pb'
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
+ end
14
+ end
15
+ end
16
+
17
+ module Google
18
+ module Cloud
19
+ module SecurityCenter
20
+ module V1
21
+ SecurityMarks = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.SecurityMarks").msgclass
22
+ end
23
+ end
24
+ end
25
+ end