google-apis-securitycenter_v1beta2 0.25.0 → 0.28.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: 3c01a9e8d7498f524ac8d3bf8ec6f7b47308a5f9d5dcc9f48a9f71401689b030
4
- data.tar.gz: 2354d0abf11ceb08848768434ae235b0f564d93e8ca07208ae4db8a57e8622e5
3
+ metadata.gz: aa9063cb47b9ed5987201cf369b87cd169e76a78a24dc47b051b96f935a034fe
4
+ data.tar.gz: d00251c485541e5f625e200283b3ebda1a4b429488079eae8b91832ccc3001f9
5
5
  SHA512:
6
- metadata.gz: 639a7e016eebe9ceb24b5a5d56377acbf92cb035f2174e59a32564a156a0ecb38077a12b6d63cfe37420feef21c265a2d8a582c45f880ca81d5f2e01d9a6af6f
7
- data.tar.gz: 5864abf3bd2cae94e56c8372092f2dde42b3068e0f1cf4b1261084254a477b6dcf0a5fb2a09dc235680a99c02ee841f114260cd855a7ad2a47810e0532e54e96
6
+ metadata.gz: 5d395c5773df23cc2a4ddf842f676ae493621c1a59561e1e0dda3e1d60f3378224c3b26cf45fc0ac270c8ea49f33f436f82f6c2f7454f095b622cadff80b22d8
7
+ data.tar.gz: 300f060a3e35afe6aa496f32acd40b6a5e59dc6c703e92076adb716ecf3252f62863ffa71fdbc126d3ca216af23b5b1d758d34dd005a7404a95d1baa9059ab5e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Release history for google-apis-securitycenter_v1beta2
2
2
 
3
+ ### v0.28.0 (2022-07-12)
4
+
5
+ * Regenerated from discovery document revision 20220707
6
+ * Regenerated using generator version 0.9.0
7
+
8
+ ### v0.27.0 (2022-06-30)
9
+
10
+ * Regenerated using generator version 0.8.0
11
+ * Regenerated from discovery document revision 20220624
12
+
13
+ ### v0.26.0 (2022-06-19)
14
+
15
+ * Regenerated using generator version 0.7.0
16
+ * Regenerated from discovery document revision 20220609
17
+
3
18
  ### v0.25.0 (2022-06-07)
4
19
 
5
20
  * Regenerated from discovery document revision 20220602
@@ -414,6 +414,31 @@ module Google
414
414
  end
415
415
  end
416
416
 
417
+ # Memory hash detection contributing to the binary family match.
418
+ class Detection
419
+ include Google::Apis::Core::Hashable
420
+
421
+ # The name of the binary associated with the memory hash signature detection.
422
+ # Corresponds to the JSON property `binary`
423
+ # @return [String]
424
+ attr_accessor :binary
425
+
426
+ # The percentage of memory page hashes in the signature that were matched.
427
+ # Corresponds to the JSON property `percentPagesMatched`
428
+ # @return [Float]
429
+ attr_accessor :percent_pages_matched
430
+
431
+ def initialize(**args)
432
+ update!(**args)
433
+ end
434
+
435
+ # Update properties of this object
436
+ def update!(**args)
437
+ @binary = args[:binary] if args.key?(:binary)
438
+ @percent_pages_matched = args[:percent_pages_matched] if args.key?(:percent_pages_matched)
439
+ end
440
+ end
441
+
417
442
  # EnvironmentVariable is a name-value pair to store environment variables for
418
443
  # Process.
419
444
  class EnvironmentVariable
@@ -636,9 +661,9 @@ module Google
636
661
  # Output only. Map containing the point of contacts for the given finding. The
637
662
  # key represents the type of contact, while the value contains a list of all the
638
663
  # contacts that pertain. Please refer to: https://cloud.google.com/resource-
639
- # manager/docs/managing-notification-contacts#notification-categories `
640
- # security”: `contact: `email:person1@company.com”` contact: `email: “person2@
641
- # company.com”` `
664
+ # manager/docs/managing-notification-contacts#notification-categories ` "
665
+ # security":[ ` "contact":` "email":"person1@company.com" ` `, ` "contact":` "
666
+ # email":“person2@company.com ` ` ] `
642
667
  # Corresponds to the JSON property `contacts`
643
668
  # @return [Hash<String,Google::Apis::SecuritycenterV1beta2::ContactDetails>]
644
669
  attr_accessor :contacts
@@ -1592,6 +1617,12 @@ module Google
1592
1617
  # @return [Array<String>]
1593
1618
  attr_accessor :ip_addresses
1594
1619
 
1620
+ # The list of matched signatures indicating that the given process is present in
1621
+ # the environment.
1622
+ # Corresponds to the JSON property `signatures`
1623
+ # @return [Array<Google::Apis::SecuritycenterV1beta2::ProcessSignature>]
1624
+ attr_accessor :signatures
1625
+
1595
1626
  def initialize(**args)
1596
1627
  update!(**args)
1597
1628
  end
@@ -1600,6 +1631,32 @@ module Google
1600
1631
  def update!(**args)
1601
1632
  @domains = args[:domains] if args.key?(:domains)
1602
1633
  @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
1634
+ @signatures = args[:signatures] if args.key?(:signatures)
1635
+ end
1636
+ end
1637
+
1638
+ # A signature corresponding to memory page hashes.
1639
+ class MemoryHashSignature
1640
+ include Google::Apis::Core::Hashable
1641
+
1642
+ # The binary family.
1643
+ # Corresponds to the JSON property `binaryFamily`
1644
+ # @return [String]
1645
+ attr_accessor :binary_family
1646
+
1647
+ # The list of memory hash detections contributing to the binary family match.
1648
+ # Corresponds to the JSON property `detections`
1649
+ # @return [Array<Google::Apis::SecuritycenterV1beta2::Detection>]
1650
+ attr_accessor :detections
1651
+
1652
+ def initialize(**args)
1653
+ update!(**args)
1654
+ end
1655
+
1656
+ # Update properties of this object
1657
+ def update!(**args)
1658
+ @binary_family = args[:binary_family] if args.key?(:binary_family)
1659
+ @detections = args[:detections] if args.key?(:detections)
1603
1660
  end
1604
1661
  end
1605
1662
 
@@ -1718,6 +1775,12 @@ module Google
1718
1775
  # @return [Array<Google::Apis::SecuritycenterV1beta2::File>]
1719
1776
  attr_accessor :libraries
1720
1777
 
1778
+ # The process name visible in utilities like `top` and `ps`; it can be accessed
1779
+ # via `/proc/[pid]/comm` and changed with `prctl(PR_SET_NAME)`.
1780
+ # Corresponds to the JSON property `name`
1781
+ # @return [String]
1782
+ attr_accessor :name
1783
+
1721
1784
  # The parent process id.
1722
1785
  # Corresponds to the JSON property `parentPid`
1723
1786
  # @return [Fixnum]
@@ -1746,12 +1809,81 @@ module Google
1746
1809
  @env_variables = args[:env_variables] if args.key?(:env_variables)
1747
1810
  @env_variables_truncated = args[:env_variables_truncated] if args.key?(:env_variables_truncated)
1748
1811
  @libraries = args[:libraries] if args.key?(:libraries)
1812
+ @name = args[:name] if args.key?(:name)
1749
1813
  @parent_pid = args[:parent_pid] if args.key?(:parent_pid)
1750
1814
  @pid = args[:pid] if args.key?(:pid)
1751
1815
  @script = args[:script] if args.key?(:script)
1752
1816
  end
1753
1817
  end
1754
1818
 
1819
+ # Indicates what signature matched this process.
1820
+ class ProcessSignature
1821
+ include Google::Apis::Core::Hashable
1822
+
1823
+ # A signature corresponding to memory page hashes.
1824
+ # Corresponds to the JSON property `memoryHashSignature`
1825
+ # @return [Google::Apis::SecuritycenterV1beta2::MemoryHashSignature]
1826
+ attr_accessor :memory_hash_signature
1827
+
1828
+ # A signature corresponding to a YARA rule.
1829
+ # Corresponds to the JSON property `yaraRuleSignature`
1830
+ # @return [Google::Apis::SecuritycenterV1beta2::YaraRuleSignature]
1831
+ attr_accessor :yara_rule_signature
1832
+
1833
+ def initialize(**args)
1834
+ update!(**args)
1835
+ end
1836
+
1837
+ # Update properties of this object
1838
+ def update!(**args)
1839
+ @memory_hash_signature = args[:memory_hash_signature] if args.key?(:memory_hash_signature)
1840
+ @yara_rule_signature = args[:yara_rule_signature] if args.key?(:yara_rule_signature)
1841
+ end
1842
+ end
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
+
1755
1887
  # Additional Links
1756
1888
  class Reference
1757
1889
  include Google::Apis::Core::Hashable
@@ -2062,6 +2194,25 @@ module Google
2062
2194
  @update_time = args[:update_time] if args.key?(:update_time)
2063
2195
  end
2064
2196
  end
2197
+
2198
+ # A signature corresponding to a YARA rule.
2199
+ class YaraRuleSignature
2200
+ include Google::Apis::Core::Hashable
2201
+
2202
+ # The name of the YARA rule.
2203
+ # Corresponds to the JSON property `yaraRule`
2204
+ # @return [String]
2205
+ attr_accessor :yara_rule
2206
+
2207
+ def initialize(**args)
2208
+ update!(**args)
2209
+ end
2210
+
2211
+ # Update properties of this object
2212
+ def update!(**args)
2213
+ @yara_rule = args[:yara_rule] if args.key?(:yara_rule)
2214
+ end
2215
+ end
2065
2216
  end
2066
2217
  end
2067
2218
  end
@@ -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.25.0"
19
+ GEM_VERSION = "0.28.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.5.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220602"
25
+ REVISION = "20220707"
26
26
  end
27
27
  end
28
28
  end
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class Detection
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class EnvironmentVariable
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -226,6 +232,12 @@ module Google
226
232
  include Google::Apis::Core::JsonObjectSupport
227
233
  end
228
234
 
235
+ class MemoryHashSignature
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
229
241
  class MitreAttack
230
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
243
 
@@ -244,6 +256,18 @@ module Google
244
256
  include Google::Apis::Core::JsonObjectSupport
245
257
  end
246
258
 
259
+ class ProcessSignature
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class RapidVulnerabilityDetectionSettings
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
247
271
  class Reference
248
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
273
 
@@ -292,6 +316,12 @@ module Google
292
316
  include Google::Apis::Core::JsonObjectSupport
293
317
  end
294
318
 
319
+ class YaraRuleSignature
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
295
325
  class Access
296
326
  # @private
297
327
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -396,6 +426,14 @@ module Google
396
426
  end
397
427
  end
398
428
 
429
+ class Detection
430
+ # @private
431
+ class Representation < Google::Apis::Core::JsonRepresentation
432
+ property :binary, as: 'binary'
433
+ property :percent_pages_matched, as: 'percentPagesMatched'
434
+ end
435
+ end
436
+
399
437
  class EnvironmentVariable
400
438
  # @private
401
439
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -675,6 +713,17 @@ module Google
675
713
  class Representation < Google::Apis::Core::JsonRepresentation
676
714
  collection :domains, as: 'domains'
677
715
  collection :ip_addresses, as: 'ipAddresses'
716
+ collection :signatures, as: 'signatures', class: Google::Apis::SecuritycenterV1beta2::ProcessSignature, decorator: Google::Apis::SecuritycenterV1beta2::ProcessSignature::Representation
717
+
718
+ end
719
+ end
720
+
721
+ class MemoryHashSignature
722
+ # @private
723
+ class Representation < Google::Apis::Core::JsonRepresentation
724
+ property :binary_family, as: 'binaryFamily'
725
+ collection :detections, as: 'detections', class: Google::Apis::SecuritycenterV1beta2::Detection, decorator: Google::Apis::SecuritycenterV1beta2::Detection::Representation
726
+
678
727
  end
679
728
  end
680
729
 
@@ -709,6 +758,7 @@ module Google
709
758
  property :env_variables_truncated, as: 'envVariablesTruncated'
710
759
  collection :libraries, as: 'libraries', class: Google::Apis::SecuritycenterV1beta2::File, decorator: Google::Apis::SecuritycenterV1beta2::File::Representation
711
760
 
761
+ property :name, as: 'name'
712
762
  property :parent_pid, :numeric_string => true, as: 'parentPid'
713
763
  property :pid, :numeric_string => true, as: 'pid'
714
764
  property :script, as: 'script', class: Google::Apis::SecuritycenterV1beta2::File, decorator: Google::Apis::SecuritycenterV1beta2::File::Representation
@@ -716,6 +766,27 @@ module Google
716
766
  end
717
767
  end
718
768
 
769
+ class ProcessSignature
770
+ # @private
771
+ class Representation < Google::Apis::Core::JsonRepresentation
772
+ property :memory_hash_signature, as: 'memoryHashSignature', class: Google::Apis::SecuritycenterV1beta2::MemoryHashSignature, decorator: Google::Apis::SecuritycenterV1beta2::MemoryHashSignature::Representation
773
+
774
+ property :yara_rule_signature, as: 'yaraRuleSignature', class: Google::Apis::SecuritycenterV1beta2::YaraRuleSignature, decorator: Google::Apis::SecuritycenterV1beta2::YaraRuleSignature::Representation
775
+
776
+ end
777
+ end
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
+
719
790
  class Reference
720
791
  # @private
721
792
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -795,6 +866,13 @@ module Google
795
866
  property :update_time, as: 'updateTime'
796
867
  end
797
868
  end
869
+
870
+ class YaraRuleSignature
871
+ # @private
872
+ class Representation < Google::Apis::Core::JsonRepresentation
873
+ property :yara_rule, as: 'yaraRule'
874
+ end
875
+ end
798
876
  end
799
877
  end
800
878
  end
@@ -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.25.0
4
+ version: 0.28.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-13 00:00:00.000000000 Z
11
+ date: 2022-07-18 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.5'
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.5'
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.25.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.28.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: []