google-apis-securitycenter_v1 0.10.0 → 0.14.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 +16 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/securitycenter_v1/classes.rb +248 -57
- data/lib/google/apis/securitycenter_v1/gem_version.rb +2 -2
- data/lib/google/apis/securitycenter_v1/representations.rb +72 -0
- data/lib/google/apis/securitycenter_v1/service.rb +3 -3
- data/lib/google/apis/securitycenter_v1.rb +1 -1
- 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: e694558741d7f731680f19da31a5f74b9c6126ab467efe667bd225c323fe7c78
|
4
|
+
data.tar.gz: 4adb28be17c516abb30906d50f355587d2aadd08fb30dff5af42d24636f62016
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 470732a79bebc01ad457e01cf88d28783cee8d289e98dbfeb5c54ba1be046f4a85b746433dcfea6268641717cdb962fbffb03c5e2c0c8733d9ef29fe2a5db287
|
7
|
+
data.tar.gz: 8818da1c131f7714d4101cddf170d8920dc8f95f7e1367efccf6abee149c5111d0912b7cbd69bc09165793895ae76782841846ff56b5d8e77cc8e7f2d2e2f1bc
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-securitycenter_v1
|
2
2
|
|
3
|
+
### v0.14.0 (2021-10-20)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211015
|
6
|
+
|
7
|
+
### v0.13.0 (2021-10-12)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211007
|
10
|
+
|
11
|
+
### v0.12.0 (2021-10-05)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210930
|
14
|
+
|
15
|
+
### v0.11.0 (2021-09-01)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210820
|
18
|
+
|
3
19
|
### v0.10.0 (2021-07-20)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210716
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Securitycenter service in particular.)
|
67
67
|
|
@@ -202,7 +202,7 @@ module Google
|
|
202
202
|
end
|
203
203
|
end
|
204
204
|
|
205
|
-
# Associates `members
|
205
|
+
# Associates `members`, or principals, with a `role`.
|
206
206
|
class Binding
|
207
207
|
include Google::Apis::Core::Hashable
|
208
208
|
|
@@ -225,7 +225,7 @@ module Google
|
|
225
225
|
# @return [Google::Apis::SecuritycenterV1::Expr]
|
226
226
|
attr_accessor :condition
|
227
227
|
|
228
|
-
# Specifies the
|
228
|
+
# Specifies the principals requesting access for a Cloud Platform resource. `
|
229
229
|
# members` can have the following values: * `allUsers`: A special identifier
|
230
230
|
# that represents anyone who is on the internet; with or without a Google
|
231
231
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
@@ -255,8 +255,8 @@ module Google
|
|
255
255
|
# @return [Array<String>]
|
256
256
|
attr_accessor :members
|
257
257
|
|
258
|
-
# Role that is assigned to `members
|
259
|
-
#
|
258
|
+
# Role that is assigned to the list of `members`, or principals. For example, `
|
259
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`.
|
260
260
|
# Corresponds to the JSON property `role`
|
261
261
|
# @return [String]
|
262
262
|
attr_accessor :role
|
@@ -273,6 +273,116 @@ module Google
|
|
273
273
|
end
|
274
274
|
end
|
275
275
|
|
276
|
+
# CVE stands for Common Vulnerabilities and Exposures. More information: https://
|
277
|
+
# cve.mitre.org
|
278
|
+
class Cve
|
279
|
+
include Google::Apis::Core::Hashable
|
280
|
+
|
281
|
+
# Common Vulnerability Scoring System version 3.
|
282
|
+
# Corresponds to the JSON property `cvssv3`
|
283
|
+
# @return [Google::Apis::SecuritycenterV1::Cvssv3]
|
284
|
+
attr_accessor :cvssv3
|
285
|
+
|
286
|
+
# The unique identifier for the vulnerability. e.g. CVE-2021-34527
|
287
|
+
# Corresponds to the JSON property `id`
|
288
|
+
# @return [String]
|
289
|
+
attr_accessor :id
|
290
|
+
|
291
|
+
# Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/
|
292
|
+
# cvename.cgi?name=CVE-2021-34527
|
293
|
+
# Corresponds to the JSON property `references`
|
294
|
+
# @return [Array<Google::Apis::SecuritycenterV1::Reference>]
|
295
|
+
attr_accessor :references
|
296
|
+
|
297
|
+
def initialize(**args)
|
298
|
+
update!(**args)
|
299
|
+
end
|
300
|
+
|
301
|
+
# Update properties of this object
|
302
|
+
def update!(**args)
|
303
|
+
@cvssv3 = args[:cvssv3] if args.key?(:cvssv3)
|
304
|
+
@id = args[:id] if args.key?(:id)
|
305
|
+
@references = args[:references] if args.key?(:references)
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
309
|
+
# Common Vulnerability Scoring System version 3.
|
310
|
+
class Cvssv3
|
311
|
+
include Google::Apis::Core::Hashable
|
312
|
+
|
313
|
+
# This metric describes the conditions beyond the attacker's control that must
|
314
|
+
# exist in order to exploit the vulnerability.
|
315
|
+
# Corresponds to the JSON property `attackComplexity`
|
316
|
+
# @return [String]
|
317
|
+
attr_accessor :attack_complexity
|
318
|
+
|
319
|
+
# Base Metrics Represents the intrinsic characteristics of a vulnerability that
|
320
|
+
# are constant over time and across user environments. This metric reflects the
|
321
|
+
# context by which vulnerability exploitation is possible.
|
322
|
+
# Corresponds to the JSON property `attackVector`
|
323
|
+
# @return [String]
|
324
|
+
attr_accessor :attack_vector
|
325
|
+
|
326
|
+
# This metric measures the impact to the availability of the impacted component
|
327
|
+
# resulting from a successfully exploited vulnerability.
|
328
|
+
# Corresponds to the JSON property `availabilityImpact`
|
329
|
+
# @return [String]
|
330
|
+
attr_accessor :availability_impact
|
331
|
+
|
332
|
+
# The base score is a function of the base metric scores.
|
333
|
+
# Corresponds to the JSON property `baseScore`
|
334
|
+
# @return [Float]
|
335
|
+
attr_accessor :base_score
|
336
|
+
|
337
|
+
# This metric measures the impact to the confidentiality of the information
|
338
|
+
# resources managed by a software component due to a successfully exploited
|
339
|
+
# vulnerability.
|
340
|
+
# Corresponds to the JSON property `confidentialityImpact`
|
341
|
+
# @return [String]
|
342
|
+
attr_accessor :confidentiality_impact
|
343
|
+
|
344
|
+
# This metric measures the impact to integrity of a successfully exploited
|
345
|
+
# vulnerability.
|
346
|
+
# Corresponds to the JSON property `integrityImpact`
|
347
|
+
# @return [String]
|
348
|
+
attr_accessor :integrity_impact
|
349
|
+
|
350
|
+
# This metric describes the level of privileges an attacker must possess before
|
351
|
+
# successfully exploiting the vulnerability.
|
352
|
+
# Corresponds to the JSON property `privilegesRequired`
|
353
|
+
# @return [String]
|
354
|
+
attr_accessor :privileges_required
|
355
|
+
|
356
|
+
# The Scope metric captures whether a vulnerability in one vulnerable component
|
357
|
+
# impacts resources in components beyond its security scope.
|
358
|
+
# Corresponds to the JSON property `scope`
|
359
|
+
# @return [String]
|
360
|
+
attr_accessor :scope
|
361
|
+
|
362
|
+
# This metric captures the requirement for a human user, other than the attacker,
|
363
|
+
# to participate in the successful compromise of the vulnerable component.
|
364
|
+
# Corresponds to the JSON property `userInteraction`
|
365
|
+
# @return [String]
|
366
|
+
attr_accessor :user_interaction
|
367
|
+
|
368
|
+
def initialize(**args)
|
369
|
+
update!(**args)
|
370
|
+
end
|
371
|
+
|
372
|
+
# Update properties of this object
|
373
|
+
def update!(**args)
|
374
|
+
@attack_complexity = args[:attack_complexity] if args.key?(:attack_complexity)
|
375
|
+
@attack_vector = args[:attack_vector] if args.key?(:attack_vector)
|
376
|
+
@availability_impact = args[:availability_impact] if args.key?(:availability_impact)
|
377
|
+
@base_score = args[:base_score] if args.key?(:base_score)
|
378
|
+
@confidentiality_impact = args[:confidentiality_impact] if args.key?(:confidentiality_impact)
|
379
|
+
@integrity_impact = args[:integrity_impact] if args.key?(:integrity_impact)
|
380
|
+
@privileges_required = args[:privileges_required] if args.key?(:privileges_required)
|
381
|
+
@scope = args[:scope] if args.key?(:scope)
|
382
|
+
@user_interaction = args[:user_interaction] if args.key?(:user_interaction)
|
383
|
+
end
|
384
|
+
end
|
385
|
+
|
276
386
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
277
387
|
# messages in your APIs. A typical example is to use it as the request or the
|
278
388
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -453,6 +563,11 @@ module Google
|
|
453
563
|
# @return [String]
|
454
564
|
attr_accessor :state
|
455
565
|
|
566
|
+
# Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
|
567
|
+
# Corresponds to the JSON property `vulnerability`
|
568
|
+
# @return [Google::Apis::SecuritycenterV1::Vulnerability]
|
569
|
+
attr_accessor :vulnerability
|
570
|
+
|
456
571
|
def initialize(**args)
|
457
572
|
update!(**args)
|
458
573
|
end
|
@@ -473,6 +588,7 @@ module Google
|
|
473
588
|
@severity = args[:severity] if args.key?(:severity)
|
474
589
|
@source_properties = args[:source_properties] if args.key?(:source_properties)
|
475
590
|
@state = args[:state] if args.key?(:state)
|
591
|
+
@vulnerability = args[:vulnerability] if args.key?(:vulnerability)
|
476
592
|
end
|
477
593
|
end
|
478
594
|
|
@@ -585,6 +701,11 @@ module Google
|
|
585
701
|
class GoogleCloudSecuritycenterV1Resource
|
586
702
|
include Google::Apis::Core::Hashable
|
587
703
|
|
704
|
+
# The human readable name of the resource.
|
705
|
+
# Corresponds to the JSON property `displayName`
|
706
|
+
# @return [String]
|
707
|
+
attr_accessor :display_name
|
708
|
+
|
588
709
|
# Output only. Contains a Folder message for each folder in the assets ancestry.
|
589
710
|
# The first folder is the deepest nested folder, and the last folder is the
|
590
711
|
# folder directly under the Organization.
|
@@ -618,18 +739,25 @@ module Google
|
|
618
739
|
# @return [String]
|
619
740
|
attr_accessor :project_display_name
|
620
741
|
|
742
|
+
# The full resource type of the resource.
|
743
|
+
# Corresponds to the JSON property `type`
|
744
|
+
# @return [String]
|
745
|
+
attr_accessor :type
|
746
|
+
|
621
747
|
def initialize(**args)
|
622
748
|
update!(**args)
|
623
749
|
end
|
624
750
|
|
625
751
|
# Update properties of this object
|
626
752
|
def update!(**args)
|
753
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
627
754
|
@folders = args[:folders] if args.key?(:folders)
|
628
755
|
@name = args[:name] if args.key?(:name)
|
629
756
|
@parent = args[:parent] if args.key?(:parent)
|
630
757
|
@parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
|
631
758
|
@project = args[:project] if args.key?(:project)
|
632
759
|
@project_display_name = args[:project_display_name] if args.key?(:project_display_name)
|
760
|
+
@type = args[:type] if args.key?(:type)
|
633
761
|
end
|
634
762
|
end
|
635
763
|
|
@@ -1719,31 +1847,31 @@ module Google
|
|
1719
1847
|
|
1720
1848
|
# An Identity and Access Management (IAM) policy, which specifies access
|
1721
1849
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
1722
|
-
# A `binding` binds one or more `members
|
1723
|
-
# user accounts, service accounts, Google groups, and domains (
|
1724
|
-
# A `role` is a named list of permissions; each `role` can be
|
1725
|
-
# role or a user-created custom role. For some types of Google
|
1726
|
-
# a `binding` can also specify a `condition`, which is a
|
1727
|
-
# allows access to a resource only if the expression
|
1728
|
-
# condition can add constraints based on attributes of
|
1729
|
-
# or both. To learn which resources support
|
1730
|
-
# see the [IAM documentation](https://cloud.
|
1731
|
-
# resource-policies). **JSON example:** ` "
|
1732
|
-
# resourcemanager.organizationAdmin", "members": [
|
1733
|
-
# group:admins@example.com", "domain:google.com", "
|
1734
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
1735
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
1736
|
-
# title": "expirable access", "description": "Does not grant
|
1737
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1738
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1739
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
1740
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1741
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
1742
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
1743
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
1744
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
1745
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
1746
|
-
# google.com/iam/docs/).
|
1850
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
1851
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
1852
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
1853
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
1854
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
1855
|
+
# logical expression that allows access to a resource only if the expression
|
1856
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
1857
|
+
# the request, the resource, or both. To learn which resources support
|
1858
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1859
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
1860
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
1861
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
1862
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
1863
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
1864
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
1865
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1866
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1867
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
1868
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1869
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
1870
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
1871
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
1872
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
1873
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
1874
|
+
# cloud.google.com/iam/docs/).
|
1747
1875
|
class Policy
|
1748
1876
|
include Google::Apis::Core::Hashable
|
1749
1877
|
|
@@ -1752,9 +1880,14 @@ module Google
|
|
1752
1880
|
# @return [Array<Google::Apis::SecuritycenterV1::AuditConfig>]
|
1753
1881
|
attr_accessor :audit_configs
|
1754
1882
|
|
1755
|
-
# Associates a list of `members
|
1756
|
-
# condition` that determines how and when the `bindings` are applied.
|
1757
|
-
# the `bindings` must contain at least one
|
1883
|
+
# Associates a list of `members`, or principals, with a `role`. Optionally, may
|
1884
|
+
# specify a `condition` that determines how and when the `bindings` are applied.
|
1885
|
+
# Each of the `bindings` must contain at least one principal. The `bindings` in
|
1886
|
+
# a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
|
1887
|
+
# can be Google groups. Each occurrence of a principal counts towards these
|
1888
|
+
# limits. For example, if the `bindings` grant 50 different roles to `user:alice@
|
1889
|
+
# example.com`, and not to any other principal, then you can add another 1,450
|
1890
|
+
# principals to the `bindings` in the `Policy`.
|
1758
1891
|
# Corresponds to the JSON property `bindings`
|
1759
1892
|
# @return [Array<Google::Apis::SecuritycenterV1::Binding>]
|
1760
1893
|
attr_accessor :bindings
|
@@ -1807,11 +1940,42 @@ module Google
|
|
1807
1940
|
end
|
1808
1941
|
end
|
1809
1942
|
|
1943
|
+
# Additional Links
|
1944
|
+
class Reference
|
1945
|
+
include Google::Apis::Core::Hashable
|
1946
|
+
|
1947
|
+
# Source of the reference e.g. NVD
|
1948
|
+
# Corresponds to the JSON property `source`
|
1949
|
+
# @return [String]
|
1950
|
+
attr_accessor :source
|
1951
|
+
|
1952
|
+
# Uri for the mentioned source e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?
|
1953
|
+
# name=CVE-2021-34527.
|
1954
|
+
# Corresponds to the JSON property `uri`
|
1955
|
+
# @return [String]
|
1956
|
+
attr_accessor :uri
|
1957
|
+
|
1958
|
+
def initialize(**args)
|
1959
|
+
update!(**args)
|
1960
|
+
end
|
1961
|
+
|
1962
|
+
# Update properties of this object
|
1963
|
+
def update!(**args)
|
1964
|
+
@source = args[:source] if args.key?(:source)
|
1965
|
+
@uri = args[:uri] if args.key?(:uri)
|
1966
|
+
end
|
1967
|
+
end
|
1968
|
+
|
1810
1969
|
# Information related to the Google Cloud resource that is associated with this
|
1811
1970
|
# finding.
|
1812
1971
|
class Resource
|
1813
1972
|
include Google::Apis::Core::Hashable
|
1814
1973
|
|
1974
|
+
# The human readable name of the resource.
|
1975
|
+
# Corresponds to the JSON property `displayName`
|
1976
|
+
# @return [String]
|
1977
|
+
attr_accessor :display_name
|
1978
|
+
|
1815
1979
|
# Contains a Folder message for each folder in the assets ancestry. The first
|
1816
1980
|
# folder is the deepest nested folder, and the last folder is the folder
|
1817
1981
|
# directly under the Organization.
|
@@ -1845,18 +2009,25 @@ module Google
|
|
1845
2009
|
# @return [String]
|
1846
2010
|
attr_accessor :project_name
|
1847
2011
|
|
2012
|
+
# The full resource type of the resource.
|
2013
|
+
# Corresponds to the JSON property `type`
|
2014
|
+
# @return [String]
|
2015
|
+
attr_accessor :type
|
2016
|
+
|
1848
2017
|
def initialize(**args)
|
1849
2018
|
update!(**args)
|
1850
2019
|
end
|
1851
2020
|
|
1852
2021
|
# Update properties of this object
|
1853
2022
|
def update!(**args)
|
2023
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1854
2024
|
@folders = args[:folders] if args.key?(:folders)
|
1855
2025
|
@name = args[:name] if args.key?(:name)
|
1856
2026
|
@parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
|
1857
2027
|
@parent_name = args[:parent_name] if args.key?(:parent_name)
|
1858
2028
|
@project_display_name = args[:project_display_name] if args.key?(:project_display_name)
|
1859
2029
|
@project_name = args[:project_name] if args.key?(:project_name)
|
2030
|
+
@type = args[:type] if args.key?(:type)
|
1860
2031
|
end
|
1861
2032
|
end
|
1862
2033
|
|
@@ -2027,31 +2198,31 @@ module Google
|
|
2027
2198
|
|
2028
2199
|
# An Identity and Access Management (IAM) policy, which specifies access
|
2029
2200
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
2030
|
-
# A `binding` binds one or more `members
|
2031
|
-
# user accounts, service accounts, Google groups, and domains (
|
2032
|
-
# A `role` is a named list of permissions; each `role` can be
|
2033
|
-
# role or a user-created custom role. For some types of Google
|
2034
|
-
# a `binding` can also specify a `condition`, which is a
|
2035
|
-
# allows access to a resource only if the expression
|
2036
|
-
# condition can add constraints based on attributes of
|
2037
|
-
# or both. To learn which resources support
|
2038
|
-
# see the [IAM documentation](https://cloud.
|
2039
|
-
# resource-policies). **JSON example:** ` "
|
2040
|
-
# resourcemanager.organizationAdmin", "members": [
|
2041
|
-
# group:admins@example.com", "domain:google.com", "
|
2042
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
2043
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
2044
|
-
# title": "expirable access", "description": "Does not grant
|
2045
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
2046
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
2047
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
2048
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
2049
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
2050
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
2051
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
2052
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
2053
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
2054
|
-
# google.com/iam/docs/).
|
2201
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
2202
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
2203
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
2204
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
2205
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
2206
|
+
# logical expression that allows access to a resource only if the expression
|
2207
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
2208
|
+
# the request, the resource, or both. To learn which resources support
|
2209
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
2210
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
2211
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
2212
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
2213
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
2214
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
2215
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
2216
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
2217
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
2218
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
2219
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
2220
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
2221
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
2222
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
2223
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
2224
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
2225
|
+
# cloud.google.com/iam/docs/).
|
2055
2226
|
# Corresponds to the JSON property `policy`
|
2056
2227
|
# @return [Google::Apis::SecuritycenterV1::Policy]
|
2057
2228
|
attr_accessor :policy
|
@@ -2232,6 +2403,26 @@ module Google
|
|
2232
2403
|
@permissions = args[:permissions] if args.key?(:permissions)
|
2233
2404
|
end
|
2234
2405
|
end
|
2406
|
+
|
2407
|
+
# Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
|
2408
|
+
class Vulnerability
|
2409
|
+
include Google::Apis::Core::Hashable
|
2410
|
+
|
2411
|
+
# CVE stands for Common Vulnerabilities and Exposures. More information: https://
|
2412
|
+
# cve.mitre.org
|
2413
|
+
# Corresponds to the JSON property `cve`
|
2414
|
+
# @return [Google::Apis::SecuritycenterV1::Cve]
|
2415
|
+
attr_accessor :cve
|
2416
|
+
|
2417
|
+
def initialize(**args)
|
2418
|
+
update!(**args)
|
2419
|
+
end
|
2420
|
+
|
2421
|
+
# Update properties of this object
|
2422
|
+
def update!(**args)
|
2423
|
+
@cve = args[:cve] if args.key?(:cve)
|
2424
|
+
end
|
2425
|
+
end
|
2235
2426
|
end
|
2236
2427
|
end
|
2237
2428
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module SecuritycenterV1
|
18
18
|
# Version of the google-apis-securitycenter_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.14.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211015"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -52,6 +52,18 @@ module Google
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
+
class Cve
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class Cvssv3
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
55
67
|
class Empty
|
56
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
69
|
|
@@ -256,6 +268,12 @@ module Google
|
|
256
268
|
include Google::Apis::Core::JsonObjectSupport
|
257
269
|
end
|
258
270
|
|
271
|
+
class Reference
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
259
277
|
class Resource
|
260
278
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
279
|
|
@@ -322,6 +340,12 @@ module Google
|
|
322
340
|
include Google::Apis::Core::JsonObjectSupport
|
323
341
|
end
|
324
342
|
|
343
|
+
class Vulnerability
|
344
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
345
|
+
|
346
|
+
include Google::Apis::Core::JsonObjectSupport
|
347
|
+
end
|
348
|
+
|
325
349
|
class Asset
|
326
350
|
# @private
|
327
351
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -375,6 +399,32 @@ module Google
|
|
375
399
|
end
|
376
400
|
end
|
377
401
|
|
402
|
+
class Cve
|
403
|
+
# @private
|
404
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
405
|
+
property :cvssv3, as: 'cvssv3', class: Google::Apis::SecuritycenterV1::Cvssv3, decorator: Google::Apis::SecuritycenterV1::Cvssv3::Representation
|
406
|
+
|
407
|
+
property :id, as: 'id'
|
408
|
+
collection :references, as: 'references', class: Google::Apis::SecuritycenterV1::Reference, decorator: Google::Apis::SecuritycenterV1::Reference::Representation
|
409
|
+
|
410
|
+
end
|
411
|
+
end
|
412
|
+
|
413
|
+
class Cvssv3
|
414
|
+
# @private
|
415
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
416
|
+
property :attack_complexity, as: 'attackComplexity'
|
417
|
+
property :attack_vector, as: 'attackVector'
|
418
|
+
property :availability_impact, as: 'availabilityImpact'
|
419
|
+
property :base_score, as: 'baseScore'
|
420
|
+
property :confidentiality_impact, as: 'confidentialityImpact'
|
421
|
+
property :integrity_impact, as: 'integrityImpact'
|
422
|
+
property :privileges_required, as: 'privilegesRequired'
|
423
|
+
property :scope, as: 'scope'
|
424
|
+
property :user_interaction, as: 'userInteraction'
|
425
|
+
end
|
426
|
+
end
|
427
|
+
|
378
428
|
class Empty
|
379
429
|
# @private
|
380
430
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -410,6 +460,8 @@ module Google
|
|
410
460
|
property :severity, as: 'severity'
|
411
461
|
hash :source_properties, as: 'sourceProperties'
|
412
462
|
property :state, as: 'state'
|
463
|
+
property :vulnerability, as: 'vulnerability', class: Google::Apis::SecuritycenterV1::Vulnerability, decorator: Google::Apis::SecuritycenterV1::Vulnerability::Representation
|
464
|
+
|
413
465
|
end
|
414
466
|
end
|
415
467
|
|
@@ -450,6 +502,7 @@ module Google
|
|
450
502
|
class GoogleCloudSecuritycenterV1Resource
|
451
503
|
# @private
|
452
504
|
class Representation < Google::Apis::Core::JsonRepresentation
|
505
|
+
property :display_name, as: 'displayName'
|
453
506
|
collection :folders, as: 'folders', class: Google::Apis::SecuritycenterV1::Folder, decorator: Google::Apis::SecuritycenterV1::Folder::Representation
|
454
507
|
|
455
508
|
property :name, as: 'name'
|
@@ -457,6 +510,7 @@ module Google
|
|
457
510
|
property :parent_display_name, as: 'parentDisplayName'
|
458
511
|
property :project, as: 'project'
|
459
512
|
property :project_display_name, as: 'projectDisplayName'
|
513
|
+
property :type, as: 'type'
|
460
514
|
end
|
461
515
|
end
|
462
516
|
|
@@ -728,9 +782,18 @@ module Google
|
|
728
782
|
end
|
729
783
|
end
|
730
784
|
|
785
|
+
class Reference
|
786
|
+
# @private
|
787
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
788
|
+
property :source, as: 'source'
|
789
|
+
property :uri, as: 'uri'
|
790
|
+
end
|
791
|
+
end
|
792
|
+
|
731
793
|
class Resource
|
732
794
|
# @private
|
733
795
|
class Representation < Google::Apis::Core::JsonRepresentation
|
796
|
+
property :display_name, as: 'displayName'
|
734
797
|
collection :folders, as: 'folders', class: Google::Apis::SecuritycenterV1::Folder, decorator: Google::Apis::SecuritycenterV1::Folder::Representation
|
735
798
|
|
736
799
|
property :name, as: 'name'
|
@@ -738,6 +801,7 @@ module Google
|
|
738
801
|
property :parent_name, as: 'parentName'
|
739
802
|
property :project_display_name, as: 'projectDisplayName'
|
740
803
|
property :project_name, as: 'projectName'
|
804
|
+
property :type, as: 'type'
|
741
805
|
end
|
742
806
|
end
|
743
807
|
|
@@ -828,6 +892,14 @@ module Google
|
|
828
892
|
collection :permissions, as: 'permissions'
|
829
893
|
end
|
830
894
|
end
|
895
|
+
|
896
|
+
class Vulnerability
|
897
|
+
# @private
|
898
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
899
|
+
property :cve, as: 'cve', class: Google::Apis::SecuritycenterV1::Cve, decorator: Google::Apis::SecuritycenterV1::Cve::Representation
|
900
|
+
|
901
|
+
end
|
902
|
+
end
|
831
903
|
end
|
832
904
|
end
|
833
905
|
end
|
@@ -387,7 +387,7 @@ module Google
|
|
387
387
|
# my_property : ""` * resource: * resource.name: `=`, `:` * resource.parent_name:
|
388
388
|
# `=`, `:` * resource.parent_display_name: `=`, `:` * resource.project_name: `=`
|
389
389
|
# , `:` * resource.project_display_name: `=`, `:` * resource.type: `=`, `:` *
|
390
|
-
# resource.folders.resource_folder: `=`, `:`
|
390
|
+
# resource.folders.resource_folder: `=`, `:` * resource.display_name: `=`, `:`
|
391
391
|
# @param [String] order_by
|
392
392
|
# Expression that defines what fields and order to use for sorting. The string
|
393
393
|
# value should follow SQL syntax: comma separated list of fields. For example: "
|
@@ -1584,7 +1584,7 @@ module Google
|
|
1584
1584
|
# my_property : ""` * resource: * resource.name: `=`, `:` * resource.parent_name:
|
1585
1585
|
# `=`, `:` * resource.parent_display_name: `=`, `:` * resource.project_name: `=`
|
1586
1586
|
# , `:` * resource.project_display_name: `=`, `:` * resource.type: `=`, `:` *
|
1587
|
-
# resource.folders.resource_folder: `=`, `:`
|
1587
|
+
# resource.folders.resource_folder: `=`, `:` * resource.display_name: `=`, `:`
|
1588
1588
|
# @param [String] order_by
|
1589
1589
|
# Expression that defines what fields and order to use for sorting. The string
|
1590
1590
|
# value should follow SQL syntax: comma separated list of fields. For example: "
|
@@ -2101,7 +2101,7 @@ module Google
|
|
2101
2101
|
# my_property : ""` * resource: * resource.name: `=`, `:` * resource.parent_name:
|
2102
2102
|
# `=`, `:` * resource.parent_display_name: `=`, `:` * resource.project_name: `=`
|
2103
2103
|
# , `:` * resource.project_display_name: `=`, `:` * resource.type: `=`, `:` *
|
2104
|
-
# resource.folders.resource_folder: `=`, `:`
|
2104
|
+
# resource.folders.resource_folder: `=`, `:` * resource.display_name: `=`, `:`
|
2105
2105
|
# @param [String] order_by
|
2106
2106
|
# Expression that defines what fields and order to use for sorting. The string
|
2107
2107
|
# value should follow SQL syntax: comma separated list of fields. For example: "
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V1'
|
32
32
|
|
33
|
-
# See, edit, configure, and delete your Google Cloud
|
33
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
35
|
end
|
36
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-securitycenter_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1/v0.14.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|