google-apis-securitycenter_v1beta2 0.4.0 → 0.8.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: 42bfcdeacba1adee1b0e812bb287eac80d14e4aa75bbf67165d06bb7dc811eb7
4
- data.tar.gz: 42dbeaef4bd42d8ba62cf7646e7d14e110ff3d2ee97a72a22091e5c6f202694f
3
+ metadata.gz: b858ec1d9c118a45760e7137830c895e8e729d8b3bd3139d6b78a152b597bee3
4
+ data.tar.gz: f1002290c66863a0aaed9217d334f36ff9c9e50456846dcb72a5d7adcd2bed7c
5
5
  SHA512:
6
- metadata.gz: 1b1e5477d346a5c1e19ed9b43554f18091bc800bcb21c4a88943381d0ab659a9963acaf305540f7a8968d3047c97dd7d13b2dff719bcda9f40b50321126d3eaf
7
- data.tar.gz: 2b211f6685f4b17d179d407ff977778bc5af3b900e14f710b54755cc6132141d62078d83984f558121066ccdc18a1d18120187535b3540fa5f8be40af529cd81
6
+ metadata.gz: bd72a1c6fd2c19139c368fccb9539296b20db66242eb9ce05839aec13f9680baaff14f097eadde9cbb67e8fbe37234f42162d1f417badf1b504b1879e4d35454
7
+ data.tar.gz: 70a888be7d6ff63b471ebd05f746f244a9a897807408d99d8e538b3bccf21bd1ecdcc46c68a640858d63e0dbfafe3a52a8e6a1743f50605f90a8a64f51a2fcd1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-securitycenter_v1beta2
2
2
 
3
+ ### v0.8.0 (2021-09-01)
4
+
5
+ * Regenerated from discovery document revision 20210820
6
+
7
+ ### v0.7.0 (2021-07-20)
8
+
9
+ * Regenerated from discovery document revision 20210716
10
+
11
+ ### v0.6.0 (2021-06-29)
12
+
13
+ * Regenerated using generator version 0.4.0
14
+
15
+ ### v0.5.0 (2021-06-24)
16
+
17
+ * Regenerated from discovery document revision 20210527
18
+ * Regenerated using generator version 0.3.0
19
+
3
20
  ### v0.4.0 (2021-05-20)
4
21
 
5
22
  * Unspecified changes
@@ -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
@@ -218,6 +328,19 @@ module Google
218
328
  # @return [String]
219
329
  attr_accessor :external_uri
220
330
 
331
+ # The class of the finding.
332
+ # Corresponds to the JSON property `findingClass`
333
+ # @return [String]
334
+ attr_accessor :finding_class
335
+
336
+ # Represents what's commonly known as an Indicator of compromise (IoC) in
337
+ # computer forensics. This is an artifact observed on a network or in an
338
+ # operating system that, with high confidence, indicates a computer intrusion.
339
+ # Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise
340
+ # Corresponds to the JSON property `indicator`
341
+ # @return [Google::Apis::SecuritycenterV1beta2::Indicator]
342
+ attr_accessor :indicator
343
+
221
344
  # The relative resource name of this finding. See: https://cloud.google.com/apis/
222
345
  # design/resource_names#relative_resource_name Example: "organizations/`
223
346
  # organization_id`/sources/`source_id`/findings/`finding_id`"
@@ -269,6 +392,11 @@ module Google
269
392
  # @return [String]
270
393
  attr_accessor :state
271
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
+
272
400
  def initialize(**args)
273
401
  update!(**args)
274
402
  end
@@ -280,6 +408,8 @@ module Google
280
408
  @create_time = args[:create_time] if args.key?(:create_time)
281
409
  @event_time = args[:event_time] if args.key?(:event_time)
282
410
  @external_uri = args[:external_uri] if args.key?(:external_uri)
411
+ @finding_class = args[:finding_class] if args.key?(:finding_class)
412
+ @indicator = args[:indicator] if args.key?(:indicator)
283
413
  @name = args[:name] if args.key?(:name)
284
414
  @parent = args[:parent] if args.key?(:parent)
285
415
  @resource_name = args[:resource_name] if args.key?(:resource_name)
@@ -287,6 +417,7 @@ module Google
287
417
  @severity = args[:severity] if args.key?(:severity)
288
418
  @source_properties = args[:source_properties] if args.key?(:source_properties)
289
419
  @state = args[:state] if args.key?(:state)
420
+ @vulnerability = args[:vulnerability] if args.key?(:vulnerability)
290
421
  end
291
422
  end
292
423
 
@@ -388,6 +519,11 @@ module Google
388
519
  # @return [String]
389
520
  attr_accessor :project_display_name
390
521
 
522
+ # The full resource type of the resource.
523
+ # Corresponds to the JSON property `type`
524
+ # @return [String]
525
+ attr_accessor :type
526
+
391
527
  def initialize(**args)
392
528
  update!(**args)
393
529
  end
@@ -400,6 +536,7 @@ module Google
400
536
  @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
401
537
  @project = args[:project] if args.key?(:project)
402
538
  @project_display_name = args[:project_display_name] if args.key?(:project_display_name)
539
+ @type = args[:type] if args.key?(:type)
403
540
  end
404
541
  end
405
542
 
@@ -753,6 +890,60 @@ module Google
753
890
  end
754
891
  end
755
892
 
893
+ # Represents what's commonly known as an Indicator of compromise (IoC) in
894
+ # computer forensics. This is an artifact observed on a network or in an
895
+ # operating system that, with high confidence, indicates a computer intrusion.
896
+ # Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise
897
+ class Indicator
898
+ include Google::Apis::Core::Hashable
899
+
900
+ # List of domains associated to the Finding.
901
+ # Corresponds to the JSON property `domains`
902
+ # @return [Array<String>]
903
+ attr_accessor :domains
904
+
905
+ # List of ip addresses associated to the Finding.
906
+ # Corresponds to the JSON property `ipAddresses`
907
+ # @return [Array<String>]
908
+ attr_accessor :ip_addresses
909
+
910
+ def initialize(**args)
911
+ update!(**args)
912
+ end
913
+
914
+ # Update properties of this object
915
+ def update!(**args)
916
+ @domains = args[:domains] if args.key?(:domains)
917
+ @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
918
+ end
919
+ end
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
+
756
947
  # Resource capturing the settings for Security Center.
757
948
  class SecurityCenterSettings
758
949
  include Google::Apis::Core::Hashable
@@ -918,6 +1109,26 @@ module Google
918
1109
  end
919
1110
  end
920
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
+
921
1132
  # Resource capturing the settings for the Web Security Scanner service.
922
1133
  class WebSecurityScannerSettings
923
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.4.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210326"
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
 
@@ -118,6 +130,18 @@ module Google
118
130
  include Google::Apis::Core::JsonObjectSupport
119
131
  end
120
132
 
133
+ class Indicator
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Reference
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
121
145
  class SecurityCenterSettings
122
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
147
 
@@ -142,6 +166,12 @@ module Google
142
166
  include Google::Apis::Core::JsonObjectSupport
143
167
  end
144
168
 
169
+ class Vulnerability
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
145
175
  class WebSecurityScannerSettings
146
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
177
 
@@ -168,6 +198,32 @@ module Google
168
198
  end
169
199
  end
170
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
+
171
227
  class Details
172
228
  # @private
173
229
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -196,6 +252,9 @@ module Google
196
252
  property :create_time, as: 'createTime'
197
253
  property :event_time, as: 'eventTime'
198
254
  property :external_uri, as: 'externalUri'
255
+ property :finding_class, as: 'findingClass'
256
+ property :indicator, as: 'indicator', class: Google::Apis::SecuritycenterV1beta2::Indicator, decorator: Google::Apis::SecuritycenterV1beta2::Indicator::Representation
257
+
199
258
  property :name, as: 'name'
200
259
  property :parent, as: 'parent'
201
260
  property :resource_name, as: 'resourceName'
@@ -204,6 +263,8 @@ module Google
204
263
  property :severity, as: 'severity'
205
264
  hash :source_properties, as: 'sourceProperties'
206
265
  property :state, as: 'state'
266
+ property :vulnerability, as: 'vulnerability', class: Google::Apis::SecuritycenterV1beta2::Vulnerability, decorator: Google::Apis::SecuritycenterV1beta2::Vulnerability::Representation
267
+
207
268
  end
208
269
  end
209
270
 
@@ -236,6 +297,7 @@ module Google
236
297
  property :parent_display_name, as: 'parentDisplayName'
237
298
  property :project, as: 'project'
238
299
  property :project_display_name, as: 'projectDisplayName'
300
+ property :type, as: 'type'
239
301
  end
240
302
  end
241
303
 
@@ -323,6 +385,22 @@ module Google
323
385
  end
324
386
  end
325
387
 
388
+ class Indicator
389
+ # @private
390
+ class Representation < Google::Apis::Core::JsonRepresentation
391
+ collection :domains, as: 'domains'
392
+ collection :ip_addresses, as: 'ipAddresses'
393
+ end
394
+ end
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
+
326
404
  class SecurityCenterSettings
327
405
  # @private
328
406
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -363,6 +441,14 @@ module Google
363
441
  end
364
442
  end
365
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
+
366
452
  class WebSecurityScannerSettings
367
453
  # @private
368
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 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,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-securitycenter_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.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-05-24 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
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Security Command Center API V1beta2.
28
34
  Simple REST clients are Ruby client libraries that provide access to Google services
29
35
  via their HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-securitycenter_v1beta2/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.4.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.8.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-securitycenter_v1beta2
57
63
  post_install_message:
58
64
  rdoc_options: []