google-apis-securitycenter_v1beta2 0.20.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/apis/securitycenter_v1beta2/classes.rb +64 -1
- data/lib/google/apis/securitycenter_v1beta2/gem_version.rb +2 -2
- data/lib/google/apis/securitycenter_v1beta2/representations.rb +21 -0
- data/lib/google/apis/securitycenter_v1beta2/service.rb +66 -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: 92a6cd216cff33987e19d87f4dc041ea6481f8dfba2d8dd3f18254e5ed2fb818
|
4
|
+
data.tar.gz: bd04dfef9eb2849908bf375f5fc3795e6e158581067346e994bf87e92d02e792
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9efc4750982b0a167bee0710de34c1cadfbcdf2b03d2d3132710c385e516847748059d9b747953d85b95ee1639a5c79f817ce86365a1a7353f15158ec4ae938b
|
7
|
+
data.tar.gz: 4915462f36815ffbbc5e587003a833c05b969882a5346dc9a8a84e9914688fc1561f9980b321d9e3d822f7acdb20b6f4e9ca7c66b8d51b4f5a6d4c5ef7c1fbe5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-securitycenter_v1beta2
|
2
2
|
|
3
|
+
### v0.23.0 (2022-05-17)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220516
|
6
|
+
|
7
|
+
### v0.22.0 (2022-05-10)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220506
|
10
|
+
|
11
|
+
### v0.21.0 (2022-04-19)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220414
|
14
|
+
|
3
15
|
### v0.20.0 (2022-04-05)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220401
|
@@ -99,6 +99,50 @@ module Google
|
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
102
|
+
# Contains information about the IP connection associated with the finding.
|
103
|
+
class Connection
|
104
|
+
include Google::Apis::Core::Hashable
|
105
|
+
|
106
|
+
# Destination IP address. Not present for sockets that are listening and not
|
107
|
+
# connected.
|
108
|
+
# Corresponds to the JSON property `destinationIp`
|
109
|
+
# @return [String]
|
110
|
+
attr_accessor :destination_ip
|
111
|
+
|
112
|
+
# Destination port. Not present for sockets that are listening and not connected.
|
113
|
+
# Corresponds to the JSON property `destinationPort`
|
114
|
+
# @return [Fixnum]
|
115
|
+
attr_accessor :destination_port
|
116
|
+
|
117
|
+
# IANA Internet Protocol Number such as TCP(6) and UDP(17).
|
118
|
+
# Corresponds to the JSON property `protocol`
|
119
|
+
# @return [String]
|
120
|
+
attr_accessor :protocol
|
121
|
+
|
122
|
+
# Source IP address.
|
123
|
+
# Corresponds to the JSON property `sourceIp`
|
124
|
+
# @return [String]
|
125
|
+
attr_accessor :source_ip
|
126
|
+
|
127
|
+
# Source port.
|
128
|
+
# Corresponds to the JSON property `sourcePort`
|
129
|
+
# @return [Fixnum]
|
130
|
+
attr_accessor :source_port
|
131
|
+
|
132
|
+
def initialize(**args)
|
133
|
+
update!(**args)
|
134
|
+
end
|
135
|
+
|
136
|
+
# Update properties of this object
|
137
|
+
def update!(**args)
|
138
|
+
@destination_ip = args[:destination_ip] if args.key?(:destination_ip)
|
139
|
+
@destination_port = args[:destination_port] if args.key?(:destination_port)
|
140
|
+
@protocol = args[:protocol] if args.key?(:protocol)
|
141
|
+
@source_ip = args[:source_ip] if args.key?(:source_ip)
|
142
|
+
@source_port = args[:source_port] if args.key?(:source_port)
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
102
146
|
# Resource capturing the settings for the Container Threat Detection service.
|
103
147
|
class ContainerThreatDetectionSettings
|
104
148
|
include Google::Apis::Core::Hashable
|
@@ -369,11 +413,21 @@ module Google
|
|
369
413
|
# @return [String]
|
370
414
|
attr_accessor :category
|
371
415
|
|
416
|
+
# Contains information about the IP connection associated with the finding.
|
417
|
+
# Corresponds to the JSON property `connections`
|
418
|
+
# @return [Array<Google::Apis::SecuritycenterV1beta2::Connection>]
|
419
|
+
attr_accessor :connections
|
420
|
+
|
372
421
|
# The time at which the finding was created in Security Command Center.
|
373
422
|
# Corresponds to the JSON property `createTime`
|
374
423
|
# @return [String]
|
375
424
|
attr_accessor :create_time
|
376
425
|
|
426
|
+
# Contains more detail about the finding.
|
427
|
+
# Corresponds to the JSON property `description`
|
428
|
+
# @return [String]
|
429
|
+
attr_accessor :description
|
430
|
+
|
377
431
|
# The time the finding was first detected. If an existing finding is updated,
|
378
432
|
# then this is the time the update occurred. For example, if the finding
|
379
433
|
# represents an open firewall, this property captures the time the detector
|
@@ -511,7 +565,9 @@ module Google
|
|
511
565
|
@access = args[:access] if args.key?(:access)
|
512
566
|
@canonical_name = args[:canonical_name] if args.key?(:canonical_name)
|
513
567
|
@category = args[:category] if args.key?(:category)
|
568
|
+
@connections = args[:connections] if args.key?(:connections)
|
514
569
|
@create_time = args[:create_time] if args.key?(:create_time)
|
570
|
+
@description = args[:description] if args.key?(:description)
|
515
571
|
@event_time = args[:event_time] if args.key?(:event_time)
|
516
572
|
@external_systems = args[:external_systems] if args.key?(:external_systems)
|
517
573
|
@external_uri = args[:external_uri] if args.key?(:external_uri)
|
@@ -1424,11 +1480,17 @@ module Google
|
|
1424
1480
|
attr_accessor :log_sink_project
|
1425
1481
|
|
1426
1482
|
# The resource name of the SecurityCenterSettings. Format: organizations/`
|
1427
|
-
# organization`/securityCenterSettings
|
1483
|
+
# organization`/securityCenterSettings Format: folders/`folder`/
|
1484
|
+
# securityCenterSettings Format: projects/`project`/securityCenterSettings
|
1428
1485
|
# Corresponds to the JSON property `name`
|
1429
1486
|
# @return [String]
|
1430
1487
|
attr_accessor :name
|
1431
1488
|
|
1489
|
+
# Timestamp of when the customer organization was onboarded to SCC.
|
1490
|
+
# Corresponds to the JSON property `onboardingTime`
|
1491
|
+
# @return [String]
|
1492
|
+
attr_accessor :onboarding_time
|
1493
|
+
|
1432
1494
|
# The organization level service account to be used for security center
|
1433
1495
|
# components.
|
1434
1496
|
# Corresponds to the JSON property `orgServiceAccount`
|
@@ -1443,6 +1505,7 @@ module Google
|
|
1443
1505
|
def update!(**args)
|
1444
1506
|
@log_sink_project = args[:log_sink_project] if args.key?(:log_sink_project)
|
1445
1507
|
@name = args[:name] if args.key?(:name)
|
1508
|
+
@onboarding_time = args[:onboarding_time] if args.key?(:onboarding_time)
|
1446
1509
|
@org_service_account = args[:org_service_account] if args.key?(:org_service_account)
|
1447
1510
|
end
|
1448
1511
|
end
|
@@ -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.23.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220516"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,6 +34,12 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class Connection
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
37
43
|
class ContainerThreatDetectionSettings
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
45
|
|
@@ -259,6 +265,17 @@ module Google
|
|
259
265
|
end
|
260
266
|
end
|
261
267
|
|
268
|
+
class Connection
|
269
|
+
# @private
|
270
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
271
|
+
property :destination_ip, as: 'destinationIp'
|
272
|
+
property :destination_port, as: 'destinationPort'
|
273
|
+
property :protocol, as: 'protocol'
|
274
|
+
property :source_ip, as: 'sourceIp'
|
275
|
+
property :source_port, as: 'sourcePort'
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
262
279
|
class ContainerThreatDetectionSettings
|
263
280
|
# @private
|
264
281
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -325,7 +342,10 @@ module Google
|
|
325
342
|
|
326
343
|
property :canonical_name, as: 'canonicalName'
|
327
344
|
property :category, as: 'category'
|
345
|
+
collection :connections, as: 'connections', class: Google::Apis::SecuritycenterV1beta2::Connection, decorator: Google::Apis::SecuritycenterV1beta2::Connection::Representation
|
346
|
+
|
328
347
|
property :create_time, as: 'createTime'
|
348
|
+
property :description, as: 'description'
|
329
349
|
property :event_time, as: 'eventTime'
|
330
350
|
hash :external_systems, as: 'externalSystems', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ExternalSystem, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ExternalSystem::Representation
|
331
351
|
|
@@ -572,6 +592,7 @@ module Google
|
|
572
592
|
class Representation < Google::Apis::Core::JsonRepresentation
|
573
593
|
property :log_sink_project, as: 'logSinkProject'
|
574
594
|
property :name, as: 'name'
|
595
|
+
property :onboarding_time, as: 'onboardingTime'
|
575
596
|
property :org_service_account, as: 'orgServiceAccount'
|
576
597
|
end
|
577
598
|
end
|
@@ -148,6 +148,38 @@ module Google
|
|
148
148
|
execute_or_queue_command(command, &block)
|
149
149
|
end
|
150
150
|
|
151
|
+
# Get the SecurityCenterSettings resource.
|
152
|
+
# @param [String] name
|
153
|
+
# Required. The name of the SecurityCenterSettings to retrieve. Format:
|
154
|
+
# organizations/`organization`/securityCenterSettings Format: folders/`folder`/
|
155
|
+
# securityCenterSettings Format: projects/`project`/securityCenterSettings
|
156
|
+
# @param [String] fields
|
157
|
+
# Selector specifying which fields to include in a partial response.
|
158
|
+
# @param [String] quota_user
|
159
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
160
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
161
|
+
# @param [Google::Apis::RequestOptions] options
|
162
|
+
# Request-specific options
|
163
|
+
#
|
164
|
+
# @yield [result, err] Result & error if block supplied
|
165
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings] parsed result object
|
166
|
+
# @yieldparam err [StandardError] error object if request failed
|
167
|
+
#
|
168
|
+
# @return [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings]
|
169
|
+
#
|
170
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
171
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
172
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
173
|
+
def get_folder_security_center_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
174
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
175
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings::Representation
|
176
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings
|
177
|
+
command.params['name'] = name unless name.nil?
|
178
|
+
command.query['fields'] = fields unless fields.nil?
|
179
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
180
|
+
execute_or_queue_command(command, &block)
|
181
|
+
end
|
182
|
+
|
151
183
|
# Get the SecurityHealthAnalyticsSettings resource.
|
152
184
|
# @param [String] name
|
153
185
|
# Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats:
|
@@ -710,7 +742,8 @@ module Google
|
|
710
742
|
# Get the SecurityCenterSettings resource.
|
711
743
|
# @param [String] name
|
712
744
|
# Required. The name of the SecurityCenterSettings to retrieve. Format:
|
713
|
-
# organizations/`organization`/securityCenterSettings
|
745
|
+
# organizations/`organization`/securityCenterSettings Format: folders/`folder`/
|
746
|
+
# securityCenterSettings Format: projects/`project`/securityCenterSettings
|
714
747
|
# @param [String] fields
|
715
748
|
# Selector specifying which fields to include in a partial response.
|
716
749
|
# @param [String] quota_user
|
@@ -1328,6 +1361,38 @@ module Google
|
|
1328
1361
|
execute_or_queue_command(command, &block)
|
1329
1362
|
end
|
1330
1363
|
|
1364
|
+
# Get the SecurityCenterSettings resource.
|
1365
|
+
# @param [String] name
|
1366
|
+
# Required. The name of the SecurityCenterSettings to retrieve. Format:
|
1367
|
+
# organizations/`organization`/securityCenterSettings Format: folders/`folder`/
|
1368
|
+
# securityCenterSettings Format: projects/`project`/securityCenterSettings
|
1369
|
+
# @param [String] fields
|
1370
|
+
# Selector specifying which fields to include in a partial response.
|
1371
|
+
# @param [String] quota_user
|
1372
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1373
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1374
|
+
# @param [Google::Apis::RequestOptions] options
|
1375
|
+
# Request-specific options
|
1376
|
+
#
|
1377
|
+
# @yield [result, err] Result & error if block supplied
|
1378
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings] parsed result object
|
1379
|
+
# @yieldparam err [StandardError] error object if request failed
|
1380
|
+
#
|
1381
|
+
# @return [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings]
|
1382
|
+
#
|
1383
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1384
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1385
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1386
|
+
def get_project_security_center_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
1387
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
1388
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings::Representation
|
1389
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings
|
1390
|
+
command.params['name'] = name unless name.nil?
|
1391
|
+
command.query['fields'] = fields unless fields.nil?
|
1392
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1393
|
+
execute_or_queue_command(command, &block)
|
1394
|
+
end
|
1395
|
+
|
1331
1396
|
# Get the SecurityHealthAnalyticsSettings resource.
|
1332
1397
|
# @param [String] name
|
1333
1398
|
# Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats:
|
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.23.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: 2022-
|
11
|
+
date: 2022-05-23 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/main/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.23.0
|
62
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: []
|