google-cloud-security_center-v1 0.1.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 (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,237 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/securitycenter/v1/securitycenter_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/cloud/securitycenter/v1/run_asset_discovery_response_pb'
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/cloud/securitycenter/v1/asset_pb'
12
+ require 'google/cloud/securitycenter/v1/finding_pb'
13
+ require 'google/cloud/securitycenter/v1/notification_config_pb'
14
+ require 'google/cloud/securitycenter/v1/organization_settings_pb'
15
+ require 'google/cloud/securitycenter/v1/security_marks_pb'
16
+ require 'google/cloud/securitycenter/v1/source_pb'
17
+ require 'google/iam/v1/iam_policy_pb'
18
+ require 'google/iam/v1/policy_pb'
19
+ require 'google/longrunning/operations_pb'
20
+ require 'google/protobuf/duration_pb'
21
+ require 'google/protobuf/empty_pb'
22
+ require 'google/protobuf/field_mask_pb'
23
+ require 'google/protobuf/struct_pb'
24
+ require 'google/protobuf/timestamp_pb'
25
+ Google::Protobuf::DescriptorPool.generated_pool.build do
26
+ add_file("google/cloud/securitycenter/v1/securitycenter_service.proto", :syntax => :proto3) do
27
+ add_message "google.cloud.securitycenter.v1.CreateFindingRequest" do
28
+ optional :parent, :string, 1
29
+ optional :finding_id, :string, 2
30
+ optional :finding, :message, 3, "google.cloud.securitycenter.v1.Finding"
31
+ end
32
+ add_message "google.cloud.securitycenter.v1.CreateNotificationConfigRequest" do
33
+ optional :parent, :string, 1
34
+ optional :config_id, :string, 2
35
+ optional :notification_config, :message, 3, "google.cloud.securitycenter.v1.NotificationConfig"
36
+ end
37
+ add_message "google.cloud.securitycenter.v1.CreateSourceRequest" do
38
+ optional :parent, :string, 1
39
+ optional :source, :message, 2, "google.cloud.securitycenter.v1.Source"
40
+ end
41
+ add_message "google.cloud.securitycenter.v1.DeleteNotificationConfigRequest" do
42
+ optional :name, :string, 1
43
+ end
44
+ add_message "google.cloud.securitycenter.v1.GetNotificationConfigRequest" do
45
+ optional :name, :string, 1
46
+ end
47
+ add_message "google.cloud.securitycenter.v1.GetOrganizationSettingsRequest" do
48
+ optional :name, :string, 1
49
+ end
50
+ add_message "google.cloud.securitycenter.v1.GetSourceRequest" do
51
+ optional :name, :string, 1
52
+ end
53
+ add_message "google.cloud.securitycenter.v1.GroupAssetsRequest" do
54
+ optional :parent, :string, 1
55
+ optional :filter, :string, 2
56
+ optional :group_by, :string, 3
57
+ optional :compare_duration, :message, 4, "google.protobuf.Duration"
58
+ optional :read_time, :message, 5, "google.protobuf.Timestamp"
59
+ optional :page_token, :string, 7
60
+ optional :page_size, :int32, 8
61
+ end
62
+ add_message "google.cloud.securitycenter.v1.GroupAssetsResponse" do
63
+ repeated :group_by_results, :message, 1, "google.cloud.securitycenter.v1.GroupResult"
64
+ optional :read_time, :message, 2, "google.protobuf.Timestamp"
65
+ optional :next_page_token, :string, 3
66
+ optional :total_size, :int32, 4
67
+ end
68
+ add_message "google.cloud.securitycenter.v1.GroupFindingsRequest" do
69
+ optional :parent, :string, 1
70
+ optional :filter, :string, 2
71
+ optional :group_by, :string, 3
72
+ optional :read_time, :message, 4, "google.protobuf.Timestamp"
73
+ optional :compare_duration, :message, 5, "google.protobuf.Duration"
74
+ optional :page_token, :string, 7
75
+ optional :page_size, :int32, 8
76
+ end
77
+ add_message "google.cloud.securitycenter.v1.GroupFindingsResponse" do
78
+ repeated :group_by_results, :message, 1, "google.cloud.securitycenter.v1.GroupResult"
79
+ optional :read_time, :message, 2, "google.protobuf.Timestamp"
80
+ optional :next_page_token, :string, 3
81
+ optional :total_size, :int32, 4
82
+ end
83
+ add_message "google.cloud.securitycenter.v1.GroupResult" do
84
+ map :properties, :string, :message, 1, "google.protobuf.Value"
85
+ optional :count, :int64, 2
86
+ end
87
+ add_message "google.cloud.securitycenter.v1.ListNotificationConfigsRequest" do
88
+ optional :parent, :string, 1
89
+ optional :page_token, :string, 2
90
+ optional :page_size, :int32, 3
91
+ end
92
+ add_message "google.cloud.securitycenter.v1.ListNotificationConfigsResponse" do
93
+ repeated :notification_configs, :message, 1, "google.cloud.securitycenter.v1.NotificationConfig"
94
+ optional :next_page_token, :string, 2
95
+ end
96
+ add_message "google.cloud.securitycenter.v1.ListSourcesRequest" do
97
+ optional :parent, :string, 1
98
+ optional :page_token, :string, 2
99
+ optional :page_size, :int32, 7
100
+ end
101
+ add_message "google.cloud.securitycenter.v1.ListSourcesResponse" do
102
+ repeated :sources, :message, 1, "google.cloud.securitycenter.v1.Source"
103
+ optional :next_page_token, :string, 2
104
+ end
105
+ add_message "google.cloud.securitycenter.v1.ListAssetsRequest" do
106
+ optional :parent, :string, 1
107
+ optional :filter, :string, 2
108
+ optional :order_by, :string, 3
109
+ optional :read_time, :message, 4, "google.protobuf.Timestamp"
110
+ optional :compare_duration, :message, 5, "google.protobuf.Duration"
111
+ optional :field_mask, :message, 7, "google.protobuf.FieldMask"
112
+ optional :page_token, :string, 8
113
+ optional :page_size, :int32, 9
114
+ end
115
+ add_message "google.cloud.securitycenter.v1.ListAssetsResponse" do
116
+ repeated :list_assets_results, :message, 1, "google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult"
117
+ optional :read_time, :message, 2, "google.protobuf.Timestamp"
118
+ optional :next_page_token, :string, 3
119
+ optional :total_size, :int32, 4
120
+ end
121
+ add_message "google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult" do
122
+ optional :asset, :message, 1, "google.cloud.securitycenter.v1.Asset"
123
+ optional :state_change, :enum, 2, "google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange"
124
+ end
125
+ add_enum "google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange" do
126
+ value :UNUSED, 0
127
+ value :ADDED, 1
128
+ value :REMOVED, 2
129
+ value :ACTIVE, 3
130
+ end
131
+ add_message "google.cloud.securitycenter.v1.ListFindingsRequest" do
132
+ optional :parent, :string, 1
133
+ optional :filter, :string, 2
134
+ optional :order_by, :string, 3
135
+ optional :read_time, :message, 4, "google.protobuf.Timestamp"
136
+ optional :compare_duration, :message, 5, "google.protobuf.Duration"
137
+ optional :field_mask, :message, 7, "google.protobuf.FieldMask"
138
+ optional :page_token, :string, 8
139
+ optional :page_size, :int32, 9
140
+ end
141
+ add_message "google.cloud.securitycenter.v1.ListFindingsResponse" do
142
+ repeated :list_findings_results, :message, 1, "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult"
143
+ optional :read_time, :message, 2, "google.protobuf.Timestamp"
144
+ optional :next_page_token, :string, 3
145
+ optional :total_size, :int32, 4
146
+ end
147
+ add_message "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult" do
148
+ optional :finding, :message, 1, "google.cloud.securitycenter.v1.Finding"
149
+ optional :state_change, :enum, 2, "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange"
150
+ optional :resource, :message, 3, "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource"
151
+ end
152
+ add_message "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource" do
153
+ optional :name, :string, 1
154
+ optional :project_name, :string, 2
155
+ optional :project_display_name, :string, 3
156
+ optional :parent_name, :string, 4
157
+ optional :parent_display_name, :string, 5
158
+ end
159
+ add_enum "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange" do
160
+ value :UNUSED, 0
161
+ value :CHANGED, 1
162
+ value :UNCHANGED, 2
163
+ value :ADDED, 3
164
+ value :REMOVED, 4
165
+ end
166
+ add_message "google.cloud.securitycenter.v1.SetFindingStateRequest" do
167
+ optional :name, :string, 1
168
+ optional :state, :enum, 2, "google.cloud.securitycenter.v1.Finding.State"
169
+ optional :start_time, :message, 3, "google.protobuf.Timestamp"
170
+ end
171
+ add_message "google.cloud.securitycenter.v1.RunAssetDiscoveryRequest" do
172
+ optional :parent, :string, 1
173
+ end
174
+ add_message "google.cloud.securitycenter.v1.UpdateFindingRequest" do
175
+ optional :finding, :message, 1, "google.cloud.securitycenter.v1.Finding"
176
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
177
+ end
178
+ add_message "google.cloud.securitycenter.v1.UpdateNotificationConfigRequest" do
179
+ optional :notification_config, :message, 1, "google.cloud.securitycenter.v1.NotificationConfig"
180
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
181
+ end
182
+ add_message "google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest" do
183
+ optional :organization_settings, :message, 1, "google.cloud.securitycenter.v1.OrganizationSettings"
184
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
185
+ end
186
+ add_message "google.cloud.securitycenter.v1.UpdateSourceRequest" do
187
+ optional :source, :message, 1, "google.cloud.securitycenter.v1.Source"
188
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
189
+ end
190
+ add_message "google.cloud.securitycenter.v1.UpdateSecurityMarksRequest" do
191
+ optional :security_marks, :message, 1, "google.cloud.securitycenter.v1.SecurityMarks"
192
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
193
+ optional :start_time, :message, 3, "google.protobuf.Timestamp"
194
+ end
195
+ end
196
+ end
197
+
198
+ module Google
199
+ module Cloud
200
+ module SecurityCenter
201
+ module V1
202
+ CreateFindingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.CreateFindingRequest").msgclass
203
+ CreateNotificationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.CreateNotificationConfigRequest").msgclass
204
+ CreateSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.CreateSourceRequest").msgclass
205
+ DeleteNotificationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.DeleteNotificationConfigRequest").msgclass
206
+ GetNotificationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GetNotificationConfigRequest").msgclass
207
+ GetOrganizationSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GetOrganizationSettingsRequest").msgclass
208
+ GetSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GetSourceRequest").msgclass
209
+ GroupAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GroupAssetsRequest").msgclass
210
+ GroupAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GroupAssetsResponse").msgclass
211
+ GroupFindingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GroupFindingsRequest").msgclass
212
+ GroupFindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GroupFindingsResponse").msgclass
213
+ GroupResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GroupResult").msgclass
214
+ ListNotificationConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListNotificationConfigsRequest").msgclass
215
+ ListNotificationConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListNotificationConfigsResponse").msgclass
216
+ ListSourcesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListSourcesRequest").msgclass
217
+ ListSourcesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListSourcesResponse").msgclass
218
+ ListAssetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListAssetsRequest").msgclass
219
+ ListAssetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListAssetsResponse").msgclass
220
+ ListAssetsResponse::ListAssetsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult").msgclass
221
+ ListAssetsResponse::ListAssetsResult::StateChange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange").enummodule
222
+ ListFindingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListFindingsRequest").msgclass
223
+ ListFindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListFindingsResponse").msgclass
224
+ ListFindingsResponse::ListFindingsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult").msgclass
225
+ ListFindingsResponse::ListFindingsResult::Resource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource").msgclass
226
+ ListFindingsResponse::ListFindingsResult::StateChange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange").enummodule
227
+ SetFindingStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.SetFindingStateRequest").msgclass
228
+ RunAssetDiscoveryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.RunAssetDiscoveryRequest").msgclass
229
+ UpdateFindingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.UpdateFindingRequest").msgclass
230
+ UpdateNotificationConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.UpdateNotificationConfigRequest").msgclass
231
+ UpdateOrganizationSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest").msgclass
232
+ UpdateSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.UpdateSourceRequest").msgclass
233
+ UpdateSecurityMarksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.UpdateSecurityMarksRequest").msgclass
234
+ end
235
+ end
236
+ end
237
+ end
@@ -0,0 +1,105 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/securitycenter/v1/securitycenter_service.proto for package 'Google.Cloud.SecurityCenter.V1'
3
+ # Original file comments:
4
+ # Copyright 2020 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/v1/securitycenter_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module SecurityCenter
25
+ module V1
26
+ module SecurityCenter
27
+ # V1 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.v1.SecurityCenter'
35
+
36
+ # Creates a source.
37
+ rpc :CreateSource, Google::Cloud::SecurityCenter::V1::CreateSourceRequest, Google::Cloud::SecurityCenter::V1::Source
38
+ # Creates a finding. The corresponding source must exist for finding creation
39
+ # to succeed.
40
+ rpc :CreateFinding, Google::Cloud::SecurityCenter::V1::CreateFindingRequest, Google::Cloud::SecurityCenter::V1::Finding
41
+ # Creates a notification config.
42
+ rpc :CreateNotificationConfig, Google::Cloud::SecurityCenter::V1::CreateNotificationConfigRequest, Google::Cloud::SecurityCenter::V1::NotificationConfig
43
+ # Deletes a notification config.
44
+ rpc :DeleteNotificationConfig, Google::Cloud::SecurityCenter::V1::DeleteNotificationConfigRequest, Google::Protobuf::Empty
45
+ # Gets the access control policy on the specified Source.
46
+ rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
47
+ # Gets a notification config.
48
+ rpc :GetNotificationConfig, Google::Cloud::SecurityCenter::V1::GetNotificationConfigRequest, Google::Cloud::SecurityCenter::V1::NotificationConfig
49
+ # Gets the settings for an organization.
50
+ rpc :GetOrganizationSettings, Google::Cloud::SecurityCenter::V1::GetOrganizationSettingsRequest, Google::Cloud::SecurityCenter::V1::OrganizationSettings
51
+ # Gets a source.
52
+ rpc :GetSource, Google::Cloud::SecurityCenter::V1::GetSourceRequest, Google::Cloud::SecurityCenter::V1::Source
53
+ # Filters an organization's assets and groups them by their specified
54
+ # properties.
55
+ rpc :GroupAssets, Google::Cloud::SecurityCenter::V1::GroupAssetsRequest, Google::Cloud::SecurityCenter::V1::GroupAssetsResponse
56
+ # Filters an organization or source's findings and groups them by their
57
+ # specified properties.
58
+ #
59
+ # To group across all sources provide a `-` as the source id.
60
+ # Example: /v1/organizations/{organization_id}/sources/-/findings
61
+ rpc :GroupFindings, Google::Cloud::SecurityCenter::V1::GroupFindingsRequest, Google::Cloud::SecurityCenter::V1::GroupFindingsResponse
62
+ # Lists an organization's assets.
63
+ rpc :ListAssets, Google::Cloud::SecurityCenter::V1::ListAssetsRequest, Google::Cloud::SecurityCenter::V1::ListAssetsResponse
64
+ # Lists an organization or source's findings.
65
+ #
66
+ # To list across all sources provide a `-` as the source id.
67
+ # Example: /v1/organizations/{organization_id}/sources/-/findings
68
+ rpc :ListFindings, Google::Cloud::SecurityCenter::V1::ListFindingsRequest, Google::Cloud::SecurityCenter::V1::ListFindingsResponse
69
+ # Lists notification configs.
70
+ rpc :ListNotificationConfigs, Google::Cloud::SecurityCenter::V1::ListNotificationConfigsRequest, Google::Cloud::SecurityCenter::V1::ListNotificationConfigsResponse
71
+ # Lists all sources belonging to an organization.
72
+ rpc :ListSources, Google::Cloud::SecurityCenter::V1::ListSourcesRequest, Google::Cloud::SecurityCenter::V1::ListSourcesResponse
73
+ # Runs asset discovery. The discovery is tracked with a long-running
74
+ # operation.
75
+ #
76
+ # This API can only be called with limited frequency for an organization. If
77
+ # it is called too frequently the caller will receive a TOO_MANY_REQUESTS
78
+ # error.
79
+ rpc :RunAssetDiscovery, Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryRequest, Google::Longrunning::Operation
80
+ # Updates the state of a finding.
81
+ rpc :SetFindingState, Google::Cloud::SecurityCenter::V1::SetFindingStateRequest, Google::Cloud::SecurityCenter::V1::Finding
82
+ # Sets the access control policy on the specified Source.
83
+ rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
84
+ # Returns the permissions that a caller has on the specified source.
85
+ rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
86
+ # Creates or updates a finding. The corresponding source must exist for a
87
+ # finding creation to succeed.
88
+ rpc :UpdateFinding, Google::Cloud::SecurityCenter::V1::UpdateFindingRequest, Google::Cloud::SecurityCenter::V1::Finding
89
+ #
90
+ # Updates a notification config.
91
+ rpc :UpdateNotificationConfig, Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest, Google::Cloud::SecurityCenter::V1::NotificationConfig
92
+ # Updates an organization's settings.
93
+ rpc :UpdateOrganizationSettings, Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest, Google::Cloud::SecurityCenter::V1::OrganizationSettings
94
+ # Updates a source.
95
+ rpc :UpdateSource, Google::Cloud::SecurityCenter::V1::UpdateSourceRequest, Google::Cloud::SecurityCenter::V1::Source
96
+ # Updates security marks.
97
+ rpc :UpdateSecurityMarks, Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest, Google::Cloud::SecurityCenter::V1::SecurityMarks
98
+ end
99
+
100
+ Stub = Service.rpc_stub_class
101
+ end
102
+ end
103
+ end
104
+ end
105
+ end
@@ -0,0 +1,26 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/securitycenter/v1/source.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/source.proto", :syntax => :proto3) do
10
+ add_message "google.cloud.securitycenter.v1.Source" do
11
+ optional :name, :string, 1
12
+ optional :display_name, :string, 2
13
+ optional :description, :string, 3
14
+ end
15
+ end
16
+ end
17
+
18
+ module Google
19
+ module Cloud
20
+ module SecurityCenter
21
+ module V1
22
+ Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Source").msgclass
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,21 @@
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
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/cloud/security_center/v1"
@@ -0,0 +1,4 @@
1
+ # Cloud Security Command Center V1 Protocol Buffer Documentation
2
+
3
+ These files are for the YARD documentation of the generated protobuf files.
4
+ They are not intended to be required or loaded at runtime.
@@ -0,0 +1,59 @@
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 Api
22
+ # An indicator of the behavior of a given field (for example, that a field
23
+ # is required in requests, or given as output but ignored as input).
24
+ # This **does not** change the behavior in protocol buffers itself; it only
25
+ # denotes the behavior and may affect how API tooling handles the field.
26
+ #
27
+ # Note: This enum **may** receive new values in the future.
28
+ module FieldBehavior
29
+ # Conventional default for enums. Do not use this.
30
+ FIELD_BEHAVIOR_UNSPECIFIED = 0
31
+
32
+ # Specifically denotes a field as optional.
33
+ # While all fields in protocol buffers are optional, this may be specified
34
+ # for emphasis if appropriate.
35
+ OPTIONAL = 1
36
+
37
+ # Denotes a field as required.
38
+ # This indicates that the field **must** be provided as part of the request,
39
+ # and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
40
+ REQUIRED = 2
41
+
42
+ # Denotes a field as output only.
43
+ # This indicates that the field is provided in responses, but including the
44
+ # field in a request does nothing (the server *must* ignore it and
45
+ # *must not* throw an error as a result of the field's presence).
46
+ OUTPUT_ONLY = 3
47
+
48
+ # Denotes a field as input only.
49
+ # This indicates that the field is provided in requests, and the
50
+ # corresponding field is not included in output.
51
+ INPUT_ONLY = 4
52
+
53
+ # Denotes a field as immutable.
54
+ # This indicates that the field may be set once in a request to create a
55
+ # resource, but may not be changed thereafter.
56
+ IMMUTABLE = 5
57
+ end
58
+ end
59
+ end