google-apis-securitycenter_v1beta2 0.26.0 → 0.27.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df58de0dab855adc920079444a0b66452574b044496b45cdfd8166a6a3718f99
4
- data.tar.gz: 21d114f1da69469df3e10a6baed83e735038b87495da8b43a35ad9749e0ce46b
3
+ metadata.gz: 5bc6203b2f693e5f9d1d78f4faef1febd07920a2096c802fdd16bebba5900913
4
+ data.tar.gz: a109f9dd8110878e1687050739f57f6553ec964ceeed2808e6c0b54fd7f6d335
5
5
  SHA512:
6
- metadata.gz: 310e2420d1555d6e958edcbbc75839b383303e7f25c671719f40d42d43bfebe24894480ba3aeae64ab56274d5b335b2979064b6c55dc7c1ae55deed298d754b2
7
- data.tar.gz: 9df0d6da61e3de63852be8357929e3f40d3db122dd7e879a1574d1faa067f4844d552879cb074d9af9ee23b9776f3aa938a4b3342787bc2c5db6f3886c6bc45b
6
+ metadata.gz: 44084595bf441da8ad7fe295a7a910369c9c1d6a4f3a5b4e3c0cdaea0307dd10a2726d76955f8dd658a2aa5aa2906c7440a4c7bf23e038b3c4c5fe018097dbd7
7
+ data.tar.gz: b47bdfd1c2357270787b6de91cccc0fac323dc55436fdaeec45148e9b5af1710f3596ff0fcfc1a2f98b5893cf02e3b240fd99ee17b3eda65759902e9823d285d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-securitycenter_v1beta2
2
2
 
3
+ ### v0.27.0 (2022-06-30)
4
+
5
+ * Regenerated using generator version 0.8.0
6
+ * Regenerated from discovery document revision 20220624
7
+
3
8
  ### v0.26.0 (2022-06-19)
4
9
 
5
10
  * Regenerated using generator version 0.7.0
@@ -1841,6 +1841,49 @@ module Google
1841
1841
  end
1842
1842
  end
1843
1843
 
1844
+ # Resource capturing the settings for the Rapid Vulnerability Detection service.
1845
+ class RapidVulnerabilityDetectionSettings
1846
+ include Google::Apis::Core::Hashable
1847
+
1848
+ # The configurations including the state of enablement for the service's
1849
+ # different modules. The absence of a module in the map implies its
1850
+ # configuration is inherited from its parent's.
1851
+ # Corresponds to the JSON property `modules`
1852
+ # @return [Hash<String,Google::Apis::SecuritycenterV1beta2::Config>]
1853
+ attr_accessor :modules
1854
+
1855
+ # The resource name of the RapidVulnerabilityDetectionSettings. Formats: *
1856
+ # organizations/`organization`/rapidVulnerabilityDetectionSettings * folders/`
1857
+ # folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
1858
+ # rapidVulnerabilityDetectionSettings
1859
+ # Corresponds to the JSON property `name`
1860
+ # @return [String]
1861
+ attr_accessor :name
1862
+
1863
+ # The state of enablement for the service at its level of the resource hierarchy.
1864
+ # A DISABLED state will override all module enablement_states to DISABLED.
1865
+ # Corresponds to the JSON property `serviceEnablementState`
1866
+ # @return [String]
1867
+ attr_accessor :service_enablement_state
1868
+
1869
+ # Output only. The time the settings were last updated.
1870
+ # Corresponds to the JSON property `updateTime`
1871
+ # @return [String]
1872
+ attr_accessor :update_time
1873
+
1874
+ def initialize(**args)
1875
+ update!(**args)
1876
+ end
1877
+
1878
+ # Update properties of this object
1879
+ def update!(**args)
1880
+ @modules = args[:modules] if args.key?(:modules)
1881
+ @name = args[:name] if args.key?(:name)
1882
+ @service_enablement_state = args[:service_enablement_state] if args.key?(:service_enablement_state)
1883
+ @update_time = args[:update_time] if args.key?(:update_time)
1884
+ end
1885
+ end
1886
+
1844
1887
  # Additional Links
1845
1888
  class Reference
1846
1889
  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.26.0"
19
+ GEM_VERSION = "0.27.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.7.0"
22
+ GENERATOR_VERSION = "0.8.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220609"
25
+ REVISION = "20220624"
26
26
  end
27
27
  end
28
28
  end
@@ -262,6 +262,12 @@ module Google
262
262
  include Google::Apis::Core::JsonObjectSupport
263
263
  end
264
264
 
265
+ class RapidVulnerabilityDetectionSettings
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
265
271
  class Reference
266
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
273
 
@@ -770,6 +776,17 @@ module Google
770
776
  end
771
777
  end
772
778
 
779
+ class RapidVulnerabilityDetectionSettings
780
+ # @private
781
+ class Representation < Google::Apis::Core::JsonRepresentation
782
+ hash :modules, as: 'modules', class: Google::Apis::SecuritycenterV1beta2::Config, decorator: Google::Apis::SecuritycenterV1beta2::Config::Representation
783
+
784
+ property :name, as: 'name'
785
+ property :service_enablement_state, as: 'serviceEnablementState'
786
+ property :update_time, as: 'updateTime'
787
+ end
788
+ end
789
+
773
790
  class Reference
774
791
  # @private
775
792
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -148,6 +148,39 @@ module Google
148
148
  execute_or_queue_command(command, &block)
149
149
  end
150
150
 
151
+ # Get the RapidVulnerabilityDetectionSettings resource.
152
+ # @param [String] name
153
+ # Required. The name of the RapidVulnerabilityDetectionSettings to retrieve.
154
+ # Formats: * organizations/`organization`/rapidVulnerabilityDetectionSettings *
155
+ # folders/`folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
156
+ # rapidVulnerabilityDetectionSettings
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::RapidVulnerabilityDetectionSettings] parsed result object
167
+ # @yieldparam err [StandardError] error object if request failed
168
+ #
169
+ # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
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_rapid_vulnerability_detection_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::RapidVulnerabilityDetectionSettings::Representation
177
+ command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
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
+
151
184
  # Get the SecurityCenterSettings resource.
152
185
  # @param [String] name
153
186
  # Required. The name of the SecurityCenterSettings to retrieve. Format:
@@ -356,6 +389,45 @@ module Google
356
389
  execute_or_queue_command(command, &block)
357
390
  end
358
391
 
392
+ # Update the RapidVulnerabilityDetectionSettings resource.
393
+ # @param [String] name
394
+ # The resource name of the RapidVulnerabilityDetectionSettings. Formats: *
395
+ # organizations/`organization`/rapidVulnerabilityDetectionSettings * folders/`
396
+ # folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
397
+ # rapidVulnerabilityDetectionSettings
398
+ # @param [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings] rapid_vulnerability_detection_settings_object
399
+ # @param [String] update_mask
400
+ # The list of fields to be updated.
401
+ # @param [String] fields
402
+ # Selector specifying which fields to include in a partial response.
403
+ # @param [String] quota_user
404
+ # Available to use for quota purposes for server-side applications. Can be any
405
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
406
+ # @param [Google::Apis::RequestOptions] options
407
+ # Request-specific options
408
+ #
409
+ # @yield [result, err] Result & error if block supplied
410
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings] parsed result object
411
+ # @yieldparam err [StandardError] error object if request failed
412
+ #
413
+ # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
414
+ #
415
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
416
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
417
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
418
+ def update_folder_rapid_vulnerability_detection_settings(name, rapid_vulnerability_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
419
+ command = make_simple_command(:patch, 'v1beta2/{+name}', options)
420
+ command.request_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
421
+ command.request_object = rapid_vulnerability_detection_settings_object
422
+ command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
423
+ command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
424
+ command.params['name'] = name unless name.nil?
425
+ command.query['updateMask'] = update_mask unless update_mask.nil?
426
+ command.query['fields'] = fields unless fields.nil?
427
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
428
+ execute_or_queue_command(command, &block)
429
+ end
430
+
359
431
  # Update the SecurityHealthAnalyticsSettings resource.
360
432
  # @param [String] name
361
433
  # The resource name of the SecurityHealthAnalyticsSettings. Formats: *
@@ -540,6 +612,40 @@ module Google
540
612
  execute_or_queue_command(command, &block)
541
613
  end
542
614
 
615
+ # Calculates the effective RapidVulnerabilityDetectionSettings based on its
616
+ # level in the resource hierarchy and its settings.
617
+ # @param [String] name
618
+ # Required. The name of the RapidVulnerabilityDetectionSettings to calculate.
619
+ # Formats: * organizations/`organization`/rapidVulnerabilityDetectionSettings *
620
+ # folders/`folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
621
+ # rapidVulnerabilityDetectionSettings
622
+ # @param [String] fields
623
+ # Selector specifying which fields to include in a partial response.
624
+ # @param [String] quota_user
625
+ # Available to use for quota purposes for server-side applications. Can be any
626
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
627
+ # @param [Google::Apis::RequestOptions] options
628
+ # Request-specific options
629
+ #
630
+ # @yield [result, err] Result & error if block supplied
631
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings] parsed result object
632
+ # @yieldparam err [StandardError] error object if request failed
633
+ #
634
+ # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
635
+ #
636
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
637
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
638
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
639
+ def calculate_folder_rapid_vulnerability_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
640
+ command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
641
+ command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
642
+ command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
643
+ command.params['name'] = name unless name.nil?
644
+ command.query['fields'] = fields unless fields.nil?
645
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
646
+ execute_or_queue_command(command, &block)
647
+ end
648
+
543
649
  # Calculates the effective SecurityHealthAnalyticsSettings based on its level in
544
650
  # the resource hierarchy and its settings.
545
651
  # @param [String] name
@@ -739,6 +845,39 @@ module Google
739
845
  execute_or_queue_command(command, &block)
740
846
  end
741
847
 
848
+ # Get the RapidVulnerabilityDetectionSettings resource.
849
+ # @param [String] name
850
+ # Required. The name of the RapidVulnerabilityDetectionSettings to retrieve.
851
+ # Formats: * organizations/`organization`/rapidVulnerabilityDetectionSettings *
852
+ # folders/`folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
853
+ # rapidVulnerabilityDetectionSettings
854
+ # @param [String] fields
855
+ # Selector specifying which fields to include in a partial response.
856
+ # @param [String] quota_user
857
+ # Available to use for quota purposes for server-side applications. Can be any
858
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
859
+ # @param [Google::Apis::RequestOptions] options
860
+ # Request-specific options
861
+ #
862
+ # @yield [result, err] Result & error if block supplied
863
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings] parsed result object
864
+ # @yieldparam err [StandardError] error object if request failed
865
+ #
866
+ # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
867
+ #
868
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
869
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
870
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
871
+ def get_organization_rapid_vulnerability_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
872
+ command = make_simple_command(:get, 'v1beta2/{+name}', options)
873
+ command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
874
+ command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
875
+ command.params['name'] = name unless name.nil?
876
+ command.query['fields'] = fields unless fields.nil?
877
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
878
+ execute_or_queue_command(command, &block)
879
+ end
880
+
742
881
  # Get the SecurityCenterSettings resource.
743
882
  # @param [String] name
744
883
  # Required. The name of the SecurityCenterSettings to retrieve. Format:
@@ -978,6 +1117,45 @@ module Google
978
1117
  execute_or_queue_command(command, &block)
979
1118
  end
980
1119
 
1120
+ # Update the RapidVulnerabilityDetectionSettings resource.
1121
+ # @param [String] name
1122
+ # The resource name of the RapidVulnerabilityDetectionSettings. Formats: *
1123
+ # organizations/`organization`/rapidVulnerabilityDetectionSettings * folders/`
1124
+ # folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
1125
+ # rapidVulnerabilityDetectionSettings
1126
+ # @param [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings] rapid_vulnerability_detection_settings_object
1127
+ # @param [String] update_mask
1128
+ # The list of fields to be updated.
1129
+ # @param [String] fields
1130
+ # Selector specifying which fields to include in a partial response.
1131
+ # @param [String] quota_user
1132
+ # Available to use for quota purposes for server-side applications. Can be any
1133
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1134
+ # @param [Google::Apis::RequestOptions] options
1135
+ # Request-specific options
1136
+ #
1137
+ # @yield [result, err] Result & error if block supplied
1138
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings] parsed result object
1139
+ # @yieldparam err [StandardError] error object if request failed
1140
+ #
1141
+ # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
1142
+ #
1143
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1144
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1145
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1146
+ def update_organization_rapid_vulnerability_detection_settings(name, rapid_vulnerability_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1147
+ command = make_simple_command(:patch, 'v1beta2/{+name}', options)
1148
+ command.request_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
1149
+ command.request_object = rapid_vulnerability_detection_settings_object
1150
+ command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
1151
+ command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
1152
+ command.params['name'] = name unless name.nil?
1153
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1154
+ command.query['fields'] = fields unless fields.nil?
1155
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1156
+ execute_or_queue_command(command, &block)
1157
+ end
1158
+
981
1159
  # Update the SecurityHealthAnalyticsSettings resource.
982
1160
  # @param [String] name
983
1161
  # The resource name of the SecurityHealthAnalyticsSettings. Formats: *
@@ -1162,6 +1340,40 @@ module Google
1162
1340
  execute_or_queue_command(command, &block)
1163
1341
  end
1164
1342
 
1343
+ # Calculates the effective RapidVulnerabilityDetectionSettings based on its
1344
+ # level in the resource hierarchy and its settings.
1345
+ # @param [String] name
1346
+ # Required. The name of the RapidVulnerabilityDetectionSettings to calculate.
1347
+ # Formats: * organizations/`organization`/rapidVulnerabilityDetectionSettings *
1348
+ # folders/`folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
1349
+ # rapidVulnerabilityDetectionSettings
1350
+ # @param [String] fields
1351
+ # Selector specifying which fields to include in a partial response.
1352
+ # @param [String] quota_user
1353
+ # Available to use for quota purposes for server-side applications. Can be any
1354
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1355
+ # @param [Google::Apis::RequestOptions] options
1356
+ # Request-specific options
1357
+ #
1358
+ # @yield [result, err] Result & error if block supplied
1359
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings] parsed result object
1360
+ # @yieldparam err [StandardError] error object if request failed
1361
+ #
1362
+ # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
1363
+ #
1364
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1365
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1366
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1367
+ def calculate_organization_rapid_vulnerability_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
1368
+ command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
1369
+ command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
1370
+ command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
1371
+ command.params['name'] = name unless name.nil?
1372
+ command.query['fields'] = fields unless fields.nil?
1373
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1374
+ execute_or_queue_command(command, &block)
1375
+ end
1376
+
1165
1377
  # Calculates the effective SecurityHealthAnalyticsSettings based on its level in
1166
1378
  # the resource hierarchy and its settings.
1167
1379
  # @param [String] name
@@ -1361,6 +1573,39 @@ module Google
1361
1573
  execute_or_queue_command(command, &block)
1362
1574
  end
1363
1575
 
1576
+ # Get the RapidVulnerabilityDetectionSettings resource.
1577
+ # @param [String] name
1578
+ # Required. The name of the RapidVulnerabilityDetectionSettings to retrieve.
1579
+ # Formats: * organizations/`organization`/rapidVulnerabilityDetectionSettings *
1580
+ # folders/`folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
1581
+ # rapidVulnerabilityDetectionSettings
1582
+ # @param [String] fields
1583
+ # Selector specifying which fields to include in a partial response.
1584
+ # @param [String] quota_user
1585
+ # Available to use for quota purposes for server-side applications. Can be any
1586
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1587
+ # @param [Google::Apis::RequestOptions] options
1588
+ # Request-specific options
1589
+ #
1590
+ # @yield [result, err] Result & error if block supplied
1591
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings] parsed result object
1592
+ # @yieldparam err [StandardError] error object if request failed
1593
+ #
1594
+ # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
1595
+ #
1596
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1597
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1598
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1599
+ def get_project_rapid_vulnerability_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
1600
+ command = make_simple_command(:get, 'v1beta2/{+name}', options)
1601
+ command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
1602
+ command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
1603
+ command.params['name'] = name unless name.nil?
1604
+ command.query['fields'] = fields unless fields.nil?
1605
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1606
+ execute_or_queue_command(command, &block)
1607
+ end
1608
+
1364
1609
  # Get the SecurityCenterSettings resource.
1365
1610
  # @param [String] name
1366
1611
  # Required. The name of the SecurityCenterSettings to retrieve. Format:
@@ -1569,6 +1814,45 @@ module Google
1569
1814
  execute_or_queue_command(command, &block)
1570
1815
  end
1571
1816
 
1817
+ # Update the RapidVulnerabilityDetectionSettings resource.
1818
+ # @param [String] name
1819
+ # The resource name of the RapidVulnerabilityDetectionSettings. Formats: *
1820
+ # organizations/`organization`/rapidVulnerabilityDetectionSettings * folders/`
1821
+ # folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
1822
+ # rapidVulnerabilityDetectionSettings
1823
+ # @param [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings] rapid_vulnerability_detection_settings_object
1824
+ # @param [String] update_mask
1825
+ # The list of fields to be updated.
1826
+ # @param [String] fields
1827
+ # Selector specifying which fields to include in a partial response.
1828
+ # @param [String] quota_user
1829
+ # Available to use for quota purposes for server-side applications. Can be any
1830
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1831
+ # @param [Google::Apis::RequestOptions] options
1832
+ # Request-specific options
1833
+ #
1834
+ # @yield [result, err] Result & error if block supplied
1835
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings] parsed result object
1836
+ # @yieldparam err [StandardError] error object if request failed
1837
+ #
1838
+ # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
1839
+ #
1840
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1841
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1842
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1843
+ def update_project_rapid_vulnerability_detection_settings(name, rapid_vulnerability_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1844
+ command = make_simple_command(:patch, 'v1beta2/{+name}', options)
1845
+ command.request_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
1846
+ command.request_object = rapid_vulnerability_detection_settings_object
1847
+ command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
1848
+ command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
1849
+ command.params['name'] = name unless name.nil?
1850
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1851
+ command.query['fields'] = fields unless fields.nil?
1852
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1853
+ execute_or_queue_command(command, &block)
1854
+ end
1855
+
1572
1856
  # Update the SecurityHealthAnalyticsSettings resource.
1573
1857
  # @param [String] name
1574
1858
  # The resource name of the SecurityHealthAnalyticsSettings. Formats: *
@@ -1862,6 +2146,40 @@ module Google
1862
2146
  execute_or_queue_command(command, &block)
1863
2147
  end
1864
2148
 
2149
+ # Calculates the effective RapidVulnerabilityDetectionSettings based on its
2150
+ # level in the resource hierarchy and its settings.
2151
+ # @param [String] name
2152
+ # Required. The name of the RapidVulnerabilityDetectionSettings to calculate.
2153
+ # Formats: * organizations/`organization`/rapidVulnerabilityDetectionSettings *
2154
+ # folders/`folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
2155
+ # rapidVulnerabilityDetectionSettings
2156
+ # @param [String] fields
2157
+ # Selector specifying which fields to include in a partial response.
2158
+ # @param [String] quota_user
2159
+ # Available to use for quota purposes for server-side applications. Can be any
2160
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2161
+ # @param [Google::Apis::RequestOptions] options
2162
+ # Request-specific options
2163
+ #
2164
+ # @yield [result, err] Result & error if block supplied
2165
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings] parsed result object
2166
+ # @yieldparam err [StandardError] error object if request failed
2167
+ #
2168
+ # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
2169
+ #
2170
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2171
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2172
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2173
+ def calculate_project_rapid_vulnerability_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
2174
+ command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
2175
+ command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
2176
+ command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
2177
+ command.params['name'] = name unless name.nil?
2178
+ command.query['fields'] = fields unless fields.nil?
2179
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2180
+ execute_or_queue_command(command, &block)
2181
+ end
2182
+
1865
2183
  # Calculates the effective SecurityHealthAnalyticsSettings based on its level in
1866
2184
  # the resource hierarchy and its settings.
1867
2185
  # @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.26.0
4
+ version: 0.27.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: 2022-06-20 00:00:00.000000000 Z
11
+ date: 2022-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.6'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.6'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.26.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.27.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: []