google-apis-securitycenter_v1 0.10.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: 74b7f836503eb687c7971cc2949aa88ee7d4920b5bdf21cdca01b6c5f5c4ac6d
4
- data.tar.gz: 752122cd77642bcd63034b0ea56dfbecf3d3ef511b7da71a02a2ac88d6aaa684
3
+ metadata.gz: abc2f6b3d507a92e57298c84124adbf8a83cca43e84dd7ca2786fa2ce61b645c
4
+ data.tar.gz: cf2f9333e86a97b4650da1977c14d78d8a68afe712fd7abe058f5019d6e079e2
5
5
  SHA512:
6
- metadata.gz: 806ed92d12e00b3b6115fddc13c989e0ace06d5bfd2ae3fa93da894665bddd49461454f400d1cbfb28be5ddd048678a119ab87942e1a38e949c9ec84ebe056e0
7
- data.tar.gz: d6bf2b2a91f3b1a8ac9e91f2d80f63026d48ab66d1428be1973a0a9f32f8d3befb5f28e0acfa2f0e7817532df885e6190731b5df9447e975b13184b8a9758841
6
+ metadata.gz: f48d0015469262e579d460ebddd0dfe687942a854533241cb0f8c87e70b35f5ee0ba9ba12611e8ab644ac7d3f2016a2ca0f6c8c36ebc28c71c22f25a55441105
7
+ data.tar.gz: 6205d21fc5f0c5d7682153ab2f7000f93658411b179388c014660d84cb6226df048e7c47f202bea01196ce86d0fa3b57768766b96bad382d9567483cbd132fbf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-securitycenter_v1
2
2
 
3
+ ### v0.11.0 (2021-09-01)
4
+
5
+ * Regenerated from discovery document revision 20210820
6
+
3
7
  ### v0.10.0 (2021-07-20)
4
8
 
5
9
  * Regenerated from discovery document revision 20210716
@@ -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
 
@@ -618,6 +734,11 @@ module Google
618
734
  # @return [String]
619
735
  attr_accessor :project_display_name
620
736
 
737
+ # The full resource type of the resource.
738
+ # Corresponds to the JSON property `type`
739
+ # @return [String]
740
+ attr_accessor :type
741
+
621
742
  def initialize(**args)
622
743
  update!(**args)
623
744
  end
@@ -630,6 +751,7 @@ module Google
630
751
  @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
631
752
  @project = args[:project] if args.key?(:project)
632
753
  @project_display_name = args[:project_display_name] if args.key?(:project_display_name)
754
+ @type = args[:type] if args.key?(:type)
633
755
  end
634
756
  end
635
757
 
@@ -1741,7 +1863,7 @@ module Google
1741
1863
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1742
1864
  # roles/resourcemanager.organizationViewer condition: title: expirable access
1743
1865
  # description: Does not grant access after Sep 2020 expression: request.time <
1744
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1866
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
1745
1867
  # description of IAM and its features, see the [IAM documentation](https://cloud.
1746
1868
  # google.com/iam/docs/).
1747
1869
  class Policy
@@ -1807,6 +1929,32 @@ module Google
1807
1929
  end
1808
1930
  end
1809
1931
 
1932
+ # Additional Links
1933
+ class Reference
1934
+ include Google::Apis::Core::Hashable
1935
+
1936
+ # Source of the reference e.g. NVD
1937
+ # Corresponds to the JSON property `source`
1938
+ # @return [String]
1939
+ attr_accessor :source
1940
+
1941
+ # Uri for the mentioned source e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?
1942
+ # name=CVE-2021-34527.
1943
+ # Corresponds to the JSON property `uri`
1944
+ # @return [String]
1945
+ attr_accessor :uri
1946
+
1947
+ def initialize(**args)
1948
+ update!(**args)
1949
+ end
1950
+
1951
+ # Update properties of this object
1952
+ def update!(**args)
1953
+ @source = args[:source] if args.key?(:source)
1954
+ @uri = args[:uri] if args.key?(:uri)
1955
+ end
1956
+ end
1957
+
1810
1958
  # Information related to the Google Cloud resource that is associated with this
1811
1959
  # finding.
1812
1960
  class Resource
@@ -2049,7 +2197,7 @@ module Google
2049
2197
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
2050
2198
  # roles/resourcemanager.organizationViewer condition: title: expirable access
2051
2199
  # description: Does not grant access after Sep 2020 expression: request.time <
2052
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
2200
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
2053
2201
  # description of IAM and its features, see the [IAM documentation](https://cloud.
2054
2202
  # google.com/iam/docs/).
2055
2203
  # Corresponds to the JSON property `policy`
@@ -2232,6 +2380,26 @@ module Google
2232
2380
  @permissions = args[:permissions] if args.key?(:permissions)
2233
2381
  end
2234
2382
  end
2383
+
2384
+ # Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
2385
+ class Vulnerability
2386
+ include Google::Apis::Core::Hashable
2387
+
2388
+ # CVE stands for Common Vulnerabilities and Exposures. More information: https://
2389
+ # cve.mitre.org
2390
+ # Corresponds to the JSON property `cve`
2391
+ # @return [Google::Apis::SecuritycenterV1::Cve]
2392
+ attr_accessor :cve
2393
+
2394
+ def initialize(**args)
2395
+ update!(**args)
2396
+ end
2397
+
2398
+ # Update properties of this object
2399
+ def update!(**args)
2400
+ @cve = args[:cve] if args.key?(:cve)
2401
+ end
2402
+ end
2235
2403
  end
2236
2404
  end
2237
2405
  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.10.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 = "20210820"
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
 
@@ -457,6 +509,7 @@ module Google
457
509
  property :parent_display_name, as: 'parentDisplayName'
458
510
  property :project, as: 'project'
459
511
  property :project_display_name, as: 'projectDisplayName'
512
+ property :type, as: 'type'
460
513
  end
461
514
  end
462
515
 
@@ -728,6 +781,14 @@ module Google
728
781
  end
729
782
  end
730
783
 
784
+ class Reference
785
+ # @private
786
+ class Representation < Google::Apis::Core::JsonRepresentation
787
+ property :source, as: 'source'
788
+ property :uri, as: 'uri'
789
+ end
790
+ end
791
+
731
792
  class Resource
732
793
  # @private
733
794
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -828,6 +889,14 @@ module Google
828
889
  collection :permissions, as: 'permissions'
829
890
  end
830
891
  end
892
+
893
+ class Vulnerability
894
+ # @private
895
+ class Representation < Google::Apis::Core::JsonRepresentation
896
+ property :cve, as: 'cve', class: Google::Apis::SecuritycenterV1::Cve, decorator: Google::Apis::SecuritycenterV1::Cve::Representation
897
+
898
+ end
899
+ end
831
900
  end
832
901
  end
833
902
  end
@@ -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 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_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.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-09-06 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/master/generated/google-apis-securitycenter_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1/v0.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1/v0.11.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-securitycenter_v1
63
63
  post_install_message:
64
64
  rdoc_options: []