google-apis-securitycenter_v1beta2 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/securitycenter_v1beta2/classes.rb +51 -0
- data/lib/google/apis/securitycenter_v1beta2/gem_version.rb +2 -2
- data/lib/google/apis/securitycenter_v1beta2/representations.rb +18 -0
- data/lib/google/apis/securitycenter_v1beta2/service.rb +318 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f30db973440c912123f8f370b17e2f7bb220d44a14ea49519667b6807b2d416a
|
4
|
+
data.tar.gz: a778d35dab6492ed95d9b0a798a21573f180d31d28220c924b2a2921d1a44972
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38e54fcea8ba542dbb7371786e8b4d13478e7599374a33aaabd46b93f77c359796cacef0a50b1d2120b8e01f0717cb61dbf8e0193d09f048f4f1385c507cb9ff
|
7
|
+
data.tar.gz: 8481b0d901becd2ce8480a508791a4ab86d3623010b448668804aca44a7f1d3f4324bef1dbdad857141c74f7ef0dd696877dba00ac49bf97fe98052aa2a144e5
|
data/CHANGELOG.md
CHANGED
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/securitycenter_v1beta2"
|
|
51
51
|
client = Google::Apis::SecuritycenterV1beta2::SecurityCommandCenterService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -1409,6 +1409,57 @@ module Google
|
|
1409
1409
|
end
|
1410
1410
|
end
|
1411
1411
|
|
1412
|
+
# Resource capturing the settings for the Virtual Machine Threat Detection
|
1413
|
+
# service.
|
1414
|
+
class VirtualMachineThreatDetectionSettings
|
1415
|
+
include Google::Apis::Core::Hashable
|
1416
|
+
|
1417
|
+
# The configurations including the state of enablement for the service's
|
1418
|
+
# different modules. The absence of a module in the map implies its
|
1419
|
+
# configuration is inherited from its parent's.
|
1420
|
+
# Corresponds to the JSON property `modules`
|
1421
|
+
# @return [Hash<String,Google::Apis::SecuritycenterV1beta2::Config>]
|
1422
|
+
attr_accessor :modules
|
1423
|
+
|
1424
|
+
# The resource name of the VirtualMachineThreatDetectionSettings. Formats: *
|
1425
|
+
# organizations/`organization`/virtualMachineThreatDetectionSettings * folders/`
|
1426
|
+
# folder`/virtualMachineThreatDetectionSettings * projects/`project`/
|
1427
|
+
# virtualMachineThreatDetectionSettings
|
1428
|
+
# Corresponds to the JSON property `name`
|
1429
|
+
# @return [String]
|
1430
|
+
attr_accessor :name
|
1431
|
+
|
1432
|
+
# Output only. The service account used by Virtual Machine Threat Detection
|
1433
|
+
# detectors.
|
1434
|
+
# Corresponds to the JSON property `serviceAccount`
|
1435
|
+
# @return [String]
|
1436
|
+
attr_accessor :service_account
|
1437
|
+
|
1438
|
+
# The state of enablement for the service at its level of the resource hierarchy.
|
1439
|
+
# A DISABLED state will override all module enablement_states to DISABLED.
|
1440
|
+
# Corresponds to the JSON property `serviceEnablementState`
|
1441
|
+
# @return [String]
|
1442
|
+
attr_accessor :service_enablement_state
|
1443
|
+
|
1444
|
+
# Output only. The time the settings were last updated.
|
1445
|
+
# Corresponds to the JSON property `updateTime`
|
1446
|
+
# @return [String]
|
1447
|
+
attr_accessor :update_time
|
1448
|
+
|
1449
|
+
def initialize(**args)
|
1450
|
+
update!(**args)
|
1451
|
+
end
|
1452
|
+
|
1453
|
+
# Update properties of this object
|
1454
|
+
def update!(**args)
|
1455
|
+
@modules = args[:modules] if args.key?(:modules)
|
1456
|
+
@name = args[:name] if args.key?(:name)
|
1457
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
1458
|
+
@service_enablement_state = args[:service_enablement_state] if args.key?(:service_enablement_state)
|
1459
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1460
|
+
end
|
1461
|
+
end
|
1462
|
+
|
1412
1463
|
# Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
|
1413
1464
|
class Vulnerability
|
1414
1465
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module SecuritycenterV1beta2
|
18
18
|
# Version of the google-apis-securitycenter_v1beta2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211213"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -202,6 +202,12 @@ module Google
|
|
202
202
|
include Google::Apis::Core::JsonObjectSupport
|
203
203
|
end
|
204
204
|
|
205
|
+
class VirtualMachineThreatDetectionSettings
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
205
211
|
class Vulnerability
|
206
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
213
|
|
@@ -548,6 +554,18 @@ module Google
|
|
548
554
|
end
|
549
555
|
end
|
550
556
|
|
557
|
+
class VirtualMachineThreatDetectionSettings
|
558
|
+
# @private
|
559
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
560
|
+
hash :modules, as: 'modules', class: Google::Apis::SecuritycenterV1beta2::Config, decorator: Google::Apis::SecuritycenterV1beta2::Config::Representation
|
561
|
+
|
562
|
+
property :name, as: 'name'
|
563
|
+
property :service_account, as: 'serviceAccount'
|
564
|
+
property :service_enablement_state, as: 'serviceEnablementState'
|
565
|
+
property :update_time, as: 'updateTime'
|
566
|
+
end
|
567
|
+
end
|
568
|
+
|
551
569
|
class Vulnerability
|
552
570
|
# @private
|
553
571
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -149,6 +149,39 @@ module Google
|
|
149
149
|
execute_or_queue_command(command, &block)
|
150
150
|
end
|
151
151
|
|
152
|
+
# Get the VirtualMachineThreatDetectionSettings resource.
|
153
|
+
# @param [String] name
|
154
|
+
# Required. The name of the VirtualMachineThreatDetectionSettings to retrieve.
|
155
|
+
# Formats: * organizations/`organization`/virtualMachineThreatDetectionSettings *
|
156
|
+
# folders/`folder`/virtualMachineThreatDetectionSettings * projects/`project`/
|
157
|
+
# virtualMachineThreatDetectionSettings
|
158
|
+
# @param [String] fields
|
159
|
+
# Selector specifying which fields to include in a partial response.
|
160
|
+
# @param [String] quota_user
|
161
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
162
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
163
|
+
# @param [Google::Apis::RequestOptions] options
|
164
|
+
# Request-specific options
|
165
|
+
#
|
166
|
+
# @yield [result, err] Result & error if block supplied
|
167
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings] parsed result object
|
168
|
+
# @yieldparam err [StandardError] error object if request failed
|
169
|
+
#
|
170
|
+
# @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
|
171
|
+
#
|
172
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
173
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
174
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
175
|
+
def get_folder_virtual_machine_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
176
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
177
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
|
178
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
|
179
|
+
command.params['name'] = name unless name.nil?
|
180
|
+
command.query['fields'] = fields unless fields.nil?
|
181
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
182
|
+
execute_or_queue_command(command, &block)
|
183
|
+
end
|
184
|
+
|
152
185
|
# Get the WebSecurityScannerSettings resource.
|
153
186
|
# @param [String] name
|
154
187
|
# Required. The name of the WebSecurityScannerSettings to retrieve. Formats: *
|
@@ -298,6 +331,45 @@ module Google
|
|
298
331
|
execute_or_queue_command(command, &block)
|
299
332
|
end
|
300
333
|
|
334
|
+
# Update the VirtualMachineThreatDetectionSettings resource.
|
335
|
+
# @param [String] name
|
336
|
+
# The resource name of the VirtualMachineThreatDetectionSettings. Formats: *
|
337
|
+
# organizations/`organization`/virtualMachineThreatDetectionSettings * folders/`
|
338
|
+
# folder`/virtualMachineThreatDetectionSettings * projects/`project`/
|
339
|
+
# virtualMachineThreatDetectionSettings
|
340
|
+
# @param [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings] virtual_machine_threat_detection_settings_object
|
341
|
+
# @param [String] update_mask
|
342
|
+
# The list of fields to be updated.
|
343
|
+
# @param [String] fields
|
344
|
+
# Selector specifying which fields to include in a partial response.
|
345
|
+
# @param [String] quota_user
|
346
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
347
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
348
|
+
# @param [Google::Apis::RequestOptions] options
|
349
|
+
# Request-specific options
|
350
|
+
#
|
351
|
+
# @yield [result, err] Result & error if block supplied
|
352
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings] parsed result object
|
353
|
+
# @yieldparam err [StandardError] error object if request failed
|
354
|
+
#
|
355
|
+
# @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
|
356
|
+
#
|
357
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
358
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
359
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
360
|
+
def update_folder_virtual_machine_threat_detection_settings(name, virtual_machine_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
361
|
+
command = make_simple_command(:patch, 'v1beta2/{+name}', options)
|
362
|
+
command.request_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
|
363
|
+
command.request_object = virtual_machine_threat_detection_settings_object
|
364
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
|
365
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
|
366
|
+
command.params['name'] = name unless name.nil?
|
367
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
368
|
+
command.query['fields'] = fields unless fields.nil?
|
369
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
370
|
+
execute_or_queue_command(command, &block)
|
371
|
+
end
|
372
|
+
|
301
373
|
# Update the WebSecurityScannerSettings resource.
|
302
374
|
# @param [String] name
|
303
375
|
# The resource name of the WebSecurityScannerSettings. Formats: * organizations/`
|
@@ -438,6 +510,40 @@ module Google
|
|
438
510
|
execute_or_queue_command(command, &block)
|
439
511
|
end
|
440
512
|
|
513
|
+
# Calculates the effective VirtualMachineThreatDetectionSettings based on its
|
514
|
+
# level in the resource hierarchy and its settings.
|
515
|
+
# @param [String] name
|
516
|
+
# Required. The name of the VirtualMachineThreatDetectionSettings to calculate.
|
517
|
+
# Formats: * organizations/`organization`/virtualMachineThreatDetectionSettings *
|
518
|
+
# folders/`folder`/virtualMachineThreatDetectionSettings * projects/`project`/
|
519
|
+
# virtualMachineThreatDetectionSettings
|
520
|
+
# @param [String] fields
|
521
|
+
# Selector specifying which fields to include in a partial response.
|
522
|
+
# @param [String] quota_user
|
523
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
524
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
525
|
+
# @param [Google::Apis::RequestOptions] options
|
526
|
+
# Request-specific options
|
527
|
+
#
|
528
|
+
# @yield [result, err] Result & error if block supplied
|
529
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings] parsed result object
|
530
|
+
# @yieldparam err [StandardError] error object if request failed
|
531
|
+
#
|
532
|
+
# @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
|
533
|
+
#
|
534
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
535
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
536
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
537
|
+
def calculate_folder_virtual_machine_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
|
538
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
|
539
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
|
540
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
|
541
|
+
command.params['name'] = name unless name.nil?
|
542
|
+
command.query['fields'] = fields unless fields.nil?
|
543
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
544
|
+
execute_or_queue_command(command, &block)
|
545
|
+
end
|
546
|
+
|
441
547
|
# Calculates the effective WebSecurityScannerSettings based on its level in the
|
442
548
|
# resource hierarchy and its settings.
|
443
549
|
# @param [String] name
|
@@ -632,6 +738,39 @@ module Google
|
|
632
738
|
execute_or_queue_command(command, &block)
|
633
739
|
end
|
634
740
|
|
741
|
+
# Get the VirtualMachineThreatDetectionSettings resource.
|
742
|
+
# @param [String] name
|
743
|
+
# Required. The name of the VirtualMachineThreatDetectionSettings to retrieve.
|
744
|
+
# Formats: * organizations/`organization`/virtualMachineThreatDetectionSettings *
|
745
|
+
# folders/`folder`/virtualMachineThreatDetectionSettings * projects/`project`/
|
746
|
+
# virtualMachineThreatDetectionSettings
|
747
|
+
# @param [String] fields
|
748
|
+
# Selector specifying which fields to include in a partial response.
|
749
|
+
# @param [String] quota_user
|
750
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
751
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
752
|
+
# @param [Google::Apis::RequestOptions] options
|
753
|
+
# Request-specific options
|
754
|
+
#
|
755
|
+
# @yield [result, err] Result & error if block supplied
|
756
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings] parsed result object
|
757
|
+
# @yieldparam err [StandardError] error object if request failed
|
758
|
+
#
|
759
|
+
# @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
|
760
|
+
#
|
761
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
762
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
763
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
764
|
+
def get_organization_virtual_machine_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
765
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
766
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
|
767
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
|
768
|
+
command.params['name'] = name unless name.nil?
|
769
|
+
command.query['fields'] = fields unless fields.nil?
|
770
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
771
|
+
execute_or_queue_command(command, &block)
|
772
|
+
end
|
773
|
+
|
635
774
|
# Get the WebSecurityScannerSettings resource.
|
636
775
|
# @param [String] name
|
637
776
|
# Required. The name of the WebSecurityScannerSettings to retrieve. Formats: *
|
@@ -781,6 +920,45 @@ module Google
|
|
781
920
|
execute_or_queue_command(command, &block)
|
782
921
|
end
|
783
922
|
|
923
|
+
# Update the VirtualMachineThreatDetectionSettings resource.
|
924
|
+
# @param [String] name
|
925
|
+
# The resource name of the VirtualMachineThreatDetectionSettings. Formats: *
|
926
|
+
# organizations/`organization`/virtualMachineThreatDetectionSettings * folders/`
|
927
|
+
# folder`/virtualMachineThreatDetectionSettings * projects/`project`/
|
928
|
+
# virtualMachineThreatDetectionSettings
|
929
|
+
# @param [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings] virtual_machine_threat_detection_settings_object
|
930
|
+
# @param [String] update_mask
|
931
|
+
# The list of fields to be updated.
|
932
|
+
# @param [String] fields
|
933
|
+
# Selector specifying which fields to include in a partial response.
|
934
|
+
# @param [String] quota_user
|
935
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
936
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
937
|
+
# @param [Google::Apis::RequestOptions] options
|
938
|
+
# Request-specific options
|
939
|
+
#
|
940
|
+
# @yield [result, err] Result & error if block supplied
|
941
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings] parsed result object
|
942
|
+
# @yieldparam err [StandardError] error object if request failed
|
943
|
+
#
|
944
|
+
# @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
|
945
|
+
#
|
946
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
947
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
948
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
949
|
+
def update_organization_virtual_machine_threat_detection_settings(name, virtual_machine_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
950
|
+
command = make_simple_command(:patch, 'v1beta2/{+name}', options)
|
951
|
+
command.request_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
|
952
|
+
command.request_object = virtual_machine_threat_detection_settings_object
|
953
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
|
954
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
|
955
|
+
command.params['name'] = name unless name.nil?
|
956
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
957
|
+
command.query['fields'] = fields unless fields.nil?
|
958
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
959
|
+
execute_or_queue_command(command, &block)
|
960
|
+
end
|
961
|
+
|
784
962
|
# Update the WebSecurityScannerSettings resource.
|
785
963
|
# @param [String] name
|
786
964
|
# The resource name of the WebSecurityScannerSettings. Formats: * organizations/`
|
@@ -921,6 +1099,40 @@ module Google
|
|
921
1099
|
execute_or_queue_command(command, &block)
|
922
1100
|
end
|
923
1101
|
|
1102
|
+
# Calculates the effective VirtualMachineThreatDetectionSettings based on its
|
1103
|
+
# level in the resource hierarchy and its settings.
|
1104
|
+
# @param [String] name
|
1105
|
+
# Required. The name of the VirtualMachineThreatDetectionSettings to calculate.
|
1106
|
+
# Formats: * organizations/`organization`/virtualMachineThreatDetectionSettings *
|
1107
|
+
# folders/`folder`/virtualMachineThreatDetectionSettings * projects/`project`/
|
1108
|
+
# virtualMachineThreatDetectionSettings
|
1109
|
+
# @param [String] fields
|
1110
|
+
# Selector specifying which fields to include in a partial response.
|
1111
|
+
# @param [String] quota_user
|
1112
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1113
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1114
|
+
# @param [Google::Apis::RequestOptions] options
|
1115
|
+
# Request-specific options
|
1116
|
+
#
|
1117
|
+
# @yield [result, err] Result & error if block supplied
|
1118
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings] parsed result object
|
1119
|
+
# @yieldparam err [StandardError] error object if request failed
|
1120
|
+
#
|
1121
|
+
# @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
|
1122
|
+
#
|
1123
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1124
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1125
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1126
|
+
def calculate_organization_virtual_machine_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
|
1127
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
|
1128
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
|
1129
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
|
1130
|
+
command.params['name'] = name unless name.nil?
|
1131
|
+
command.query['fields'] = fields unless fields.nil?
|
1132
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1133
|
+
execute_or_queue_command(command, &block)
|
1134
|
+
end
|
1135
|
+
|
924
1136
|
# Calculates the effective WebSecurityScannerSettings based on its level in the
|
925
1137
|
# resource hierarchy and its settings.
|
926
1138
|
# @param [String] name
|
@@ -1053,6 +1265,39 @@ module Google
|
|
1053
1265
|
execute_or_queue_command(command, &block)
|
1054
1266
|
end
|
1055
1267
|
|
1268
|
+
# Get the VirtualMachineThreatDetectionSettings resource.
|
1269
|
+
# @param [String] name
|
1270
|
+
# Required. The name of the VirtualMachineThreatDetectionSettings to retrieve.
|
1271
|
+
# Formats: * organizations/`organization`/virtualMachineThreatDetectionSettings *
|
1272
|
+
# folders/`folder`/virtualMachineThreatDetectionSettings * projects/`project`/
|
1273
|
+
# virtualMachineThreatDetectionSettings
|
1274
|
+
# @param [String] fields
|
1275
|
+
# Selector specifying which fields to include in a partial response.
|
1276
|
+
# @param [String] quota_user
|
1277
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1278
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1279
|
+
# @param [Google::Apis::RequestOptions] options
|
1280
|
+
# Request-specific options
|
1281
|
+
#
|
1282
|
+
# @yield [result, err] Result & error if block supplied
|
1283
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings] parsed result object
|
1284
|
+
# @yieldparam err [StandardError] error object if request failed
|
1285
|
+
#
|
1286
|
+
# @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
|
1287
|
+
#
|
1288
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1289
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1290
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1291
|
+
def get_project_virtual_machine_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
1292
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
1293
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
|
1294
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
|
1295
|
+
command.params['name'] = name unless name.nil?
|
1296
|
+
command.query['fields'] = fields unless fields.nil?
|
1297
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1298
|
+
execute_or_queue_command(command, &block)
|
1299
|
+
end
|
1300
|
+
|
1056
1301
|
# Get the WebSecurityScannerSettings resource.
|
1057
1302
|
# @param [String] name
|
1058
1303
|
# Required. The name of the WebSecurityScannerSettings to retrieve. Formats: *
|
@@ -1202,6 +1447,45 @@ module Google
|
|
1202
1447
|
execute_or_queue_command(command, &block)
|
1203
1448
|
end
|
1204
1449
|
|
1450
|
+
# Update the VirtualMachineThreatDetectionSettings resource.
|
1451
|
+
# @param [String] name
|
1452
|
+
# The resource name of the VirtualMachineThreatDetectionSettings. Formats: *
|
1453
|
+
# organizations/`organization`/virtualMachineThreatDetectionSettings * folders/`
|
1454
|
+
# folder`/virtualMachineThreatDetectionSettings * projects/`project`/
|
1455
|
+
# virtualMachineThreatDetectionSettings
|
1456
|
+
# @param [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings] virtual_machine_threat_detection_settings_object
|
1457
|
+
# @param [String] update_mask
|
1458
|
+
# The list of fields to be updated.
|
1459
|
+
# @param [String] fields
|
1460
|
+
# Selector specifying which fields to include in a partial response.
|
1461
|
+
# @param [String] quota_user
|
1462
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1463
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1464
|
+
# @param [Google::Apis::RequestOptions] options
|
1465
|
+
# Request-specific options
|
1466
|
+
#
|
1467
|
+
# @yield [result, err] Result & error if block supplied
|
1468
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings] parsed result object
|
1469
|
+
# @yieldparam err [StandardError] error object if request failed
|
1470
|
+
#
|
1471
|
+
# @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
|
1472
|
+
#
|
1473
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1474
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1475
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1476
|
+
def update_project_virtual_machine_threat_detection_settings(name, virtual_machine_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1477
|
+
command = make_simple_command(:patch, 'v1beta2/{+name}', options)
|
1478
|
+
command.request_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
|
1479
|
+
command.request_object = virtual_machine_threat_detection_settings_object
|
1480
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
|
1481
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
|
1482
|
+
command.params['name'] = name unless name.nil?
|
1483
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1484
|
+
command.query['fields'] = fields unless fields.nil?
|
1485
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1486
|
+
execute_or_queue_command(command, &block)
|
1487
|
+
end
|
1488
|
+
|
1205
1489
|
# Update the WebSecurityScannerSettings resource.
|
1206
1490
|
# @param [String] name
|
1207
1491
|
# The resource name of the WebSecurityScannerSettings. Formats: * organizations/`
|
@@ -1451,6 +1735,40 @@ module Google
|
|
1451
1735
|
execute_or_queue_command(command, &block)
|
1452
1736
|
end
|
1453
1737
|
|
1738
|
+
# Calculates the effective VirtualMachineThreatDetectionSettings based on its
|
1739
|
+
# level in the resource hierarchy and its settings.
|
1740
|
+
# @param [String] name
|
1741
|
+
# Required. The name of the VirtualMachineThreatDetectionSettings to calculate.
|
1742
|
+
# Formats: * organizations/`organization`/virtualMachineThreatDetectionSettings *
|
1743
|
+
# folders/`folder`/virtualMachineThreatDetectionSettings * projects/`project`/
|
1744
|
+
# virtualMachineThreatDetectionSettings
|
1745
|
+
# @param [String] fields
|
1746
|
+
# Selector specifying which fields to include in a partial response.
|
1747
|
+
# @param [String] quota_user
|
1748
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1749
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1750
|
+
# @param [Google::Apis::RequestOptions] options
|
1751
|
+
# Request-specific options
|
1752
|
+
#
|
1753
|
+
# @yield [result, err] Result & error if block supplied
|
1754
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings] parsed result object
|
1755
|
+
# @yieldparam err [StandardError] error object if request failed
|
1756
|
+
#
|
1757
|
+
# @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
|
1758
|
+
#
|
1759
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1760
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1761
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1762
|
+
def calculate_project_virtual_machine_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
|
1763
|
+
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
|
1764
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
|
1765
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
|
1766
|
+
command.params['name'] = name unless name.nil?
|
1767
|
+
command.query['fields'] = fields unless fields.nil?
|
1768
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1769
|
+
execute_or_queue_command(command, &block)
|
1770
|
+
end
|
1771
|
+
|
1454
1772
|
# Calculates the effective WebSecurityScannerSettings based on its level in the
|
1455
1773
|
# resource hierarchy and its settings.
|
1456
1774
|
# @param [String] name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-securitycenter_v1beta2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1beta2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.12.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1beta2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.4
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Security Command Center API V1beta2
|