google-apis-securitycenter_v1beta2 0.19.0 → 0.20.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 +4 -0
- data/lib/google/apis/securitycenter_v1beta2/classes.rb +74 -0
- data/lib/google/apis/securitycenter_v1beta2/gem_version.rb +2 -2
- data/lib/google/apis/securitycenter_v1beta2/representations.rb +32 -0
- data/lib/google/apis/securitycenter_v1beta2/service.rb +96 -0
- 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: 6d9202a65a6f018a466ceafe0455f31ebdb2f0d7f47d0ba1bfd9510537454271
|
4
|
+
data.tar.gz: 3aa59aed39276766409c779f87cbd01a47986dfc84130c1da78030390a142d1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f7fb26c8f9ef6086e0be2ef4ec07fc9e1a3363df9c0d73b465ac988585e21e36205eaa586e023742f0d7961e9f6fadff202bd6bfcd1b0065f2e5edf75fdd9a8
|
7
|
+
data.tar.gz: 4ab2c35a2460f8a01c9833e5b7a7680eb78624fbbc061cbd291beeb132a2ad299e1f53580e2cdfbc4cf1fb489e8a8bb4499fff12dcf976bab320693a26f70de4
|
data/CHANGELOG.md
CHANGED
@@ -402,6 +402,11 @@ module Google
|
|
402
402
|
# @return [String]
|
403
403
|
attr_accessor :finding_class
|
404
404
|
|
405
|
+
# Represents IAM bindings associated with the Finding.
|
406
|
+
# Corresponds to the JSON property `iamBindings`
|
407
|
+
# @return [Array<Google::Apis::SecuritycenterV1beta2::IamBinding>]
|
408
|
+
attr_accessor :iam_bindings
|
409
|
+
|
405
410
|
# Represents what's commonly known as an Indicator of compromise (IoC) in
|
406
411
|
# computer forensics. This is an artifact observed on a network or in an
|
407
412
|
# operating system that, with high confidence, indicates a computer intrusion.
|
@@ -443,6 +448,11 @@ module Google
|
|
443
448
|
# @return [String]
|
444
449
|
attr_accessor :name
|
445
450
|
|
451
|
+
# Next steps associate to the finding.
|
452
|
+
# Corresponds to the JSON property `nextSteps`
|
453
|
+
# @return [String]
|
454
|
+
attr_accessor :next_steps
|
455
|
+
|
446
456
|
# The relative resource name of the source the finding belongs to. See: https://
|
447
457
|
# cloud.google.com/apis/design/resource_names#relative_resource_name This field
|
448
458
|
# is immutable after creation time. For example: "organizations/`organization_id`
|
@@ -506,12 +516,14 @@ module Google
|
|
506
516
|
@external_systems = args[:external_systems] if args.key?(:external_systems)
|
507
517
|
@external_uri = args[:external_uri] if args.key?(:external_uri)
|
508
518
|
@finding_class = args[:finding_class] if args.key?(:finding_class)
|
519
|
+
@iam_bindings = args[:iam_bindings] if args.key?(:iam_bindings)
|
509
520
|
@indicator = args[:indicator] if args.key?(:indicator)
|
510
521
|
@mitre_attack = args[:mitre_attack] if args.key?(:mitre_attack)
|
511
522
|
@mute = args[:mute] if args.key?(:mute)
|
512
523
|
@mute_initiator = args[:mute_initiator] if args.key?(:mute_initiator)
|
513
524
|
@mute_update_time = args[:mute_update_time] if args.key?(:mute_update_time)
|
514
525
|
@name = args[:name] if args.key?(:name)
|
526
|
+
@next_steps = args[:next_steps] if args.key?(:next_steps)
|
515
527
|
@parent = args[:parent] if args.key?(:parent)
|
516
528
|
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
517
529
|
@security_marks = args[:security_marks] if args.key?(:security_marks)
|
@@ -1232,6 +1244,40 @@ module Google
|
|
1232
1244
|
end
|
1233
1245
|
end
|
1234
1246
|
|
1247
|
+
# Represents a particular IAM binding, which captures a member's role addition,
|
1248
|
+
# removal, or state.
|
1249
|
+
class IamBinding
|
1250
|
+
include Google::Apis::Core::Hashable
|
1251
|
+
|
1252
|
+
# The action that was performed on a Binding.
|
1253
|
+
# Corresponds to the JSON property `action`
|
1254
|
+
# @return [String]
|
1255
|
+
attr_accessor :action
|
1256
|
+
|
1257
|
+
# A single identity requesting access for a Cloud Platform resource, e.g. "foo@
|
1258
|
+
# google.com".
|
1259
|
+
# Corresponds to the JSON property `member`
|
1260
|
+
# @return [String]
|
1261
|
+
attr_accessor :member
|
1262
|
+
|
1263
|
+
# Role that is assigned to "members". For example, "roles/viewer", "roles/editor"
|
1264
|
+
# , or "roles/owner".
|
1265
|
+
# Corresponds to the JSON property `role`
|
1266
|
+
# @return [String]
|
1267
|
+
attr_accessor :role
|
1268
|
+
|
1269
|
+
def initialize(**args)
|
1270
|
+
update!(**args)
|
1271
|
+
end
|
1272
|
+
|
1273
|
+
# Update properties of this object
|
1274
|
+
def update!(**args)
|
1275
|
+
@action = args[:action] if args.key?(:action)
|
1276
|
+
@member = args[:member] if args.key?(:member)
|
1277
|
+
@role = args[:role] if args.key?(:role)
|
1278
|
+
end
|
1279
|
+
end
|
1280
|
+
|
1235
1281
|
# Represents what's commonly known as an Indicator of compromise (IoC) in
|
1236
1282
|
# computer forensics. This is an artifact observed on a network or in an
|
1237
1283
|
# operating system that, with high confidence, indicates a computer intrusion.
|
@@ -1310,6 +1356,34 @@ module Google
|
|
1310
1356
|
end
|
1311
1357
|
end
|
1312
1358
|
|
1359
|
+
# Resource capturing onboarding information for a given CRM resource.
|
1360
|
+
class OnboardingState
|
1361
|
+
include Google::Apis::Core::Hashable
|
1362
|
+
|
1363
|
+
# The resource name of the OnboardingState. Format: organizations/`organization`/
|
1364
|
+
# onboardingState Format: folders/`folder`/onboardingState Format: projects/`
|
1365
|
+
# project`/onboardingState
|
1366
|
+
# Corresponds to the JSON property `name`
|
1367
|
+
# @return [String]
|
1368
|
+
attr_accessor :name
|
1369
|
+
|
1370
|
+
# Describes the level a given organization, folder, or project is onboarded with
|
1371
|
+
# SCC. If the resource wasn't onboarded, NOT_FOUND would have been thrown.
|
1372
|
+
# Corresponds to the JSON property `onboardingLevel`
|
1373
|
+
# @return [String]
|
1374
|
+
attr_accessor :onboarding_level
|
1375
|
+
|
1376
|
+
def initialize(**args)
|
1377
|
+
update!(**args)
|
1378
|
+
end
|
1379
|
+
|
1380
|
+
# Update properties of this object
|
1381
|
+
def update!(**args)
|
1382
|
+
@name = args[:name] if args.key?(:name)
|
1383
|
+
@onboarding_level = args[:onboarding_level] if args.key?(:onboarding_level)
|
1384
|
+
end
|
1385
|
+
end
|
1386
|
+
|
1313
1387
|
# Additional Links
|
1314
1388
|
class Reference
|
1315
1389
|
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.20.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 = "20220401"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -166,6 +166,12 @@ module Google
|
|
166
166
|
include Google::Apis::Core::JsonObjectSupport
|
167
167
|
end
|
168
168
|
|
169
|
+
class IamBinding
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
169
175
|
class Indicator
|
170
176
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
177
|
|
@@ -178,6 +184,12 @@ module Google
|
|
178
184
|
include Google::Apis::Core::JsonObjectSupport
|
179
185
|
end
|
180
186
|
|
187
|
+
class OnboardingState
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
181
193
|
class Reference
|
182
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
195
|
|
@@ -319,6 +331,8 @@ module Google
|
|
319
331
|
|
320
332
|
property :external_uri, as: 'externalUri'
|
321
333
|
property :finding_class, as: 'findingClass'
|
334
|
+
collection :iam_bindings, as: 'iamBindings', class: Google::Apis::SecuritycenterV1beta2::IamBinding, decorator: Google::Apis::SecuritycenterV1beta2::IamBinding::Representation
|
335
|
+
|
322
336
|
property :indicator, as: 'indicator', class: Google::Apis::SecuritycenterV1beta2::Indicator, decorator: Google::Apis::SecuritycenterV1beta2::Indicator::Representation
|
323
337
|
|
324
338
|
property :mitre_attack, as: 'mitreAttack', class: Google::Apis::SecuritycenterV1beta2::MitreAttack, decorator: Google::Apis::SecuritycenterV1beta2::MitreAttack::Representation
|
@@ -327,6 +341,7 @@ module Google
|
|
327
341
|
property :mute_initiator, as: 'muteInitiator'
|
328
342
|
property :mute_update_time, as: 'muteUpdateTime'
|
329
343
|
property :name, as: 'name'
|
344
|
+
property :next_steps, as: 'nextSteps'
|
330
345
|
property :parent, as: 'parent'
|
331
346
|
property :resource_name, as: 'resourceName'
|
332
347
|
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta2::SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta2::SecurityMarks::Representation
|
@@ -508,6 +523,15 @@ module Google
|
|
508
523
|
end
|
509
524
|
end
|
510
525
|
|
526
|
+
class IamBinding
|
527
|
+
# @private
|
528
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
529
|
+
property :action, as: 'action'
|
530
|
+
property :member, as: 'member'
|
531
|
+
property :role, as: 'role'
|
532
|
+
end
|
533
|
+
end
|
534
|
+
|
511
535
|
class Indicator
|
512
536
|
# @private
|
513
537
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -527,6 +551,14 @@ module Google
|
|
527
551
|
end
|
528
552
|
end
|
529
553
|
|
554
|
+
class OnboardingState
|
555
|
+
# @private
|
556
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
557
|
+
property :name, as: 'name'
|
558
|
+
property :onboarding_level, as: 'onboardingLevel'
|
559
|
+
end
|
560
|
+
end
|
561
|
+
|
530
562
|
class Reference
|
531
563
|
# @private
|
532
564
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -116,6 +116,38 @@ module Google
|
|
116
116
|
execute_or_queue_command(command, &block)
|
117
117
|
end
|
118
118
|
|
119
|
+
# Retrieve the OnboardingState of a resource.
|
120
|
+
# @param [String] name
|
121
|
+
# Required. The name of the OnboardingState to retrieve. Formats: *
|
122
|
+
# organizations/`organization`/onboardingState * folders/`folder`/
|
123
|
+
# onboardingState * projects/`project`/onboardingState
|
124
|
+
# @param [String] fields
|
125
|
+
# Selector specifying which fields to include in a partial response.
|
126
|
+
# @param [String] quota_user
|
127
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
128
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
129
|
+
# @param [Google::Apis::RequestOptions] options
|
130
|
+
# Request-specific options
|
131
|
+
#
|
132
|
+
# @yield [result, err] Result & error if block supplied
|
133
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::OnboardingState] parsed result object
|
134
|
+
# @yieldparam err [StandardError] error object if request failed
|
135
|
+
#
|
136
|
+
# @return [Google::Apis::SecuritycenterV1beta2::OnboardingState]
|
137
|
+
#
|
138
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
139
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
140
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
141
|
+
def get_folder_onboarding_state(name, fields: nil, quota_user: nil, options: nil, &block)
|
142
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
143
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::OnboardingState::Representation
|
144
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::OnboardingState
|
145
|
+
command.params['name'] = name unless name.nil?
|
146
|
+
command.query['fields'] = fields unless fields.nil?
|
147
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
148
|
+
execute_or_queue_command(command, &block)
|
149
|
+
end
|
150
|
+
|
119
151
|
# Get the SecurityHealthAnalyticsSettings resource.
|
120
152
|
# @param [String] name
|
121
153
|
# Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats:
|
@@ -643,6 +675,38 @@ module Google
|
|
643
675
|
execute_or_queue_command(command, &block)
|
644
676
|
end
|
645
677
|
|
678
|
+
# Retrieve the OnboardingState of a resource.
|
679
|
+
# @param [String] name
|
680
|
+
# Required. The name of the OnboardingState to retrieve. Formats: *
|
681
|
+
# organizations/`organization`/onboardingState * folders/`folder`/
|
682
|
+
# onboardingState * projects/`project`/onboardingState
|
683
|
+
# @param [String] fields
|
684
|
+
# Selector specifying which fields to include in a partial response.
|
685
|
+
# @param [String] quota_user
|
686
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
687
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
688
|
+
# @param [Google::Apis::RequestOptions] options
|
689
|
+
# Request-specific options
|
690
|
+
#
|
691
|
+
# @yield [result, err] Result & error if block supplied
|
692
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::OnboardingState] parsed result object
|
693
|
+
# @yieldparam err [StandardError] error object if request failed
|
694
|
+
#
|
695
|
+
# @return [Google::Apis::SecuritycenterV1beta2::OnboardingState]
|
696
|
+
#
|
697
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
698
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
699
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
700
|
+
def get_organization_onboarding_state(name, fields: nil, quota_user: nil, options: nil, &block)
|
701
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
702
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::OnboardingState::Representation
|
703
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::OnboardingState
|
704
|
+
command.params['name'] = name unless name.nil?
|
705
|
+
command.query['fields'] = fields unless fields.nil?
|
706
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
707
|
+
execute_or_queue_command(command, &block)
|
708
|
+
end
|
709
|
+
|
646
710
|
# Get the SecurityCenterSettings resource.
|
647
711
|
# @param [String] name
|
648
712
|
# Required. The name of the SecurityCenterSettings to retrieve. Format:
|
@@ -1232,6 +1296,38 @@ module Google
|
|
1232
1296
|
execute_or_queue_command(command, &block)
|
1233
1297
|
end
|
1234
1298
|
|
1299
|
+
# Retrieve the OnboardingState of a resource.
|
1300
|
+
# @param [String] name
|
1301
|
+
# Required. The name of the OnboardingState to retrieve. Formats: *
|
1302
|
+
# organizations/`organization`/onboardingState * folders/`folder`/
|
1303
|
+
# onboardingState * projects/`project`/onboardingState
|
1304
|
+
# @param [String] fields
|
1305
|
+
# Selector specifying which fields to include in a partial response.
|
1306
|
+
# @param [String] quota_user
|
1307
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1308
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1309
|
+
# @param [Google::Apis::RequestOptions] options
|
1310
|
+
# Request-specific options
|
1311
|
+
#
|
1312
|
+
# @yield [result, err] Result & error if block supplied
|
1313
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1beta2::OnboardingState] parsed result object
|
1314
|
+
# @yieldparam err [StandardError] error object if request failed
|
1315
|
+
#
|
1316
|
+
# @return [Google::Apis::SecuritycenterV1beta2::OnboardingState]
|
1317
|
+
#
|
1318
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1319
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1320
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1321
|
+
def get_project_onboarding_state(name, fields: nil, quota_user: nil, options: nil, &block)
|
1322
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
1323
|
+
command.response_representation = Google::Apis::SecuritycenterV1beta2::OnboardingState::Representation
|
1324
|
+
command.response_class = Google::Apis::SecuritycenterV1beta2::OnboardingState
|
1325
|
+
command.params['name'] = name unless name.nil?
|
1326
|
+
command.query['fields'] = fields unless fields.nil?
|
1327
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1328
|
+
execute_or_queue_command(command, &block)
|
1329
|
+
end
|
1330
|
+
|
1235
1331
|
# Get the SecurityHealthAnalyticsSettings resource.
|
1236
1332
|
# @param [String] name
|
1237
1333
|
# 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.20.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-04-11 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.20.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: []
|