google-apis-securitycenter_v1beta2 0.6.0 → 0.10.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_v1beta2/classes.rb +365 -0
- data/lib/google/apis/securitycenter_v1beta2/gem_version.rb +2 -2
- data/lib/google/apis/securitycenter_v1beta2/representations.rb +128 -0
- data/lib/google/apis/securitycenter_v1beta2.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: 6b57c224ec8fe98ce184907f04289e8ad04dfb700206dd468a9dc8951f0f6f73
|
4
|
+
data.tar.gz: fa1a0988aeb2d8f76fcebb3ca8677eed07422fad78ccddcf7d6ce2ad0e91a7d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbaf4e72fd1cee1df778076029662aae54020965fd98d0c78a08b7e739724407ca7d4cffac1e2dd3f883d5641886f1e424e3f74f44ece903014bc6e5948e25f6
|
7
|
+
data.tar.gz: ae7f50eeb96f655d9656876314f4877d9a3c8b1f128b2e5fa297dda1ba9fe66ff088a392435ee64ca43b84099c760b6ff84dc9fd8f93cbc9eb533b2fc907d875
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-securitycenter_v1beta2
|
2
2
|
|
3
|
+
### v0.10.0 (2021-11-16)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211112
|
6
|
+
|
7
|
+
### v0.9.0 (2021-10-20)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211015
|
10
|
+
|
11
|
+
### v0.8.0 (2021-09-01)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210820
|
14
|
+
|
15
|
+
### v0.7.0 (2021-07-20)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210716
|
18
|
+
|
3
19
|
### v0.6.0 (2021-06-29)
|
4
20
|
|
5
21
|
* Regenerated using generator version 0.4.0
|
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
|
|
@@ -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
|
@@ -211,6 +321,12 @@ module Google
|
|
211
321
|
# @return [String]
|
212
322
|
attr_accessor :event_time
|
213
323
|
|
324
|
+
# Output only. Third party SIEM/SOAR fields within SCC, contains external system
|
325
|
+
# information and external system finding fields.
|
326
|
+
# Corresponds to the JSON property `externalSystems`
|
327
|
+
# @return [Hash<String,Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ExternalSystem>]
|
328
|
+
attr_accessor :external_systems
|
329
|
+
|
214
330
|
# The URI that, if available, points to a web page outside of Security Command
|
215
331
|
# Center where additional information about the finding can be found. This field
|
216
332
|
# is guaranteed to be either empty or a well formed URL.
|
@@ -218,6 +334,37 @@ module Google
|
|
218
334
|
# @return [String]
|
219
335
|
attr_accessor :external_uri
|
220
336
|
|
337
|
+
# The class of the finding.
|
338
|
+
# Corresponds to the JSON property `findingClass`
|
339
|
+
# @return [String]
|
340
|
+
attr_accessor :finding_class
|
341
|
+
|
342
|
+
# Represents what's commonly known as an Indicator of compromise (IoC) in
|
343
|
+
# computer forensics. This is an artifact observed on a network or in an
|
344
|
+
# operating system that, with high confidence, indicates a computer intrusion.
|
345
|
+
# Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise
|
346
|
+
# Corresponds to the JSON property `indicator`
|
347
|
+
# @return [Google::Apis::SecuritycenterV1beta2::Indicator]
|
348
|
+
attr_accessor :indicator
|
349
|
+
|
350
|
+
# Indicates the mute state of a finding (either unspecified, muted, unmuted or
|
351
|
+
# undefined).
|
352
|
+
# Corresponds to the JSON property `mute`
|
353
|
+
# @return [String]
|
354
|
+
attr_accessor :mute
|
355
|
+
|
356
|
+
# First known as mute_annotation. Records additional information about the mute
|
357
|
+
# operation e.g. mute config that muted the finding, user who muted the finding,
|
358
|
+
# etc.
|
359
|
+
# Corresponds to the JSON property `muteInitiator`
|
360
|
+
# @return [String]
|
361
|
+
attr_accessor :mute_initiator
|
362
|
+
|
363
|
+
# Output only. The most recent time this finding was muted or unmuted.
|
364
|
+
# Corresponds to the JSON property `muteUpdateTime`
|
365
|
+
# @return [String]
|
366
|
+
attr_accessor :mute_update_time
|
367
|
+
|
221
368
|
# The relative resource name of this finding. See: https://cloud.google.com/apis/
|
222
369
|
# design/resource_names#relative_resource_name Example: "organizations/`
|
223
370
|
# organization_id`/sources/`source_id`/findings/`finding_id`"
|
@@ -269,6 +416,11 @@ module Google
|
|
269
416
|
# @return [String]
|
270
417
|
attr_accessor :state
|
271
418
|
|
419
|
+
# Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
|
420
|
+
# Corresponds to the JSON property `vulnerability`
|
421
|
+
# @return [Google::Apis::SecuritycenterV1beta2::Vulnerability]
|
422
|
+
attr_accessor :vulnerability
|
423
|
+
|
272
424
|
def initialize(**args)
|
273
425
|
update!(**args)
|
274
426
|
end
|
@@ -279,7 +431,13 @@ module Google
|
|
279
431
|
@category = args[:category] if args.key?(:category)
|
280
432
|
@create_time = args[:create_time] if args.key?(:create_time)
|
281
433
|
@event_time = args[:event_time] if args.key?(:event_time)
|
434
|
+
@external_systems = args[:external_systems] if args.key?(:external_systems)
|
282
435
|
@external_uri = args[:external_uri] if args.key?(:external_uri)
|
436
|
+
@finding_class = args[:finding_class] if args.key?(:finding_class)
|
437
|
+
@indicator = args[:indicator] if args.key?(:indicator)
|
438
|
+
@mute = args[:mute] if args.key?(:mute)
|
439
|
+
@mute_initiator = args[:mute_initiator] if args.key?(:mute_initiator)
|
440
|
+
@mute_update_time = args[:mute_update_time] if args.key?(:mute_update_time)
|
283
441
|
@name = args[:name] if args.key?(:name)
|
284
442
|
@parent = args[:parent] if args.key?(:parent)
|
285
443
|
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
@@ -287,6 +445,7 @@ module Google
|
|
287
445
|
@severity = args[:severity] if args.key?(:severity)
|
288
446
|
@source_properties = args[:source_properties] if args.key?(:source_properties)
|
289
447
|
@state = args[:state] if args.key?(:state)
|
448
|
+
@vulnerability = args[:vulnerability] if args.key?(:vulnerability)
|
290
449
|
end
|
291
450
|
end
|
292
451
|
|
@@ -316,6 +475,126 @@ module Google
|
|
316
475
|
end
|
317
476
|
end
|
318
477
|
|
478
|
+
# Representation of third party SIEM/SOAR fields within SCC.
|
479
|
+
class GoogleCloudSecuritycenterV1ExternalSystem
|
480
|
+
include Google::Apis::Core::Hashable
|
481
|
+
|
482
|
+
# References primary/secondary etc assignees in the external system.
|
483
|
+
# Corresponds to the JSON property `assignees`
|
484
|
+
# @return [Array<String>]
|
485
|
+
attr_accessor :assignees
|
486
|
+
|
487
|
+
# The most recent time when the corresponding finding's ticket/tracker was
|
488
|
+
# updated in the external system.
|
489
|
+
# Corresponds to the JSON property `externalSystemUpdateTime`
|
490
|
+
# @return [String]
|
491
|
+
attr_accessor :external_system_update_time
|
492
|
+
|
493
|
+
# Identifier that's used to track the given finding in the external system.
|
494
|
+
# Corresponds to the JSON property `externalUid`
|
495
|
+
# @return [String]
|
496
|
+
attr_accessor :external_uid
|
497
|
+
|
498
|
+
# External System Name e.g. jira, demisto, etc. e.g.: organizations/1234/sources/
|
499
|
+
# 5678/findings/123456/externalSystems/jira folders/1234/sources/5678/findings/
|
500
|
+
# 123456/externalSystems/jira projects/1234/sources/5678/findings/123456/
|
501
|
+
# externalSystems/jira
|
502
|
+
# Corresponds to the JSON property `name`
|
503
|
+
# @return [String]
|
504
|
+
attr_accessor :name
|
505
|
+
|
506
|
+
# Most recent status of the corresponding finding's ticket/tracker in the
|
507
|
+
# external system.
|
508
|
+
# Corresponds to the JSON property `status`
|
509
|
+
# @return [String]
|
510
|
+
attr_accessor :status
|
511
|
+
|
512
|
+
def initialize(**args)
|
513
|
+
update!(**args)
|
514
|
+
end
|
515
|
+
|
516
|
+
# Update properties of this object
|
517
|
+
def update!(**args)
|
518
|
+
@assignees = args[:assignees] if args.key?(:assignees)
|
519
|
+
@external_system_update_time = args[:external_system_update_time] if args.key?(:external_system_update_time)
|
520
|
+
@external_uid = args[:external_uid] if args.key?(:external_uid)
|
521
|
+
@name = args[:name] if args.key?(:name)
|
522
|
+
@status = args[:status] if args.key?(:status)
|
523
|
+
end
|
524
|
+
end
|
525
|
+
|
526
|
+
# A mute config is a Cloud SCC resource that contains the configuration to mute
|
527
|
+
# create/update events of findings.
|
528
|
+
class GoogleCloudSecuritycenterV1MuteConfig
|
529
|
+
include Google::Apis::Core::Hashable
|
530
|
+
|
531
|
+
# Output only. The time at which the mute config was created. This field is set
|
532
|
+
# by the server and will be ignored if provided on config creation.
|
533
|
+
# Corresponds to the JSON property `createTime`
|
534
|
+
# @return [String]
|
535
|
+
attr_accessor :create_time
|
536
|
+
|
537
|
+
# A description of the mute config.
|
538
|
+
# Corresponds to the JSON property `description`
|
539
|
+
# @return [String]
|
540
|
+
attr_accessor :description
|
541
|
+
|
542
|
+
# The human readable name to be displayed for the mute config.
|
543
|
+
# Corresponds to the JSON property `displayName`
|
544
|
+
# @return [String]
|
545
|
+
attr_accessor :display_name
|
546
|
+
|
547
|
+
# Required. An expression that defines the filter to apply across create/update
|
548
|
+
# events of findings. While creating a filter string, be mindful of the scope in
|
549
|
+
# which the mute configuration is being created. E.g., If a filter contains
|
550
|
+
# project = X but is created under the project = Y scope, it might not match any
|
551
|
+
# findings. The following field and operator combinations are supported: *
|
552
|
+
# severity: `=`, `:` * category: `=`, `:` * resource.name: `=`, `:` * resource.
|
553
|
+
# project_name: `=`, `:` * resource.project_display_name: `=`, `:` * resource.
|
554
|
+
# folders.resource_folder: `=`, `:` * resource.parent_name: `=`, `:` * resource.
|
555
|
+
# parent_display_name: `=`, `:` * resource.type: `=`, `:` * finding_class: `=`, `
|
556
|
+
# :` * indicator.ip_addresses: `=`, `:` * indicator.domains: `=`, `:`
|
557
|
+
# Corresponds to the JSON property `filter`
|
558
|
+
# @return [String]
|
559
|
+
attr_accessor :filter
|
560
|
+
|
561
|
+
# Output only. Email address of the user who last edited the mute config. This
|
562
|
+
# field is set by the server and will be ignored if provided on config creation
|
563
|
+
# or update.
|
564
|
+
# Corresponds to the JSON property `mostRecentEditor`
|
565
|
+
# @return [String]
|
566
|
+
attr_accessor :most_recent_editor
|
567
|
+
|
568
|
+
# This field will be ignored if provided on config creation. Format "
|
569
|
+
# organizations/`organization`/muteConfigs/`mute_config`" "folders/`folder`/
|
570
|
+
# muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`"
|
571
|
+
# Corresponds to the JSON property `name`
|
572
|
+
# @return [String]
|
573
|
+
attr_accessor :name
|
574
|
+
|
575
|
+
# Output only. The most recent time at which the mute config was updated. This
|
576
|
+
# field is set by the server and will be ignored if provided on config creation
|
577
|
+
# or update.
|
578
|
+
# Corresponds to the JSON property `updateTime`
|
579
|
+
# @return [String]
|
580
|
+
attr_accessor :update_time
|
581
|
+
|
582
|
+
def initialize(**args)
|
583
|
+
update!(**args)
|
584
|
+
end
|
585
|
+
|
586
|
+
# Update properties of this object
|
587
|
+
def update!(**args)
|
588
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
589
|
+
@description = args[:description] if args.key?(:description)
|
590
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
591
|
+
@filter = args[:filter] if args.key?(:filter)
|
592
|
+
@most_recent_editor = args[:most_recent_editor] if args.key?(:most_recent_editor)
|
593
|
+
@name = args[:name] if args.key?(:name)
|
594
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
595
|
+
end
|
596
|
+
end
|
597
|
+
|
319
598
|
# Cloud SCC's Notification
|
320
599
|
class GoogleCloudSecuritycenterV1NotificationMessage
|
321
600
|
include Google::Apis::Core::Hashable
|
@@ -355,6 +634,11 @@ module Google
|
|
355
634
|
class GoogleCloudSecuritycenterV1Resource
|
356
635
|
include Google::Apis::Core::Hashable
|
357
636
|
|
637
|
+
# The human readable name of the resource.
|
638
|
+
# Corresponds to the JSON property `displayName`
|
639
|
+
# @return [String]
|
640
|
+
attr_accessor :display_name
|
641
|
+
|
358
642
|
# Output only. Contains a Folder message for each folder in the assets ancestry.
|
359
643
|
# The first folder is the deepest nested folder, and the last folder is the
|
360
644
|
# folder directly under the Organization.
|
@@ -388,18 +672,25 @@ module Google
|
|
388
672
|
# @return [String]
|
389
673
|
attr_accessor :project_display_name
|
390
674
|
|
675
|
+
# The full resource type of the resource.
|
676
|
+
# Corresponds to the JSON property `type`
|
677
|
+
# @return [String]
|
678
|
+
attr_accessor :type
|
679
|
+
|
391
680
|
def initialize(**args)
|
392
681
|
update!(**args)
|
393
682
|
end
|
394
683
|
|
395
684
|
# Update properties of this object
|
396
685
|
def update!(**args)
|
686
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
397
687
|
@folders = args[:folders] if args.key?(:folders)
|
398
688
|
@name = args[:name] if args.key?(:name)
|
399
689
|
@parent = args[:parent] if args.key?(:parent)
|
400
690
|
@parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
|
401
691
|
@project = args[:project] if args.key?(:project)
|
402
692
|
@project_display_name = args[:project_display_name] if args.key?(:project_display_name)
|
693
|
+
@type = args[:type] if args.key?(:type)
|
403
694
|
end
|
404
695
|
end
|
405
696
|
|
@@ -753,6 +1044,60 @@ module Google
|
|
753
1044
|
end
|
754
1045
|
end
|
755
1046
|
|
1047
|
+
# Represents what's commonly known as an Indicator of compromise (IoC) in
|
1048
|
+
# computer forensics. This is an artifact observed on a network or in an
|
1049
|
+
# operating system that, with high confidence, indicates a computer intrusion.
|
1050
|
+
# Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise
|
1051
|
+
class Indicator
|
1052
|
+
include Google::Apis::Core::Hashable
|
1053
|
+
|
1054
|
+
# List of domains associated to the Finding.
|
1055
|
+
# Corresponds to the JSON property `domains`
|
1056
|
+
# @return [Array<String>]
|
1057
|
+
attr_accessor :domains
|
1058
|
+
|
1059
|
+
# List of ip addresses associated to the Finding.
|
1060
|
+
# Corresponds to the JSON property `ipAddresses`
|
1061
|
+
# @return [Array<String>]
|
1062
|
+
attr_accessor :ip_addresses
|
1063
|
+
|
1064
|
+
def initialize(**args)
|
1065
|
+
update!(**args)
|
1066
|
+
end
|
1067
|
+
|
1068
|
+
# Update properties of this object
|
1069
|
+
def update!(**args)
|
1070
|
+
@domains = args[:domains] if args.key?(:domains)
|
1071
|
+
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
|
1072
|
+
end
|
1073
|
+
end
|
1074
|
+
|
1075
|
+
# Additional Links
|
1076
|
+
class Reference
|
1077
|
+
include Google::Apis::Core::Hashable
|
1078
|
+
|
1079
|
+
# Source of the reference e.g. NVD
|
1080
|
+
# Corresponds to the JSON property `source`
|
1081
|
+
# @return [String]
|
1082
|
+
attr_accessor :source
|
1083
|
+
|
1084
|
+
# Uri for the mentioned source e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?
|
1085
|
+
# name=CVE-2021-34527.
|
1086
|
+
# Corresponds to the JSON property `uri`
|
1087
|
+
# @return [String]
|
1088
|
+
attr_accessor :uri
|
1089
|
+
|
1090
|
+
def initialize(**args)
|
1091
|
+
update!(**args)
|
1092
|
+
end
|
1093
|
+
|
1094
|
+
# Update properties of this object
|
1095
|
+
def update!(**args)
|
1096
|
+
@source = args[:source] if args.key?(:source)
|
1097
|
+
@uri = args[:uri] if args.key?(:uri)
|
1098
|
+
end
|
1099
|
+
end
|
1100
|
+
|
756
1101
|
# Resource capturing the settings for Security Center.
|
757
1102
|
class SecurityCenterSettings
|
758
1103
|
include Google::Apis::Core::Hashable
|
@@ -918,6 +1263,26 @@ module Google
|
|
918
1263
|
end
|
919
1264
|
end
|
920
1265
|
|
1266
|
+
# Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
|
1267
|
+
class Vulnerability
|
1268
|
+
include Google::Apis::Core::Hashable
|
1269
|
+
|
1270
|
+
# CVE stands for Common Vulnerabilities and Exposures. More information: https://
|
1271
|
+
# cve.mitre.org
|
1272
|
+
# Corresponds to the JSON property `cve`
|
1273
|
+
# @return [Google::Apis::SecuritycenterV1beta2::Cve]
|
1274
|
+
attr_accessor :cve
|
1275
|
+
|
1276
|
+
def initialize(**args)
|
1277
|
+
update!(**args)
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
# Update properties of this object
|
1281
|
+
def update!(**args)
|
1282
|
+
@cve = args[:cve] if args.key?(:cve)
|
1283
|
+
end
|
1284
|
+
end
|
1285
|
+
|
921
1286
|
# Resource capturing the settings for the Web Security Scanner service.
|
922
1287
|
class WebSecurityScannerSettings
|
923
1288
|
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.10.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 = "20211112"
|
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
|
|
@@ -58,6 +70,18 @@ module Google
|
|
58
70
|
include Google::Apis::Core::JsonObjectSupport
|
59
71
|
end
|
60
72
|
|
73
|
+
class GoogleCloudSecuritycenterV1ExternalSystem
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class GoogleCloudSecuritycenterV1MuteConfig
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
61
85
|
class GoogleCloudSecuritycenterV1NotificationMessage
|
62
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
87
|
|
@@ -118,6 +142,18 @@ module Google
|
|
118
142
|
include Google::Apis::Core::JsonObjectSupport
|
119
143
|
end
|
120
144
|
|
145
|
+
class Indicator
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class Reference
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
121
157
|
class SecurityCenterSettings
|
122
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
159
|
|
@@ -142,6 +178,12 @@ module Google
|
|
142
178
|
include Google::Apis::Core::JsonObjectSupport
|
143
179
|
end
|
144
180
|
|
181
|
+
class Vulnerability
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
145
187
|
class WebSecurityScannerSettings
|
146
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
189
|
|
@@ -168,6 +210,32 @@ module Google
|
|
168
210
|
end
|
169
211
|
end
|
170
212
|
|
213
|
+
class Cve
|
214
|
+
# @private
|
215
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
216
|
+
property :cvssv3, as: 'cvssv3', class: Google::Apis::SecuritycenterV1beta2::Cvssv3, decorator: Google::Apis::SecuritycenterV1beta2::Cvssv3::Representation
|
217
|
+
|
218
|
+
property :id, as: 'id'
|
219
|
+
collection :references, as: 'references', class: Google::Apis::SecuritycenterV1beta2::Reference, decorator: Google::Apis::SecuritycenterV1beta2::Reference::Representation
|
220
|
+
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
class Cvssv3
|
225
|
+
# @private
|
226
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
227
|
+
property :attack_complexity, as: 'attackComplexity'
|
228
|
+
property :attack_vector, as: 'attackVector'
|
229
|
+
property :availability_impact, as: 'availabilityImpact'
|
230
|
+
property :base_score, as: 'baseScore'
|
231
|
+
property :confidentiality_impact, as: 'confidentialityImpact'
|
232
|
+
property :integrity_impact, as: 'integrityImpact'
|
233
|
+
property :privileges_required, as: 'privilegesRequired'
|
234
|
+
property :scope, as: 'scope'
|
235
|
+
property :user_interaction, as: 'userInteraction'
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
171
239
|
class Details
|
172
240
|
# @private
|
173
241
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -195,7 +263,15 @@ module Google
|
|
195
263
|
property :category, as: 'category'
|
196
264
|
property :create_time, as: 'createTime'
|
197
265
|
property :event_time, as: 'eventTime'
|
266
|
+
hash :external_systems, as: 'externalSystems', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ExternalSystem, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ExternalSystem::Representation
|
267
|
+
|
198
268
|
property :external_uri, as: 'externalUri'
|
269
|
+
property :finding_class, as: 'findingClass'
|
270
|
+
property :indicator, as: 'indicator', class: Google::Apis::SecuritycenterV1beta2::Indicator, decorator: Google::Apis::SecuritycenterV1beta2::Indicator::Representation
|
271
|
+
|
272
|
+
property :mute, as: 'mute'
|
273
|
+
property :mute_initiator, as: 'muteInitiator'
|
274
|
+
property :mute_update_time, as: 'muteUpdateTime'
|
199
275
|
property :name, as: 'name'
|
200
276
|
property :parent, as: 'parent'
|
201
277
|
property :resource_name, as: 'resourceName'
|
@@ -204,6 +280,8 @@ module Google
|
|
204
280
|
property :severity, as: 'severity'
|
205
281
|
hash :source_properties, as: 'sourceProperties'
|
206
282
|
property :state, as: 'state'
|
283
|
+
property :vulnerability, as: 'vulnerability', class: Google::Apis::SecuritycenterV1beta2::Vulnerability, decorator: Google::Apis::SecuritycenterV1beta2::Vulnerability::Representation
|
284
|
+
|
207
285
|
end
|
208
286
|
end
|
209
287
|
|
@@ -215,6 +293,30 @@ module Google
|
|
215
293
|
end
|
216
294
|
end
|
217
295
|
|
296
|
+
class GoogleCloudSecuritycenterV1ExternalSystem
|
297
|
+
# @private
|
298
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
299
|
+
collection :assignees, as: 'assignees'
|
300
|
+
property :external_system_update_time, as: 'externalSystemUpdateTime'
|
301
|
+
property :external_uid, as: 'externalUid'
|
302
|
+
property :name, as: 'name'
|
303
|
+
property :status, as: 'status'
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
class GoogleCloudSecuritycenterV1MuteConfig
|
308
|
+
# @private
|
309
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
310
|
+
property :create_time, as: 'createTime'
|
311
|
+
property :description, as: 'description'
|
312
|
+
property :display_name, as: 'displayName'
|
313
|
+
property :filter, as: 'filter'
|
314
|
+
property :most_recent_editor, as: 'mostRecentEditor'
|
315
|
+
property :name, as: 'name'
|
316
|
+
property :update_time, as: 'updateTime'
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
218
320
|
class GoogleCloudSecuritycenterV1NotificationMessage
|
219
321
|
# @private
|
220
322
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -229,6 +331,7 @@ module Google
|
|
229
331
|
class GoogleCloudSecuritycenterV1Resource
|
230
332
|
# @private
|
231
333
|
class Representation < Google::Apis::Core::JsonRepresentation
|
334
|
+
property :display_name, as: 'displayName'
|
232
335
|
collection :folders, as: 'folders', class: Google::Apis::SecuritycenterV1beta2::Folder, decorator: Google::Apis::SecuritycenterV1beta2::Folder::Representation
|
233
336
|
|
234
337
|
property :name, as: 'name'
|
@@ -236,6 +339,7 @@ module Google
|
|
236
339
|
property :parent_display_name, as: 'parentDisplayName'
|
237
340
|
property :project, as: 'project'
|
238
341
|
property :project_display_name, as: 'projectDisplayName'
|
342
|
+
property :type, as: 'type'
|
239
343
|
end
|
240
344
|
end
|
241
345
|
|
@@ -323,6 +427,22 @@ module Google
|
|
323
427
|
end
|
324
428
|
end
|
325
429
|
|
430
|
+
class Indicator
|
431
|
+
# @private
|
432
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
433
|
+
collection :domains, as: 'domains'
|
434
|
+
collection :ip_addresses, as: 'ipAddresses'
|
435
|
+
end
|
436
|
+
end
|
437
|
+
|
438
|
+
class Reference
|
439
|
+
# @private
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
441
|
+
property :source, as: 'source'
|
442
|
+
property :uri, as: 'uri'
|
443
|
+
end
|
444
|
+
end
|
445
|
+
|
326
446
|
class SecurityCenterSettings
|
327
447
|
# @private
|
328
448
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -363,6 +483,14 @@ module Google
|
|
363
483
|
end
|
364
484
|
end
|
365
485
|
|
486
|
+
class Vulnerability
|
487
|
+
# @private
|
488
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
489
|
+
property :cve, as: 'cve', class: Google::Apis::SecuritycenterV1beta2::Cve, decorator: Google::Apis::SecuritycenterV1beta2::Cve::Representation
|
490
|
+
|
491
|
+
end
|
492
|
+
end
|
493
|
+
|
366
494
|
class WebSecurityScannerSettings
|
367
495
|
# @private
|
368
496
|
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.10.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-12-06 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_v1beta2/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_v1beta2/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.10.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1beta2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|