google-apis-securitycenter_v1beta2 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-securitycenter_v1beta2.rb +15 -0
- data/lib/google/apis/securitycenter_v1beta2.rb +37 -0
- data/lib/google/apis/securitycenter_v1beta2/classes.rb +918 -0
- data/lib/google/apis/securitycenter_v1beta2/gem_version.rb +28 -0
- data/lib/google/apis/securitycenter_v1beta2/representations.rb +374 -0
- data/lib/google/apis/securitycenter_v1beta2/service.rb +1496 -0
- metadata +76 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Apis
|
17
|
+
module SecuritycenterV1beta2
|
18
|
+
# Version of the google-apis-securitycenter_v1beta2 gem
|
19
|
+
GEM_VERSION = "0.1.0"
|
20
|
+
|
21
|
+
# Version of the code generator used to generate this client
|
22
|
+
GENERATOR_VERSION = "0.1.1"
|
23
|
+
|
24
|
+
# Revision of the discovery document this client was generated from
|
25
|
+
REVISION = "20201231"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,374 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module SecuritycenterV1beta2
|
24
|
+
|
25
|
+
class Config
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class ContainerThreatDetectionSettings
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class Details
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class EventThreatDetectionSettings
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class Finding
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class Folder
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class GoogleCloudSecuritycenterV1NotificationMessage
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class GoogleCloudSecuritycenterV1Resource
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class GoogleCloudSecuritycenterV1p1beta1Finding
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class GoogleCloudSecuritycenterV1p1beta1Folder
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class GoogleCloudSecuritycenterV1p1beta1Resource
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class SecurityCenterSettings
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class SecurityHealthAnalyticsSettings
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class SecurityMarks
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class Subscription
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class WebSecurityScannerSettings
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class Config
|
152
|
+
# @private
|
153
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
154
|
+
property :module_enablement_state, as: 'moduleEnablementState'
|
155
|
+
hash :value, as: 'value'
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
class ContainerThreatDetectionSettings
|
160
|
+
# @private
|
161
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
162
|
+
hash :modules, as: 'modules', class: Google::Apis::SecuritycenterV1beta2::Config, decorator: Google::Apis::SecuritycenterV1beta2::Config::Representation
|
163
|
+
|
164
|
+
property :name, as: 'name'
|
165
|
+
property :service_account, as: 'serviceAccount'
|
166
|
+
property :service_enablement_state, as: 'serviceEnablementState'
|
167
|
+
property :update_time, as: 'updateTime'
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
class Details
|
172
|
+
# @private
|
173
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
174
|
+
property :end_time, as: 'endTime'
|
175
|
+
property :start_time, as: 'startTime'
|
176
|
+
property :type, as: 'type'
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
class EventThreatDetectionSettings
|
181
|
+
# @private
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
183
|
+
hash :modules, as: 'modules', class: Google::Apis::SecuritycenterV1beta2::Config, decorator: Google::Apis::SecuritycenterV1beta2::Config::Representation
|
184
|
+
|
185
|
+
property :name, as: 'name'
|
186
|
+
property :service_enablement_state, as: 'serviceEnablementState'
|
187
|
+
property :update_time, as: 'updateTime'
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
191
|
+
class Finding
|
192
|
+
# @private
|
193
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
194
|
+
property :category, as: 'category'
|
195
|
+
property :create_time, as: 'createTime'
|
196
|
+
property :event_time, as: 'eventTime'
|
197
|
+
property :external_uri, as: 'externalUri'
|
198
|
+
property :name, as: 'name'
|
199
|
+
property :parent, as: 'parent'
|
200
|
+
property :resource_name, as: 'resourceName'
|
201
|
+
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta2::SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta2::SecurityMarks::Representation
|
202
|
+
|
203
|
+
property :severity, as: 'severity'
|
204
|
+
hash :source_properties, as: 'sourceProperties'
|
205
|
+
property :state, as: 'state'
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
class Folder
|
210
|
+
# @private
|
211
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
212
|
+
property :resource_folder, as: 'resourceFolder'
|
213
|
+
property :resource_folder_display_name, as: 'resourceFolderDisplayName'
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
class GoogleCloudSecuritycenterV1NotificationMessage
|
218
|
+
# @private
|
219
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
220
|
+
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1beta2::Finding, decorator: Google::Apis::SecuritycenterV1beta2::Finding::Representation
|
221
|
+
|
222
|
+
property :notification_config_name, as: 'notificationConfigName'
|
223
|
+
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1Resource, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1Resource::Representation
|
224
|
+
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
class GoogleCloudSecuritycenterV1Resource
|
229
|
+
# @private
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
231
|
+
collection :folders, as: 'folders', class: Google::Apis::SecuritycenterV1beta2::Folder, decorator: Google::Apis::SecuritycenterV1beta2::Folder::Representation
|
232
|
+
|
233
|
+
property :name, as: 'name'
|
234
|
+
property :parent, as: 'parent'
|
235
|
+
property :parent_display_name, as: 'parentDisplayName'
|
236
|
+
property :project, as: 'project'
|
237
|
+
property :project_display_name, as: 'projectDisplayName'
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
242
|
+
# @private
|
243
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
244
|
+
property :duration, as: 'duration'
|
245
|
+
property :state, as: 'state'
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
|
250
|
+
# @private
|
251
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
252
|
+
property :duration, as: 'duration'
|
253
|
+
property :state, as: 'state'
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
class GoogleCloudSecuritycenterV1p1beta1Finding
|
258
|
+
# @private
|
259
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
260
|
+
property :category, as: 'category'
|
261
|
+
property :create_time, as: 'createTime'
|
262
|
+
property :event_time, as: 'eventTime'
|
263
|
+
property :external_uri, as: 'externalUri'
|
264
|
+
property :name, as: 'name'
|
265
|
+
property :parent, as: 'parent'
|
266
|
+
property :resource_name, as: 'resourceName'
|
267
|
+
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
|
268
|
+
|
269
|
+
property :severity, as: 'severity'
|
270
|
+
hash :source_properties, as: 'sourceProperties'
|
271
|
+
property :state, as: 'state'
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
class GoogleCloudSecuritycenterV1p1beta1Folder
|
276
|
+
# @private
|
277
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
278
|
+
property :resource_folder, as: 'resourceFolder'
|
279
|
+
property :resource_folder_display_name, as: 'resourceFolderDisplayName'
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
283
|
+
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
284
|
+
# @private
|
285
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
286
|
+
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
|
287
|
+
|
288
|
+
property :notification_config_name, as: 'notificationConfigName'
|
289
|
+
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Resource::Representation
|
290
|
+
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
294
|
+
class GoogleCloudSecuritycenterV1p1beta1Resource
|
295
|
+
# @private
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
297
|
+
collection :folders, as: 'folders', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Folder, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Folder::Representation
|
298
|
+
|
299
|
+
property :name, as: 'name'
|
300
|
+
property :parent, as: 'parent'
|
301
|
+
property :parent_display_name, as: 'parentDisplayName'
|
302
|
+
property :project, as: 'project'
|
303
|
+
property :project_display_name, as: 'projectDisplayName'
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
|
308
|
+
# @private
|
309
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
310
|
+
property :duration, as: 'duration'
|
311
|
+
property :state, as: 'state'
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
316
|
+
# @private
|
317
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
318
|
+
hash :marks, as: 'marks'
|
319
|
+
property :name, as: 'name'
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
class SecurityCenterSettings
|
324
|
+
# @private
|
325
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
326
|
+
property :log_sink_project, as: 'logSinkProject'
|
327
|
+
property :name, as: 'name'
|
328
|
+
property :org_service_account, as: 'orgServiceAccount'
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
332
|
+
class SecurityHealthAnalyticsSettings
|
333
|
+
# @private
|
334
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
335
|
+
hash :modules, as: 'modules', class: Google::Apis::SecuritycenterV1beta2::Config, decorator: Google::Apis::SecuritycenterV1beta2::Config::Representation
|
336
|
+
|
337
|
+
property :name, as: 'name'
|
338
|
+
property :service_account, as: 'serviceAccount'
|
339
|
+
property :service_enablement_state, as: 'serviceEnablementState'
|
340
|
+
property :update_time, as: 'updateTime'
|
341
|
+
end
|
342
|
+
end
|
343
|
+
|
344
|
+
class SecurityMarks
|
345
|
+
# @private
|
346
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
347
|
+
hash :marks, as: 'marks'
|
348
|
+
property :name, as: 'name'
|
349
|
+
end
|
350
|
+
end
|
351
|
+
|
352
|
+
class Subscription
|
353
|
+
# @private
|
354
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
355
|
+
property :details, as: 'details', class: Google::Apis::SecuritycenterV1beta2::Details, decorator: Google::Apis::SecuritycenterV1beta2::Details::Representation
|
356
|
+
|
357
|
+
property :name, as: 'name'
|
358
|
+
property :tier, as: 'tier'
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
362
|
+
class WebSecurityScannerSettings
|
363
|
+
# @private
|
364
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
365
|
+
hash :modules, as: 'modules', class: Google::Apis::SecuritycenterV1beta2::Config, decorator: Google::Apis::SecuritycenterV1beta2::Config::Representation
|
366
|
+
|
367
|
+
property :name, as: 'name'
|
368
|
+
property :service_enablement_state, as: 'serviceEnablementState'
|
369
|
+
property :update_time, as: 'updateTime'
|
370
|
+
end
|
371
|
+
end
|
372
|
+
end
|
373
|
+
end
|
374
|
+
end
|
@@ -0,0 +1,1496 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module SecuritycenterV1beta2
|
23
|
+
# Security Command Center API
|
24
|
+
#
|
25
|
+
# Security Command Center API provides access to temporal views of assets and
|
26
|
+
# findings within an organization.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/securitycenter_v1beta2'
|
30
|
+
#
|
31
|
+
# Securitycenter = Google::Apis::SecuritycenterV1beta2 # Alias the module
|
32
|
+
# service = Securitycenter::SecurityCommandCenterService.new
|
33
|
+
#
|
34
|
+
# @see https://cloud.google.com/security-command-center
|
35
|
+
class SecurityCommandCenterService < Google::Apis::Core::BaseService
|
36
|
+
# @return [String]
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
+
attr_accessor :key
|
40
|
+
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
def initialize
|
47
|
+
super('https://securitycenter.googleapis.com/', '',
|
48
|
+
client_name: 'google-apis-securitycenter_v1beta2',
|
49
|
+
client_version: Google::Apis::SecuritycenterV1beta2::GEM_VERSION)
|
50
|
+
@batch_path = 'batch'
|
51
|
+
end
|
52
|
+
|
53
|
+
# Get the ContainerThreatDetectionSettings resource.
|
54
|
+
# @param [String] name
|
55
|
+
# Required. The name of the ContainerThreatDetectionSettings to retrieve.
|
56
|
+
# Formats: * organizations/`organization`/containerThreatDetectionSettings *
|
57
|
+
# folders/`folder`/containerThreatDetectionSettings * projects/`project`/
|
58
|
+
# containerThreatDetectionSettings * projects/`project`/locations/`location`/
|
59
|
+
# clusters/`cluster`/containerThreatDetectionSettings
|
60
|
+
# @param [String] fields
|
61
|
+
# Selector specifying which fields to include in a partial response.
|
62
|
+
# @param [String] quota_user
|
63
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
64
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
65
|
+
# @param [Google::Apis::RequestOptions] options
|
66
|
+
# Request-specific options
|
67
|
+
#
|
68
|
+
# @yield [result, err] Result & error if block supplied
|
69
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object
|
70
|
+
# @yieldparam err [StandardError] error object if request failed
|
71
|
+
#
|
72
|
+
# @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]
|
73
|
+
#
|
74
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
75
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
76
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
77
|
+
def get_folder_container_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
78
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
79
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
|
80
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
|
81
|
+
command.params['name'] = name unless name.nil?
|
82
|
+
command.query['fields'] = fields unless fields.nil?
|
83
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
|
+
execute_or_queue_command(command, &block)
|
85
|
+
end
|
86
|
+
|
87
|
+
# Get the EventThreatDetectionSettings resource.
|
88
|
+
# @param [String] name
|
89
|
+
# Required. The name of the EventThreatDetectionSettings to retrieve. Formats: *
|
90
|
+
# organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/
|
91
|
+
# eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings
|
92
|
+
# @param [String] fields
|
93
|
+
# Selector specifying which fields to include in a partial response.
|
94
|
+
# @param [String] quota_user
|
95
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
96
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
97
|
+
# @param [Google::Apis::RequestOptions] options
|
98
|
+
# Request-specific options
|
99
|
+
#
|
100
|
+
# @yield [result, err] Result & error if block supplied
|
101
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object
|
102
|
+
# @yieldparam err [StandardError] error object if request failed
|
103
|
+
#
|
104
|
+
# @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]
|
105
|
+
#
|
106
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
107
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
108
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
109
|
+
def get_folder_event_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
110
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
111
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
|
112
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
|
113
|
+
command.params['name'] = name unless name.nil?
|
114
|
+
command.query['fields'] = fields unless fields.nil?
|
115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
116
|
+
execute_or_queue_command(command, &block)
|
117
|
+
end
|
118
|
+
|
119
|
+
# Get the SecurityHealthAnalyticsSettings resource.
|
120
|
+
# @param [String] name
|
121
|
+
# Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats:
|
122
|
+
# * organizations/`organization`/securityHealthAnalyticsSettings * folders/`
|
123
|
+
# folder`/securityHealthAnalyticsSettings * projects/`project`/
|
124
|
+
# securityHealthAnalyticsSettings
|
125
|
+
# @param [String] fields
|
126
|
+
# Selector specifying which fields to include in a partial response.
|
127
|
+
# @param [String] quota_user
|
128
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
129
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
130
|
+
# @param [Google::Apis::RequestOptions] options
|
131
|
+
# Request-specific options
|
132
|
+
#
|
133
|
+
# @yield [result, err] Result & error if block supplied
|
134
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object
|
135
|
+
# @yieldparam err [StandardError] error object if request failed
|
136
|
+
#
|
137
|
+
# @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]
|
138
|
+
#
|
139
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
140
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
141
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
142
|
+
def get_folder_security_health_analytics_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
143
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
144
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
|
145
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
|
146
|
+
command.params['name'] = name unless name.nil?
|
147
|
+
command.query['fields'] = fields unless fields.nil?
|
148
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
149
|
+
execute_or_queue_command(command, &block)
|
150
|
+
end
|
151
|
+
|
152
|
+
# Get the WebSecurityScannerSettings resource.
|
153
|
+
# @param [String] name
|
154
|
+
# Required. The name of the WebSecurityScannerSettings to retrieve. Formats: *
|
155
|
+
# organizations/`organization`/webSecurityScannerSettings * folders/`folder`/
|
156
|
+
# webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings
|
157
|
+
# @param [String] fields
|
158
|
+
# Selector specifying which fields to include in a partial response.
|
159
|
+
# @param [String] quota_user
|
160
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
161
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
162
|
+
# @param [Google::Apis::RequestOptions] options
|
163
|
+
# Request-specific options
|
164
|
+
#
|
165
|
+
# @yield [result, err] Result & error if block supplied
|
166
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object
|
167
|
+
# @yieldparam err [StandardError] error object if request failed
|
168
|
+
#
|
169
|
+
# @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]
|
170
|
+
#
|
171
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
172
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
173
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
174
|
+
def get_folder_web_security_scanner_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
175
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
176
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
|
177
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
|
178
|
+
command.params['name'] = name unless name.nil?
|
179
|
+
command.query['fields'] = fields unless fields.nil?
|
180
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
181
|
+
execute_or_queue_command(command, &block)
|
182
|
+
end
|
183
|
+
|
184
|
+
# Update the ContainerThreatDetectionSettings resource.
|
185
|
+
# @param [String] name
|
186
|
+
# The resource name of the ContainerThreatDetectionSettings. Formats: *
|
187
|
+
# organizations/`organization`/containerThreatDetectionSettings * folders/`
|
188
|
+
# folder`/containerThreatDetectionSettings * projects/`project`/
|
189
|
+
# containerThreatDetectionSettings * projects/`project`/locations/`location`/
|
190
|
+
# clusters/`cluster`/containerThreatDetectionSettings
|
191
|
+
# @param [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] container_threat_detection_settings_object
|
192
|
+
# @param [String] update_mask
|
193
|
+
# The list of fields to be updated.
|
194
|
+
# @param [String] fields
|
195
|
+
# Selector specifying which fields to include in a partial response.
|
196
|
+
# @param [String] quota_user
|
197
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
198
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
199
|
+
# @param [Google::Apis::RequestOptions] options
|
200
|
+
# Request-specific options
|
201
|
+
#
|
202
|
+
# @yield [result, err] Result & error if block supplied
|
203
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object
|
204
|
+
# @yieldparam err [StandardError] error object if request failed
|
205
|
+
#
|
206
|
+
# @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]
|
207
|
+
#
|
208
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
209
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
210
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
211
|
+
def update_folder_container_threat_detection_settings(name, container_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
212
|
+
command = make_simple_command(:patch, 'v1beta2/{+name}', options)
|
213
|
+
command.request_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
|
214
|
+
command.request_object = container_threat_detection_settings_object
|
215
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
|
216
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
|
217
|
+
command.params['name'] = name unless name.nil?
|
218
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
219
|
+
command.query['fields'] = fields unless fields.nil?
|
220
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
221
|
+
execute_or_queue_command(command, &block)
|
222
|
+
end
|
223
|
+
|
224
|
+
# Update the EventThreatDetectionSettings resource.
|
225
|
+
# @param [String] name
|
226
|
+
# The resource name of the EventThreatDetectionSettings. Formats: *
|
227
|
+
# organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/
|
228
|
+
# eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings
|
229
|
+
# @param [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] event_threat_detection_settings_object
|
230
|
+
# @param [String] update_mask
|
231
|
+
# The list of fields to be updated.
|
232
|
+
# @param [String] fields
|
233
|
+
# Selector specifying which fields to include in a partial response.
|
234
|
+
# @param [String] quota_user
|
235
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
236
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
237
|
+
# @param [Google::Apis::RequestOptions] options
|
238
|
+
# Request-specific options
|
239
|
+
#
|
240
|
+
# @yield [result, err] Result & error if block supplied
|
241
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object
|
242
|
+
# @yieldparam err [StandardError] error object if request failed
|
243
|
+
#
|
244
|
+
# @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]
|
245
|
+
#
|
246
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
247
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
248
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
249
|
+
def update_folder_event_threat_detection_settings(name, event_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
250
|
+
command = make_simple_command(:patch, 'v1beta2/{+name}', options)
|
251
|
+
command.request_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
|
252
|
+
command.request_object = event_threat_detection_settings_object
|
253
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
|
254
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
|
255
|
+
command.params['name'] = name unless name.nil?
|
256
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
257
|
+
command.query['fields'] = fields unless fields.nil?
|
258
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
259
|
+
execute_or_queue_command(command, &block)
|
260
|
+
end
|
261
|
+
|
262
|
+
# Update the SecurityHealthAnalyticsSettings resource.
|
263
|
+
# @param [String] name
|
264
|
+
# The resource name of the SecurityHealthAnalyticsSettings. Formats: *
|
265
|
+
# organizations/`organization`/securityHealthAnalyticsSettings * folders/`folder`
|
266
|
+
# /securityHealthAnalyticsSettings * projects/`project`/
|
267
|
+
# securityHealthAnalyticsSettings
|
268
|
+
# @param [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] security_health_analytics_settings_object
|
269
|
+
# @param [String] update_mask
|
270
|
+
# The list of fields to be updated.
|
271
|
+
# @param [String] fields
|
272
|
+
# Selector specifying which fields to include in a partial response.
|
273
|
+
# @param [String] quota_user
|
274
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
275
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
276
|
+
# @param [Google::Apis::RequestOptions] options
|
277
|
+
# Request-specific options
|
278
|
+
#
|
279
|
+
# @yield [result, err] Result & error if block supplied
|
280
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object
|
281
|
+
# @yieldparam err [StandardError] error object if request failed
|
282
|
+
#
|
283
|
+
# @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]
|
284
|
+
#
|
285
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
286
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
287
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
288
|
+
def update_folder_security_health_analytics_settings(name, security_health_analytics_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
289
|
+
command = make_simple_command(:patch, 'v1beta2/{+name}', options)
|
290
|
+
command.request_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
|
291
|
+
command.request_object = security_health_analytics_settings_object
|
292
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
|
293
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
|
294
|
+
command.params['name'] = name unless name.nil?
|
295
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
296
|
+
command.query['fields'] = fields unless fields.nil?
|
297
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
298
|
+
execute_or_queue_command(command, &block)
|
299
|
+
end
|
300
|
+
|
301
|
+
# Update the WebSecurityScannerSettings resource.
|
302
|
+
# @param [String] name
|
303
|
+
# The resource name of the WebSecurityScannerSettings. Formats: * organizations/`
|
304
|
+
# organization`/webSecurityScannerSettings * folders/`folder`/
|
305
|
+
# webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings
|
306
|
+
# @param [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] web_security_scanner_settings_object
|
307
|
+
# @param [String] update_mask
|
308
|
+
# The list of fields to be updated.
|
309
|
+
# @param [String] fields
|
310
|
+
# Selector specifying which fields to include in a partial response.
|
311
|
+
# @param [String] quota_user
|
312
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
313
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
314
|
+
# @param [Google::Apis::RequestOptions] options
|
315
|
+
# Request-specific options
|
316
|
+
#
|
317
|
+
# @yield [result, err] Result & error if block supplied
|
318
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object
|
319
|
+
# @yieldparam err [StandardError] error object if request failed
|
320
|
+
#
|
321
|
+
# @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]
|
322
|
+
#
|
323
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
324
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
325
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
326
|
+
def update_folder_web_security_scanner_settings(name, web_security_scanner_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
327
|
+
command = make_simple_command(:patch, 'v1beta2/{+name}', options)
|
328
|
+
command.request_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
|
329
|
+
command.request_object = web_security_scanner_settings_object
|
330
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
|
331
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
|
332
|
+
command.params['name'] = name unless name.nil?
|
333
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
334
|
+
command.query['fields'] = fields unless fields.nil?
|
335
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
336
|
+
execute_or_queue_command(command, &block)
|
337
|
+
end
|
338
|
+
|
339
|
+
# Calculates the effective ContainerThreatDetectionSettings based on its level
|
340
|
+
# in the resource hierarchy and its settings.
|
341
|
+
# @param [String] name
|
342
|
+
# Required. The name of the ContainerThreatDetectionSettings to calculate.
|
343
|
+
# Formats: * organizations/`organization`/containerThreatDetectionSettings *
|
344
|
+
# folders/`folder`/containerThreatDetectionSettings * projects/`project`/
|
345
|
+
# containerThreatDetectionSettings * projects/`project`/locations/`location`/
|
346
|
+
# clusters/`cluster`/containerThreatDetectionSettings
|
347
|
+
# @param [String] fields
|
348
|
+
# Selector specifying which fields to include in a partial response.
|
349
|
+
# @param [String] quota_user
|
350
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
351
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
352
|
+
# @param [Google::Apis::RequestOptions] options
|
353
|
+
# Request-specific options
|
354
|
+
#
|
355
|
+
# @yield [result, err] Result & error if block supplied
|
356
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object
|
357
|
+
# @yieldparam err [StandardError] error object if request failed
|
358
|
+
#
|
359
|
+
# @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]
|
360
|
+
#
|
361
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
362
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
363
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
364
|
+
def calculate_folder_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
|
365
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
|
366
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
|
367
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
|
368
|
+
command.params['name'] = name unless name.nil?
|
369
|
+
command.query['fields'] = fields unless fields.nil?
|
370
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
371
|
+
execute_or_queue_command(command, &block)
|
372
|
+
end
|
373
|
+
|
374
|
+
# Calculates the effective EventThreatDetectionSettings based on its level in
|
375
|
+
# the resource hierarchy and its settings.
|
376
|
+
# @param [String] name
|
377
|
+
# Required. The name of the EventThreatDetectionSettings to calculate. Formats: *
|
378
|
+
# organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/
|
379
|
+
# eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings
|
380
|
+
# @param [String] fields
|
381
|
+
# Selector specifying which fields to include in a partial response.
|
382
|
+
# @param [String] quota_user
|
383
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
384
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
385
|
+
# @param [Google::Apis::RequestOptions] options
|
386
|
+
# Request-specific options
|
387
|
+
#
|
388
|
+
# @yield [result, err] Result & error if block supplied
|
389
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object
|
390
|
+
# @yieldparam err [StandardError] error object if request failed
|
391
|
+
#
|
392
|
+
# @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]
|
393
|
+
#
|
394
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
395
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
396
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
397
|
+
def calculate_folder_event_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
|
398
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
|
399
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
|
400
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
|
401
|
+
command.params['name'] = name unless name.nil?
|
402
|
+
command.query['fields'] = fields unless fields.nil?
|
403
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
404
|
+
execute_or_queue_command(command, &block)
|
405
|
+
end
|
406
|
+
|
407
|
+
# Calculates the effective SecurityHealthAnalyticsSettings based on its level in
|
408
|
+
# the resource hierarchy and its settings.
|
409
|
+
# @param [String] name
|
410
|
+
# Required. The name of the SecurityHealthAnalyticsSettings to calculate.
|
411
|
+
# Formats: * organizations/`organization`/securityHealthAnalyticsSettings *
|
412
|
+
# folders/`folder`/securityHealthAnalyticsSettings * projects/`project`/
|
413
|
+
# securityHealthAnalyticsSettings
|
414
|
+
# @param [String] fields
|
415
|
+
# Selector specifying which fields to include in a partial response.
|
416
|
+
# @param [String] quota_user
|
417
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
418
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
419
|
+
# @param [Google::Apis::RequestOptions] options
|
420
|
+
# Request-specific options
|
421
|
+
#
|
422
|
+
# @yield [result, err] Result & error if block supplied
|
423
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object
|
424
|
+
# @yieldparam err [StandardError] error object if request failed
|
425
|
+
#
|
426
|
+
# @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]
|
427
|
+
#
|
428
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
429
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
430
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
431
|
+
def calculate_folder_security_health_analytics_setting(name, fields: nil, quota_user: nil, options: nil, &block)
|
432
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
|
433
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
|
434
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
|
435
|
+
command.params['name'] = name unless name.nil?
|
436
|
+
command.query['fields'] = fields unless fields.nil?
|
437
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
438
|
+
execute_or_queue_command(command, &block)
|
439
|
+
end
|
440
|
+
|
441
|
+
# Calculates the effective WebSecurityScannerSettings based on its level in the
|
442
|
+
# resource hierarchy and its settings.
|
443
|
+
# @param [String] name
|
444
|
+
# Required. The name of the WebSecurityScannerSettings to calculate. Formats: *
|
445
|
+
# organizations/`organization`/webSecurityScannerSettings * folders/`folder`/
|
446
|
+
# webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings
|
447
|
+
# @param [String] fields
|
448
|
+
# Selector specifying which fields to include in a partial response.
|
449
|
+
# @param [String] quota_user
|
450
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
451
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
452
|
+
# @param [Google::Apis::RequestOptions] options
|
453
|
+
# Request-specific options
|
454
|
+
#
|
455
|
+
# @yield [result, err] Result & error if block supplied
|
456
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object
|
457
|
+
# @yieldparam err [StandardError] error object if request failed
|
458
|
+
#
|
459
|
+
# @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]
|
460
|
+
#
|
461
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
462
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
463
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
464
|
+
def calculate_folder_web_security_scanner_setting(name, fields: nil, quota_user: nil, options: nil, &block)
|
465
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
|
466
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
|
467
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
|
468
|
+
command.params['name'] = name unless name.nil?
|
469
|
+
command.query['fields'] = fields unless fields.nil?
|
470
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
471
|
+
execute_or_queue_command(command, &block)
|
472
|
+
end
|
473
|
+
|
474
|
+
# Get the ContainerThreatDetectionSettings resource.
|
475
|
+
# @param [String] name
|
476
|
+
# Required. The name of the ContainerThreatDetectionSettings to retrieve.
|
477
|
+
# Formats: * organizations/`organization`/containerThreatDetectionSettings *
|
478
|
+
# folders/`folder`/containerThreatDetectionSettings * projects/`project`/
|
479
|
+
# containerThreatDetectionSettings * projects/`project`/locations/`location`/
|
480
|
+
# clusters/`cluster`/containerThreatDetectionSettings
|
481
|
+
# @param [String] fields
|
482
|
+
# Selector specifying which fields to include in a partial response.
|
483
|
+
# @param [String] quota_user
|
484
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
485
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
486
|
+
# @param [Google::Apis::RequestOptions] options
|
487
|
+
# Request-specific options
|
488
|
+
#
|
489
|
+
# @yield [result, err] Result & error if block supplied
|
490
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object
|
491
|
+
# @yieldparam err [StandardError] error object if request failed
|
492
|
+
#
|
493
|
+
# @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]
|
494
|
+
#
|
495
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
496
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
497
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
498
|
+
def get_organization_container_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
499
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
500
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
|
501
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
|
502
|
+
command.params['name'] = name unless name.nil?
|
503
|
+
command.query['fields'] = fields unless fields.nil?
|
504
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
505
|
+
execute_or_queue_command(command, &block)
|
506
|
+
end
|
507
|
+
|
508
|
+
# Get the EventThreatDetectionSettings resource.
|
509
|
+
# @param [String] name
|
510
|
+
# Required. The name of the EventThreatDetectionSettings to retrieve. Formats: *
|
511
|
+
# organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/
|
512
|
+
# eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings
|
513
|
+
# @param [String] fields
|
514
|
+
# Selector specifying which fields to include in a partial response.
|
515
|
+
# @param [String] quota_user
|
516
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
517
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
518
|
+
# @param [Google::Apis::RequestOptions] options
|
519
|
+
# Request-specific options
|
520
|
+
#
|
521
|
+
# @yield [result, err] Result & error if block supplied
|
522
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object
|
523
|
+
# @yieldparam err [StandardError] error object if request failed
|
524
|
+
#
|
525
|
+
# @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]
|
526
|
+
#
|
527
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
528
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
529
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
530
|
+
def get_organization_event_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
531
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
532
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
|
533
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
|
534
|
+
command.params['name'] = name unless name.nil?
|
535
|
+
command.query['fields'] = fields unless fields.nil?
|
536
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
537
|
+
execute_or_queue_command(command, &block)
|
538
|
+
end
|
539
|
+
|
540
|
+
# Get the SecurityCenterSettings resource.
|
541
|
+
# @param [String] name
|
542
|
+
# Required. The name of the SecurityCenterSettings to retrieve. Format:
|
543
|
+
# organizations/`organization`/securityCenterSettings
|
544
|
+
# @param [String] fields
|
545
|
+
# Selector specifying which fields to include in a partial response.
|
546
|
+
# @param [String] quota_user
|
547
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
548
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
549
|
+
# @param [Google::Apis::RequestOptions] options
|
550
|
+
# Request-specific options
|
551
|
+
#
|
552
|
+
# @yield [result, err] Result & error if block supplied
|
553
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings] parsed result object
|
554
|
+
# @yieldparam err [StandardError] error object if request failed
|
555
|
+
#
|
556
|
+
# @return [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings]
|
557
|
+
#
|
558
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
559
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
560
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
561
|
+
def get_organization_security_center_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
562
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
563
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings::Representation
|
564
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings
|
565
|
+
command.params['name'] = name unless name.nil?
|
566
|
+
command.query['fields'] = fields unless fields.nil?
|
567
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
568
|
+
execute_or_queue_command(command, &block)
|
569
|
+
end
|
570
|
+
|
571
|
+
# Get the SecurityHealthAnalyticsSettings resource.
|
572
|
+
# @param [String] name
|
573
|
+
# Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats:
|
574
|
+
# * organizations/`organization`/securityHealthAnalyticsSettings * folders/`
|
575
|
+
# folder`/securityHealthAnalyticsSettings * projects/`project`/
|
576
|
+
# securityHealthAnalyticsSettings
|
577
|
+
# @param [String] fields
|
578
|
+
# Selector specifying which fields to include in a partial response.
|
579
|
+
# @param [String] quota_user
|
580
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
581
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
582
|
+
# @param [Google::Apis::RequestOptions] options
|
583
|
+
# Request-specific options
|
584
|
+
#
|
585
|
+
# @yield [result, err] Result & error if block supplied
|
586
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object
|
587
|
+
# @yieldparam err [StandardError] error object if request failed
|
588
|
+
#
|
589
|
+
# @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]
|
590
|
+
#
|
591
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
592
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
593
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
594
|
+
def get_organization_security_health_analytics_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
595
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
596
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
|
597
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
|
598
|
+
command.params['name'] = name unless name.nil?
|
599
|
+
command.query['fields'] = fields unless fields.nil?
|
600
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
601
|
+
execute_or_queue_command(command, &block)
|
602
|
+
end
|
603
|
+
|
604
|
+
# Get the Subscription resource.
|
605
|
+
# @param [String] name
|
606
|
+
# Required. The name of the subscription to retrieve. Format: organizations/`
|
607
|
+
# organization`/subscription
|
608
|
+
# @param [String] fields
|
609
|
+
# Selector specifying which fields to include in a partial response.
|
610
|
+
# @param [String] quota_user
|
611
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
612
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
613
|
+
# @param [Google::Apis::RequestOptions] options
|
614
|
+
# Request-specific options
|
615
|
+
#
|
616
|
+
# @yield [result, err] Result & error if block supplied
|
617
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::Subscription] parsed result object
|
618
|
+
# @yieldparam err [StandardError] error object if request failed
|
619
|
+
#
|
620
|
+
# @return [Google::Apis::SecuritycenterV1beta2::Subscription]
|
621
|
+
#
|
622
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
623
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
624
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
625
|
+
def get_organization_subscription(name, fields: nil, quota_user: nil, options: nil, &block)
|
626
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
627
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::Subscription::Representation
|
628
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::Subscription
|
629
|
+
command.params['name'] = name unless name.nil?
|
630
|
+
command.query['fields'] = fields unless fields.nil?
|
631
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
632
|
+
execute_or_queue_command(command, &block)
|
633
|
+
end
|
634
|
+
|
635
|
+
# Get the WebSecurityScannerSettings resource.
|
636
|
+
# @param [String] name
|
637
|
+
# Required. The name of the WebSecurityScannerSettings to retrieve. Formats: *
|
638
|
+
# organizations/`organization`/webSecurityScannerSettings * folders/`folder`/
|
639
|
+
# webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings
|
640
|
+
# @param [String] fields
|
641
|
+
# Selector specifying which fields to include in a partial response.
|
642
|
+
# @param [String] quota_user
|
643
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
644
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
645
|
+
# @param [Google::Apis::RequestOptions] options
|
646
|
+
# Request-specific options
|
647
|
+
#
|
648
|
+
# @yield [result, err] Result & error if block supplied
|
649
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object
|
650
|
+
# @yieldparam err [StandardError] error object if request failed
|
651
|
+
#
|
652
|
+
# @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]
|
653
|
+
#
|
654
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
655
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
656
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
657
|
+
def get_organization_web_security_scanner_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
658
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
659
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
|
660
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
|
661
|
+
command.params['name'] = name unless name.nil?
|
662
|
+
command.query['fields'] = fields unless fields.nil?
|
663
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
664
|
+
execute_or_queue_command(command, &block)
|
665
|
+
end
|
666
|
+
|
667
|
+
# Update the ContainerThreatDetectionSettings resource.
|
668
|
+
# @param [String] name
|
669
|
+
# The resource name of the ContainerThreatDetectionSettings. Formats: *
|
670
|
+
# organizations/`organization`/containerThreatDetectionSettings * folders/`
|
671
|
+
# folder`/containerThreatDetectionSettings * projects/`project`/
|
672
|
+
# containerThreatDetectionSettings * projects/`project`/locations/`location`/
|
673
|
+
# clusters/`cluster`/containerThreatDetectionSettings
|
674
|
+
# @param [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] container_threat_detection_settings_object
|
675
|
+
# @param [String] update_mask
|
676
|
+
# The list of fields to be updated.
|
677
|
+
# @param [String] fields
|
678
|
+
# Selector specifying which fields to include in a partial response.
|
679
|
+
# @param [String] quota_user
|
680
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
681
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
682
|
+
# @param [Google::Apis::RequestOptions] options
|
683
|
+
# Request-specific options
|
684
|
+
#
|
685
|
+
# @yield [result, err] Result & error if block supplied
|
686
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object
|
687
|
+
# @yieldparam err [StandardError] error object if request failed
|
688
|
+
#
|
689
|
+
# @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]
|
690
|
+
#
|
691
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
692
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
693
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
694
|
+
def update_organization_container_threat_detection_settings(name, container_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
695
|
+
command = make_simple_command(:patch, 'v1beta2/{+name}', options)
|
696
|
+
command.request_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
|
697
|
+
command.request_object = container_threat_detection_settings_object
|
698
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
|
699
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
|
700
|
+
command.params['name'] = name unless name.nil?
|
701
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
702
|
+
command.query['fields'] = fields unless fields.nil?
|
703
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
704
|
+
execute_or_queue_command(command, &block)
|
705
|
+
end
|
706
|
+
|
707
|
+
# Update the EventThreatDetectionSettings resource.
|
708
|
+
# @param [String] name
|
709
|
+
# The resource name of the EventThreatDetectionSettings. Formats: *
|
710
|
+
# organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/
|
711
|
+
# eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings
|
712
|
+
# @param [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] event_threat_detection_settings_object
|
713
|
+
# @param [String] update_mask
|
714
|
+
# The list of fields to be updated.
|
715
|
+
# @param [String] fields
|
716
|
+
# Selector specifying which fields to include in a partial response.
|
717
|
+
# @param [String] quota_user
|
718
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
719
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
720
|
+
# @param [Google::Apis::RequestOptions] options
|
721
|
+
# Request-specific options
|
722
|
+
#
|
723
|
+
# @yield [result, err] Result & error if block supplied
|
724
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object
|
725
|
+
# @yieldparam err [StandardError] error object if request failed
|
726
|
+
#
|
727
|
+
# @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]
|
728
|
+
#
|
729
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
730
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
731
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
732
|
+
def update_organization_event_threat_detection_settings(name, event_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
733
|
+
command = make_simple_command(:patch, 'v1beta2/{+name}', options)
|
734
|
+
command.request_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
|
735
|
+
command.request_object = event_threat_detection_settings_object
|
736
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
|
737
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
|
738
|
+
command.params['name'] = name unless name.nil?
|
739
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
740
|
+
command.query['fields'] = fields unless fields.nil?
|
741
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
742
|
+
execute_or_queue_command(command, &block)
|
743
|
+
end
|
744
|
+
|
745
|
+
# Update the SecurityHealthAnalyticsSettings resource.
|
746
|
+
# @param [String] name
|
747
|
+
# The resource name of the SecurityHealthAnalyticsSettings. Formats: *
|
748
|
+
# organizations/`organization`/securityHealthAnalyticsSettings * folders/`folder`
|
749
|
+
# /securityHealthAnalyticsSettings * projects/`project`/
|
750
|
+
# securityHealthAnalyticsSettings
|
751
|
+
# @param [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] security_health_analytics_settings_object
|
752
|
+
# @param [String] update_mask
|
753
|
+
# The list of fields to be updated.
|
754
|
+
# @param [String] fields
|
755
|
+
# Selector specifying which fields to include in a partial response.
|
756
|
+
# @param [String] quota_user
|
757
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
758
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
759
|
+
# @param [Google::Apis::RequestOptions] options
|
760
|
+
# Request-specific options
|
761
|
+
#
|
762
|
+
# @yield [result, err] Result & error if block supplied
|
763
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object
|
764
|
+
# @yieldparam err [StandardError] error object if request failed
|
765
|
+
#
|
766
|
+
# @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]
|
767
|
+
#
|
768
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
769
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
770
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
771
|
+
def update_organization_security_health_analytics_settings(name, security_health_analytics_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
772
|
+
command = make_simple_command(:patch, 'v1beta2/{+name}', options)
|
773
|
+
command.request_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
|
774
|
+
command.request_object = security_health_analytics_settings_object
|
775
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
|
776
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
|
777
|
+
command.params['name'] = name unless name.nil?
|
778
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
779
|
+
command.query['fields'] = fields unless fields.nil?
|
780
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
781
|
+
execute_or_queue_command(command, &block)
|
782
|
+
end
|
783
|
+
|
784
|
+
# Update the WebSecurityScannerSettings resource.
|
785
|
+
# @param [String] name
|
786
|
+
# The resource name of the WebSecurityScannerSettings. Formats: * organizations/`
|
787
|
+
# organization`/webSecurityScannerSettings * folders/`folder`/
|
788
|
+
# webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings
|
789
|
+
# @param [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] web_security_scanner_settings_object
|
790
|
+
# @param [String] update_mask
|
791
|
+
# The list of fields to be updated.
|
792
|
+
# @param [String] fields
|
793
|
+
# Selector specifying which fields to include in a partial response.
|
794
|
+
# @param [String] quota_user
|
795
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
796
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
797
|
+
# @param [Google::Apis::RequestOptions] options
|
798
|
+
# Request-specific options
|
799
|
+
#
|
800
|
+
# @yield [result, err] Result & error if block supplied
|
801
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object
|
802
|
+
# @yieldparam err [StandardError] error object if request failed
|
803
|
+
#
|
804
|
+
# @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]
|
805
|
+
#
|
806
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
807
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
808
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
809
|
+
def update_organization_web_security_scanner_settings(name, web_security_scanner_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
810
|
+
command = make_simple_command(:patch, 'v1beta2/{+name}', options)
|
811
|
+
command.request_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
|
812
|
+
command.request_object = web_security_scanner_settings_object
|
813
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
|
814
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
|
815
|
+
command.params['name'] = name unless name.nil?
|
816
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
817
|
+
command.query['fields'] = fields unless fields.nil?
|
818
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
819
|
+
execute_or_queue_command(command, &block)
|
820
|
+
end
|
821
|
+
|
822
|
+
# Calculates the effective ContainerThreatDetectionSettings based on its level
|
823
|
+
# in the resource hierarchy and its settings.
|
824
|
+
# @param [String] name
|
825
|
+
# Required. The name of the ContainerThreatDetectionSettings to calculate.
|
826
|
+
# Formats: * organizations/`organization`/containerThreatDetectionSettings *
|
827
|
+
# folders/`folder`/containerThreatDetectionSettings * projects/`project`/
|
828
|
+
# containerThreatDetectionSettings * projects/`project`/locations/`location`/
|
829
|
+
# clusters/`cluster`/containerThreatDetectionSettings
|
830
|
+
# @param [String] fields
|
831
|
+
# Selector specifying which fields to include in a partial response.
|
832
|
+
# @param [String] quota_user
|
833
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
834
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
835
|
+
# @param [Google::Apis::RequestOptions] options
|
836
|
+
# Request-specific options
|
837
|
+
#
|
838
|
+
# @yield [result, err] Result & error if block supplied
|
839
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object
|
840
|
+
# @yieldparam err [StandardError] error object if request failed
|
841
|
+
#
|
842
|
+
# @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]
|
843
|
+
#
|
844
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
845
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
846
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
847
|
+
def calculate_organization_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
|
848
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
|
849
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
|
850
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
|
851
|
+
command.params['name'] = name unless name.nil?
|
852
|
+
command.query['fields'] = fields unless fields.nil?
|
853
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
854
|
+
execute_or_queue_command(command, &block)
|
855
|
+
end
|
856
|
+
|
857
|
+
# Calculates the effective EventThreatDetectionSettings based on its level in
|
858
|
+
# the resource hierarchy and its settings.
|
859
|
+
# @param [String] name
|
860
|
+
# Required. The name of the EventThreatDetectionSettings to calculate. Formats: *
|
861
|
+
# organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/
|
862
|
+
# eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings
|
863
|
+
# @param [String] fields
|
864
|
+
# Selector specifying which fields to include in a partial response.
|
865
|
+
# @param [String] quota_user
|
866
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
867
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
868
|
+
# @param [Google::Apis::RequestOptions] options
|
869
|
+
# Request-specific options
|
870
|
+
#
|
871
|
+
# @yield [result, err] Result & error if block supplied
|
872
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object
|
873
|
+
# @yieldparam err [StandardError] error object if request failed
|
874
|
+
#
|
875
|
+
# @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]
|
876
|
+
#
|
877
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
878
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
879
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
880
|
+
def calculate_organization_event_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
|
881
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
|
882
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
|
883
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
|
884
|
+
command.params['name'] = name unless name.nil?
|
885
|
+
command.query['fields'] = fields unless fields.nil?
|
886
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
887
|
+
execute_or_queue_command(command, &block)
|
888
|
+
end
|
889
|
+
|
890
|
+
# Calculates the effective SecurityHealthAnalyticsSettings based on its level in
|
891
|
+
# the resource hierarchy and its settings.
|
892
|
+
# @param [String] name
|
893
|
+
# Required. The name of the SecurityHealthAnalyticsSettings to calculate.
|
894
|
+
# Formats: * organizations/`organization`/securityHealthAnalyticsSettings *
|
895
|
+
# folders/`folder`/securityHealthAnalyticsSettings * projects/`project`/
|
896
|
+
# securityHealthAnalyticsSettings
|
897
|
+
# @param [String] fields
|
898
|
+
# Selector specifying which fields to include in a partial response.
|
899
|
+
# @param [String] quota_user
|
900
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
901
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
902
|
+
# @param [Google::Apis::RequestOptions] options
|
903
|
+
# Request-specific options
|
904
|
+
#
|
905
|
+
# @yield [result, err] Result & error if block supplied
|
906
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object
|
907
|
+
# @yieldparam err [StandardError] error object if request failed
|
908
|
+
#
|
909
|
+
# @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]
|
910
|
+
#
|
911
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
912
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
913
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
914
|
+
def calculate_organization_security_health_analytics_setting(name, fields: nil, quota_user: nil, options: nil, &block)
|
915
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
|
916
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
|
917
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
|
918
|
+
command.params['name'] = name unless name.nil?
|
919
|
+
command.query['fields'] = fields unless fields.nil?
|
920
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
921
|
+
execute_or_queue_command(command, &block)
|
922
|
+
end
|
923
|
+
|
924
|
+
# Calculates the effective WebSecurityScannerSettings based on its level in the
|
925
|
+
# resource hierarchy and its settings.
|
926
|
+
# @param [String] name
|
927
|
+
# Required. The name of the WebSecurityScannerSettings to calculate. Formats: *
|
928
|
+
# organizations/`organization`/webSecurityScannerSettings * folders/`folder`/
|
929
|
+
# webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings
|
930
|
+
# @param [String] fields
|
931
|
+
# Selector specifying which fields to include in a partial response.
|
932
|
+
# @param [String] quota_user
|
933
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
934
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
935
|
+
# @param [Google::Apis::RequestOptions] options
|
936
|
+
# Request-specific options
|
937
|
+
#
|
938
|
+
# @yield [result, err] Result & error if block supplied
|
939
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object
|
940
|
+
# @yieldparam err [StandardError] error object if request failed
|
941
|
+
#
|
942
|
+
# @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]
|
943
|
+
#
|
944
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
945
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
946
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
947
|
+
def calculate_organization_web_security_scanner_setting(name, fields: nil, quota_user: nil, options: nil, &block)
|
948
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
|
949
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
|
950
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
|
951
|
+
command.params['name'] = name unless name.nil?
|
952
|
+
command.query['fields'] = fields unless fields.nil?
|
953
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
954
|
+
execute_or_queue_command(command, &block)
|
955
|
+
end
|
956
|
+
|
957
|
+
# Get the ContainerThreatDetectionSettings resource.
|
958
|
+
# @param [String] name
|
959
|
+
# Required. The name of the ContainerThreatDetectionSettings to retrieve.
|
960
|
+
# Formats: * organizations/`organization`/containerThreatDetectionSettings *
|
961
|
+
# folders/`folder`/containerThreatDetectionSettings * projects/`project`/
|
962
|
+
# containerThreatDetectionSettings * projects/`project`/locations/`location`/
|
963
|
+
# clusters/`cluster`/containerThreatDetectionSettings
|
964
|
+
# @param [String] fields
|
965
|
+
# Selector specifying which fields to include in a partial response.
|
966
|
+
# @param [String] quota_user
|
967
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
968
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
969
|
+
# @param [Google::Apis::RequestOptions] options
|
970
|
+
# Request-specific options
|
971
|
+
#
|
972
|
+
# @yield [result, err] Result & error if block supplied
|
973
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object
|
974
|
+
# @yieldparam err [StandardError] error object if request failed
|
975
|
+
#
|
976
|
+
# @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]
|
977
|
+
#
|
978
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
979
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
980
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
981
|
+
def get_project_container_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
982
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
983
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
|
984
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
|
985
|
+
command.params['name'] = name unless name.nil?
|
986
|
+
command.query['fields'] = fields unless fields.nil?
|
987
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
988
|
+
execute_or_queue_command(command, &block)
|
989
|
+
end
|
990
|
+
|
991
|
+
# Get the EventThreatDetectionSettings resource.
|
992
|
+
# @param [String] name
|
993
|
+
# Required. The name of the EventThreatDetectionSettings to retrieve. Formats: *
|
994
|
+
# organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/
|
995
|
+
# eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings
|
996
|
+
# @param [String] fields
|
997
|
+
# Selector specifying which fields to include in a partial response.
|
998
|
+
# @param [String] quota_user
|
999
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1000
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1001
|
+
# @param [Google::Apis::RequestOptions] options
|
1002
|
+
# Request-specific options
|
1003
|
+
#
|
1004
|
+
# @yield [result, err] Result & error if block supplied
|
1005
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object
|
1006
|
+
# @yieldparam err [StandardError] error object if request failed
|
1007
|
+
#
|
1008
|
+
# @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]
|
1009
|
+
#
|
1010
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1011
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1012
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1013
|
+
def get_project_event_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
1014
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
1015
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
|
1016
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
|
1017
|
+
command.params['name'] = name unless name.nil?
|
1018
|
+
command.query['fields'] = fields unless fields.nil?
|
1019
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1020
|
+
execute_or_queue_command(command, &block)
|
1021
|
+
end
|
1022
|
+
|
1023
|
+
# Get the SecurityHealthAnalyticsSettings resource.
|
1024
|
+
# @param [String] name
|
1025
|
+
# Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats:
|
1026
|
+
# * organizations/`organization`/securityHealthAnalyticsSettings * folders/`
|
1027
|
+
# folder`/securityHealthAnalyticsSettings * projects/`project`/
|
1028
|
+
# securityHealthAnalyticsSettings
|
1029
|
+
# @param [String] fields
|
1030
|
+
# Selector specifying which fields to include in a partial response.
|
1031
|
+
# @param [String] quota_user
|
1032
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1033
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1034
|
+
# @param [Google::Apis::RequestOptions] options
|
1035
|
+
# Request-specific options
|
1036
|
+
#
|
1037
|
+
# @yield [result, err] Result & error if block supplied
|
1038
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object
|
1039
|
+
# @yieldparam err [StandardError] error object if request failed
|
1040
|
+
#
|
1041
|
+
# @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]
|
1042
|
+
#
|
1043
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1044
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1045
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1046
|
+
def get_project_security_health_analytics_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
1047
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
1048
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
|
1049
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
|
1050
|
+
command.params['name'] = name unless name.nil?
|
1051
|
+
command.query['fields'] = fields unless fields.nil?
|
1052
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1053
|
+
execute_or_queue_command(command, &block)
|
1054
|
+
end
|
1055
|
+
|
1056
|
+
# Get the WebSecurityScannerSettings resource.
|
1057
|
+
# @param [String] name
|
1058
|
+
# Required. The name of the WebSecurityScannerSettings to retrieve. Formats: *
|
1059
|
+
# organizations/`organization`/webSecurityScannerSettings * folders/`folder`/
|
1060
|
+
# webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings
|
1061
|
+
# @param [String] fields
|
1062
|
+
# Selector specifying which fields to include in a partial response.
|
1063
|
+
# @param [String] quota_user
|
1064
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1065
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1066
|
+
# @param [Google::Apis::RequestOptions] options
|
1067
|
+
# Request-specific options
|
1068
|
+
#
|
1069
|
+
# @yield [result, err] Result & error if block supplied
|
1070
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object
|
1071
|
+
# @yieldparam err [StandardError] error object if request failed
|
1072
|
+
#
|
1073
|
+
# @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]
|
1074
|
+
#
|
1075
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1076
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1077
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1078
|
+
def get_project_web_security_scanner_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
1079
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
1080
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
|
1081
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
|
1082
|
+
command.params['name'] = name unless name.nil?
|
1083
|
+
command.query['fields'] = fields unless fields.nil?
|
1084
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1085
|
+
execute_or_queue_command(command, &block)
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
# Update the ContainerThreatDetectionSettings resource.
|
1089
|
+
# @param [String] name
|
1090
|
+
# The resource name of the ContainerThreatDetectionSettings. Formats: *
|
1091
|
+
# organizations/`organization`/containerThreatDetectionSettings * folders/`
|
1092
|
+
# folder`/containerThreatDetectionSettings * projects/`project`/
|
1093
|
+
# containerThreatDetectionSettings * projects/`project`/locations/`location`/
|
1094
|
+
# clusters/`cluster`/containerThreatDetectionSettings
|
1095
|
+
# @param [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] container_threat_detection_settings_object
|
1096
|
+
# @param [String] update_mask
|
1097
|
+
# The list of fields to be updated.
|
1098
|
+
# @param [String] fields
|
1099
|
+
# Selector specifying which fields to include in a partial response.
|
1100
|
+
# @param [String] quota_user
|
1101
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1102
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1103
|
+
# @param [Google::Apis::RequestOptions] options
|
1104
|
+
# Request-specific options
|
1105
|
+
#
|
1106
|
+
# @yield [result, err] Result & error if block supplied
|
1107
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object
|
1108
|
+
# @yieldparam err [StandardError] error object if request failed
|
1109
|
+
#
|
1110
|
+
# @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]
|
1111
|
+
#
|
1112
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1113
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1114
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1115
|
+
def update_project_container_threat_detection_settings(name, container_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1116
|
+
command = make_simple_command(:patch, 'v1beta2/{+name}', options)
|
1117
|
+
command.request_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
|
1118
|
+
command.request_object = container_threat_detection_settings_object
|
1119
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
|
1120
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
|
1121
|
+
command.params['name'] = name unless name.nil?
|
1122
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1123
|
+
command.query['fields'] = fields unless fields.nil?
|
1124
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1125
|
+
execute_or_queue_command(command, &block)
|
1126
|
+
end
|
1127
|
+
|
1128
|
+
# Update the EventThreatDetectionSettings resource.
|
1129
|
+
# @param [String] name
|
1130
|
+
# The resource name of the EventThreatDetectionSettings. Formats: *
|
1131
|
+
# organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/
|
1132
|
+
# eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings
|
1133
|
+
# @param [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] event_threat_detection_settings_object
|
1134
|
+
# @param [String] update_mask
|
1135
|
+
# The list of fields to be updated.
|
1136
|
+
# @param [String] fields
|
1137
|
+
# Selector specifying which fields to include in a partial response.
|
1138
|
+
# @param [String] quota_user
|
1139
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1140
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1141
|
+
# @param [Google::Apis::RequestOptions] options
|
1142
|
+
# Request-specific options
|
1143
|
+
#
|
1144
|
+
# @yield [result, err] Result & error if block supplied
|
1145
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object
|
1146
|
+
# @yieldparam err [StandardError] error object if request failed
|
1147
|
+
#
|
1148
|
+
# @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]
|
1149
|
+
#
|
1150
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1151
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1152
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1153
|
+
def update_project_event_threat_detection_settings(name, event_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1154
|
+
command = make_simple_command(:patch, 'v1beta2/{+name}', options)
|
1155
|
+
command.request_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
|
1156
|
+
command.request_object = event_threat_detection_settings_object
|
1157
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
|
1158
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
|
1159
|
+
command.params['name'] = name unless name.nil?
|
1160
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1161
|
+
command.query['fields'] = fields unless fields.nil?
|
1162
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1163
|
+
execute_or_queue_command(command, &block)
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
# Update the SecurityHealthAnalyticsSettings resource.
|
1167
|
+
# @param [String] name
|
1168
|
+
# The resource name of the SecurityHealthAnalyticsSettings. Formats: *
|
1169
|
+
# organizations/`organization`/securityHealthAnalyticsSettings * folders/`folder`
|
1170
|
+
# /securityHealthAnalyticsSettings * projects/`project`/
|
1171
|
+
# securityHealthAnalyticsSettings
|
1172
|
+
# @param [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] security_health_analytics_settings_object
|
1173
|
+
# @param [String] update_mask
|
1174
|
+
# The list of fields to be updated.
|
1175
|
+
# @param [String] fields
|
1176
|
+
# Selector specifying which fields to include in a partial response.
|
1177
|
+
# @param [String] quota_user
|
1178
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1179
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1180
|
+
# @param [Google::Apis::RequestOptions] options
|
1181
|
+
# Request-specific options
|
1182
|
+
#
|
1183
|
+
# @yield [result, err] Result & error if block supplied
|
1184
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object
|
1185
|
+
# @yieldparam err [StandardError] error object if request failed
|
1186
|
+
#
|
1187
|
+
# @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]
|
1188
|
+
#
|
1189
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1190
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1191
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1192
|
+
def update_project_security_health_analytics_settings(name, security_health_analytics_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1193
|
+
command = make_simple_command(:patch, 'v1beta2/{+name}', options)
|
1194
|
+
command.request_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
|
1195
|
+
command.request_object = security_health_analytics_settings_object
|
1196
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
|
1197
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
|
1198
|
+
command.params['name'] = name unless name.nil?
|
1199
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1200
|
+
command.query['fields'] = fields unless fields.nil?
|
1201
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1202
|
+
execute_or_queue_command(command, &block)
|
1203
|
+
end
|
1204
|
+
|
1205
|
+
# Update the WebSecurityScannerSettings resource.
|
1206
|
+
# @param [String] name
|
1207
|
+
# The resource name of the WebSecurityScannerSettings. Formats: * organizations/`
|
1208
|
+
# organization`/webSecurityScannerSettings * folders/`folder`/
|
1209
|
+
# webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings
|
1210
|
+
# @param [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] web_security_scanner_settings_object
|
1211
|
+
# @param [String] update_mask
|
1212
|
+
# The list of fields to be updated.
|
1213
|
+
# @param [String] fields
|
1214
|
+
# Selector specifying which fields to include in a partial response.
|
1215
|
+
# @param [String] quota_user
|
1216
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1217
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1218
|
+
# @param [Google::Apis::RequestOptions] options
|
1219
|
+
# Request-specific options
|
1220
|
+
#
|
1221
|
+
# @yield [result, err] Result & error if block supplied
|
1222
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object
|
1223
|
+
# @yieldparam err [StandardError] error object if request failed
|
1224
|
+
#
|
1225
|
+
# @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]
|
1226
|
+
#
|
1227
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1228
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1229
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1230
|
+
def update_project_web_security_scanner_settings(name, web_security_scanner_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1231
|
+
command = make_simple_command(:patch, 'v1beta2/{+name}', options)
|
1232
|
+
command.request_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
|
1233
|
+
command.request_object = web_security_scanner_settings_object
|
1234
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
|
1235
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
|
1236
|
+
command.params['name'] = name unless name.nil?
|
1237
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1238
|
+
command.query['fields'] = fields unless fields.nil?
|
1239
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1240
|
+
execute_or_queue_command(command, &block)
|
1241
|
+
end
|
1242
|
+
|
1243
|
+
# Calculates the effective ContainerThreatDetectionSettings based on its level
|
1244
|
+
# in the resource hierarchy and its settings.
|
1245
|
+
# @param [String] name
|
1246
|
+
# Required. The name of the ContainerThreatDetectionSettings to calculate.
|
1247
|
+
# Formats: * organizations/`organization`/containerThreatDetectionSettings *
|
1248
|
+
# folders/`folder`/containerThreatDetectionSettings * projects/`project`/
|
1249
|
+
# containerThreatDetectionSettings * projects/`project`/locations/`location`/
|
1250
|
+
# clusters/`cluster`/containerThreatDetectionSettings
|
1251
|
+
# @param [String] fields
|
1252
|
+
# Selector specifying which fields to include in a partial response.
|
1253
|
+
# @param [String] quota_user
|
1254
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1255
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1256
|
+
# @param [Google::Apis::RequestOptions] options
|
1257
|
+
# Request-specific options
|
1258
|
+
#
|
1259
|
+
# @yield [result, err] Result & error if block supplied
|
1260
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object
|
1261
|
+
# @yieldparam err [StandardError] error object if request failed
|
1262
|
+
#
|
1263
|
+
# @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]
|
1264
|
+
#
|
1265
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1266
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1267
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1268
|
+
def calculate_project_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
|
1269
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
|
1270
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
|
1271
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
|
1272
|
+
command.params['name'] = name unless name.nil?
|
1273
|
+
command.query['fields'] = fields unless fields.nil?
|
1274
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1275
|
+
execute_or_queue_command(command, &block)
|
1276
|
+
end
|
1277
|
+
|
1278
|
+
# Calculates the effective EventThreatDetectionSettings based on its level in
|
1279
|
+
# the resource hierarchy and its settings.
|
1280
|
+
# @param [String] name
|
1281
|
+
# Required. The name of the EventThreatDetectionSettings to calculate. Formats: *
|
1282
|
+
# organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/
|
1283
|
+
# eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings
|
1284
|
+
# @param [String] fields
|
1285
|
+
# Selector specifying which fields to include in a partial response.
|
1286
|
+
# @param [String] quota_user
|
1287
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1288
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1289
|
+
# @param [Google::Apis::RequestOptions] options
|
1290
|
+
# Request-specific options
|
1291
|
+
#
|
1292
|
+
# @yield [result, err] Result & error if block supplied
|
1293
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object
|
1294
|
+
# @yieldparam err [StandardError] error object if request failed
|
1295
|
+
#
|
1296
|
+
# @return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]
|
1297
|
+
#
|
1298
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1299
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1300
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1301
|
+
def calculate_project_event_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
|
1302
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
|
1303
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
|
1304
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
|
1305
|
+
command.params['name'] = name unless name.nil?
|
1306
|
+
command.query['fields'] = fields unless fields.nil?
|
1307
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1308
|
+
execute_or_queue_command(command, &block)
|
1309
|
+
end
|
1310
|
+
|
1311
|
+
# Get the ContainerThreatDetectionSettings resource.
|
1312
|
+
# @param [String] name
|
1313
|
+
# Required. The name of the ContainerThreatDetectionSettings to retrieve.
|
1314
|
+
# Formats: * organizations/`organization`/containerThreatDetectionSettings *
|
1315
|
+
# folders/`folder`/containerThreatDetectionSettings * projects/`project`/
|
1316
|
+
# containerThreatDetectionSettings * projects/`project`/locations/`location`/
|
1317
|
+
# clusters/`cluster`/containerThreatDetectionSettings
|
1318
|
+
# @param [String] fields
|
1319
|
+
# Selector specifying which fields to include in a partial response.
|
1320
|
+
# @param [String] quota_user
|
1321
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1322
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1323
|
+
# @param [Google::Apis::RequestOptions] options
|
1324
|
+
# Request-specific options
|
1325
|
+
#
|
1326
|
+
# @yield [result, err] Result & error if block supplied
|
1327
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object
|
1328
|
+
# @yieldparam err [StandardError] error object if request failed
|
1329
|
+
#
|
1330
|
+
# @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]
|
1331
|
+
#
|
1332
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1333
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1334
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1335
|
+
def get_project_location_cluster_container_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
1336
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
1337
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
|
1338
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
|
1339
|
+
command.params['name'] = name unless name.nil?
|
1340
|
+
command.query['fields'] = fields unless fields.nil?
|
1341
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1342
|
+
execute_or_queue_command(command, &block)
|
1343
|
+
end
|
1344
|
+
|
1345
|
+
# Update the ContainerThreatDetectionSettings resource.
|
1346
|
+
# @param [String] name
|
1347
|
+
# The resource name of the ContainerThreatDetectionSettings. Formats: *
|
1348
|
+
# organizations/`organization`/containerThreatDetectionSettings * folders/`
|
1349
|
+
# folder`/containerThreatDetectionSettings * projects/`project`/
|
1350
|
+
# containerThreatDetectionSettings * projects/`project`/locations/`location`/
|
1351
|
+
# clusters/`cluster`/containerThreatDetectionSettings
|
1352
|
+
# @param [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] container_threat_detection_settings_object
|
1353
|
+
# @param [String] update_mask
|
1354
|
+
# The list of fields to be updated.
|
1355
|
+
# @param [String] fields
|
1356
|
+
# Selector specifying which fields to include in a partial response.
|
1357
|
+
# @param [String] quota_user
|
1358
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1359
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1360
|
+
# @param [Google::Apis::RequestOptions] options
|
1361
|
+
# Request-specific options
|
1362
|
+
#
|
1363
|
+
# @yield [result, err] Result & error if block supplied
|
1364
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object
|
1365
|
+
# @yieldparam err [StandardError] error object if request failed
|
1366
|
+
#
|
1367
|
+
# @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]
|
1368
|
+
#
|
1369
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1370
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1371
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1372
|
+
def update_project_location_cluster_container_threat_detection_settings(name, container_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1373
|
+
command = make_simple_command(:patch, 'v1beta2/{+name}', options)
|
1374
|
+
command.request_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
|
1375
|
+
command.request_object = container_threat_detection_settings_object
|
1376
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
|
1377
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
|
1378
|
+
command.params['name'] = name unless name.nil?
|
1379
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1380
|
+
command.query['fields'] = fields unless fields.nil?
|
1381
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1382
|
+
execute_or_queue_command(command, &block)
|
1383
|
+
end
|
1384
|
+
|
1385
|
+
# Calculates the effective ContainerThreatDetectionSettings based on its level
|
1386
|
+
# in the resource hierarchy and its settings.
|
1387
|
+
# @param [String] name
|
1388
|
+
# Required. The name of the ContainerThreatDetectionSettings to calculate.
|
1389
|
+
# Formats: * organizations/`organization`/containerThreatDetectionSettings *
|
1390
|
+
# folders/`folder`/containerThreatDetectionSettings * projects/`project`/
|
1391
|
+
# containerThreatDetectionSettings * projects/`project`/locations/`location`/
|
1392
|
+
# clusters/`cluster`/containerThreatDetectionSettings
|
1393
|
+
# @param [String] fields
|
1394
|
+
# Selector specifying which fields to include in a partial response.
|
1395
|
+
# @param [String] quota_user
|
1396
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1397
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1398
|
+
# @param [Google::Apis::RequestOptions] options
|
1399
|
+
# Request-specific options
|
1400
|
+
#
|
1401
|
+
# @yield [result, err] Result & error if block supplied
|
1402
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object
|
1403
|
+
# @yieldparam err [StandardError] error object if request failed
|
1404
|
+
#
|
1405
|
+
# @return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]
|
1406
|
+
#
|
1407
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1408
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1409
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1410
|
+
def calculate_project_location_cluster_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
|
1411
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
|
1412
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
|
1413
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
|
1414
|
+
command.params['name'] = name unless name.nil?
|
1415
|
+
command.query['fields'] = fields unless fields.nil?
|
1416
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1417
|
+
execute_or_queue_command(command, &block)
|
1418
|
+
end
|
1419
|
+
|
1420
|
+
# Calculates the effective SecurityHealthAnalyticsSettings based on its level in
|
1421
|
+
# the resource hierarchy and its settings.
|
1422
|
+
# @param [String] name
|
1423
|
+
# Required. The name of the SecurityHealthAnalyticsSettings to calculate.
|
1424
|
+
# Formats: * organizations/`organization`/securityHealthAnalyticsSettings *
|
1425
|
+
# folders/`folder`/securityHealthAnalyticsSettings * projects/`project`/
|
1426
|
+
# securityHealthAnalyticsSettings
|
1427
|
+
# @param [String] fields
|
1428
|
+
# Selector specifying which fields to include in a partial response.
|
1429
|
+
# @param [String] quota_user
|
1430
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1431
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1432
|
+
# @param [Google::Apis::RequestOptions] options
|
1433
|
+
# Request-specific options
|
1434
|
+
#
|
1435
|
+
# @yield [result, err] Result & error if block supplied
|
1436
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object
|
1437
|
+
# @yieldparam err [StandardError] error object if request failed
|
1438
|
+
#
|
1439
|
+
# @return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]
|
1440
|
+
#
|
1441
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1442
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1443
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1444
|
+
def calculate_project_security_health_analytics_setting(name, fields: nil, quota_user: nil, options: nil, &block)
|
1445
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
|
1446
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
|
1447
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
|
1448
|
+
command.params['name'] = name unless name.nil?
|
1449
|
+
command.query['fields'] = fields unless fields.nil?
|
1450
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1451
|
+
execute_or_queue_command(command, &block)
|
1452
|
+
end
|
1453
|
+
|
1454
|
+
# Calculates the effective WebSecurityScannerSettings based on its level in the
|
1455
|
+
# resource hierarchy and its settings.
|
1456
|
+
# @param [String] name
|
1457
|
+
# Required. The name of the WebSecurityScannerSettings to calculate. Formats: *
|
1458
|
+
# organizations/`organization`/webSecurityScannerSettings * folders/`folder`/
|
1459
|
+
# webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings
|
1460
|
+
# @param [String] fields
|
1461
|
+
# Selector specifying which fields to include in a partial response.
|
1462
|
+
# @param [String] quota_user
|
1463
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1464
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1465
|
+
# @param [Google::Apis::RequestOptions] options
|
1466
|
+
# Request-specific options
|
1467
|
+
#
|
1468
|
+
# @yield [result, err] Result & error if block supplied
|
1469
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object
|
1470
|
+
# @yieldparam err [StandardError] error object if request failed
|
1471
|
+
#
|
1472
|
+
# @return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]
|
1473
|
+
#
|
1474
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1475
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1476
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1477
|
+
def calculate_project_web_security_scanner_setting(name, fields: nil, quota_user: nil, options: nil, &block)
|
1478
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
|
1479
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
|
1480
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
|
1481
|
+
command.params['name'] = name unless name.nil?
|
1482
|
+
command.query['fields'] = fields unless fields.nil?
|
1483
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1484
|
+
execute_or_queue_command(command, &block)
|
1485
|
+
end
|
1486
|
+
|
1487
|
+
protected
|
1488
|
+
|
1489
|
+
def apply_command_defaults(command)
|
1490
|
+
command.query['key'] = key unless key.nil?
|
1491
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1492
|
+
end
|
1493
|
+
end
|
1494
|
+
end
|
1495
|
+
end
|
1496
|
+
end
|