google-apis-securitycenter_v1beta2 0.24.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 +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/google/apis/securitycenter_v1beta2/classes.rb +170 -18
- data/lib/google/apis/securitycenter_v1beta2/gem_version.rb +3 -3
- data/lib/google/apis/securitycenter_v1beta2/representations.rb +78 -0
- data/lib/google/apis/securitycenter_v1beta2/service.rb +318 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bc6203b2f693e5f9d1d78f4faef1febd07920a2096c802fdd16bebba5900913
|
4
|
+
data.tar.gz: a109f9dd8110878e1687050739f57f6553ec964ceeed2808e6c0b54fd7f6d335
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44084595bf441da8ad7fe295a7a910369c9c1d6a4f3a5b4e3c0cdaea0307dd10a2726d76955f8dd658a2aa5aa2906c7440a4c7bf23e038b3c4c5fe018097dbd7
|
7
|
+
data.tar.gz: b47bdfd1c2357270787b6de91cccc0fac323dc55436fdaeec45148e9b5af1710f3596ff0fcfc1a2f98b5893cf02e3b240fd99ee17b3eda65759902e9823d285d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
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
|
+
|
8
|
+
### v0.26.0 (2022-06-19)
|
9
|
+
|
10
|
+
* Regenerated using generator version 0.7.0
|
11
|
+
* Regenerated from discovery document revision 20220609
|
12
|
+
|
13
|
+
### v0.25.0 (2022-06-07)
|
14
|
+
|
15
|
+
* Regenerated from discovery document revision 20220602
|
16
|
+
* Regenerated using generator version 0.5.0
|
17
|
+
* Unspecified changes
|
18
|
+
|
3
19
|
### v0.24.0 (2022-05-25)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20220520
|
@@ -78,17 +78,18 @@ module Google
|
|
78
78
|
class Compliance
|
79
79
|
include Google::Apis::Core::Hashable
|
80
80
|
|
81
|
-
# e.g. A.12.4.1
|
81
|
+
# Policies within the standard/benchmark e.g. A.12.4.1
|
82
82
|
# Corresponds to the JSON property `ids`
|
83
83
|
# @return [Array<String>]
|
84
84
|
attr_accessor :ids
|
85
85
|
|
86
|
-
# e.g. "cis", "pci", "owasp",
|
86
|
+
# Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
|
87
|
+
# etc.
|
87
88
|
# Corresponds to the JSON property `standard`
|
88
89
|
# @return [String]
|
89
90
|
attr_accessor :standard
|
90
91
|
|
91
|
-
# e.g. 1.1
|
92
|
+
# Version of the standard/benchmark e.g. 1.1
|
92
93
|
# Corresponds to the JSON property `version`
|
93
94
|
# @return [String]
|
94
95
|
attr_accessor :version
|
@@ -413,7 +414,33 @@ module Google
|
|
413
414
|
end
|
414
415
|
end
|
415
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
|
+
|
442
|
+
# EnvironmentVariable is a name-value pair to store environment variables for
|
443
|
+
# Process.
|
417
444
|
class EnvironmentVariable
|
418
445
|
include Google::Apis::Core::Hashable
|
419
446
|
|
@@ -492,7 +519,7 @@ module Google
|
|
492
519
|
# @return [Array<String>]
|
493
520
|
attr_accessor :components
|
494
521
|
|
495
|
-
# Resource
|
522
|
+
# Resource's URI (https://google.aip.dev/122#full-resource-names)
|
496
523
|
# Corresponds to the JSON property `name`
|
497
524
|
# @return [String]
|
498
525
|
attr_accessor :name
|
@@ -508,21 +535,21 @@ module Google
|
|
508
535
|
end
|
509
536
|
end
|
510
537
|
|
511
|
-
# Exfiltration represents a data exfiltration attempt of one or more
|
512
|
-
#
|
513
|
-
#
|
538
|
+
# Exfiltration represents a data exfiltration attempt of one or more sources to
|
539
|
+
# one or more targets. Sources represent the source of data that is exfiltrated,
|
540
|
+
# and Targets represents the destination the data was copied to.
|
514
541
|
class Exfiltration
|
515
542
|
include Google::Apis::Core::Hashable
|
516
543
|
|
517
|
-
# If there are multiple sources, then the data is considered
|
544
|
+
# If there are multiple sources, then the data is considered "joined" between
|
518
545
|
# them. For instance, BigQuery can join multiple tables, and each table would be
|
519
546
|
# considered a source.
|
520
547
|
# Corresponds to the JSON property `sources`
|
521
548
|
# @return [Array<Google::Apis::SecuritycenterV1beta2::ExfilResource>]
|
522
549
|
attr_accessor :sources
|
523
550
|
|
524
|
-
# If there are multiple targets, each target would get a complete copy of the
|
525
|
-
# joined
|
551
|
+
# If there are multiple targets, each target would get a complete copy of the "
|
552
|
+
# joined" source data.
|
526
553
|
# Corresponds to the JSON property `targets`
|
527
554
|
# @return [Array<Google::Apis::SecuritycenterV1beta2::ExfilResource>]
|
528
555
|
attr_accessor :targets
|
@@ -567,8 +594,7 @@ module Google
|
|
567
594
|
attr_accessor :path
|
568
595
|
|
569
596
|
# SHA256 hash of the first hashed_size bytes of the file encoded as a hex string.
|
570
|
-
# If hashed_size == size,
|
571
|
-
# file.
|
597
|
+
# If hashed_size == size, sha256 represents the SHA256 hash of the entire file.
|
572
598
|
# Corresponds to the JSON property `sha256`
|
573
599
|
# @return [String]
|
574
600
|
attr_accessor :sha256
|
@@ -662,9 +688,9 @@ module Google
|
|
662
688
|
# @return [String]
|
663
689
|
attr_accessor :event_time
|
664
690
|
|
665
|
-
# Exfiltration represents a data exfiltration attempt of one or more
|
666
|
-
#
|
667
|
-
#
|
691
|
+
# Exfiltration represents a data exfiltration attempt of one or more sources to
|
692
|
+
# one or more targets. Sources represent the source of data that is exfiltrated,
|
693
|
+
# and Targets represents the destination the data was copied to.
|
668
694
|
# Corresponds to the JSON property `exfiltration`
|
669
695
|
# @return [Google::Apis::SecuritycenterV1beta2::Exfiltration]
|
670
696
|
attr_accessor :exfiltration
|
@@ -1591,6 +1617,12 @@ module Google
|
|
1591
1617
|
# @return [Array<String>]
|
1592
1618
|
attr_accessor :ip_addresses
|
1593
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
|
+
|
1594
1626
|
def initialize(**args)
|
1595
1627
|
update!(**args)
|
1596
1628
|
end
|
@@ -1599,6 +1631,32 @@ module Google
|
|
1599
1631
|
def update!(**args)
|
1600
1632
|
@domains = args[:domains] if args.key?(:domains)
|
1601
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)
|
1602
1660
|
end
|
1603
1661
|
end
|
1604
1662
|
|
@@ -1689,7 +1747,7 @@ module Google
|
|
1689
1747
|
# @return [Array<String>]
|
1690
1748
|
attr_accessor :args
|
1691
1749
|
|
1692
|
-
# True if
|
1750
|
+
# True if `args` is incomplete.
|
1693
1751
|
# Corresponds to the JSON property `argumentsTruncated`
|
1694
1752
|
# @return [Boolean]
|
1695
1753
|
attr_accessor :arguments_truncated
|
@@ -1706,7 +1764,7 @@ module Google
|
|
1706
1764
|
# @return [Array<Google::Apis::SecuritycenterV1beta2::EnvironmentVariable>]
|
1707
1765
|
attr_accessor :env_variables
|
1708
1766
|
|
1709
|
-
# True if env_variables is incomplete.
|
1767
|
+
# True if `env_variables` is incomplete.
|
1710
1768
|
# Corresponds to the JSON property `envVariablesTruncated`
|
1711
1769
|
# @return [Boolean]
|
1712
1770
|
attr_accessor :env_variables_truncated
|
@@ -1717,6 +1775,12 @@ module Google
|
|
1717
1775
|
# @return [Array<Google::Apis::SecuritycenterV1beta2::File>]
|
1718
1776
|
attr_accessor :libraries
|
1719
1777
|
|
1778
|
+
# The process name visible in utilities like top and ps; it can be accessed via /
|
1779
|
+
# 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
|
+
|
1720
1784
|
# The parent process id.
|
1721
1785
|
# Corresponds to the JSON property `parentPid`
|
1722
1786
|
# @return [Fixnum]
|
@@ -1745,12 +1809,81 @@ module Google
|
|
1745
1809
|
@env_variables = args[:env_variables] if args.key?(:env_variables)
|
1746
1810
|
@env_variables_truncated = args[:env_variables_truncated] if args.key?(:env_variables_truncated)
|
1747
1811
|
@libraries = args[:libraries] if args.key?(:libraries)
|
1812
|
+
@name = args[:name] if args.key?(:name)
|
1748
1813
|
@parent_pid = args[:parent_pid] if args.key?(:parent_pid)
|
1749
1814
|
@pid = args[:pid] if args.key?(:pid)
|
1750
1815
|
@script = args[:script] if args.key?(:script)
|
1751
1816
|
end
|
1752
1817
|
end
|
1753
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
|
+
|
1754
1887
|
# Additional Links
|
1755
1888
|
class Reference
|
1756
1889
|
include Google::Apis::Core::Hashable
|
@@ -2061,6 +2194,25 @@ module Google
|
|
2061
2194
|
@update_time = args[:update_time] if args.key?(:update_time)
|
2062
2195
|
end
|
2063
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
|
2064
2216
|
end
|
2065
2217
|
end
|
2066
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.
|
19
|
+
GEM_VERSION = "0.27.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.8.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220624"
|
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.
|
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-
|
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.
|
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.
|
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.
|
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: []
|