google-apis-securitycenter_v1beta2 0.7.0 → 0.8.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 +4 -0
- data/lib/google/apis/securitycenter_v1beta2/classes.rb +168 -0
- data/lib/google/apis/securitycenter_v1beta2/gem_version.rb +2 -2
- data/lib/google/apis/securitycenter_v1beta2/representations.rb +69 -0
- data/lib/google/apis/securitycenter_v1beta2.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b858ec1d9c118a45760e7137830c895e8e729d8b3bd3139d6b78a152b597bee3
|
4
|
+
data.tar.gz: f1002290c66863a0aaed9217d334f36ff9c9e50456846dcb72a5d7adcd2bed7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd72a1c6fd2c19139c368fccb9539296b20db66242eb9ce05839aec13f9680baaff14f097eadde9cbb67e8fbe37234f42162d1f417badf1b504b1879e4d35454
|
7
|
+
data.tar.gz: 70a888be7d6ff63b471ebd05f746f244a9a897807408d99d8e538b3bccf21bd1ecdcc46c68a640858d63e0dbfafe3a52a8e6a1743f50605f90a8a64f51a2fcd1
|
data/CHANGELOG.md
CHANGED
@@ -100,6 +100,116 @@ module Google
|
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
|
+
# CVE stands for Common Vulnerabilities and Exposures. More information: https://
|
104
|
+
# cve.mitre.org
|
105
|
+
class Cve
|
106
|
+
include Google::Apis::Core::Hashable
|
107
|
+
|
108
|
+
# Common Vulnerability Scoring System version 3.
|
109
|
+
# Corresponds to the JSON property `cvssv3`
|
110
|
+
# @return [Google::Apis::SecuritycenterV1beta2::Cvssv3]
|
111
|
+
attr_accessor :cvssv3
|
112
|
+
|
113
|
+
# The unique identifier for the vulnerability. e.g. CVE-2021-34527
|
114
|
+
# Corresponds to the JSON property `id`
|
115
|
+
# @return [String]
|
116
|
+
attr_accessor :id
|
117
|
+
|
118
|
+
# Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/
|
119
|
+
# cvename.cgi?name=CVE-2021-34527
|
120
|
+
# Corresponds to the JSON property `references`
|
121
|
+
# @return [Array<Google::Apis::SecuritycenterV1beta2::Reference>]
|
122
|
+
attr_accessor :references
|
123
|
+
|
124
|
+
def initialize(**args)
|
125
|
+
update!(**args)
|
126
|
+
end
|
127
|
+
|
128
|
+
# Update properties of this object
|
129
|
+
def update!(**args)
|
130
|
+
@cvssv3 = args[:cvssv3] if args.key?(:cvssv3)
|
131
|
+
@id = args[:id] if args.key?(:id)
|
132
|
+
@references = args[:references] if args.key?(:references)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
# Common Vulnerability Scoring System version 3.
|
137
|
+
class Cvssv3
|
138
|
+
include Google::Apis::Core::Hashable
|
139
|
+
|
140
|
+
# This metric describes the conditions beyond the attacker's control that must
|
141
|
+
# exist in order to exploit the vulnerability.
|
142
|
+
# Corresponds to the JSON property `attackComplexity`
|
143
|
+
# @return [String]
|
144
|
+
attr_accessor :attack_complexity
|
145
|
+
|
146
|
+
# Base Metrics Represents the intrinsic characteristics of a vulnerability that
|
147
|
+
# are constant over time and across user environments. This metric reflects the
|
148
|
+
# context by which vulnerability exploitation is possible.
|
149
|
+
# Corresponds to the JSON property `attackVector`
|
150
|
+
# @return [String]
|
151
|
+
attr_accessor :attack_vector
|
152
|
+
|
153
|
+
# This metric measures the impact to the availability of the impacted component
|
154
|
+
# resulting from a successfully exploited vulnerability.
|
155
|
+
# Corresponds to the JSON property `availabilityImpact`
|
156
|
+
# @return [String]
|
157
|
+
attr_accessor :availability_impact
|
158
|
+
|
159
|
+
# The base score is a function of the base metric scores.
|
160
|
+
# Corresponds to the JSON property `baseScore`
|
161
|
+
# @return [Float]
|
162
|
+
attr_accessor :base_score
|
163
|
+
|
164
|
+
# This metric measures the impact to the confidentiality of the information
|
165
|
+
# resources managed by a software component due to a successfully exploited
|
166
|
+
# vulnerability.
|
167
|
+
# Corresponds to the JSON property `confidentialityImpact`
|
168
|
+
# @return [String]
|
169
|
+
attr_accessor :confidentiality_impact
|
170
|
+
|
171
|
+
# This metric measures the impact to integrity of a successfully exploited
|
172
|
+
# vulnerability.
|
173
|
+
# Corresponds to the JSON property `integrityImpact`
|
174
|
+
# @return [String]
|
175
|
+
attr_accessor :integrity_impact
|
176
|
+
|
177
|
+
# This metric describes the level of privileges an attacker must possess before
|
178
|
+
# successfully exploiting the vulnerability.
|
179
|
+
# Corresponds to the JSON property `privilegesRequired`
|
180
|
+
# @return [String]
|
181
|
+
attr_accessor :privileges_required
|
182
|
+
|
183
|
+
# The Scope metric captures whether a vulnerability in one vulnerable component
|
184
|
+
# impacts resources in components beyond its security scope.
|
185
|
+
# Corresponds to the JSON property `scope`
|
186
|
+
# @return [String]
|
187
|
+
attr_accessor :scope
|
188
|
+
|
189
|
+
# This metric captures the requirement for a human user, other than the attacker,
|
190
|
+
# to participate in the successful compromise of the vulnerable component.
|
191
|
+
# Corresponds to the JSON property `userInteraction`
|
192
|
+
# @return [String]
|
193
|
+
attr_accessor :user_interaction
|
194
|
+
|
195
|
+
def initialize(**args)
|
196
|
+
update!(**args)
|
197
|
+
end
|
198
|
+
|
199
|
+
# Update properties of this object
|
200
|
+
def update!(**args)
|
201
|
+
@attack_complexity = args[:attack_complexity] if args.key?(:attack_complexity)
|
202
|
+
@attack_vector = args[:attack_vector] if args.key?(:attack_vector)
|
203
|
+
@availability_impact = args[:availability_impact] if args.key?(:availability_impact)
|
204
|
+
@base_score = args[:base_score] if args.key?(:base_score)
|
205
|
+
@confidentiality_impact = args[:confidentiality_impact] if args.key?(:confidentiality_impact)
|
206
|
+
@integrity_impact = args[:integrity_impact] if args.key?(:integrity_impact)
|
207
|
+
@privileges_required = args[:privileges_required] if args.key?(:privileges_required)
|
208
|
+
@scope = args[:scope] if args.key?(:scope)
|
209
|
+
@user_interaction = args[:user_interaction] if args.key?(:user_interaction)
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
103
213
|
# Details of a subscription.
|
104
214
|
class Details
|
105
215
|
include Google::Apis::Core::Hashable
|
@@ -282,6 +392,11 @@ module Google
|
|
282
392
|
# @return [String]
|
283
393
|
attr_accessor :state
|
284
394
|
|
395
|
+
# Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
|
396
|
+
# Corresponds to the JSON property `vulnerability`
|
397
|
+
# @return [Google::Apis::SecuritycenterV1beta2::Vulnerability]
|
398
|
+
attr_accessor :vulnerability
|
399
|
+
|
285
400
|
def initialize(**args)
|
286
401
|
update!(**args)
|
287
402
|
end
|
@@ -302,6 +417,7 @@ module Google
|
|
302
417
|
@severity = args[:severity] if args.key?(:severity)
|
303
418
|
@source_properties = args[:source_properties] if args.key?(:source_properties)
|
304
419
|
@state = args[:state] if args.key?(:state)
|
420
|
+
@vulnerability = args[:vulnerability] if args.key?(:vulnerability)
|
305
421
|
end
|
306
422
|
end
|
307
423
|
|
@@ -403,6 +519,11 @@ module Google
|
|
403
519
|
# @return [String]
|
404
520
|
attr_accessor :project_display_name
|
405
521
|
|
522
|
+
# The full resource type of the resource.
|
523
|
+
# Corresponds to the JSON property `type`
|
524
|
+
# @return [String]
|
525
|
+
attr_accessor :type
|
526
|
+
|
406
527
|
def initialize(**args)
|
407
528
|
update!(**args)
|
408
529
|
end
|
@@ -415,6 +536,7 @@ module Google
|
|
415
536
|
@parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
|
416
537
|
@project = args[:project] if args.key?(:project)
|
417
538
|
@project_display_name = args[:project_display_name] if args.key?(:project_display_name)
|
539
|
+
@type = args[:type] if args.key?(:type)
|
418
540
|
end
|
419
541
|
end
|
420
542
|
|
@@ -796,6 +918,32 @@ module Google
|
|
796
918
|
end
|
797
919
|
end
|
798
920
|
|
921
|
+
# Additional Links
|
922
|
+
class Reference
|
923
|
+
include Google::Apis::Core::Hashable
|
924
|
+
|
925
|
+
# Source of the reference e.g. NVD
|
926
|
+
# Corresponds to the JSON property `source`
|
927
|
+
# @return [String]
|
928
|
+
attr_accessor :source
|
929
|
+
|
930
|
+
# Uri for the mentioned source e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?
|
931
|
+
# name=CVE-2021-34527.
|
932
|
+
# Corresponds to the JSON property `uri`
|
933
|
+
# @return [String]
|
934
|
+
attr_accessor :uri
|
935
|
+
|
936
|
+
def initialize(**args)
|
937
|
+
update!(**args)
|
938
|
+
end
|
939
|
+
|
940
|
+
# Update properties of this object
|
941
|
+
def update!(**args)
|
942
|
+
@source = args[:source] if args.key?(:source)
|
943
|
+
@uri = args[:uri] if args.key?(:uri)
|
944
|
+
end
|
945
|
+
end
|
946
|
+
|
799
947
|
# Resource capturing the settings for Security Center.
|
800
948
|
class SecurityCenterSettings
|
801
949
|
include Google::Apis::Core::Hashable
|
@@ -961,6 +1109,26 @@ module Google
|
|
961
1109
|
end
|
962
1110
|
end
|
963
1111
|
|
1112
|
+
# Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
|
1113
|
+
class Vulnerability
|
1114
|
+
include Google::Apis::Core::Hashable
|
1115
|
+
|
1116
|
+
# CVE stands for Common Vulnerabilities and Exposures. More information: https://
|
1117
|
+
# cve.mitre.org
|
1118
|
+
# Corresponds to the JSON property `cve`
|
1119
|
+
# @return [Google::Apis::SecuritycenterV1beta2::Cve]
|
1120
|
+
attr_accessor :cve
|
1121
|
+
|
1122
|
+
def initialize(**args)
|
1123
|
+
update!(**args)
|
1124
|
+
end
|
1125
|
+
|
1126
|
+
# Update properties of this object
|
1127
|
+
def update!(**args)
|
1128
|
+
@cve = args[:cve] if args.key?(:cve)
|
1129
|
+
end
|
1130
|
+
end
|
1131
|
+
|
964
1132
|
# Resource capturing the settings for the Web Security Scanner service.
|
965
1133
|
class WebSecurityScannerSettings
|
966
1134
|
include Google::Apis::Core::Hashable
|
@@ -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.8.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 = "20210820"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,6 +34,18 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class Cve
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class Cvssv3
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
37
49
|
class Details
|
38
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
51
|
|
@@ -124,6 +136,12 @@ module Google
|
|
124
136
|
include Google::Apis::Core::JsonObjectSupport
|
125
137
|
end
|
126
138
|
|
139
|
+
class Reference
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
127
145
|
class SecurityCenterSettings
|
128
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
147
|
|
@@ -148,6 +166,12 @@ module Google
|
|
148
166
|
include Google::Apis::Core::JsonObjectSupport
|
149
167
|
end
|
150
168
|
|
169
|
+
class Vulnerability
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
151
175
|
class WebSecurityScannerSettings
|
152
176
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
177
|
|
@@ -174,6 +198,32 @@ module Google
|
|
174
198
|
end
|
175
199
|
end
|
176
200
|
|
201
|
+
class Cve
|
202
|
+
# @private
|
203
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
204
|
+
property :cvssv3, as: 'cvssv3', class: Google::Apis::SecuritycenterV1beta2::Cvssv3, decorator: Google::Apis::SecuritycenterV1beta2::Cvssv3::Representation
|
205
|
+
|
206
|
+
property :id, as: 'id'
|
207
|
+
collection :references, as: 'references', class: Google::Apis::SecuritycenterV1beta2::Reference, decorator: Google::Apis::SecuritycenterV1beta2::Reference::Representation
|
208
|
+
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
class Cvssv3
|
213
|
+
# @private
|
214
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
215
|
+
property :attack_complexity, as: 'attackComplexity'
|
216
|
+
property :attack_vector, as: 'attackVector'
|
217
|
+
property :availability_impact, as: 'availabilityImpact'
|
218
|
+
property :base_score, as: 'baseScore'
|
219
|
+
property :confidentiality_impact, as: 'confidentialityImpact'
|
220
|
+
property :integrity_impact, as: 'integrityImpact'
|
221
|
+
property :privileges_required, as: 'privilegesRequired'
|
222
|
+
property :scope, as: 'scope'
|
223
|
+
property :user_interaction, as: 'userInteraction'
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
177
227
|
class Details
|
178
228
|
# @private
|
179
229
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -213,6 +263,8 @@ module Google
|
|
213
263
|
property :severity, as: 'severity'
|
214
264
|
hash :source_properties, as: 'sourceProperties'
|
215
265
|
property :state, as: 'state'
|
266
|
+
property :vulnerability, as: 'vulnerability', class: Google::Apis::SecuritycenterV1beta2::Vulnerability, decorator: Google::Apis::SecuritycenterV1beta2::Vulnerability::Representation
|
267
|
+
|
216
268
|
end
|
217
269
|
end
|
218
270
|
|
@@ -245,6 +297,7 @@ module Google
|
|
245
297
|
property :parent_display_name, as: 'parentDisplayName'
|
246
298
|
property :project, as: 'project'
|
247
299
|
property :project_display_name, as: 'projectDisplayName'
|
300
|
+
property :type, as: 'type'
|
248
301
|
end
|
249
302
|
end
|
250
303
|
|
@@ -340,6 +393,14 @@ module Google
|
|
340
393
|
end
|
341
394
|
end
|
342
395
|
|
396
|
+
class Reference
|
397
|
+
# @private
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
399
|
+
property :source, as: 'source'
|
400
|
+
property :uri, as: 'uri'
|
401
|
+
end
|
402
|
+
end
|
403
|
+
|
343
404
|
class SecurityCenterSettings
|
344
405
|
# @private
|
345
406
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -380,6 +441,14 @@ module Google
|
|
380
441
|
end
|
381
442
|
end
|
382
443
|
|
444
|
+
class Vulnerability
|
445
|
+
# @private
|
446
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
447
|
+
property :cve, as: 'cve', class: Google::Apis::SecuritycenterV1beta2::Cve, decorator: Google::Apis::SecuritycenterV1beta2::Cve::Representation
|
448
|
+
|
449
|
+
end
|
450
|
+
end
|
451
|
+
|
383
452
|
class WebSecurityScannerSettings
|
384
453
|
# @private
|
385
454
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V1beta2'
|
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_v1beta2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.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-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_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.8.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-securitycenter_v1beta2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|