google-apis-securitycenter_v1beta1 0.7.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc3db235caa76f167a4602598feb3ab05acf3f2b2968556e1868f8d7ce3cb9eb
4
- data.tar.gz: 805cd91387c74917838c5614019194826dff146f5e1f13f4b1b504f983bf56cc
3
+ metadata.gz: 91f01c7d9f50960fd42f1910b2ffb9de91b15bd0dba980bd0fe7445fd4e1095d
4
+ data.tar.gz: 138932c073885098c0289cb9b20a40d1ff5cdf9a260d2be2312d0c6156bc7c46
5
5
  SHA512:
6
- metadata.gz: eae08d379bb7db5dc1eed7a949b36bb89fb1e9d978a7c9ad17c23a967486ff6af5068470dc3f66b56b0a4e6762981486b261a84820cd404c549f3e8dfbede6e6
7
- data.tar.gz: 15de7e58b4064ac5b421240449c3a838144f38afa83069abe777f03a4b4652264e6db7b07855f1a6e5d4e3b628158fd05856422e823c6bea1e1f0dae37774ff9
6
+ metadata.gz: 2c981a79e26cff9e913b3efe92d0f815517c6aa31f9142a3feafcc7357ebc9ad02d18ce069ff48ff5c6bfafb2232d5b8f44b03b798a55f5e2fd30b1f41df7b33
7
+ data.tar.gz: e6f05c0ea9344a8a030ca7dd84c8651ad3366e34262b2ad9f2771fcdd47209cd1e2a1833bb1214b2cad1a79f9ac3f5bac3df752cbe40e6ff31750cd27812eb6e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-securitycenter_v1beta1
2
2
 
3
+ ### v0.11.0 (2021-10-20)
4
+
5
+ * Regenerated from discovery document revision 20211015
6
+
7
+ ### v0.10.0 (2021-10-12)
8
+
9
+ * Regenerated from discovery document revision 20211007
10
+
11
+ ### v0.9.0 (2021-10-05)
12
+
13
+ * Regenerated from discovery document revision 20210930
14
+
15
+ ### v0.8.0 (2021-09-01)
16
+
17
+ * Regenerated from discovery document revision 20210820
18
+
3
19
  ### v0.7.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/master/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/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
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
 
@@ -179,7 +179,7 @@ module Google
179
179
  end
180
180
  end
181
181
 
182
- # Associates `members` with a `role`.
182
+ # Associates `members`, or principals, with a `role`.
183
183
  class Binding
184
184
  include Google::Apis::Core::Hashable
185
185
 
@@ -202,7 +202,7 @@ module Google
202
202
  # @return [Google::Apis::SecuritycenterV1beta1::Expr]
203
203
  attr_accessor :condition
204
204
 
205
- # Specifies the identities requesting access for a Cloud Platform resource. `
205
+ # Specifies the principals requesting access for a Cloud Platform resource. `
206
206
  # members` can have the following values: * `allUsers`: A special identifier
207
207
  # that represents anyone who is on the internet; with or without a Google
208
208
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -232,8 +232,8 @@ module Google
232
232
  # @return [Array<String>]
233
233
  attr_accessor :members
234
234
 
235
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
236
- # , or `roles/owner`.
235
+ # Role that is assigned to the list of `members`, or principals. For example, `
236
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
237
237
  # Corresponds to the JSON property `role`
238
238
  # @return [String]
239
239
  attr_accessor :role
@@ -263,6 +263,116 @@ module Google
263
263
  end
264
264
  end
265
265
 
266
+ # CVE stands for Common Vulnerabilities and Exposures. More information: https://
267
+ # cve.mitre.org
268
+ class Cve
269
+ include Google::Apis::Core::Hashable
270
+
271
+ # Common Vulnerability Scoring System version 3.
272
+ # Corresponds to the JSON property `cvssv3`
273
+ # @return [Google::Apis::SecuritycenterV1beta1::Cvssv3]
274
+ attr_accessor :cvssv3
275
+
276
+ # The unique identifier for the vulnerability. e.g. CVE-2021-34527
277
+ # Corresponds to the JSON property `id`
278
+ # @return [String]
279
+ attr_accessor :id
280
+
281
+ # Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/
282
+ # cvename.cgi?name=CVE-2021-34527
283
+ # Corresponds to the JSON property `references`
284
+ # @return [Array<Google::Apis::SecuritycenterV1beta1::Reference>]
285
+ attr_accessor :references
286
+
287
+ def initialize(**args)
288
+ update!(**args)
289
+ end
290
+
291
+ # Update properties of this object
292
+ def update!(**args)
293
+ @cvssv3 = args[:cvssv3] if args.key?(:cvssv3)
294
+ @id = args[:id] if args.key?(:id)
295
+ @references = args[:references] if args.key?(:references)
296
+ end
297
+ end
298
+
299
+ # Common Vulnerability Scoring System version 3.
300
+ class Cvssv3
301
+ include Google::Apis::Core::Hashable
302
+
303
+ # This metric describes the conditions beyond the attacker's control that must
304
+ # exist in order to exploit the vulnerability.
305
+ # Corresponds to the JSON property `attackComplexity`
306
+ # @return [String]
307
+ attr_accessor :attack_complexity
308
+
309
+ # Base Metrics Represents the intrinsic characteristics of a vulnerability that
310
+ # are constant over time and across user environments. This metric reflects the
311
+ # context by which vulnerability exploitation is possible.
312
+ # Corresponds to the JSON property `attackVector`
313
+ # @return [String]
314
+ attr_accessor :attack_vector
315
+
316
+ # This metric measures the impact to the availability of the impacted component
317
+ # resulting from a successfully exploited vulnerability.
318
+ # Corresponds to the JSON property `availabilityImpact`
319
+ # @return [String]
320
+ attr_accessor :availability_impact
321
+
322
+ # The base score is a function of the base metric scores.
323
+ # Corresponds to the JSON property `baseScore`
324
+ # @return [Float]
325
+ attr_accessor :base_score
326
+
327
+ # This metric measures the impact to the confidentiality of the information
328
+ # resources managed by a software component due to a successfully exploited
329
+ # vulnerability.
330
+ # Corresponds to the JSON property `confidentialityImpact`
331
+ # @return [String]
332
+ attr_accessor :confidentiality_impact
333
+
334
+ # This metric measures the impact to integrity of a successfully exploited
335
+ # vulnerability.
336
+ # Corresponds to the JSON property `integrityImpact`
337
+ # @return [String]
338
+ attr_accessor :integrity_impact
339
+
340
+ # This metric describes the level of privileges an attacker must possess before
341
+ # successfully exploiting the vulnerability.
342
+ # Corresponds to the JSON property `privilegesRequired`
343
+ # @return [String]
344
+ attr_accessor :privileges_required
345
+
346
+ # The Scope metric captures whether a vulnerability in one vulnerable component
347
+ # impacts resources in components beyond its security scope.
348
+ # Corresponds to the JSON property `scope`
349
+ # @return [String]
350
+ attr_accessor :scope
351
+
352
+ # This metric captures the requirement for a human user, other than the attacker,
353
+ # to participate in the successful compromise of the vulnerable component.
354
+ # Corresponds to the JSON property `userInteraction`
355
+ # @return [String]
356
+ attr_accessor :user_interaction
357
+
358
+ def initialize(**args)
359
+ update!(**args)
360
+ end
361
+
362
+ # Update properties of this object
363
+ def update!(**args)
364
+ @attack_complexity = args[:attack_complexity] if args.key?(:attack_complexity)
365
+ @attack_vector = args[:attack_vector] if args.key?(:attack_vector)
366
+ @availability_impact = args[:availability_impact] if args.key?(:availability_impact)
367
+ @base_score = args[:base_score] if args.key?(:base_score)
368
+ @confidentiality_impact = args[:confidentiality_impact] if args.key?(:confidentiality_impact)
369
+ @integrity_impact = args[:integrity_impact] if args.key?(:integrity_impact)
370
+ @privileges_required = args[:privileges_required] if args.key?(:privileges_required)
371
+ @scope = args[:scope] if args.key?(:scope)
372
+ @user_interaction = args[:user_interaction] if args.key?(:user_interaction)
373
+ end
374
+ end
375
+
266
376
  # A generic empty message that you can re-use to avoid defining duplicated empty
267
377
  # messages in your APIs. A typical example is to use it as the request or the
268
378
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -443,6 +553,11 @@ module Google
443
553
  # @return [String]
444
554
  attr_accessor :state
445
555
 
556
+ # Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
557
+ # Corresponds to the JSON property `vulnerability`
558
+ # @return [Google::Apis::SecuritycenterV1beta1::Vulnerability]
559
+ attr_accessor :vulnerability
560
+
446
561
  def initialize(**args)
447
562
  update!(**args)
448
563
  end
@@ -463,6 +578,7 @@ module Google
463
578
  @severity = args[:severity] if args.key?(:severity)
464
579
  @source_properties = args[:source_properties] if args.key?(:source_properties)
465
580
  @state = args[:state] if args.key?(:state)
581
+ @vulnerability = args[:vulnerability] if args.key?(:vulnerability)
466
582
  end
467
583
  end
468
584
 
@@ -575,6 +691,11 @@ module Google
575
691
  class GoogleCloudSecuritycenterV1Resource
576
692
  include Google::Apis::Core::Hashable
577
693
 
694
+ # The human readable name of the resource.
695
+ # Corresponds to the JSON property `displayName`
696
+ # @return [String]
697
+ attr_accessor :display_name
698
+
578
699
  # Output only. Contains a Folder message for each folder in the assets ancestry.
579
700
  # The first folder is the deepest nested folder, and the last folder is the
580
701
  # folder directly under the Organization.
@@ -608,18 +729,25 @@ module Google
608
729
  # @return [String]
609
730
  attr_accessor :project_display_name
610
731
 
732
+ # The full resource type of the resource.
733
+ # Corresponds to the JSON property `type`
734
+ # @return [String]
735
+ attr_accessor :type
736
+
611
737
  def initialize(**args)
612
738
  update!(**args)
613
739
  end
614
740
 
615
741
  # Update properties of this object
616
742
  def update!(**args)
743
+ @display_name = args[:display_name] if args.key?(:display_name)
617
744
  @folders = args[:folders] if args.key?(:folders)
618
745
  @name = args[:name] if args.key?(:name)
619
746
  @parent = args[:parent] if args.key?(:parent)
620
747
  @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
621
748
  @project = args[:project] if args.key?(:project)
622
749
  @project_display_name = args[:project_display_name] if args.key?(:project_display_name)
750
+ @type = args[:type] if args.key?(:type)
623
751
  end
624
752
  end
625
753
 
@@ -1630,31 +1758,31 @@ module Google
1630
1758
 
1631
1759
  # An Identity and Access Management (IAM) policy, which specifies access
1632
1760
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1633
- # A `binding` binds one or more `members` to a single `role`. Members can be
1634
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
1635
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
1636
- # role or a user-created custom role. For some types of Google Cloud resources,
1637
- # a `binding` can also specify a `condition`, which is a logical expression that
1638
- # allows access to a resource only if the expression evaluates to `true`. A
1639
- # condition can add constraints based on attributes of the request, the resource,
1640
- # or both. To learn which resources support conditions in their IAM policies,
1641
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1642
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1643
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1644
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1645
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1646
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1647
- # title": "expirable access", "description": "Does not grant access after Sep
1648
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1649
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1650
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
1651
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1652
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1653
- # roles/resourcemanager.organizationViewer condition: title: expirable access
1654
- # description: Does not grant access after Sep 2020 expression: request.time <
1655
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1656
- # description of IAM and its features, see the [IAM documentation](https://cloud.
1657
- # google.com/iam/docs/).
1761
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
1762
+ # Principals can be user accounts, service accounts, Google groups, and domains (
1763
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
1764
+ # an IAM predefined role or a user-created custom role. For some types of Google
1765
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
1766
+ # logical expression that allows access to a resource only if the expression
1767
+ # evaluates to `true`. A condition can add constraints based on attributes of
1768
+ # the request, the resource, or both. To learn which resources support
1769
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1770
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1771
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1772
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1773
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1774
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1775
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1776
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1777
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1778
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
1779
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1780
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1781
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1782
+ # access description: Does not grant access after Sep 2020 expression: request.
1783
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1784
+ # a description of IAM and its features, see the [IAM documentation](https://
1785
+ # cloud.google.com/iam/docs/).
1658
1786
  class Policy
1659
1787
  include Google::Apis::Core::Hashable
1660
1788
 
@@ -1663,9 +1791,14 @@ module Google
1663
1791
  # @return [Array<Google::Apis::SecuritycenterV1beta1::AuditConfig>]
1664
1792
  attr_accessor :audit_configs
1665
1793
 
1666
- # Associates a list of `members` to a `role`. Optionally, may specify a `
1667
- # condition` that determines how and when the `bindings` are applied. Each of
1668
- # the `bindings` must contain at least one member.
1794
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
1795
+ # specify a `condition` that determines how and when the `bindings` are applied.
1796
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
1797
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
1798
+ # can be Google groups. Each occurrence of a principal counts towards these
1799
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
1800
+ # example.com`, and not to any other principal, then you can add another 1,450
1801
+ # principals to the `bindings` in the `Policy`.
1669
1802
  # Corresponds to the JSON property `bindings`
1670
1803
  # @return [Array<Google::Apis::SecuritycenterV1beta1::Binding>]
1671
1804
  attr_accessor :bindings
@@ -1718,6 +1851,32 @@ module Google
1718
1851
  end
1719
1852
  end
1720
1853
 
1854
+ # Additional Links
1855
+ class Reference
1856
+ include Google::Apis::Core::Hashable
1857
+
1858
+ # Source of the reference e.g. NVD
1859
+ # Corresponds to the JSON property `source`
1860
+ # @return [String]
1861
+ attr_accessor :source
1862
+
1863
+ # Uri for the mentioned source e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?
1864
+ # name=CVE-2021-34527.
1865
+ # Corresponds to the JSON property `uri`
1866
+ # @return [String]
1867
+ attr_accessor :uri
1868
+
1869
+ def initialize(**args)
1870
+ update!(**args)
1871
+ end
1872
+
1873
+ # Update properties of this object
1874
+ def update!(**args)
1875
+ @source = args[:source] if args.key?(:source)
1876
+ @uri = args[:uri] if args.key?(:uri)
1877
+ end
1878
+ end
1879
+
1721
1880
  # Request message for running asset discovery for an organization.
1722
1881
  class RunAssetDiscoveryRequest
1723
1882
  include Google::Apis::Core::Hashable
@@ -1859,31 +2018,31 @@ module Google
1859
2018
 
1860
2019
  # An Identity and Access Management (IAM) policy, which specifies access
1861
2020
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1862
- # A `binding` binds one or more `members` to a single `role`. Members can be
1863
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
1864
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
1865
- # role or a user-created custom role. For some types of Google Cloud resources,
1866
- # a `binding` can also specify a `condition`, which is a logical expression that
1867
- # allows access to a resource only if the expression evaluates to `true`. A
1868
- # condition can add constraints based on attributes of the request, the resource,
1869
- # or both. To learn which resources support conditions in their IAM policies,
1870
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1871
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1872
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1873
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1874
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1875
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1876
- # title": "expirable access", "description": "Does not grant access after Sep
1877
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1878
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1879
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
1880
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1881
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1882
- # roles/resourcemanager.organizationViewer condition: title: expirable access
1883
- # description: Does not grant access after Sep 2020 expression: request.time <
1884
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1885
- # description of IAM and its features, see the [IAM documentation](https://cloud.
1886
- # google.com/iam/docs/).
2021
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
2022
+ # Principals can be user accounts, service accounts, Google groups, and domains (
2023
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
2024
+ # an IAM predefined role or a user-created custom role. For some types of Google
2025
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
2026
+ # logical expression that allows access to a resource only if the expression
2027
+ # evaluates to `true`. A condition can add constraints based on attributes of
2028
+ # the request, the resource, or both. To learn which resources support
2029
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2030
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
2031
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
2032
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
2033
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
2034
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
2035
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
2036
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
2037
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
2038
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
2039
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
2040
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
2041
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
2042
+ # access description: Does not grant access after Sep 2020 expression: request.
2043
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
2044
+ # a description of IAM and its features, see the [IAM documentation](https://
2045
+ # cloud.google.com/iam/docs/).
1887
2046
  # Corresponds to the JSON property `policy`
1888
2047
  # @return [Google::Apis::SecuritycenterV1beta1::Policy]
1889
2048
  attr_accessor :policy
@@ -2026,6 +2185,26 @@ module Google
2026
2185
  @permissions = args[:permissions] if args.key?(:permissions)
2027
2186
  end
2028
2187
  end
2188
+
2189
+ # Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
2190
+ class Vulnerability
2191
+ include Google::Apis::Core::Hashable
2192
+
2193
+ # CVE stands for Common Vulnerabilities and Exposures. More information: https://
2194
+ # cve.mitre.org
2195
+ # Corresponds to the JSON property `cve`
2196
+ # @return [Google::Apis::SecuritycenterV1beta1::Cve]
2197
+ attr_accessor :cve
2198
+
2199
+ def initialize(**args)
2200
+ update!(**args)
2201
+ end
2202
+
2203
+ # Update properties of this object
2204
+ def update!(**args)
2205
+ @cve = args[:cve] if args.key?(:cve)
2206
+ end
2207
+ end
2029
2208
  end
2030
2209
  end
2031
2210
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SecuritycenterV1beta1
18
18
  # Version of the google-apis-securitycenter_v1beta1 gem
19
- GEM_VERSION = "0.7.0"
19
+ GEM_VERSION = "0.11.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 = "20210716"
25
+ REVISION = "20211015"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,18 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class Cve
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Cvssv3
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
61
73
  class Empty
62
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
75
 
@@ -250,6 +262,12 @@ module Google
250
262
  include Google::Apis::Core::JsonObjectSupport
251
263
  end
252
264
 
265
+ class Reference
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
253
271
  class RunAssetDiscoveryRequest
254
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
273
 
@@ -304,6 +322,12 @@ module Google
304
322
  include Google::Apis::Core::JsonObjectSupport
305
323
  end
306
324
 
325
+ class Vulnerability
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
307
331
  class Asset
308
332
  # @private
309
333
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -359,6 +383,32 @@ module Google
359
383
  end
360
384
  end
361
385
 
386
+ class Cve
387
+ # @private
388
+ class Representation < Google::Apis::Core::JsonRepresentation
389
+ property :cvssv3, as: 'cvssv3', class: Google::Apis::SecuritycenterV1beta1::Cvssv3, decorator: Google::Apis::SecuritycenterV1beta1::Cvssv3::Representation
390
+
391
+ property :id, as: 'id'
392
+ collection :references, as: 'references', class: Google::Apis::SecuritycenterV1beta1::Reference, decorator: Google::Apis::SecuritycenterV1beta1::Reference::Representation
393
+
394
+ end
395
+ end
396
+
397
+ class Cvssv3
398
+ # @private
399
+ class Representation < Google::Apis::Core::JsonRepresentation
400
+ property :attack_complexity, as: 'attackComplexity'
401
+ property :attack_vector, as: 'attackVector'
402
+ property :availability_impact, as: 'availabilityImpact'
403
+ property :base_score, as: 'baseScore'
404
+ property :confidentiality_impact, as: 'confidentialityImpact'
405
+ property :integrity_impact, as: 'integrityImpact'
406
+ property :privileges_required, as: 'privilegesRequired'
407
+ property :scope, as: 'scope'
408
+ property :user_interaction, as: 'userInteraction'
409
+ end
410
+ end
411
+
362
412
  class Empty
363
413
  # @private
364
414
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -394,6 +444,8 @@ module Google
394
444
  property :severity, as: 'severity'
395
445
  hash :source_properties, as: 'sourceProperties'
396
446
  property :state, as: 'state'
447
+ property :vulnerability, as: 'vulnerability', class: Google::Apis::SecuritycenterV1beta1::Vulnerability, decorator: Google::Apis::SecuritycenterV1beta1::Vulnerability::Representation
448
+
397
449
  end
398
450
  end
399
451
 
@@ -434,6 +486,7 @@ module Google
434
486
  class GoogleCloudSecuritycenterV1Resource
435
487
  # @private
436
488
  class Representation < Google::Apis::Core::JsonRepresentation
489
+ property :display_name, as: 'displayName'
437
490
  collection :folders, as: 'folders', class: Google::Apis::SecuritycenterV1beta1::Folder, decorator: Google::Apis::SecuritycenterV1beta1::Folder::Representation
438
491
 
439
492
  property :name, as: 'name'
@@ -441,6 +494,7 @@ module Google
441
494
  property :parent_display_name, as: 'parentDisplayName'
442
495
  property :project, as: 'project'
443
496
  property :project_display_name, as: 'projectDisplayName'
497
+ property :type, as: 'type'
444
498
  end
445
499
  end
446
500
 
@@ -695,6 +749,14 @@ module Google
695
749
  end
696
750
  end
697
751
 
752
+ class Reference
753
+ # @private
754
+ class Representation < Google::Apis::Core::JsonRepresentation
755
+ property :source, as: 'source'
756
+ property :uri, as: 'uri'
757
+ end
758
+ end
759
+
698
760
  class RunAssetDiscoveryRequest
699
761
  # @private
700
762
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -769,6 +831,14 @@ module Google
769
831
  collection :permissions, as: 'permissions'
770
832
  end
771
833
  end
834
+
835
+ class Vulnerability
836
+ # @private
837
+ class Representation < Google::Apis::Core::JsonRepresentation
838
+ property :cve, as: 'cve', class: Google::Apis::SecuritycenterV1beta1::Cve, decorator: Google::Apis::SecuritycenterV1beta1::Cve::Representation
839
+
840
+ end
841
+ end
772
842
  end
773
843
  end
774
844
  end
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1beta1'
32
32
 
33
- # See, edit, configure, and delete your Google Cloud Platform data
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_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.11.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-07-26 00:00:00.000000000 Z
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/master/generated/google-apis-securitycenter_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta1/v0.7.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-securitycenter_v1beta1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1beta1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta1/v0.11.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: