google-cloud-security_center-v1 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/security_center/v1/security_center/client.rb +849 -28
- data/lib/google/cloud/security_center/v1/security_center/paths.rb +116 -0
- data/lib/google/cloud/security_center/v1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/external_system_pb.rb +29 -0
- data/lib/google/cloud/securitycenter/v1/finding_pb.rb +12 -0
- data/lib/google/cloud/securitycenter/v1/mute_config_pb.rb +32 -0
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +51 -0
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_services_pb.rb +18 -0
- data/proto_docs/google/cloud/securitycenter/v1/external_system.rb +52 -0
- data/proto_docs/google/cloud/securitycenter/v1/finding.rb +40 -0
- data/proto_docs/google/cloud/securitycenter/v1/mute_config.rb +82 -0
- data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +174 -0
- metadata +6 -2
@@ -21,6 +21,54 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module SecurityCenter
|
23
23
|
module V1
|
24
|
+
# Request message for bulk findings update.
|
25
|
+
#
|
26
|
+
# Note:
|
27
|
+
# 1. If multiple bulk update requests match the same resource, the order in
|
28
|
+
# which they get executed is not defined.
|
29
|
+
# 2. Once a bulk operation is started, there is no way to stop it.
|
30
|
+
# @!attribute [rw] parent
|
31
|
+
# @return [::String]
|
32
|
+
# Required. The parent, at which bulk action needs to be applied. Its format is
|
33
|
+
# "organizations/[organization_id]", "folders/[folder_id]",
|
34
|
+
# "projects/[project_id]".
|
35
|
+
# @!attribute [rw] filter
|
36
|
+
# @return [::String]
|
37
|
+
# Expression that identifies findings that should be updated.
|
38
|
+
# The expression is a list of zero or more restrictions combined
|
39
|
+
# via logical operators `AND` and `OR`. Parentheses are supported, and `OR`
|
40
|
+
# has higher precedence than `AND`.
|
41
|
+
#
|
42
|
+
# Restrictions have the form `<field> <operator> <value>` and may have a
|
43
|
+
# `-` character in front of them to indicate negation. The fields map to
|
44
|
+
# those defined in the corresponding resource.
|
45
|
+
#
|
46
|
+
# The supported operators are:
|
47
|
+
#
|
48
|
+
# * `=` for all value types.
|
49
|
+
# * `>`, `<`, `>=`, `<=` for integer values.
|
50
|
+
# * `:`, meaning substring matching, for strings.
|
51
|
+
#
|
52
|
+
# The supported value types are:
|
53
|
+
#
|
54
|
+
# * string literals in quotes.
|
55
|
+
# * integer literals without quotes.
|
56
|
+
# * boolean literals `true` and `false` without quotes.
|
57
|
+
# @!attribute [rw] mute_annotation
|
58
|
+
# @return [::String]
|
59
|
+
# This can be a mute configuration name or any identifier for mute/unmute
|
60
|
+
# of findings based on the filter.
|
61
|
+
class BulkMuteFindingsRequest
|
62
|
+
include ::Google::Protobuf::MessageExts
|
63
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
64
|
+
end
|
65
|
+
|
66
|
+
# The response to a BulkMute request. Contains the LRO information.
|
67
|
+
class BulkMuteFindingsResponse
|
68
|
+
include ::Google::Protobuf::MessageExts
|
69
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
70
|
+
end
|
71
|
+
|
24
72
|
# Request message for creating a finding.
|
25
73
|
# @!attribute [rw] parent
|
26
74
|
# @return [::String]
|
@@ -40,6 +88,26 @@ module Google
|
|
40
88
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
41
89
|
end
|
42
90
|
|
91
|
+
# Request message for creating a mute config.
|
92
|
+
# @!attribute [rw] parent
|
93
|
+
# @return [::String]
|
94
|
+
# Required. Resource name of the new mute configs's parent. Its format is
|
95
|
+
# "organizations/[organization_id]", "folders/[folder_id]", or
|
96
|
+
# "projects/[project_id]".
|
97
|
+
# @!attribute [rw] mute_config
|
98
|
+
# @return [::Google::Cloud::SecurityCenter::V1::MuteConfig]
|
99
|
+
# Required. The mute config being created.
|
100
|
+
# @!attribute [rw] mute_config_id
|
101
|
+
# @return [::String]
|
102
|
+
# Required. Unique identifier provided by the client within the parent scope.
|
103
|
+
# It must consist of lower case letters, numbers, and hyphen, with the first
|
104
|
+
# character a letter, the last a letter or a number, and a 63 character
|
105
|
+
# maximum.
|
106
|
+
class CreateMuteConfigRequest
|
107
|
+
include ::Google::Protobuf::MessageExts
|
108
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
109
|
+
end
|
110
|
+
|
43
111
|
# Request message for creating a notification config.
|
44
112
|
# @!attribute [rw] parent
|
45
113
|
# @return [::String]
|
@@ -74,6 +142,18 @@ module Google
|
|
74
142
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
75
143
|
end
|
76
144
|
|
145
|
+
# Request message for deleting a mute config.
|
146
|
+
# @!attribute [rw] name
|
147
|
+
# @return [::String]
|
148
|
+
# Required. Name of the mute config to delete. Its format is
|
149
|
+
# organizations/\\{organization}/muteConfigs/\\{config_id},
|
150
|
+
# folders/\\{folder}/muteConfigs/\\{config_id}, or
|
151
|
+
# projects/\\{project}/muteConfigs/\\{config_id}
|
152
|
+
class DeleteMuteConfigRequest
|
153
|
+
include ::Google::Protobuf::MessageExts
|
154
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
155
|
+
end
|
156
|
+
|
77
157
|
# Request message for deleting a notification config.
|
78
158
|
# @!attribute [rw] name
|
79
159
|
# @return [::String]
|
@@ -84,6 +164,18 @@ module Google
|
|
84
164
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
85
165
|
end
|
86
166
|
|
167
|
+
# Request message for retrieving a mute config.
|
168
|
+
# @!attribute [rw] name
|
169
|
+
# @return [::String]
|
170
|
+
# Required. Name of the mute config to retrieve. Its format is
|
171
|
+
# organizations/\\{organization}/muteConfigs/\\{config_id},
|
172
|
+
# folders/\\{folder}/muteConfigs/\\{config_id}, or
|
173
|
+
# projects/\\{project}/muteConfigs/\\{config_id}
|
174
|
+
class GetMuteConfigRequest
|
175
|
+
include ::Google::Protobuf::MessageExts
|
176
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
177
|
+
end
|
178
|
+
|
87
179
|
# Request message for getting a notification config.
|
88
180
|
# @!attribute [rw] name
|
89
181
|
# @return [::String]
|
@@ -458,6 +550,44 @@ module Google
|
|
458
550
|
end
|
459
551
|
end
|
460
552
|
|
553
|
+
# Request message for listing mute configs at a given scope e.g. organization,
|
554
|
+
# folder or project.
|
555
|
+
# @!attribute [rw] parent
|
556
|
+
# @return [::String]
|
557
|
+
# Required. The parent, which owns the collection of mute configs. Its format is
|
558
|
+
# "organizations/[organization_id]", "folders/[folder_id]",
|
559
|
+
# "projects/[project_id]".
|
560
|
+
# @!attribute [rw] page_size
|
561
|
+
# @return [::Integer]
|
562
|
+
# The maximum number of configs to return. The service may return fewer than
|
563
|
+
# this value.
|
564
|
+
# If unspecified, at most 10 configs will be returned.
|
565
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
566
|
+
# @!attribute [rw] page_token
|
567
|
+
# @return [::String]
|
568
|
+
# A page token, received from a previous `ListMuteConfigs` call.
|
569
|
+
# Provide this to retrieve the subsequent page.
|
570
|
+
#
|
571
|
+
# When paginating, all other parameters provided to `ListMuteConfigs` must
|
572
|
+
# match the call that provided the page token.
|
573
|
+
class ListMuteConfigsRequest
|
574
|
+
include ::Google::Protobuf::MessageExts
|
575
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
576
|
+
end
|
577
|
+
|
578
|
+
# Response message for listing mute configs.
|
579
|
+
# @!attribute [rw] mute_configs
|
580
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V1::MuteConfig>]
|
581
|
+
# The mute configs from the specified parent.
|
582
|
+
# @!attribute [rw] next_page_token
|
583
|
+
# @return [::String]
|
584
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
585
|
+
# If this field is omitted, there are no subsequent pages.
|
586
|
+
class ListMuteConfigsResponse
|
587
|
+
include ::Google::Protobuf::MessageExts
|
588
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
589
|
+
end
|
590
|
+
|
461
591
|
# Request message for listing notification configs.
|
462
592
|
# @!attribute [rw] parent
|
463
593
|
# @return [::String]
|
@@ -981,6 +1111,23 @@ module Google
|
|
981
1111
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
982
1112
|
end
|
983
1113
|
|
1114
|
+
# Request message for updating a finding's mute status.
|
1115
|
+
# @!attribute [rw] name
|
1116
|
+
# @return [::String]
|
1117
|
+
# Required. The relative resource name of the finding. See:
|
1118
|
+
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
1119
|
+
# Example:
|
1120
|
+
# "organizations/\\{organization_id}/sources/\\{source_id}/finding/\\{finding_id}",
|
1121
|
+
# "folders/\\{folder_id}/sources/\\{source_id}/finding/\\{finding_id}",
|
1122
|
+
# "projects/\\{project_id}/sources/\\{source_id}/finding/\\{finding_id}".
|
1123
|
+
# @!attribute [rw] mute
|
1124
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Finding::Mute]
|
1125
|
+
# Required. The desired state of the Mute.
|
1126
|
+
class SetMuteRequest
|
1127
|
+
include ::Google::Protobuf::MessageExts
|
1128
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1129
|
+
end
|
1130
|
+
|
984
1131
|
# Request message for running asset discovery for an organization.
|
985
1132
|
# @!attribute [rw] parent
|
986
1133
|
# @return [::String]
|
@@ -991,6 +1138,20 @@ module Google
|
|
991
1138
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
992
1139
|
end
|
993
1140
|
|
1141
|
+
# Request message for updating a ExternalSystem resource.
|
1142
|
+
# @!attribute [rw] external_system
|
1143
|
+
# @return [::Google::Cloud::SecurityCenter::V1::ExternalSystem]
|
1144
|
+
# Required. The external system resource to update.
|
1145
|
+
# @!attribute [rw] update_mask
|
1146
|
+
# @return [::Google::Protobuf::FieldMask]
|
1147
|
+
# The FieldMask to use when updating the external system resource.
|
1148
|
+
#
|
1149
|
+
# If empty all mutable fields will be updated.
|
1150
|
+
class UpdateExternalSystemRequest
|
1151
|
+
include ::Google::Protobuf::MessageExts
|
1152
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1153
|
+
end
|
1154
|
+
|
994
1155
|
# Request message for updating or creating a finding.
|
995
1156
|
# @!attribute [rw] finding
|
996
1157
|
# @return [::Google::Cloud::SecurityCenter::V1::Finding]
|
@@ -1014,6 +1175,19 @@ module Google
|
|
1014
1175
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1015
1176
|
end
|
1016
1177
|
|
1178
|
+
# Request message for updating a mute config.
|
1179
|
+
# @!attribute [rw] mute_config
|
1180
|
+
# @return [::Google::Cloud::SecurityCenter::V1::MuteConfig]
|
1181
|
+
# Required. The mute config being updated.
|
1182
|
+
# @!attribute [rw] update_mask
|
1183
|
+
# @return [::Google::Protobuf::FieldMask]
|
1184
|
+
# The list of fields to be updated.
|
1185
|
+
# If empty all mutable fields will be updated.
|
1186
|
+
class UpdateMuteConfigRequest
|
1187
|
+
include ::Google::Protobuf::MessageExts
|
1188
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1189
|
+
end
|
1190
|
+
|
1017
1191
|
# Request message for updating a notification config.
|
1018
1192
|
# @!attribute [rw] notification_config
|
1019
1193
|
# @return [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-security_center-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -198,9 +198,11 @@ files:
|
|
198
198
|
- lib/google/cloud/security_center/v1/security_center/paths.rb
|
199
199
|
- lib/google/cloud/security_center/v1/version.rb
|
200
200
|
- lib/google/cloud/securitycenter/v1/asset_pb.rb
|
201
|
+
- lib/google/cloud/securitycenter/v1/external_system_pb.rb
|
201
202
|
- lib/google/cloud/securitycenter/v1/finding_pb.rb
|
202
203
|
- lib/google/cloud/securitycenter/v1/folder_pb.rb
|
203
204
|
- lib/google/cloud/securitycenter/v1/indicator_pb.rb
|
205
|
+
- lib/google/cloud/securitycenter/v1/mute_config_pb.rb
|
204
206
|
- lib/google/cloud/securitycenter/v1/notification_config_pb.rb
|
205
207
|
- lib/google/cloud/securitycenter/v1/notification_message_pb.rb
|
206
208
|
- lib/google/cloud/securitycenter/v1/organization_settings_pb.rb
|
@@ -215,9 +217,11 @@ files:
|
|
215
217
|
- proto_docs/google/api/field_behavior.rb
|
216
218
|
- proto_docs/google/api/resource.rb
|
217
219
|
- proto_docs/google/cloud/securitycenter/v1/asset.rb
|
220
|
+
- proto_docs/google/cloud/securitycenter/v1/external_system.rb
|
218
221
|
- proto_docs/google/cloud/securitycenter/v1/finding.rb
|
219
222
|
- proto_docs/google/cloud/securitycenter/v1/folder.rb
|
220
223
|
- proto_docs/google/cloud/securitycenter/v1/indicator.rb
|
224
|
+
- proto_docs/google/cloud/securitycenter/v1/mute_config.rb
|
221
225
|
- proto_docs/google/cloud/securitycenter/v1/notification_config.rb
|
222
226
|
- proto_docs/google/cloud/securitycenter/v1/notification_message.rb
|
223
227
|
- proto_docs/google/cloud/securitycenter/v1/organization_settings.rb
|