google-cloud-security_center-v2 0.a → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/cloud/security_center/v2/rest.rb +37 -0
- data/lib/google/cloud/security_center/v2/security_center/client.rb +4771 -0
- data/lib/google/cloud/security_center/v2/security_center/credentials.rb +51 -0
- data/lib/google/cloud/security_center/v2/security_center/operations.rb +809 -0
- data/lib/google/cloud/security_center/v2/security_center/paths.rb +973 -0
- data/lib/google/cloud/security_center/v2/security_center/rest/client.rb +4390 -0
- data/lib/google/cloud/security_center/v2/security_center/rest/operations.rb +901 -0
- data/lib/google/cloud/security_center/v2/security_center/rest/service_stub.rb +3165 -0
- data/lib/google/cloud/security_center/v2/security_center/rest.rb +53 -0
- data/lib/google/cloud/security_center/v2/security_center.rb +56 -0
- data/lib/google/cloud/security_center/v2/version.rb +7 -2
- data/lib/google/cloud/security_center/v2.rb +45 -0
- data/lib/google/cloud/securitycenter/v2/access_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/application_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/attack_exposure_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/attack_path_pb.rb +49 -0
- data/lib/google/cloud/securitycenter/v2/backup_disaster_recovery_pb.rb +45 -0
- data/lib/google/cloud/securitycenter/v2/bigquery_export_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/cloud_dlp_data_profile_pb.rb +45 -0
- data/lib/google/cloud/securitycenter/v2/cloud_dlp_inspection_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/compliance_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/connection_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/contact_details_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/container_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/database_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/exfiltration_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/external_system_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/file_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/finding_pb.rb +109 -0
- data/lib/google/cloud/securitycenter/v2/group_membership_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/iam_binding_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/indicator_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/kernel_rootkit_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/kubernetes_pb.rb +57 -0
- data/lib/google/cloud/securitycenter/v2/label_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/load_balancer_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/log_entry_pb.rb +46 -0
- data/lib/google/cloud/securitycenter/v2/mitre_attack_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/mute_config_pb.rb +48 -0
- data/lib/google/cloud/securitycenter/v2/notification_config_pb.rb +46 -0
- data/lib/google/cloud/securitycenter/v2/notification_message_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/org_policy_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/process_pb.rb +46 -0
- data/lib/google/cloud/securitycenter/v2/resource_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/resource_value_config_pb.rb +49 -0
- data/lib/google/cloud/securitycenter/v2/security_marks_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/security_posture_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/securitycenter_service_pb.rb +128 -0
- data/lib/google/cloud/securitycenter/v2/securitycenter_service_services_pb.rb +167 -0
- data/lib/google/cloud/securitycenter/v2/simulation_pb.rb +49 -0
- data/lib/google/cloud/securitycenter/v2/source_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/toxic_combination_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/valued_resource_pb.rb +46 -0
- data/lib/google/cloud/securitycenter/v2/vulnerability_pb.rb +58 -0
- data/lib/google-cloud-security_center-v2.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +399 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/api/routing.rb +459 -0
- data/proto_docs/google/cloud/securitycenter/v2/access.rb +120 -0
- data/proto_docs/google/cloud/securitycenter/v2/application.rb +40 -0
- data/proto_docs/google/cloud/securitycenter/v2/attack_exposure.rb +73 -0
- data/proto_docs/google/cloud/securitycenter/v2/attack_path.rb +147 -0
- data/proto_docs/google/cloud/securitycenter/v2/backup_disaster_recovery.rb +90 -0
- data/proto_docs/google/cloud/securitycenter/v2/bigquery_export.rb +96 -0
- data/proto_docs/google/cloud/securitycenter/v2/cloud_dlp_data_profile.rb +52 -0
- data/proto_docs/google/cloud/securitycenter/v2/cloud_dlp_inspection.rb +50 -0
- data/proto_docs/google/cloud/securitycenter/v2/compliance.rb +43 -0
- data/proto_docs/google/cloud/securitycenter/v2/connection.rb +70 -0
- data/proto_docs/google/cloud/securitycenter/v2/contact_details.rb +44 -0
- data/proto_docs/google/cloud/securitycenter/v2/container.rb +49 -0
- data/proto_docs/google/cloud/securitycenter/v2/database.rb +67 -0
- data/proto_docs/google/cloud/securitycenter/v2/exfiltration.rb +64 -0
- data/proto_docs/google/cloud/securitycenter/v2/external_system.rb +106 -0
- data/proto_docs/google/cloud/securitycenter/v2/file.rb +72 -0
- data/proto_docs/google/cloud/securitycenter/v2/finding.rb +427 -0
- data/proto_docs/google/cloud/securitycenter/v2/group_membership.rb +48 -0
- data/proto_docs/google/cloud/securitycenter/v2/iam_binding.rb +56 -0
- data/proto_docs/google/cloud/securitycenter/v2/indicator.rb +112 -0
- data/proto_docs/google/cloud/securitycenter/v2/kernel_rootkit.rb +66 -0
- data/proto_docs/google/cloud/securitycenter/v2/kubernetes.rb +241 -0
- data/proto_docs/google/cloud/securitycenter/v2/label.rb +41 -0
- data/proto_docs/google/cloud/securitycenter/v2/load_balancer.rb +36 -0
- data/proto_docs/google/cloud/securitycenter/v2/log_entry.rb +58 -0
- data/proto_docs/google/cloud/securitycenter/v2/mitre_attack.rb +285 -0
- data/proto_docs/google/cloud/securitycenter/v2/mute_config.rb +100 -0
- data/proto_docs/google/cloud/securitycenter/v2/notification_config.rb +90 -0
- data/proto_docs/google/cloud/securitycenter/v2/notification_message.rb +42 -0
- data/proto_docs/google/cloud/securitycenter/v2/org_policy.rb +37 -0
- data/proto_docs/google/cloud/securitycenter/v2/process.rb +79 -0
- data/proto_docs/google/cloud/securitycenter/v2/resource.rb +42 -0
- data/proto_docs/google/cloud/securitycenter/v2/resource_value_config.rb +122 -0
- data/proto_docs/google/cloud/securitycenter/v2/security_marks.rb +84 -0
- data/proto_docs/google/cloud/securitycenter/v2/security_posture.rb +83 -0
- data/proto_docs/google/cloud/securitycenter/v2/securitycenter_service.rb +1136 -0
- data/proto_docs/google/cloud/securitycenter/v2/simulation.rb +43 -0
- data/proto_docs/google/cloud/securitycenter/v2/source.rb +65 -0
- data/proto_docs/google/cloud/securitycenter/v2/toxic_combination.rb +46 -0
- data/proto_docs/google/cloud/securitycenter/v2/valued_resource.rb +86 -0
- data/proto_docs/google/cloud/securitycenter/v2/vulnerability.rb +333 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
- data/proto_docs/google/iam/v1/options.rb +50 -0
- data/proto_docs/google/iam/v1/policy.rb +426 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +173 -10
@@ -0,0 +1,1136 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 V2
|
24
|
+
# Request message to create multiple resource value configs
|
25
|
+
# @!attribute [rw] parent
|
26
|
+
# @return [::String]
|
27
|
+
# Required. Resource name of the new ResourceValueConfig's parent.
|
28
|
+
# The parent field in the CreateResourceValueConfigRequest
|
29
|
+
# messages must either be empty or match this field.
|
30
|
+
# @!attribute [rw] requests
|
31
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::CreateResourceValueConfigRequest>]
|
32
|
+
# Required. The resource value configs to be created.
|
33
|
+
class BatchCreateResourceValueConfigsRequest
|
34
|
+
include ::Google::Protobuf::MessageExts
|
35
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
36
|
+
end
|
37
|
+
|
38
|
+
# Response message for BatchCreateResourceValueConfigs
|
39
|
+
# @!attribute [rw] resource_value_configs
|
40
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::ResourceValueConfig>]
|
41
|
+
# The resource value configs created
|
42
|
+
class BatchCreateResourceValueConfigsResponse
|
43
|
+
include ::Google::Protobuf::MessageExts
|
44
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
45
|
+
end
|
46
|
+
|
47
|
+
# Request message for bulk findings update.
|
48
|
+
#
|
49
|
+
# Note:
|
50
|
+
# 1. If multiple bulk update requests match the same resource, the order in
|
51
|
+
# which they get executed is not defined.
|
52
|
+
# 2. Once a bulk operation is started, there is no way to stop it.
|
53
|
+
# @!attribute [rw] parent
|
54
|
+
# @return [::String]
|
55
|
+
# Required. The parent, at which bulk action needs to be applied. If no
|
56
|
+
# location is specified, findings are updated in global. The following list
|
57
|
+
# shows some examples:
|
58
|
+
#
|
59
|
+
# + `organizations/[organization_id]`
|
60
|
+
# + `organizations/[organization_id]/locations/[location_id]`
|
61
|
+
# + `folders/[folder_id]`
|
62
|
+
# + `folders/[folder_id]/locations/[location_id]`
|
63
|
+
# + `projects/[project_id]`
|
64
|
+
# + `projects/[project_id]/locations/[location_id]`
|
65
|
+
# @!attribute [rw] filter
|
66
|
+
# @return [::String]
|
67
|
+
# Expression that identifies findings that should be updated.
|
68
|
+
# The expression is a list of zero or more restrictions combined
|
69
|
+
# via logical operators `AND` and `OR`. Parentheses are supported, and `OR`
|
70
|
+
# has higher precedence than `AND`.
|
71
|
+
#
|
72
|
+
# Restrictions have the form `<field> <operator> <value>` and may have a
|
73
|
+
# `-` character in front of them to indicate negation. The fields map to
|
74
|
+
# those defined in the corresponding resource.
|
75
|
+
#
|
76
|
+
# The supported operators are:
|
77
|
+
#
|
78
|
+
# * `=` for all value types.
|
79
|
+
# * `>`, `<`, `>=`, `<=` for integer values.
|
80
|
+
# * `:`, meaning substring matching, for strings.
|
81
|
+
#
|
82
|
+
# The supported value types are:
|
83
|
+
#
|
84
|
+
# * string literals in quotes.
|
85
|
+
# * integer literals without quotes.
|
86
|
+
# * boolean literals `true` and `false` without quotes.
|
87
|
+
class BulkMuteFindingsRequest
|
88
|
+
include ::Google::Protobuf::MessageExts
|
89
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
90
|
+
end
|
91
|
+
|
92
|
+
# The response to a BulkMute request. Contains the LRO information.
|
93
|
+
class BulkMuteFindingsResponse
|
94
|
+
include ::Google::Protobuf::MessageExts
|
95
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
96
|
+
end
|
97
|
+
|
98
|
+
# Request message for creating a BigQuery export.
|
99
|
+
# @!attribute [rw] parent
|
100
|
+
# @return [::String]
|
101
|
+
# Required. The name of the parent resource of the new BigQuery export. Its
|
102
|
+
# format is "organizations/[organization_id]/locations/[location_id]",
|
103
|
+
# "folders/[folder_id]/locations/[location_id]", or
|
104
|
+
# "projects/[project_id]/locations/[location_id]".
|
105
|
+
# @!attribute [rw] big_query_export
|
106
|
+
# @return [::Google::Cloud::SecurityCenter::V2::BigQueryExport]
|
107
|
+
# Required. The BigQuery export being created.
|
108
|
+
# @!attribute [rw] big_query_export_id
|
109
|
+
# @return [::String]
|
110
|
+
# Required. Unique identifier provided by the client within the parent scope.
|
111
|
+
# It must consist of only lowercase letters, numbers, and hyphens, must start
|
112
|
+
# with a letter, must end with either a letter or a number, and must be 63
|
113
|
+
# characters or less.
|
114
|
+
class CreateBigQueryExportRequest
|
115
|
+
include ::Google::Protobuf::MessageExts
|
116
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
117
|
+
end
|
118
|
+
|
119
|
+
# Request message for creating a finding.
|
120
|
+
# @!attribute [rw] parent
|
121
|
+
# @return [::String]
|
122
|
+
# Required. Resource name of the new finding's parent. The following list
|
123
|
+
# shows some examples of the format:
|
124
|
+
# +
|
125
|
+
# `organizations/[organization_id]/sources/[source_id]`
|
126
|
+
# +
|
127
|
+
# `organizations/[organization_id]/sources/[source_id]/locations/[location_id]`
|
128
|
+
# @!attribute [rw] finding_id
|
129
|
+
# @return [::String]
|
130
|
+
# Required. Unique identifier provided by the client within the parent scope.
|
131
|
+
# It must be alphanumeric and less than or equal to 32 characters and
|
132
|
+
# greater than 0 characters in length.
|
133
|
+
# @!attribute [rw] finding
|
134
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Finding]
|
135
|
+
# Required. The Finding being created. The name and security_marks will be
|
136
|
+
# ignored as they are both output only fields on this resource.
|
137
|
+
class CreateFindingRequest
|
138
|
+
include ::Google::Protobuf::MessageExts
|
139
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
140
|
+
end
|
141
|
+
|
142
|
+
# Request message for creating a mute config.
|
143
|
+
# @!attribute [rw] parent
|
144
|
+
# @return [::String]
|
145
|
+
# Required. Resource name of the new mute configs's parent. Its format is
|
146
|
+
# "organizations/[organization_id]/locations/[location_id]",
|
147
|
+
# "folders/[folder_id]/locations/[location_id]", or
|
148
|
+
# "projects/[project_id]/locations/[location_id]".
|
149
|
+
# @!attribute [rw] mute_config
|
150
|
+
# @return [::Google::Cloud::SecurityCenter::V2::MuteConfig]
|
151
|
+
# Required. The mute config being created.
|
152
|
+
# @!attribute [rw] mute_config_id
|
153
|
+
# @return [::String]
|
154
|
+
# Required. Unique identifier provided by the client within the parent scope.
|
155
|
+
# It must consist of only lowercase letters, numbers, and hyphens, must start
|
156
|
+
# with a letter, must end with either a letter or a number, and must be 63
|
157
|
+
# characters or less.
|
158
|
+
class CreateMuteConfigRequest
|
159
|
+
include ::Google::Protobuf::MessageExts
|
160
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
161
|
+
end
|
162
|
+
|
163
|
+
# Request message for creating a notification config.
|
164
|
+
# @!attribute [rw] parent
|
165
|
+
# @return [::String]
|
166
|
+
# Required. Resource name of the new notification config's parent. Its format
|
167
|
+
# is "organizations/[organization_id]/locations/[location_id]",
|
168
|
+
# "folders/[folder_id]/locations/[location_id]", or
|
169
|
+
# "projects/[project_id]/locations/[location_id]".
|
170
|
+
# @!attribute [rw] config_id
|
171
|
+
# @return [::String]
|
172
|
+
# Required.
|
173
|
+
# Unique identifier provided by the client within the parent scope.
|
174
|
+
# It must be between 1 and 128 characters and contain alphanumeric
|
175
|
+
# characters, underscores, or hyphens only.
|
176
|
+
# @!attribute [rw] notification_config
|
177
|
+
# @return [::Google::Cloud::SecurityCenter::V2::NotificationConfig]
|
178
|
+
# Required. The notification config being created. The name and the service
|
179
|
+
# account will be ignored as they are both output only fields on this
|
180
|
+
# resource.
|
181
|
+
class CreateNotificationConfigRequest
|
182
|
+
include ::Google::Protobuf::MessageExts
|
183
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
184
|
+
end
|
185
|
+
|
186
|
+
# Request message to create single resource value config
|
187
|
+
# @!attribute [rw] parent
|
188
|
+
# @return [::String]
|
189
|
+
# Required. Resource name of the new ResourceValueConfig's parent.
|
190
|
+
# @!attribute [rw] resource_value_config
|
191
|
+
# @return [::Google::Cloud::SecurityCenter::V2::ResourceValueConfig]
|
192
|
+
# Required. The resource value config being created.
|
193
|
+
class CreateResourceValueConfigRequest
|
194
|
+
include ::Google::Protobuf::MessageExts
|
195
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
196
|
+
end
|
197
|
+
|
198
|
+
# Request message for creating a source.
|
199
|
+
# @!attribute [rw] parent
|
200
|
+
# @return [::String]
|
201
|
+
# Required. Resource name of the new source's parent. Its format should be
|
202
|
+
# "organizations/[organization_id]".
|
203
|
+
# @!attribute [rw] source
|
204
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Source]
|
205
|
+
# Required. The Source being created, only the display_name and description
|
206
|
+
# will be used. All other fields will be ignored.
|
207
|
+
class CreateSourceRequest
|
208
|
+
include ::Google::Protobuf::MessageExts
|
209
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
210
|
+
end
|
211
|
+
|
212
|
+
# Request message for deleting a BigQuery export.
|
213
|
+
# @!attribute [rw] name
|
214
|
+
# @return [::String]
|
215
|
+
# Required. The name of the BigQuery export to delete. The following list
|
216
|
+
# shows some examples of the format:
|
217
|
+
#
|
218
|
+
# +
|
219
|
+
# `organizations/{organization}/locations/{location}/bigQueryExports/{export_id}`
|
220
|
+
# + `folders/{folder}/locations/{location}/bigQueryExports/{export_id}`
|
221
|
+
# + `projects/{project}/locations/{location}/bigQueryExports/{export_id}`
|
222
|
+
class DeleteBigQueryExportRequest
|
223
|
+
include ::Google::Protobuf::MessageExts
|
224
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
225
|
+
end
|
226
|
+
|
227
|
+
# Request message for deleting a mute config. If no location is specified,
|
228
|
+
# default is global.
|
229
|
+
# @!attribute [rw] name
|
230
|
+
# @return [::String]
|
231
|
+
# Required. Name of the mute config to delete. The following list shows some
|
232
|
+
# examples of the format:
|
233
|
+
#
|
234
|
+
# + `organizations/{organization}/muteConfigs/{config_id}`
|
235
|
+
# +
|
236
|
+
# `organizations/{organization}/locations/{location}/muteConfigs/{config_id}`
|
237
|
+
# + `folders/{folder}/muteConfigs/{config_id}`
|
238
|
+
# + `folders/{folder}/locations/{location}/muteConfigs/{config_id}`
|
239
|
+
# + `projects/{project}/muteConfigs/{config_id}`
|
240
|
+
# + `projects/{project}/locations/{location}/muteConfigs/{config_id}`
|
241
|
+
class DeleteMuteConfigRequest
|
242
|
+
include ::Google::Protobuf::MessageExts
|
243
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
244
|
+
end
|
245
|
+
|
246
|
+
# Request message for deleting a notification config.
|
247
|
+
# @!attribute [rw] name
|
248
|
+
# @return [::String]
|
249
|
+
# Required. Name of the notification config to delete. The following list
|
250
|
+
# shows some examples of the format:
|
251
|
+
#
|
252
|
+
# +
|
253
|
+
# `organizations/[organization_id]/locations/[location_id]/notificationConfigs/[config_id]`
|
254
|
+
# +
|
255
|
+
# `folders/[folder_id]/locations/[location_id]notificationConfigs/[config_id]`
|
256
|
+
# +
|
257
|
+
# `projects/[project_id]/locations/[location_id]notificationConfigs/[config_id]`
|
258
|
+
class DeleteNotificationConfigRequest
|
259
|
+
include ::Google::Protobuf::MessageExts
|
260
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
261
|
+
end
|
262
|
+
|
263
|
+
# Request message to delete resource value config
|
264
|
+
# @!attribute [rw] name
|
265
|
+
# @return [::String]
|
266
|
+
# Required. Name of the ResourceValueConfig to delete
|
267
|
+
class DeleteResourceValueConfigRequest
|
268
|
+
include ::Google::Protobuf::MessageExts
|
269
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
270
|
+
end
|
271
|
+
|
272
|
+
# Request message for retrieving a BigQuery export.
|
273
|
+
# @!attribute [rw] name
|
274
|
+
# @return [::String]
|
275
|
+
# Required. Name of the BigQuery export to retrieve. The following list shows
|
276
|
+
# some examples of the format:
|
277
|
+
#
|
278
|
+
# +
|
279
|
+
# `organizations/{organization}/locations/{location}/bigQueryExports/{export_id}`
|
280
|
+
# + `folders/{folder}/locations/{location}/bigQueryExports/{export_id}`
|
281
|
+
# + `projects/{project}locations/{location}//bigQueryExports/{export_id}`
|
282
|
+
class GetBigQueryExportRequest
|
283
|
+
include ::Google::Protobuf::MessageExts
|
284
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
285
|
+
end
|
286
|
+
|
287
|
+
# Request message for retrieving a mute config. If no location is specified,
|
288
|
+
# default is global.
|
289
|
+
# @!attribute [rw] name
|
290
|
+
# @return [::String]
|
291
|
+
# Required. Name of the mute config to retrieve. The following list shows
|
292
|
+
# some examples of the format:
|
293
|
+
#
|
294
|
+
# + `organizations/{organization}/muteConfigs/{config_id}`
|
295
|
+
# +
|
296
|
+
# `organizations/{organization}/locations/{location}/muteConfigs/{config_id}`
|
297
|
+
# + `folders/{folder}/muteConfigs/{config_id}`
|
298
|
+
# + `folders/{folder}/locations/{location}/muteConfigs/{config_id}`
|
299
|
+
# + `projects/{project}/muteConfigs/{config_id}`
|
300
|
+
# + `projects/{project}/locations/{location}/muteConfigs/{config_id}`
|
301
|
+
class GetMuteConfigRequest
|
302
|
+
include ::Google::Protobuf::MessageExts
|
303
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
304
|
+
end
|
305
|
+
|
306
|
+
# Request message for getting a notification config.
|
307
|
+
# @!attribute [rw] name
|
308
|
+
# @return [::String]
|
309
|
+
# Required. Name of the notification config to get. The following list shows
|
310
|
+
# some examples of the format:
|
311
|
+
#
|
312
|
+
# +
|
313
|
+
# `organizations/[organization_id]/locations/[location_id]/notificationConfigs/[config_id]`
|
314
|
+
# +
|
315
|
+
# `folders/[folder_id]/locations/[location_id]/notificationConfigs/[config_id]`
|
316
|
+
# +
|
317
|
+
# `projects/[project_id]/locations/[location_id]/notificationConfigs/[config_id]`
|
318
|
+
class GetNotificationConfigRequest
|
319
|
+
include ::Google::Protobuf::MessageExts
|
320
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
321
|
+
end
|
322
|
+
|
323
|
+
# Request message to get resource value config
|
324
|
+
# @!attribute [rw] name
|
325
|
+
# @return [::String]
|
326
|
+
# Required. Name of the resource value config to retrieve. Its format is
|
327
|
+
# organizations/\\{organization}/resourceValueConfigs/\\{config_id}.
|
328
|
+
class GetResourceValueConfigRequest
|
329
|
+
include ::Google::Protobuf::MessageExts
|
330
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
331
|
+
end
|
332
|
+
|
333
|
+
# Request message for getting a source.
|
334
|
+
# @!attribute [rw] name
|
335
|
+
# @return [::String]
|
336
|
+
# Required. Relative resource name of the source. Its format is
|
337
|
+
# "organizations/[organization_id]/source/[source_id]".
|
338
|
+
class GetSourceRequest
|
339
|
+
include ::Google::Protobuf::MessageExts
|
340
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
341
|
+
end
|
342
|
+
|
343
|
+
# Request message for grouping by findings.
|
344
|
+
# @!attribute [rw] parent
|
345
|
+
# @return [::String]
|
346
|
+
# Required. Name of the source to groupBy. If no location is specified,
|
347
|
+
# finding is assumed to be in global.
|
348
|
+
# The following list shows some examples:
|
349
|
+
#
|
350
|
+
# + `organizations/[organization_id]/sources/[source_id]`
|
351
|
+
# +
|
352
|
+
# `organizations/[organization_id]/sources/[source_id]/locations/[location_id]`
|
353
|
+
# + `folders/[folder_id]/sources/[source_id]`
|
354
|
+
# + `folders/[folder_id]/sources/[source_id]/locations/[location_id]`
|
355
|
+
# + `projects/[project_id]/sources/[source_id]`
|
356
|
+
# + `projects/[project_id]/sources/[source_id]/locations/[location_id]`
|
357
|
+
#
|
358
|
+
# To groupBy across all sources provide a source_id of `-`. The following
|
359
|
+
# list shows some examples:
|
360
|
+
#
|
361
|
+
# + `organizations/{organization_id}/sources/-`
|
362
|
+
# + `organizations/{organization_id}/sources/-/locations/[location_id]`
|
363
|
+
# + `folders/{folder_id}/sources/-`
|
364
|
+
# + `folders/{folder_id}/sources/-/locations/[location_id]`
|
365
|
+
# + `projects/{project_id}/sources/-`
|
366
|
+
# + `projects/{project_id}/sources/-/locations/[location_id]`
|
367
|
+
# @!attribute [rw] filter
|
368
|
+
# @return [::String]
|
369
|
+
# Expression that defines the filter to apply across findings.
|
370
|
+
# The expression is a list of one or more restrictions combined via logical
|
371
|
+
# operators `AND` and `OR`.
|
372
|
+
# Parentheses are supported, and `OR` has higher precedence than `AND`.
|
373
|
+
#
|
374
|
+
# Restrictions have the form `<field> <operator> <value>` and may have a `-`
|
375
|
+
# character in front of them to indicate negation. Examples include:
|
376
|
+
#
|
377
|
+
# * name
|
378
|
+
# * security_marks.marks.marka
|
379
|
+
#
|
380
|
+
# The supported operators are:
|
381
|
+
#
|
382
|
+
# * `=` for all value types.
|
383
|
+
# * `>`, `<`, `>=`, `<=` for integer values.
|
384
|
+
# * `:`, meaning substring matching, for strings.
|
385
|
+
#
|
386
|
+
# The supported value types are:
|
387
|
+
#
|
388
|
+
# * string literals in quotes.
|
389
|
+
# * integer literals without quotes.
|
390
|
+
# * boolean literals `true` and `false` without quotes.
|
391
|
+
#
|
392
|
+
# The following field and operator combinations are supported:
|
393
|
+
#
|
394
|
+
# * name: `=`
|
395
|
+
# * parent: `=`, `:`
|
396
|
+
# * resource_name: `=`, `:`
|
397
|
+
# * state: `=`, `:`
|
398
|
+
# * category: `=`, `:`
|
399
|
+
# * external_uri: `=`, `:`
|
400
|
+
# * event_time: `=`, `>`, `<`, `>=`, `<=`
|
401
|
+
#
|
402
|
+
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
403
|
+
# Examples:
|
404
|
+
# `event_time = "2019-06-10T16:07:18-07:00"`
|
405
|
+
# `event_time = 1560208038000`
|
406
|
+
#
|
407
|
+
# * severity: `=`, `:`
|
408
|
+
# * security_marks.marks: `=`, `:`
|
409
|
+
# * resource:
|
410
|
+
# * resource.name: `=`, `:`
|
411
|
+
# * resource.parent_name: `=`, `:`
|
412
|
+
# * resource.parent_display_name: `=`, `:`
|
413
|
+
# * resource.project_name: `=`, `:`
|
414
|
+
# * resource.project_display_name: `=`, `:`
|
415
|
+
# * resource.type: `=`, `:`
|
416
|
+
# @!attribute [rw] group_by
|
417
|
+
# @return [::String]
|
418
|
+
# Required. Expression that defines what assets fields to use for grouping.
|
419
|
+
# The string value should follow SQL syntax: comma separated list of fields.
|
420
|
+
# For example: "parent,resource_name".
|
421
|
+
#
|
422
|
+
# The following fields are supported:
|
423
|
+
#
|
424
|
+
# * resource_name
|
425
|
+
# * category
|
426
|
+
# * state
|
427
|
+
# * parent
|
428
|
+
# * severity
|
429
|
+
# @!attribute [rw] page_token
|
430
|
+
# @return [::String]
|
431
|
+
# The value returned by the last `GroupFindingsResponse`; indicates
|
432
|
+
# that this is a continuation of a prior `GroupFindings` call, and
|
433
|
+
# that the system should return the next page of data.
|
434
|
+
# @!attribute [rw] page_size
|
435
|
+
# @return [::Integer]
|
436
|
+
# The maximum number of results to return in a single response. Default is
|
437
|
+
# 10, minimum is 1, maximum is 1000.
|
438
|
+
class GroupFindingsRequest
|
439
|
+
include ::Google::Protobuf::MessageExts
|
440
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
441
|
+
end
|
442
|
+
|
443
|
+
# Response message for group by findings.
|
444
|
+
# @!attribute [rw] group_by_results
|
445
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::GroupResult>]
|
446
|
+
# Group results. There exists an element for each existing unique
|
447
|
+
# combination of property/values. The element contains a count for the number
|
448
|
+
# of times those specific property/values appear.
|
449
|
+
# @!attribute [rw] next_page_token
|
450
|
+
# @return [::String]
|
451
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
452
|
+
# results.
|
453
|
+
# @!attribute [rw] total_size
|
454
|
+
# @return [::Integer]
|
455
|
+
# The total number of results matching the query.
|
456
|
+
class GroupFindingsResponse
|
457
|
+
include ::Google::Protobuf::MessageExts
|
458
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
459
|
+
end
|
460
|
+
|
461
|
+
# Result containing the properties and count of a groupBy request.
|
462
|
+
# @!attribute [rw] properties
|
463
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
|
464
|
+
# Properties matching the groupBy fields in the request.
|
465
|
+
# @!attribute [rw] count
|
466
|
+
# @return [::Integer]
|
467
|
+
# Total count of resources for the given properties.
|
468
|
+
class GroupResult
|
469
|
+
include ::Google::Protobuf::MessageExts
|
470
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
471
|
+
|
472
|
+
# @!attribute [rw] key
|
473
|
+
# @return [::String]
|
474
|
+
# @!attribute [rw] value
|
475
|
+
# @return [::Google::Protobuf::Value]
|
476
|
+
class PropertiesEntry
|
477
|
+
include ::Google::Protobuf::MessageExts
|
478
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
479
|
+
end
|
480
|
+
end
|
481
|
+
|
482
|
+
# Request message for listing the attack paths for a given simulation or valued
|
483
|
+
# resource.
|
484
|
+
# @!attribute [rw] parent
|
485
|
+
# @return [::String]
|
486
|
+
# Required. Name of parent to list attack paths.
|
487
|
+
#
|
488
|
+
# Valid formats:
|
489
|
+
# "organizations/\\{organization}",
|
490
|
+
# "organizations/\\{organization}/simulations/\\{simulation}"
|
491
|
+
# "organizations/\\{organization}/simulations/\\{simulation}/attackExposureResults/\\{attack_exposure_result_v2}"
|
492
|
+
# "organizations/\\{organization}/simulations/\\{simulation}/valuedResources/\\{valued_resource}"
|
493
|
+
# @!attribute [rw] filter
|
494
|
+
# @return [::String]
|
495
|
+
# The filter expression that filters the attack path in the response.
|
496
|
+
# Supported fields:
|
497
|
+
#
|
498
|
+
# * `valued_resources` supports =
|
499
|
+
# @!attribute [rw] page_token
|
500
|
+
# @return [::String]
|
501
|
+
# The value returned by the last `ListAttackPathsResponse`; indicates
|
502
|
+
# that this is a continuation of a prior `ListAttackPaths` call, and
|
503
|
+
# that the system should return the next page of data.
|
504
|
+
# @!attribute [rw] page_size
|
505
|
+
# @return [::Integer]
|
506
|
+
# The maximum number of results to return in a single response. Default is
|
507
|
+
# 10, minimum is 1, maximum is 1000.
|
508
|
+
class ListAttackPathsRequest
|
509
|
+
include ::Google::Protobuf::MessageExts
|
510
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
511
|
+
end
|
512
|
+
|
513
|
+
# Response message for listing the attack paths for a given simulation or
|
514
|
+
# valued resource.
|
515
|
+
# @!attribute [rw] attack_paths
|
516
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::AttackPath>]
|
517
|
+
# The attack paths that the attack path simulation identified.
|
518
|
+
# @!attribute [rw] next_page_token
|
519
|
+
# @return [::String]
|
520
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
521
|
+
# results.
|
522
|
+
class ListAttackPathsResponse
|
523
|
+
include ::Google::Protobuf::MessageExts
|
524
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
525
|
+
end
|
526
|
+
|
527
|
+
# Request message for getting simulation.
|
528
|
+
# Simulation name can include "latest" to retrieve the latest simulation
|
529
|
+
# For example, "organizations/123/simulations/latest"
|
530
|
+
# @!attribute [rw] name
|
531
|
+
# @return [::String]
|
532
|
+
# Required. The organization name or simulation name of this simulation
|
533
|
+
#
|
534
|
+
# Valid format:
|
535
|
+
# "organizations/\\{organization}/simulations/latest"
|
536
|
+
# "organizations/\\{organization}/simulations/\\{simulation}"
|
537
|
+
class GetSimulationRequest
|
538
|
+
include ::Google::Protobuf::MessageExts
|
539
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
540
|
+
end
|
541
|
+
|
542
|
+
# Request message for getting a valued resource.
|
543
|
+
# @!attribute [rw] name
|
544
|
+
# @return [::String]
|
545
|
+
# Required. The name of this valued resource
|
546
|
+
#
|
547
|
+
# Valid format:
|
548
|
+
# "organizations/\\{organization}/simulations/\\{simulation}/valuedResources/\\{valued_resource}"
|
549
|
+
class GetValuedResourceRequest
|
550
|
+
include ::Google::Protobuf::MessageExts
|
551
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
552
|
+
end
|
553
|
+
|
554
|
+
# Request message for listing BigQuery exports at a given scope e.g.
|
555
|
+
# organization, folder or project.
|
556
|
+
# @!attribute [rw] parent
|
557
|
+
# @return [::String]
|
558
|
+
# Required. The parent, which owns the collection of BigQuery exports. Its
|
559
|
+
# format is "organizations/[organization_id]/locations/[location_id]",
|
560
|
+
# "folders/[folder_id]/locations/[location_id]", or
|
561
|
+
# "projects/[project_id]/locations/[location_id]".
|
562
|
+
# @!attribute [rw] page_size
|
563
|
+
# @return [::Integer]
|
564
|
+
# The maximum number of configs to return. The service may return fewer than
|
565
|
+
# this value.
|
566
|
+
# If unspecified, at most 10 configs will be returned.
|
567
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
568
|
+
# @!attribute [rw] page_token
|
569
|
+
# @return [::String]
|
570
|
+
# A page token, received from a previous `ListBigQueryExports` call.
|
571
|
+
# Provide this to retrieve the subsequent page.
|
572
|
+
# When paginating, all other parameters provided to `ListBigQueryExports`
|
573
|
+
# must match the call that provided the page token.
|
574
|
+
class ListBigQueryExportsRequest
|
575
|
+
include ::Google::Protobuf::MessageExts
|
576
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
577
|
+
end
|
578
|
+
|
579
|
+
# Response message for listing BigQuery exports.
|
580
|
+
# @!attribute [rw] big_query_exports
|
581
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::BigQueryExport>]
|
582
|
+
# The BigQuery exports from the specified parent.
|
583
|
+
# @!attribute [rw] next_page_token
|
584
|
+
# @return [::String]
|
585
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
586
|
+
# If this field is omitted, there are no subsequent pages.
|
587
|
+
class ListBigQueryExportsResponse
|
588
|
+
include ::Google::Protobuf::MessageExts
|
589
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
590
|
+
end
|
591
|
+
|
592
|
+
# Request message for listing findings.
|
593
|
+
# @!attribute [rw] parent
|
594
|
+
# @return [::String]
|
595
|
+
# Required. Name of the source the findings belong to. If no location is
|
596
|
+
# specified, the default is global. The following list shows some examples:
|
597
|
+
#
|
598
|
+
# + `organizations/[organization_id]/sources/[source_id]`
|
599
|
+
# +
|
600
|
+
# `organizations/[organization_id]/sources/[source_id]/locations/[location_id]`
|
601
|
+
# + `folders/[folder_id]/sources/[source_id]`
|
602
|
+
# + `folders/[folder_id]/sources/[source_id]/locations/[location_id]`
|
603
|
+
# + `projects/[project_id]/sources/[source_id]`
|
604
|
+
# + `projects/[project_id]/sources/[source_id]/locations/[location_id]`
|
605
|
+
#
|
606
|
+
# To list across all sources provide a source_id of `-`. The following
|
607
|
+
# list shows some examples:
|
608
|
+
#
|
609
|
+
# + `organizations/{organization_id}/sources/-`
|
610
|
+
# + `organizations/{organization_id}/sources/-/locations/{location_id}`
|
611
|
+
# + `folders/{folder_id}/sources/-`
|
612
|
+
# + `folders/{folder_id}/sources/-locations/{location_id}`
|
613
|
+
# + `projects/{projects_id}/sources/-`
|
614
|
+
# + `projects/{projects_id}/sources/-/locations/{location_id}`
|
615
|
+
# @!attribute [rw] filter
|
616
|
+
# @return [::String]
|
617
|
+
# Expression that defines the filter to apply across findings.
|
618
|
+
# The expression is a list of one or more restrictions combined via logical
|
619
|
+
# operators `AND` and `OR`.
|
620
|
+
# Parentheses are supported, and `OR` has higher precedence than `AND`.
|
621
|
+
#
|
622
|
+
# Restrictions have the form `<field> <operator> <value>` and may have a `-`
|
623
|
+
# character in front of them to indicate negation. Examples include:
|
624
|
+
#
|
625
|
+
# * name
|
626
|
+
# * security_marks.marks.marka
|
627
|
+
#
|
628
|
+
# The supported operators are:
|
629
|
+
#
|
630
|
+
# * `=` for all value types.
|
631
|
+
# * `>`, `<`, `>=`, `<=` for integer values.
|
632
|
+
# * `:`, meaning substring matching, for strings.
|
633
|
+
#
|
634
|
+
# The supported value types are:
|
635
|
+
#
|
636
|
+
# * string literals in quotes.
|
637
|
+
# * integer literals without quotes.
|
638
|
+
# * boolean literals `true` and `false` without quotes.
|
639
|
+
#
|
640
|
+
# The following field and operator combinations are supported:
|
641
|
+
#
|
642
|
+
# * name: `=`
|
643
|
+
# * parent: `=`, `:`
|
644
|
+
# * resource_name: `=`, `:`
|
645
|
+
# * state: `=`, `:`
|
646
|
+
# * category: `=`, `:`
|
647
|
+
# * external_uri: `=`, `:`
|
648
|
+
# * event_time: `=`, `>`, `<`, `>=`, `<=`
|
649
|
+
#
|
650
|
+
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
651
|
+
# Examples:
|
652
|
+
# `event_time = "2019-06-10T16:07:18-07:00"`
|
653
|
+
# `event_time = 1560208038000`
|
654
|
+
#
|
655
|
+
# * severity: `=`, `:`
|
656
|
+
# * security_marks.marks: `=`, `:`
|
657
|
+
# * resource:
|
658
|
+
# * resource.name: `=`, `:`
|
659
|
+
# * resource.parent_name: `=`, `:`
|
660
|
+
# * resource.parent_display_name: `=`, `:`
|
661
|
+
# * resource.project_name: `=`, `:`
|
662
|
+
# * resource.project_display_name: `=`, `:`
|
663
|
+
# * resource.type: `=`, `:`
|
664
|
+
# * resource.folders.resource_folder: `=`, `:`
|
665
|
+
# * resource.display_name: `=`, `:`
|
666
|
+
# @!attribute [rw] order_by
|
667
|
+
# @return [::String]
|
668
|
+
# Expression that defines what fields and order to use for sorting. The
|
669
|
+
# string value should follow SQL syntax: comma separated list of fields. For
|
670
|
+
# example: "name,parent". The default sorting order
|
671
|
+
# is ascending. To specify descending order for a field, a suffix " desc"
|
672
|
+
# should be appended to the field name. For example: "name
|
673
|
+
# desc,parent". Redundant space characters in the
|
674
|
+
# syntax are insignificant. "name desc,parent" and "
|
675
|
+
# name desc , parent " are equivalent.
|
676
|
+
#
|
677
|
+
# The following fields are supported:
|
678
|
+
# name
|
679
|
+
# parent
|
680
|
+
# state
|
681
|
+
# category
|
682
|
+
# resource_name
|
683
|
+
# event_time
|
684
|
+
# security_marks.marks
|
685
|
+
# @!attribute [rw] field_mask
|
686
|
+
# @return [::Google::Protobuf::FieldMask]
|
687
|
+
# A field mask to specify the Finding fields to be listed in the response.
|
688
|
+
# An empty field mask will list all fields.
|
689
|
+
# @!attribute [rw] page_token
|
690
|
+
# @return [::String]
|
691
|
+
# The value returned by the last `ListFindingsResponse`; indicates
|
692
|
+
# that this is a continuation of a prior `ListFindings` call, and
|
693
|
+
# that the system should return the next page of data.
|
694
|
+
# @!attribute [rw] page_size
|
695
|
+
# @return [::Integer]
|
696
|
+
# The maximum number of results to return in a single response. Default is
|
697
|
+
# 10, minimum is 1, maximum is 1000.
|
698
|
+
class ListFindingsRequest
|
699
|
+
include ::Google::Protobuf::MessageExts
|
700
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
701
|
+
end
|
702
|
+
|
703
|
+
# Response message for listing findings.
|
704
|
+
# @!attribute [rw] list_findings_results
|
705
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::ListFindingsResponse::ListFindingsResult>]
|
706
|
+
# Findings matching the list request.
|
707
|
+
# @!attribute [rw] next_page_token
|
708
|
+
# @return [::String]
|
709
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
710
|
+
# results.
|
711
|
+
# @!attribute [rw] total_size
|
712
|
+
# @return [::Integer]
|
713
|
+
# The total number of findings matching the query.
|
714
|
+
class ListFindingsResponse
|
715
|
+
include ::Google::Protobuf::MessageExts
|
716
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
717
|
+
|
718
|
+
# Result containing the Finding.
|
719
|
+
# @!attribute [rw] finding
|
720
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Finding]
|
721
|
+
# Finding matching the search request.
|
722
|
+
# @!attribute [r] resource
|
723
|
+
# @return [::Google::Cloud::SecurityCenter::V2::ListFindingsResponse::ListFindingsResult::Resource]
|
724
|
+
# Output only. Resource that is associated with this finding.
|
725
|
+
class ListFindingsResult
|
726
|
+
include ::Google::Protobuf::MessageExts
|
727
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
728
|
+
|
729
|
+
# Information related to the Google Cloud resource that is
|
730
|
+
# associated with this finding.
|
731
|
+
# @!attribute [rw] name
|
732
|
+
# @return [::String]
|
733
|
+
# The full resource name of the resource. See:
|
734
|
+
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
735
|
+
# @!attribute [rw] display_name
|
736
|
+
# @return [::String]
|
737
|
+
# The human readable name of the resource.
|
738
|
+
# @!attribute [rw] type
|
739
|
+
# @return [::String]
|
740
|
+
# The full resource type of the resource.
|
741
|
+
class Resource
|
742
|
+
include ::Google::Protobuf::MessageExts
|
743
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
744
|
+
end
|
745
|
+
end
|
746
|
+
end
|
747
|
+
|
748
|
+
# Request message for listing mute configs at a given scope e.g. organization,
|
749
|
+
# folder or project. If no location is specified, default is
|
750
|
+
# global.
|
751
|
+
# @!attribute [rw] parent
|
752
|
+
# @return [::String]
|
753
|
+
# Required. The parent, which owns the collection of mute configs. Its format
|
754
|
+
# is "organizations/[organization_id]", "folders/[folder_id]",
|
755
|
+
# "projects/[project_id]",
|
756
|
+
# "organizations/[organization_id]/locations/[location_id]",
|
757
|
+
# "folders/[folder_id]/locations/[location_id]",
|
758
|
+
# "projects/[project_id]/locations/[location_id]".
|
759
|
+
# @!attribute [rw] page_size
|
760
|
+
# @return [::Integer]
|
761
|
+
# The maximum number of configs to return. The service may return fewer than
|
762
|
+
# this value.
|
763
|
+
# If unspecified, at most 10 configs will be returned.
|
764
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
765
|
+
# @!attribute [rw] page_token
|
766
|
+
# @return [::String]
|
767
|
+
# A page token, received from a previous `ListMuteConfigs` call.
|
768
|
+
# Provide this to retrieve the subsequent page.
|
769
|
+
#
|
770
|
+
# When paginating, all other parameters provided to `ListMuteConfigs` must
|
771
|
+
# match the call that provided the page token.
|
772
|
+
class ListMuteConfigsRequest
|
773
|
+
include ::Google::Protobuf::MessageExts
|
774
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
775
|
+
end
|
776
|
+
|
777
|
+
# Response message for listing mute configs.
|
778
|
+
# @!attribute [rw] mute_configs
|
779
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::MuteConfig>]
|
780
|
+
# The mute configs from the specified parent.
|
781
|
+
# @!attribute [rw] next_page_token
|
782
|
+
# @return [::String]
|
783
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
784
|
+
# If this field is omitted, there are no subsequent pages.
|
785
|
+
class ListMuteConfigsResponse
|
786
|
+
include ::Google::Protobuf::MessageExts
|
787
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
788
|
+
end
|
789
|
+
|
790
|
+
# Request message for listing notification configs.
|
791
|
+
# @!attribute [rw] parent
|
792
|
+
# @return [::String]
|
793
|
+
# Required. The name of the parent in which to list the notification
|
794
|
+
# configurations. Its format is
|
795
|
+
# "organizations/[organization_id]/locations/[location_id]",
|
796
|
+
# "folders/[folder_id]/locations/[location_id]", or
|
797
|
+
# "projects/[project_id]/locations/[location_id]".
|
798
|
+
# @!attribute [rw] page_token
|
799
|
+
# @return [::String]
|
800
|
+
# The value returned by the last `ListNotificationConfigsResponse`; indicates
|
801
|
+
# that this is a continuation of a prior `ListNotificationConfigs` call, and
|
802
|
+
# that the system should return the next page of data.
|
803
|
+
# @!attribute [rw] page_size
|
804
|
+
# @return [::Integer]
|
805
|
+
# The maximum number of results to return in a single response. Default is
|
806
|
+
# 10, minimum is 1, maximum is 1000.
|
807
|
+
class ListNotificationConfigsRequest
|
808
|
+
include ::Google::Protobuf::MessageExts
|
809
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
810
|
+
end
|
811
|
+
|
812
|
+
# Response message for listing notification configs.
|
813
|
+
# @!attribute [rw] notification_configs
|
814
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::NotificationConfig>]
|
815
|
+
# Notification configs belonging to the requested parent.
|
816
|
+
# @!attribute [rw] next_page_token
|
817
|
+
# @return [::String]
|
818
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
819
|
+
# results.
|
820
|
+
class ListNotificationConfigsResponse
|
821
|
+
include ::Google::Protobuf::MessageExts
|
822
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
823
|
+
end
|
824
|
+
|
825
|
+
# Request message to list resource value configs of a parent
|
826
|
+
# @!attribute [rw] parent
|
827
|
+
# @return [::String]
|
828
|
+
# Required. The parent, which owns the collection of resource value configs.
|
829
|
+
# Its format is
|
830
|
+
# "organizations/[organization_id]"
|
831
|
+
# @!attribute [rw] page_size
|
832
|
+
# @return [::Integer]
|
833
|
+
# The maximum number of configs to return. The service may return fewer than
|
834
|
+
# this value.
|
835
|
+
# If unspecified, at most 10 configs will be returned.
|
836
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
837
|
+
# @!attribute [rw] page_token
|
838
|
+
# @return [::String]
|
839
|
+
# A page token, received from a previous `ListResourceValueConfigs` call.
|
840
|
+
# Provide this to retrieve the subsequent page.
|
841
|
+
#
|
842
|
+
# When paginating, all other parameters provided to
|
843
|
+
# `ListResourceValueConfigs` must match the call that provided the
|
844
|
+
# page token.
|
845
|
+
#
|
846
|
+
# page_size can be specified, and the new page_size will be used.
|
847
|
+
class ListResourceValueConfigsRequest
|
848
|
+
include ::Google::Protobuf::MessageExts
|
849
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
850
|
+
end
|
851
|
+
|
852
|
+
# Response message to list resource value configs
|
853
|
+
# @!attribute [rw] resource_value_configs
|
854
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::ResourceValueConfig>]
|
855
|
+
# The resource value configs from the specified parent.
|
856
|
+
# @!attribute [rw] next_page_token
|
857
|
+
# @return [::String]
|
858
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
859
|
+
# If this field is empty, there are no subsequent pages.
|
860
|
+
class ListResourceValueConfigsResponse
|
861
|
+
include ::Google::Protobuf::MessageExts
|
862
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
863
|
+
end
|
864
|
+
|
865
|
+
# Request message for listing sources.
|
866
|
+
# @!attribute [rw] parent
|
867
|
+
# @return [::String]
|
868
|
+
# Required. Resource name of the parent of sources to list. Its format should
|
869
|
+
# be "organizations/[organization_id]", "folders/[folder_id]", or
|
870
|
+
# "projects/[project_id]".
|
871
|
+
# @!attribute [rw] page_token
|
872
|
+
# @return [::String]
|
873
|
+
# The value returned by the last `ListSourcesResponse`; indicates
|
874
|
+
# that this is a continuation of a prior `ListSources` call, and
|
875
|
+
# that the system should return the next page of data.
|
876
|
+
# @!attribute [rw] page_size
|
877
|
+
# @return [::Integer]
|
878
|
+
# The maximum number of results to return in a single response. Default is
|
879
|
+
# 10, minimum is 1, maximum is 1000.
|
880
|
+
class ListSourcesRequest
|
881
|
+
include ::Google::Protobuf::MessageExts
|
882
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
883
|
+
end
|
884
|
+
|
885
|
+
# Response message for listing sources.
|
886
|
+
# @!attribute [rw] sources
|
887
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::Source>]
|
888
|
+
# Sources belonging to the requested parent.
|
889
|
+
# @!attribute [rw] next_page_token
|
890
|
+
# @return [::String]
|
891
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
892
|
+
# results.
|
893
|
+
class ListSourcesResponse
|
894
|
+
include ::Google::Protobuf::MessageExts
|
895
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
896
|
+
end
|
897
|
+
|
898
|
+
# Request message for listing the valued resources for a given simulation.
|
899
|
+
# @!attribute [rw] parent
|
900
|
+
# @return [::String]
|
901
|
+
# Required. Name of parent to list exposed resources.
|
902
|
+
#
|
903
|
+
# Valid formats:
|
904
|
+
# "organizations/\\{organization}",
|
905
|
+
# "organizations/\\{organization}/simulations/\\{simulation}"
|
906
|
+
# "organizations/\\{organization}/simulations/\\{simulation}/attackExposureResults/\\{attack_exposure_result_v2}"
|
907
|
+
# @!attribute [rw] filter
|
908
|
+
# @return [::String]
|
909
|
+
# The filter expression that filters the valued resources in the response.
|
910
|
+
# Supported fields:
|
911
|
+
#
|
912
|
+
# * `resource_value` supports =
|
913
|
+
# * `resource_type` supports =
|
914
|
+
# @!attribute [rw] page_token
|
915
|
+
# @return [::String]
|
916
|
+
# The value returned by the last `ListValuedResourcesResponse`; indicates
|
917
|
+
# that this is a continuation of a prior `ListValuedResources` call, and
|
918
|
+
# that the system should return the next page of data.
|
919
|
+
# @!attribute [rw] page_size
|
920
|
+
# @return [::Integer]
|
921
|
+
# The maximum number of results to return in a single response. Default is
|
922
|
+
# 10, minimum is 1, maximum is 1000.
|
923
|
+
# @!attribute [rw] order_by
|
924
|
+
# @return [::String]
|
925
|
+
# Optional. The fields by which to order the valued resources response.
|
926
|
+
#
|
927
|
+
# Supported fields:
|
928
|
+
#
|
929
|
+
# * `exposed_score`
|
930
|
+
#
|
931
|
+
# * `resource_value`
|
932
|
+
#
|
933
|
+
# * `resource_type`
|
934
|
+
#
|
935
|
+
# Values should be a comma separated list of fields. For example:
|
936
|
+
# `exposed_score,resource_value`.
|
937
|
+
#
|
938
|
+
# The default sorting order is descending. To specify ascending or descending
|
939
|
+
# order for a field, append a " ASC" or a " DESC" suffix, respectively; for
|
940
|
+
# example: `exposed_score DESC`.
|
941
|
+
class ListValuedResourcesRequest
|
942
|
+
include ::Google::Protobuf::MessageExts
|
943
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
944
|
+
end
|
945
|
+
|
946
|
+
# Response message for listing the valued resources for a given simulation.
|
947
|
+
# @!attribute [rw] valued_resources
|
948
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::ValuedResource>]
|
949
|
+
# The valued resources that the attack path simulation identified.
|
950
|
+
# @!attribute [rw] next_page_token
|
951
|
+
# @return [::String]
|
952
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
953
|
+
# results.
|
954
|
+
# @!attribute [rw] total_size
|
955
|
+
# @return [::Integer]
|
956
|
+
# The estimated total number of results matching the query.
|
957
|
+
class ListValuedResourcesResponse
|
958
|
+
include ::Google::Protobuf::MessageExts
|
959
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
960
|
+
end
|
961
|
+
|
962
|
+
# Request message for updating a finding's state.
|
963
|
+
# @!attribute [rw] name
|
964
|
+
# @return [::String]
|
965
|
+
# Required. The [relative resource
|
966
|
+
# name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
|
967
|
+
# of the finding. If no location is specified, finding is assumed to be in
|
968
|
+
# global. The following list shows some examples:
|
969
|
+
#
|
970
|
+
# +
|
971
|
+
# `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`
|
972
|
+
# +
|
973
|
+
# `organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
|
974
|
+
# + `folders/{folder_id}/sources/{source_id}/findings/{finding_id}`
|
975
|
+
# +
|
976
|
+
# `folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
|
977
|
+
# + `projects/{project_id}/sources/{source_id}/findings/{finding_id}`
|
978
|
+
# +
|
979
|
+
# `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
|
980
|
+
# @!attribute [rw] state
|
981
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Finding::State]
|
982
|
+
# Required. The desired State of the finding.
|
983
|
+
class SetFindingStateRequest
|
984
|
+
include ::Google::Protobuf::MessageExts
|
985
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
986
|
+
end
|
987
|
+
|
988
|
+
# Request message for updating a finding's mute status.
|
989
|
+
# @!attribute [rw] name
|
990
|
+
# @return [::String]
|
991
|
+
# Required. The [relative resource
|
992
|
+
# name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
|
993
|
+
# of the finding. If no location is specified, finding is assumed to be in
|
994
|
+
# global. The following list shows some examples:
|
995
|
+
#
|
996
|
+
# +
|
997
|
+
# `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`
|
998
|
+
# +
|
999
|
+
# `organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
|
1000
|
+
# + `folders/{folder_id}/sources/{source_id}/findings/{finding_id}`
|
1001
|
+
# +
|
1002
|
+
# `folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
|
1003
|
+
# + `projects/{project_id}/sources/{source_id}/findings/{finding_id}`
|
1004
|
+
# +
|
1005
|
+
# `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
|
1006
|
+
# @!attribute [rw] mute
|
1007
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Finding::Mute]
|
1008
|
+
# Required. The desired state of the Mute.
|
1009
|
+
class SetMuteRequest
|
1010
|
+
include ::Google::Protobuf::MessageExts
|
1011
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
# Request message for updating a BigQuery export.
|
1015
|
+
# @!attribute [rw] big_query_export
|
1016
|
+
# @return [::Google::Cloud::SecurityCenter::V2::BigQueryExport]
|
1017
|
+
# Required. The BigQuery export being updated.
|
1018
|
+
# @!attribute [rw] update_mask
|
1019
|
+
# @return [::Google::Protobuf::FieldMask]
|
1020
|
+
# The list of fields to be updated.
|
1021
|
+
# If empty all mutable fields will be updated.
|
1022
|
+
class UpdateBigQueryExportRequest
|
1023
|
+
include ::Google::Protobuf::MessageExts
|
1024
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
# Request message for updating a ExternalSystem resource.
|
1028
|
+
# @!attribute [rw] external_system
|
1029
|
+
# @return [::Google::Cloud::SecurityCenter::V2::ExternalSystem]
|
1030
|
+
# Required. The external system resource to update.
|
1031
|
+
# @!attribute [rw] update_mask
|
1032
|
+
# @return [::Google::Protobuf::FieldMask]
|
1033
|
+
# The FieldMask to use when updating the external system resource.
|
1034
|
+
#
|
1035
|
+
# If empty all mutable fields will be updated.
|
1036
|
+
class UpdateExternalSystemRequest
|
1037
|
+
include ::Google::Protobuf::MessageExts
|
1038
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1039
|
+
end
|
1040
|
+
|
1041
|
+
# Request message for updating or creating a finding.
|
1042
|
+
# @!attribute [rw] finding
|
1043
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Finding]
|
1044
|
+
# Required. The finding resource to update or create if it does not already
|
1045
|
+
# exist. parent, security_marks, and update_time will be ignored.
|
1046
|
+
#
|
1047
|
+
# In the case of creation, the finding id portion of the name must be
|
1048
|
+
# alphanumeric and less than or equal to 32 characters and greater than 0
|
1049
|
+
# characters in length.
|
1050
|
+
# @!attribute [rw] update_mask
|
1051
|
+
# @return [::Google::Protobuf::FieldMask]
|
1052
|
+
# The FieldMask to use when updating the finding resource. This field should
|
1053
|
+
# not be specified when creating a finding.
|
1054
|
+
#
|
1055
|
+
# When updating a finding, an empty mask is treated as updating all mutable
|
1056
|
+
# fields and replacing source_properties. Individual source_properties can
|
1057
|
+
# be added/updated by using "source_properties.<property key>" in the field
|
1058
|
+
# mask.
|
1059
|
+
class UpdateFindingRequest
|
1060
|
+
include ::Google::Protobuf::MessageExts
|
1061
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
# Request message for updating a mute config.
|
1065
|
+
# @!attribute [rw] mute_config
|
1066
|
+
# @return [::Google::Cloud::SecurityCenter::V2::MuteConfig]
|
1067
|
+
# Required. The mute config being updated.
|
1068
|
+
# @!attribute [rw] update_mask
|
1069
|
+
# @return [::Google::Protobuf::FieldMask]
|
1070
|
+
# The list of fields to be updated.
|
1071
|
+
# If empty all mutable fields will be updated.
|
1072
|
+
class UpdateMuteConfigRequest
|
1073
|
+
include ::Google::Protobuf::MessageExts
|
1074
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
# Request message for updating a notification config.
|
1078
|
+
# @!attribute [rw] notification_config
|
1079
|
+
# @return [::Google::Cloud::SecurityCenter::V2::NotificationConfig]
|
1080
|
+
# Required. The notification config to update.
|
1081
|
+
# @!attribute [rw] update_mask
|
1082
|
+
# @return [::Google::Protobuf::FieldMask]
|
1083
|
+
# The FieldMask to use when updating the notification config.
|
1084
|
+
#
|
1085
|
+
# If empty all mutable fields will be updated.
|
1086
|
+
class UpdateNotificationConfigRequest
|
1087
|
+
include ::Google::Protobuf::MessageExts
|
1088
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1089
|
+
end
|
1090
|
+
|
1091
|
+
# Request message to update resource value config
|
1092
|
+
# @!attribute [rw] resource_value_config
|
1093
|
+
# @return [::Google::Cloud::SecurityCenter::V2::ResourceValueConfig]
|
1094
|
+
# Required. The resource value config being updated.
|
1095
|
+
# @!attribute [rw] update_mask
|
1096
|
+
# @return [::Google::Protobuf::FieldMask]
|
1097
|
+
# The list of fields to be updated.
|
1098
|
+
# If empty all mutable fields will be updated.
|
1099
|
+
class UpdateResourceValueConfigRequest
|
1100
|
+
include ::Google::Protobuf::MessageExts
|
1101
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1102
|
+
end
|
1103
|
+
|
1104
|
+
# Request message for updating a SecurityMarks resource.
|
1105
|
+
# @!attribute [rw] security_marks
|
1106
|
+
# @return [::Google::Cloud::SecurityCenter::V2::SecurityMarks]
|
1107
|
+
# Required. The security marks resource to update.
|
1108
|
+
# @!attribute [rw] update_mask
|
1109
|
+
# @return [::Google::Protobuf::FieldMask]
|
1110
|
+
# The FieldMask to use when updating the security marks resource.
|
1111
|
+
#
|
1112
|
+
# The field mask must not contain duplicate fields.
|
1113
|
+
# If empty or set to "marks", all marks will be replaced. Individual
|
1114
|
+
# marks can be updated using "marks.<mark_key>".
|
1115
|
+
class UpdateSecurityMarksRequest
|
1116
|
+
include ::Google::Protobuf::MessageExts
|
1117
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
# Request message for updating a source.
|
1121
|
+
# @!attribute [rw] source
|
1122
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Source]
|
1123
|
+
# Required. The source resource to update.
|
1124
|
+
# @!attribute [rw] update_mask
|
1125
|
+
# @return [::Google::Protobuf::FieldMask]
|
1126
|
+
# The FieldMask to use when updating the source resource.
|
1127
|
+
#
|
1128
|
+
# If empty all mutable fields will be updated.
|
1129
|
+
class UpdateSourceRequest
|
1130
|
+
include ::Google::Protobuf::MessageExts
|
1131
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1132
|
+
end
|
1133
|
+
end
|
1134
|
+
end
|
1135
|
+
end
|
1136
|
+
end
|