google-apis-securitycenter_v1beta2 0.11.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83e8e08ccb7ccaede9e2a8951a08950086095d547cfe662bec6ae7192460ba9b
4
- data.tar.gz: 3046f9aa5245c50f8e4961a8c82e95de653529452ff8b839d0e44b484dad8b13
3
+ metadata.gz: f475b18c808684b31aa4a1d0c16cf7cdf1b7ce0afe9466a859a48597367dfccf
4
+ data.tar.gz: 0f77294a6ff512e4dcc3417fd5111e089de39049f96db9c8fc57386fead7acec
5
5
  SHA512:
6
- metadata.gz: f26aa432918cf7e3f8006a49f3398fcc5a86dd3d602cb35a638f7c05996fb19e0968285d83b019d6cc2d757137b9c65e75e29b3f9176e71b1e9fae7dca63456a
7
- data.tar.gz: 983b5b043c42f6401bc2223fd0bc93a181e1a9b5fd655ce350e20275783ea0950e70c8f73280fd15860804e046e8bf31d55794204d5f390064077f9e27f0746f
6
+ metadata.gz: cd54e068badfd502bccf6daaa24225d644e32da08ed62f46bc000395646d8e57162b018a1397c6e8a14b4ccbd495b64e1bd9ebf30d99c9331dc3eee81f5ada8a
7
+ data.tar.gz: b787a37bc6f38d02167d6e02328c83db8d819f42ee243db18196f90609f3983d44dd2f8868cdc53e990efbb42f3868d823c646350a963917e33c706fdc55d7bf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-securitycenter_v1beta2
2
2
 
3
+ ### v0.15.0 (2022-02-15)
4
+
5
+ * Regenerated from discovery document revision 20220210
6
+
7
+ ### v0.14.0 (2022-02-01)
8
+
9
+ * Regenerated from discovery document revision 20220127
10
+
11
+ ### v0.13.0 (2022-01-19)
12
+
13
+ * Regenerated from discovery document revision 20220113
14
+ * Regenerated using generator version 0.4.1
15
+
16
+ ### v0.12.0 (2021-12-16)
17
+
18
+ * Regenerated from discovery document revision 20211213
19
+
3
20
  ### v0.11.0 (2021-12-09)
4
21
 
5
22
  * Regenerated from discovery document revision 20211207
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.authentication = # ... use the googleauth gem to create credentials
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.
@@ -172,6 +172,12 @@ module Google
172
172
  # @return [Array<Google::Apis::SecuritycenterV1beta2::Reference>]
173
173
  attr_accessor :references
174
174
 
175
+ # Whether upstream fix is available for the CVE.
176
+ # Corresponds to the JSON property `upstreamFixAvailable`
177
+ # @return [Boolean]
178
+ attr_accessor :upstream_fix_available
179
+ alias_method :upstream_fix_available?, :upstream_fix_available
180
+
175
181
  def initialize(**args)
176
182
  update!(**args)
177
183
  end
@@ -181,6 +187,7 @@ module Google
181
187
  @cvssv3 = args[:cvssv3] if args.key?(:cvssv3)
182
188
  @id = args[:id] if args.key?(:id)
183
189
  @references = args[:references] if args.key?(:references)
190
+ @upstream_fix_available = args[:upstream_fix_available] if args.key?(:upstream_fix_available)
184
191
  end
185
192
  end
186
193
 
@@ -367,12 +374,12 @@ module Google
367
374
  # @return [String]
368
375
  attr_accessor :create_time
369
376
 
370
- # The time at which the event took place, or when an update to the finding
371
- # occurred. For example, if the finding represents an open firewall it would
372
- # capture the time the detector believes the firewall became open. The accuracy
373
- # is determined by the detector. If the finding were to be resolved afterward,
374
- # this time would reflect when the finding was resolved. Must not be set to a
375
- # value greater than the current timestamp.
377
+ # The time the finding was first detected. If an existing finding is updated,
378
+ # then this is the time the update occurred. For example, if the finding
379
+ # represents an open firewall, this property captures the time the detector
380
+ # believes the firewall became open. The accuracy is determined by the detector.
381
+ # If the finding is later resolved, then this time reflects when the finding was
382
+ # resolved. This must not be set to a value greater than the current timestamp.
376
383
  # Corresponds to the JSON property `eventTime`
377
384
  # @return [String]
378
385
  attr_accessor :event_time
@@ -410,14 +417,16 @@ module Google
410
417
  attr_accessor :mitre_attack
411
418
 
412
419
  # Indicates the mute state of a finding (either unspecified, muted, unmuted or
413
- # undefined).
420
+ # undefined). Unlike other attributes of a finding, a finding provider shouldn't
421
+ # set the value of mute.
414
422
  # Corresponds to the JSON property `mute`
415
423
  # @return [String]
416
424
  attr_accessor :mute
417
425
 
418
426
  # First known as mute_annotation. Records additional information about the mute
419
427
  # operation e.g. mute config that muted the finding, user who muted the finding,
420
- # etc.
428
+ # etc. Unlike other attributes of a finding, a finding provider shouldn't set
429
+ # the value of mute.
421
430
  # Corresponds to the JSON property `muteInitiator`
422
431
  # @return [String]
423
432
  attr_accessor :mute_initiator
@@ -1409,6 +1418,57 @@ module Google
1409
1418
  end
1410
1419
  end
1411
1420
 
1421
+ # Resource capturing the settings for the Virtual Machine Threat Detection
1422
+ # service.
1423
+ class VirtualMachineThreatDetectionSettings
1424
+ include Google::Apis::Core::Hashable
1425
+
1426
+ # The configurations including the state of enablement for the service's
1427
+ # different modules. The absence of a module in the map implies its
1428
+ # configuration is inherited from its parent's.
1429
+ # Corresponds to the JSON property `modules`
1430
+ # @return [Hash<String,Google::Apis::SecuritycenterV1beta2::Config>]
1431
+ attr_accessor :modules
1432
+
1433
+ # The resource name of the VirtualMachineThreatDetectionSettings. Formats: *
1434
+ # organizations/`organization`/virtualMachineThreatDetectionSettings * folders/`
1435
+ # folder`/virtualMachineThreatDetectionSettings * projects/`project`/
1436
+ # virtualMachineThreatDetectionSettings
1437
+ # Corresponds to the JSON property `name`
1438
+ # @return [String]
1439
+ attr_accessor :name
1440
+
1441
+ # Output only. The service account used by Virtual Machine Threat Detection
1442
+ # detectors.
1443
+ # Corresponds to the JSON property `serviceAccount`
1444
+ # @return [String]
1445
+ attr_accessor :service_account
1446
+
1447
+ # The state of enablement for the service at its level of the resource hierarchy.
1448
+ # A DISABLED state will override all module enablement_states to DISABLED.
1449
+ # Corresponds to the JSON property `serviceEnablementState`
1450
+ # @return [String]
1451
+ attr_accessor :service_enablement_state
1452
+
1453
+ # Output only. The time the settings were last updated.
1454
+ # Corresponds to the JSON property `updateTime`
1455
+ # @return [String]
1456
+ attr_accessor :update_time
1457
+
1458
+ def initialize(**args)
1459
+ update!(**args)
1460
+ end
1461
+
1462
+ # Update properties of this object
1463
+ def update!(**args)
1464
+ @modules = args[:modules] if args.key?(:modules)
1465
+ @name = args[:name] if args.key?(:name)
1466
+ @service_account = args[:service_account] if args.key?(:service_account)
1467
+ @service_enablement_state = args[:service_enablement_state] if args.key?(:service_enablement_state)
1468
+ @update_time = args[:update_time] if args.key?(:update_time)
1469
+ end
1470
+ end
1471
+
1412
1472
  # Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
1413
1473
  class Vulnerability
1414
1474
  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.11.0"
19
+ GEM_VERSION = "0.15.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211207"
25
+ REVISION = "20220210"
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
 
@@ -255,6 +261,7 @@ module Google
255
261
  property :id, as: 'id'
256
262
  collection :references, as: 'references', class: Google::Apis::SecuritycenterV1beta2::Reference, decorator: Google::Apis::SecuritycenterV1beta2::Reference::Representation
257
263
 
264
+ property :upstream_fix_available, as: 'upstreamFixAvailable'
258
265
  end
259
266
  end
260
267
 
@@ -548,6 +555,18 @@ module Google
548
555
  end
549
556
  end
550
557
 
558
+ class VirtualMachineThreatDetectionSettings
559
+ # @private
560
+ class Representation < Google::Apis::Core::JsonRepresentation
561
+ hash :modules, as: 'modules', class: Google::Apis::SecuritycenterV1beta2::Config, decorator: Google::Apis::SecuritycenterV1beta2::Config::Representation
562
+
563
+ property :name, as: 'name'
564
+ property :service_account, as: 'serviceAccount'
565
+ property :service_enablement_state, as: 'serviceEnablementState'
566
+ property :update_time, as: 'updateTime'
567
+ end
568
+ end
569
+
551
570
  class Vulnerability
552
571
  # @private
553
572
  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.11.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-13 00:00:00.000000000 Z
11
+ date: 2022-02-21 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.11.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.15.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.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Security Command Center API V1beta2