google-apis-securitycenter_v1beta2 0.21.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/apis/securitycenter_v1beta2/classes.rb +319 -1
- data/lib/google/apis/securitycenter_v1beta2/gem_version.rb +2 -2
- data/lib/google/apis/securitycenter_v1beta2/representations.rb +138 -0
- data/lib/google/apis/securitycenter_v1beta2/service.rb +66 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7508ca0eb9fc89dc28ef1d4b7f7bde8efa74248c6970b4bd3d6ac165e021dab3
|
4
|
+
data.tar.gz: 480977b6986e0422d5537cab3da8631f5db2d46694cbe8ab38eab411c053750a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 145fbd3cf154f0a7f60952ea0a1fcd3179acdb7aa0707e2c5aa959130872f76cb4a5ffac6214a25d9e5815412ae31e9552170d57052d18d7b5ec586372bb86ae
|
7
|
+
data.tar.gz: b1ff11ff2e98e98b84212aee1dc8144fd69f0dcb0721b7bc2d1a78538187dd5acdb6d1db5f73a46ef36a468e3a818fd8754f43bcd5e1fee4a70531eaf765e587
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-securitycenter_v1beta2
|
2
2
|
|
3
|
+
### v0.24.0 (2022-05-25)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220520
|
6
|
+
|
7
|
+
### v0.23.0 (2022-05-17)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220516
|
10
|
+
|
11
|
+
### v0.22.0 (2022-05-10)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220506
|
14
|
+
|
3
15
|
### v0.21.0 (2022-04-19)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220414
|
@@ -73,6 +73,38 @@ module Google
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
+
# Contains compliance information about a security standard indicating unmet
|
77
|
+
# recommendations.
|
78
|
+
class Compliance
|
79
|
+
include Google::Apis::Core::Hashable
|
80
|
+
|
81
|
+
# e.g. A.12.4.1
|
82
|
+
# Corresponds to the JSON property `ids`
|
83
|
+
# @return [Array<String>]
|
84
|
+
attr_accessor :ids
|
85
|
+
|
86
|
+
# e.g. "cis", "pci", "owasp", etc.
|
87
|
+
# Corresponds to the JSON property `standard`
|
88
|
+
# @return [String]
|
89
|
+
attr_accessor :standard
|
90
|
+
|
91
|
+
# e.g. 1.1
|
92
|
+
# Corresponds to the JSON property `version`
|
93
|
+
# @return [String]
|
94
|
+
attr_accessor :version
|
95
|
+
|
96
|
+
def initialize(**args)
|
97
|
+
update!(**args)
|
98
|
+
end
|
99
|
+
|
100
|
+
# Update properties of this object
|
101
|
+
def update!(**args)
|
102
|
+
@ids = args[:ids] if args.key?(:ids)
|
103
|
+
@standard = args[:standard] if args.key?(:standard)
|
104
|
+
@version = args[:version] if args.key?(:version)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
76
108
|
# Configuration of a module.
|
77
109
|
class Config
|
78
110
|
include Google::Apis::Core::Hashable
|
@@ -143,6 +175,44 @@ module Google
|
|
143
175
|
end
|
144
176
|
end
|
145
177
|
|
178
|
+
# Representa a single contact's email address
|
179
|
+
class Contact
|
180
|
+
include Google::Apis::Core::Hashable
|
181
|
+
|
182
|
+
# An email address e.g. "person123@company.com"
|
183
|
+
# Corresponds to the JSON property `email`
|
184
|
+
# @return [String]
|
185
|
+
attr_accessor :email
|
186
|
+
|
187
|
+
def initialize(**args)
|
188
|
+
update!(**args)
|
189
|
+
end
|
190
|
+
|
191
|
+
# Update properties of this object
|
192
|
+
def update!(**args)
|
193
|
+
@email = args[:email] if args.key?(:email)
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
# The details pertaining to specific contacts
|
198
|
+
class ContactDetails
|
199
|
+
include Google::Apis::Core::Hashable
|
200
|
+
|
201
|
+
# A list of contacts
|
202
|
+
# Corresponds to the JSON property `contacts`
|
203
|
+
# @return [Array<Google::Apis::SecuritycenterV1beta2::Contact>]
|
204
|
+
attr_accessor :contacts
|
205
|
+
|
206
|
+
def initialize(**args)
|
207
|
+
update!(**args)
|
208
|
+
end
|
209
|
+
|
210
|
+
# Update properties of this object
|
211
|
+
def update!(**args)
|
212
|
+
@contacts = args[:contacts] if args.key?(:contacts)
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
146
216
|
# Resource capturing the settings for the Container Threat Detection service.
|
147
217
|
class ContainerThreatDetectionSettings
|
148
218
|
include Google::Apis::Core::Hashable
|
@@ -343,6 +413,31 @@ module Google
|
|
343
413
|
end
|
344
414
|
end
|
345
415
|
|
416
|
+
# EnvironmentVariable is a name-value pair to store env variables for Process.
|
417
|
+
class EnvironmentVariable
|
418
|
+
include Google::Apis::Core::Hashable
|
419
|
+
|
420
|
+
# Environment variable name as a JSON encoded string.
|
421
|
+
# Corresponds to the JSON property `name`
|
422
|
+
# @return [String]
|
423
|
+
attr_accessor :name
|
424
|
+
|
425
|
+
# Environment variable value as a JSON encoded string.
|
426
|
+
# Corresponds to the JSON property `val`
|
427
|
+
# @return [String]
|
428
|
+
attr_accessor :val
|
429
|
+
|
430
|
+
def initialize(**args)
|
431
|
+
update!(**args)
|
432
|
+
end
|
433
|
+
|
434
|
+
# Update properties of this object
|
435
|
+
def update!(**args)
|
436
|
+
@name = args[:name] if args.key?(:name)
|
437
|
+
@val = args[:val] if args.key?(:val)
|
438
|
+
end
|
439
|
+
end
|
440
|
+
|
346
441
|
# Resource capturing the settings for the Event Threat Detection service.
|
347
442
|
class EventThreatDetectionSettings
|
348
443
|
include Google::Apis::Core::Hashable
|
@@ -385,6 +480,119 @@ module Google
|
|
385
480
|
end
|
386
481
|
end
|
387
482
|
|
483
|
+
# Resource that has been exfiltrated or exfiltrated_to.
|
484
|
+
class ExfilResource
|
485
|
+
include Google::Apis::Core::Hashable
|
486
|
+
|
487
|
+
# Subcomponents of the asset that is exfiltrated - these could be URIs used
|
488
|
+
# during exfiltration, table names, databases, filenames, etc. For example,
|
489
|
+
# multiple tables may be exfiltrated from the same CloudSQL instance, or
|
490
|
+
# multiple files from the same Cloud Storage bucket.
|
491
|
+
# Corresponds to the JSON property `components`
|
492
|
+
# @return [Array<String>]
|
493
|
+
attr_accessor :components
|
494
|
+
|
495
|
+
# Resource’s URI (https://google.aip.dev/122#full-resource-names)
|
496
|
+
# Corresponds to the JSON property `name`
|
497
|
+
# @return [String]
|
498
|
+
attr_accessor :name
|
499
|
+
|
500
|
+
def initialize(**args)
|
501
|
+
update!(**args)
|
502
|
+
end
|
503
|
+
|
504
|
+
# Update properties of this object
|
505
|
+
def update!(**args)
|
506
|
+
@components = args[:components] if args.key?(:components)
|
507
|
+
@name = args[:name] if args.key?(:name)
|
508
|
+
end
|
509
|
+
end
|
510
|
+
|
511
|
+
# Exfiltration represents a data exfiltration attempt of one or more source(s)
|
512
|
+
# to one or more target(s). Source(s) represent the source of data that is
|
513
|
+
# exfiltrated, and Target(s) represents the destination the data was copied to.
|
514
|
+
class Exfiltration
|
515
|
+
include Google::Apis::Core::Hashable
|
516
|
+
|
517
|
+
# If there are multiple sources, then the data is considered “joined” between
|
518
|
+
# them. For instance, BigQuery can join multiple tables, and each table would be
|
519
|
+
# considered a source.
|
520
|
+
# Corresponds to the JSON property `sources`
|
521
|
+
# @return [Array<Google::Apis::SecuritycenterV1beta2::ExfilResource>]
|
522
|
+
attr_accessor :sources
|
523
|
+
|
524
|
+
# If there are multiple targets, each target would get a complete copy of the “
|
525
|
+
# joined” source data.
|
526
|
+
# Corresponds to the JSON property `targets`
|
527
|
+
# @return [Array<Google::Apis::SecuritycenterV1beta2::ExfilResource>]
|
528
|
+
attr_accessor :targets
|
529
|
+
|
530
|
+
def initialize(**args)
|
531
|
+
update!(**args)
|
532
|
+
end
|
533
|
+
|
534
|
+
# Update properties of this object
|
535
|
+
def update!(**args)
|
536
|
+
@sources = args[:sources] if args.key?(:sources)
|
537
|
+
@targets = args[:targets] if args.key?(:targets)
|
538
|
+
end
|
539
|
+
end
|
540
|
+
|
541
|
+
# File information about the related binary/library used by an executable, or
|
542
|
+
# the script used by a script interpreter
|
543
|
+
class File
|
544
|
+
include Google::Apis::Core::Hashable
|
545
|
+
|
546
|
+
# Prefix of the file contents as a JSON encoded string. (Currently only
|
547
|
+
# populated for Malicious Script Executed findings.)
|
548
|
+
# Corresponds to the JSON property `contents`
|
549
|
+
# @return [String]
|
550
|
+
attr_accessor :contents
|
551
|
+
|
552
|
+
# The length in bytes of the file prefix that was hashed. If hashed_size == size,
|
553
|
+
# any hashes reported represent the entire file.
|
554
|
+
# Corresponds to the JSON property `hashedSize`
|
555
|
+
# @return [Fixnum]
|
556
|
+
attr_accessor :hashed_size
|
557
|
+
|
558
|
+
# True when the hash covers only a prefix of the file.
|
559
|
+
# Corresponds to the JSON property `partiallyHashed`
|
560
|
+
# @return [Boolean]
|
561
|
+
attr_accessor :partially_hashed
|
562
|
+
alias_method :partially_hashed?, :partially_hashed
|
563
|
+
|
564
|
+
# Absolute path of the file as a JSON encoded string.
|
565
|
+
# Corresponds to the JSON property `path`
|
566
|
+
# @return [String]
|
567
|
+
attr_accessor :path
|
568
|
+
|
569
|
+
# SHA256 hash of the first hashed_size bytes of the file encoded as a hex string.
|
570
|
+
# If hashed_size == size, hash_sha256 represents the SHA256 hash of the entire
|
571
|
+
# file.
|
572
|
+
# Corresponds to the JSON property `sha256`
|
573
|
+
# @return [String]
|
574
|
+
attr_accessor :sha256
|
575
|
+
|
576
|
+
# Size of the file in bytes.
|
577
|
+
# Corresponds to the JSON property `size`
|
578
|
+
# @return [Fixnum]
|
579
|
+
attr_accessor :size
|
580
|
+
|
581
|
+
def initialize(**args)
|
582
|
+
update!(**args)
|
583
|
+
end
|
584
|
+
|
585
|
+
# Update properties of this object
|
586
|
+
def update!(**args)
|
587
|
+
@contents = args[:contents] if args.key?(:contents)
|
588
|
+
@hashed_size = args[:hashed_size] if args.key?(:hashed_size)
|
589
|
+
@partially_hashed = args[:partially_hashed] if args.key?(:partially_hashed)
|
590
|
+
@path = args[:path] if args.key?(:path)
|
591
|
+
@sha256 = args[:sha256] if args.key?(:sha256)
|
592
|
+
@size = args[:size] if args.key?(:size)
|
593
|
+
end
|
594
|
+
end
|
595
|
+
|
388
596
|
# Security Command Center finding. A finding is a record of assessment data like
|
389
597
|
# security, risk, health, or privacy, that is ingested into Security Command
|
390
598
|
# Center for presentation, notification, analysis, policy testing, and
|
@@ -413,11 +621,27 @@ module Google
|
|
413
621
|
# @return [String]
|
414
622
|
attr_accessor :category
|
415
623
|
|
624
|
+
# Contains compliance information for security standards associated to the
|
625
|
+
# finding.
|
626
|
+
# Corresponds to the JSON property `compliances`
|
627
|
+
# @return [Array<Google::Apis::SecuritycenterV1beta2::Compliance>]
|
628
|
+
attr_accessor :compliances
|
629
|
+
|
416
630
|
# Contains information about the IP connection associated with the finding.
|
417
631
|
# Corresponds to the JSON property `connections`
|
418
632
|
# @return [Array<Google::Apis::SecuritycenterV1beta2::Connection>]
|
419
633
|
attr_accessor :connections
|
420
634
|
|
635
|
+
# Output only. Map containing the point of contacts for the given finding. The
|
636
|
+
# key represents the type of contact, while the value contains a list of all the
|
637
|
+
# contacts that pertain. Please refer to: https://cloud.google.com/resource-
|
638
|
+
# manager/docs/managing-notification-contacts#notification-categories ` “
|
639
|
+
# security”: `contact: `email: “person1@company.com”` contact: `email: “person2@
|
640
|
+
# company.com”` `
|
641
|
+
# Corresponds to the JSON property `contacts`
|
642
|
+
# @return [Hash<String,Google::Apis::SecuritycenterV1beta2::ContactDetails>]
|
643
|
+
attr_accessor :contacts
|
644
|
+
|
421
645
|
# The time at which the finding was created in Security Command Center.
|
422
646
|
# Corresponds to the JSON property `createTime`
|
423
647
|
# @return [String]
|
@@ -438,6 +662,13 @@ module Google
|
|
438
662
|
# @return [String]
|
439
663
|
attr_accessor :event_time
|
440
664
|
|
665
|
+
# Exfiltration represents a data exfiltration attempt of one or more source(s)
|
666
|
+
# to one or more target(s). Source(s) represent the source of data that is
|
667
|
+
# exfiltrated, and Target(s) represents the destination the data was copied to.
|
668
|
+
# Corresponds to the JSON property `exfiltration`
|
669
|
+
# @return [Google::Apis::SecuritycenterV1beta2::Exfiltration]
|
670
|
+
attr_accessor :exfiltration
|
671
|
+
|
441
672
|
# Output only. Third party SIEM/SOAR fields within SCC, contains external system
|
442
673
|
# information and external system finding fields.
|
443
674
|
# Corresponds to the JSON property `externalSystems`
|
@@ -515,6 +746,11 @@ module Google
|
|
515
746
|
# @return [String]
|
516
747
|
attr_accessor :parent
|
517
748
|
|
749
|
+
# Represents operating system processes associated with the Finding.
|
750
|
+
# Corresponds to the JSON property `processes`
|
751
|
+
# @return [Array<Google::Apis::SecuritycenterV1beta2::Process>]
|
752
|
+
attr_accessor :processes
|
753
|
+
|
518
754
|
# For findings on Google Cloud resources, the full resource name of the Google
|
519
755
|
# Cloud resource this finding is for. See: https://cloud.google.com/apis/design/
|
520
756
|
# resource_names#full_resource_name When the finding is for a non-Google Cloud
|
@@ -565,10 +801,13 @@ module Google
|
|
565
801
|
@access = args[:access] if args.key?(:access)
|
566
802
|
@canonical_name = args[:canonical_name] if args.key?(:canonical_name)
|
567
803
|
@category = args[:category] if args.key?(:category)
|
804
|
+
@compliances = args[:compliances] if args.key?(:compliances)
|
568
805
|
@connections = args[:connections] if args.key?(:connections)
|
806
|
+
@contacts = args[:contacts] if args.key?(:contacts)
|
569
807
|
@create_time = args[:create_time] if args.key?(:create_time)
|
570
808
|
@description = args[:description] if args.key?(:description)
|
571
809
|
@event_time = args[:event_time] if args.key?(:event_time)
|
810
|
+
@exfiltration = args[:exfiltration] if args.key?(:exfiltration)
|
572
811
|
@external_systems = args[:external_systems] if args.key?(:external_systems)
|
573
812
|
@external_uri = args[:external_uri] if args.key?(:external_uri)
|
574
813
|
@finding_class = args[:finding_class] if args.key?(:finding_class)
|
@@ -581,6 +820,7 @@ module Google
|
|
581
820
|
@name = args[:name] if args.key?(:name)
|
582
821
|
@next_steps = args[:next_steps] if args.key?(:next_steps)
|
583
822
|
@parent = args[:parent] if args.key?(:parent)
|
823
|
+
@processes = args[:processes] if args.key?(:processes)
|
584
824
|
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
585
825
|
@security_marks = args[:security_marks] if args.key?(:security_marks)
|
586
826
|
@severity = args[:severity] if args.key?(:severity)
|
@@ -1440,6 +1680,77 @@ module Google
|
|
1440
1680
|
end
|
1441
1681
|
end
|
1442
1682
|
|
1683
|
+
# Represents an operating system process.
|
1684
|
+
class Process
|
1685
|
+
include Google::Apis::Core::Hashable
|
1686
|
+
|
1687
|
+
# Process arguments as JSON encoded strings.
|
1688
|
+
# Corresponds to the JSON property `args`
|
1689
|
+
# @return [Array<String>]
|
1690
|
+
attr_accessor :args
|
1691
|
+
|
1692
|
+
# True if arguments is incomplete.
|
1693
|
+
# Corresponds to the JSON property `argumentsTruncated`
|
1694
|
+
# @return [Boolean]
|
1695
|
+
attr_accessor :arguments_truncated
|
1696
|
+
alias_method :arguments_truncated?, :arguments_truncated
|
1697
|
+
|
1698
|
+
# File information about the related binary/library used by an executable, or
|
1699
|
+
# the script used by a script interpreter
|
1700
|
+
# Corresponds to the JSON property `binary`
|
1701
|
+
# @return [Google::Apis::SecuritycenterV1beta2::File]
|
1702
|
+
attr_accessor :binary
|
1703
|
+
|
1704
|
+
# Process environment variables.
|
1705
|
+
# Corresponds to the JSON property `envVariables`
|
1706
|
+
# @return [Array<Google::Apis::SecuritycenterV1beta2::EnvironmentVariable>]
|
1707
|
+
attr_accessor :env_variables
|
1708
|
+
|
1709
|
+
# True if env_variables is incomplete.
|
1710
|
+
# Corresponds to the JSON property `envVariablesTruncated`
|
1711
|
+
# @return [Boolean]
|
1712
|
+
attr_accessor :env_variables_truncated
|
1713
|
+
alias_method :env_variables_truncated?, :env_variables_truncated
|
1714
|
+
|
1715
|
+
# File information for libraries loaded by the process.
|
1716
|
+
# Corresponds to the JSON property `libraries`
|
1717
|
+
# @return [Array<Google::Apis::SecuritycenterV1beta2::File>]
|
1718
|
+
attr_accessor :libraries
|
1719
|
+
|
1720
|
+
# The parent process id.
|
1721
|
+
# Corresponds to the JSON property `parentPid`
|
1722
|
+
# @return [Fixnum]
|
1723
|
+
attr_accessor :parent_pid
|
1724
|
+
|
1725
|
+
# The process id.
|
1726
|
+
# Corresponds to the JSON property `pid`
|
1727
|
+
# @return [Fixnum]
|
1728
|
+
attr_accessor :pid
|
1729
|
+
|
1730
|
+
# File information about the related binary/library used by an executable, or
|
1731
|
+
# the script used by a script interpreter
|
1732
|
+
# Corresponds to the JSON property `script`
|
1733
|
+
# @return [Google::Apis::SecuritycenterV1beta2::File]
|
1734
|
+
attr_accessor :script
|
1735
|
+
|
1736
|
+
def initialize(**args)
|
1737
|
+
update!(**args)
|
1738
|
+
end
|
1739
|
+
|
1740
|
+
# Update properties of this object
|
1741
|
+
def update!(**args)
|
1742
|
+
@args = args[:args] if args.key?(:args)
|
1743
|
+
@arguments_truncated = args[:arguments_truncated] if args.key?(:arguments_truncated)
|
1744
|
+
@binary = args[:binary] if args.key?(:binary)
|
1745
|
+
@env_variables = args[:env_variables] if args.key?(:env_variables)
|
1746
|
+
@env_variables_truncated = args[:env_variables_truncated] if args.key?(:env_variables_truncated)
|
1747
|
+
@libraries = args[:libraries] if args.key?(:libraries)
|
1748
|
+
@parent_pid = args[:parent_pid] if args.key?(:parent_pid)
|
1749
|
+
@pid = args[:pid] if args.key?(:pid)
|
1750
|
+
@script = args[:script] if args.key?(:script)
|
1751
|
+
end
|
1752
|
+
end
|
1753
|
+
|
1443
1754
|
# Additional Links
|
1444
1755
|
class Reference
|
1445
1756
|
include Google::Apis::Core::Hashable
|
@@ -1480,11 +1791,17 @@ module Google
|
|
1480
1791
|
attr_accessor :log_sink_project
|
1481
1792
|
|
1482
1793
|
# The resource name of the SecurityCenterSettings. Format: organizations/`
|
1483
|
-
# organization`/securityCenterSettings
|
1794
|
+
# organization`/securityCenterSettings Format: folders/`folder`/
|
1795
|
+
# securityCenterSettings Format: projects/`project`/securityCenterSettings
|
1484
1796
|
# Corresponds to the JSON property `name`
|
1485
1797
|
# @return [String]
|
1486
1798
|
attr_accessor :name
|
1487
1799
|
|
1800
|
+
# Timestamp of when the customer organization was onboarded to SCC.
|
1801
|
+
# Corresponds to the JSON property `onboardingTime`
|
1802
|
+
# @return [String]
|
1803
|
+
attr_accessor :onboarding_time
|
1804
|
+
|
1488
1805
|
# The organization level service account to be used for security center
|
1489
1806
|
# components.
|
1490
1807
|
# Corresponds to the JSON property `orgServiceAccount`
|
@@ -1499,6 +1816,7 @@ module Google
|
|
1499
1816
|
def update!(**args)
|
1500
1817
|
@log_sink_project = args[:log_sink_project] if args.key?(:log_sink_project)
|
1501
1818
|
@name = args[:name] if args.key?(:name)
|
1819
|
+
@onboarding_time = args[:onboarding_time] if args.key?(:onboarding_time)
|
1502
1820
|
@org_service_account = args[:org_service_account] if args.key?(:org_service_account)
|
1503
1821
|
end
|
1504
1822
|
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.24.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220520"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,6 +28,12 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
+
class Compliance
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
31
37
|
class Config
|
32
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
39
|
|
@@ -40,6 +46,18 @@ module Google
|
|
40
46
|
include Google::Apis::Core::JsonObjectSupport
|
41
47
|
end
|
42
48
|
|
49
|
+
class Contact
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class ContactDetails
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
43
61
|
class ContainerThreatDetectionSettings
|
44
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
63
|
|
@@ -64,12 +82,36 @@ module Google
|
|
64
82
|
include Google::Apis::Core::JsonObjectSupport
|
65
83
|
end
|
66
84
|
|
85
|
+
class EnvironmentVariable
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
67
91
|
class EventThreatDetectionSettings
|
68
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
93
|
|
70
94
|
include Google::Apis::Core::JsonObjectSupport
|
71
95
|
end
|
72
96
|
|
97
|
+
class ExfilResource
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class Exfiltration
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class File
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
73
115
|
class Finding
|
74
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
117
|
|
@@ -196,6 +238,12 @@ module Google
|
|
196
238
|
include Google::Apis::Core::JsonObjectSupport
|
197
239
|
end
|
198
240
|
|
241
|
+
class Process
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
|
+
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
245
|
+
end
|
246
|
+
|
199
247
|
class Reference
|
200
248
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
249
|
|
@@ -257,6 +305,15 @@ module Google
|
|
257
305
|
end
|
258
306
|
end
|
259
307
|
|
308
|
+
class Compliance
|
309
|
+
# @private
|
310
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
311
|
+
collection :ids, as: 'ids'
|
312
|
+
property :standard, as: 'standard'
|
313
|
+
property :version, as: 'version'
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|
260
317
|
class Config
|
261
318
|
# @private
|
262
319
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -276,6 +333,21 @@ module Google
|
|
276
333
|
end
|
277
334
|
end
|
278
335
|
|
336
|
+
class Contact
|
337
|
+
# @private
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
339
|
+
property :email, as: 'email'
|
340
|
+
end
|
341
|
+
end
|
342
|
+
|
343
|
+
class ContactDetails
|
344
|
+
# @private
|
345
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
346
|
+
collection :contacts, as: 'contacts', class: Google::Apis::SecuritycenterV1beta2::Contact, decorator: Google::Apis::SecuritycenterV1beta2::Contact::Representation
|
347
|
+
|
348
|
+
end
|
349
|
+
end
|
350
|
+
|
279
351
|
class ContainerThreatDetectionSettings
|
280
352
|
# @private
|
281
353
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -324,6 +396,14 @@ module Google
|
|
324
396
|
end
|
325
397
|
end
|
326
398
|
|
399
|
+
class EnvironmentVariable
|
400
|
+
# @private
|
401
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
402
|
+
property :name, as: 'name'
|
403
|
+
property :val, as: 'val'
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
327
407
|
class EventThreatDetectionSettings
|
328
408
|
# @private
|
329
409
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -335,6 +415,36 @@ module Google
|
|
335
415
|
end
|
336
416
|
end
|
337
417
|
|
418
|
+
class ExfilResource
|
419
|
+
# @private
|
420
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
421
|
+
collection :components, as: 'components'
|
422
|
+
property :name, as: 'name'
|
423
|
+
end
|
424
|
+
end
|
425
|
+
|
426
|
+
class Exfiltration
|
427
|
+
# @private
|
428
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
429
|
+
collection :sources, as: 'sources', class: Google::Apis::SecuritycenterV1beta2::ExfilResource, decorator: Google::Apis::SecuritycenterV1beta2::ExfilResource::Representation
|
430
|
+
|
431
|
+
collection :targets, as: 'targets', class: Google::Apis::SecuritycenterV1beta2::ExfilResource, decorator: Google::Apis::SecuritycenterV1beta2::ExfilResource::Representation
|
432
|
+
|
433
|
+
end
|
434
|
+
end
|
435
|
+
|
436
|
+
class File
|
437
|
+
# @private
|
438
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
439
|
+
property :contents, as: 'contents'
|
440
|
+
property :hashed_size, :numeric_string => true, as: 'hashedSize'
|
441
|
+
property :partially_hashed, as: 'partiallyHashed'
|
442
|
+
property :path, as: 'path'
|
443
|
+
property :sha256, as: 'sha256'
|
444
|
+
property :size, :numeric_string => true, as: 'size'
|
445
|
+
end
|
446
|
+
end
|
447
|
+
|
338
448
|
class Finding
|
339
449
|
# @private
|
340
450
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -342,11 +452,17 @@ module Google
|
|
342
452
|
|
343
453
|
property :canonical_name, as: 'canonicalName'
|
344
454
|
property :category, as: 'category'
|
455
|
+
collection :compliances, as: 'compliances', class: Google::Apis::SecuritycenterV1beta2::Compliance, decorator: Google::Apis::SecuritycenterV1beta2::Compliance::Representation
|
456
|
+
|
345
457
|
collection :connections, as: 'connections', class: Google::Apis::SecuritycenterV1beta2::Connection, decorator: Google::Apis::SecuritycenterV1beta2::Connection::Representation
|
346
458
|
|
459
|
+
hash :contacts, as: 'contacts', class: Google::Apis::SecuritycenterV1beta2::ContactDetails, decorator: Google::Apis::SecuritycenterV1beta2::ContactDetails::Representation
|
460
|
+
|
347
461
|
property :create_time, as: 'createTime'
|
348
462
|
property :description, as: 'description'
|
349
463
|
property :event_time, as: 'eventTime'
|
464
|
+
property :exfiltration, as: 'exfiltration', class: Google::Apis::SecuritycenterV1beta2::Exfiltration, decorator: Google::Apis::SecuritycenterV1beta2::Exfiltration::Representation
|
465
|
+
|
350
466
|
hash :external_systems, as: 'externalSystems', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ExternalSystem, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ExternalSystem::Representation
|
351
467
|
|
352
468
|
property :external_uri, as: 'externalUri'
|
@@ -363,6 +479,8 @@ module Google
|
|
363
479
|
property :name, as: 'name'
|
364
480
|
property :next_steps, as: 'nextSteps'
|
365
481
|
property :parent, as: 'parent'
|
482
|
+
collection :processes, as: 'processes', class: Google::Apis::SecuritycenterV1beta2::Process, decorator: Google::Apis::SecuritycenterV1beta2::Process::Representation
|
483
|
+
|
366
484
|
property :resource_name, as: 'resourceName'
|
367
485
|
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta2::SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta2::SecurityMarks::Representation
|
368
486
|
|
@@ -579,6 +697,25 @@ module Google
|
|
579
697
|
end
|
580
698
|
end
|
581
699
|
|
700
|
+
class Process
|
701
|
+
# @private
|
702
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
703
|
+
collection :args, as: 'args'
|
704
|
+
property :arguments_truncated, as: 'argumentsTruncated'
|
705
|
+
property :binary, as: 'binary', class: Google::Apis::SecuritycenterV1beta2::File, decorator: Google::Apis::SecuritycenterV1beta2::File::Representation
|
706
|
+
|
707
|
+
collection :env_variables, as: 'envVariables', class: Google::Apis::SecuritycenterV1beta2::EnvironmentVariable, decorator: Google::Apis::SecuritycenterV1beta2::EnvironmentVariable::Representation
|
708
|
+
|
709
|
+
property :env_variables_truncated, as: 'envVariablesTruncated'
|
710
|
+
collection :libraries, as: 'libraries', class: Google::Apis::SecuritycenterV1beta2::File, decorator: Google::Apis::SecuritycenterV1beta2::File::Representation
|
711
|
+
|
712
|
+
property :parent_pid, :numeric_string => true, as: 'parentPid'
|
713
|
+
property :pid, :numeric_string => true, as: 'pid'
|
714
|
+
property :script, as: 'script', class: Google::Apis::SecuritycenterV1beta2::File, decorator: Google::Apis::SecuritycenterV1beta2::File::Representation
|
715
|
+
|
716
|
+
end
|
717
|
+
end
|
718
|
+
|
582
719
|
class Reference
|
583
720
|
# @private
|
584
721
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -592,6 +729,7 @@ module Google
|
|
592
729
|
class Representation < Google::Apis::Core::JsonRepresentation
|
593
730
|
property :log_sink_project, as: 'logSinkProject'
|
594
731
|
property :name, as: 'name'
|
732
|
+
property :onboarding_time, as: 'onboardingTime'
|
595
733
|
property :org_service_account, as: 'orgServiceAccount'
|
596
734
|
end
|
597
735
|
end
|
@@ -148,6 +148,38 @@ module Google
|
|
148
148
|
execute_or_queue_command(command, &block)
|
149
149
|
end
|
150
150
|
|
151
|
+
# Get the SecurityCenterSettings resource.
|
152
|
+
# @param [String] name
|
153
|
+
# Required. The name of the SecurityCenterSettings to retrieve. Format:
|
154
|
+
# organizations/`organization`/securityCenterSettings Format: folders/`folder`/
|
155
|
+
# securityCenterSettings Format: projects/`project`/securityCenterSettings
|
156
|
+
# @param [String] fields
|
157
|
+
# Selector specifying which fields to include in a partial response.
|
158
|
+
# @param [String] quota_user
|
159
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
160
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
161
|
+
# @param [Google::Apis::RequestOptions] options
|
162
|
+
# Request-specific options
|
163
|
+
#
|
164
|
+
# @yield [result, err] Result & error if block supplied
|
165
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings] parsed result object
|
166
|
+
# @yieldparam err [StandardError] error object if request failed
|
167
|
+
#
|
168
|
+
# @return [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings]
|
169
|
+
#
|
170
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
171
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
172
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
173
|
+
def get_folder_security_center_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
174
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
175
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings::Representation
|
176
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings
|
177
|
+
command.params['name'] = name unless name.nil?
|
178
|
+
command.query['fields'] = fields unless fields.nil?
|
179
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
180
|
+
execute_or_queue_command(command, &block)
|
181
|
+
end
|
182
|
+
|
151
183
|
# Get the SecurityHealthAnalyticsSettings resource.
|
152
184
|
# @param [String] name
|
153
185
|
# Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats:
|
@@ -710,7 +742,8 @@ module Google
|
|
710
742
|
# Get the SecurityCenterSettings resource.
|
711
743
|
# @param [String] name
|
712
744
|
# Required. The name of the SecurityCenterSettings to retrieve. Format:
|
713
|
-
# organizations/`organization`/securityCenterSettings
|
745
|
+
# organizations/`organization`/securityCenterSettings Format: folders/`folder`/
|
746
|
+
# securityCenterSettings Format: projects/`project`/securityCenterSettings
|
714
747
|
# @param [String] fields
|
715
748
|
# Selector specifying which fields to include in a partial response.
|
716
749
|
# @param [String] quota_user
|
@@ -1328,6 +1361,38 @@ module Google
|
|
1328
1361
|
execute_or_queue_command(command, &block)
|
1329
1362
|
end
|
1330
1363
|
|
1364
|
+
# Get the SecurityCenterSettings resource.
|
1365
|
+
# @param [String] name
|
1366
|
+
# Required. The name of the SecurityCenterSettings to retrieve. Format:
|
1367
|
+
# organizations/`organization`/securityCenterSettings Format: folders/`folder`/
|
1368
|
+
# securityCenterSettings Format: projects/`project`/securityCenterSettings
|
1369
|
+
# @param [String] fields
|
1370
|
+
# Selector specifying which fields to include in a partial response.
|
1371
|
+
# @param [String] quota_user
|
1372
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1373
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1374
|
+
# @param [Google::Apis::RequestOptions] options
|
1375
|
+
# Request-specific options
|
1376
|
+
#
|
1377
|
+
# @yield [result, err] Result & error if block supplied
|
1378
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings] parsed result object
|
1379
|
+
# @yieldparam err [StandardError] error object if request failed
|
1380
|
+
#
|
1381
|
+
# @return [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings]
|
1382
|
+
#
|
1383
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1384
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1385
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1386
|
+
def get_project_security_center_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
1387
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
1388
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings::Representation
|
1389
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings
|
1390
|
+
command.params['name'] = name unless name.nil?
|
1391
|
+
command.query['fields'] = fields unless fields.nil?
|
1392
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1393
|
+
execute_or_queue_command(command, &block)
|
1394
|
+
end
|
1395
|
+
|
1331
1396
|
# Get the SecurityHealthAnalyticsSettings resource.
|
1332
1397
|
# @param [String] name
|
1333
1398
|
# Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats:
|
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.24.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-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1beta2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.24.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1beta2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.3.
|
78
|
+
rubygems_version: 3.3.14
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Security Command Center API V1beta2
|