google-apis-securitycenter_v1beta2 0.18.0 → 0.21.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 +12 -0
- data/lib/google/apis/securitycenter_v1beta2/classes.rb +134 -4
- data/lib/google/apis/securitycenter_v1beta2/gem_version.rb +2 -2
- data/lib/google/apis/securitycenter_v1beta2/representations.rb +52 -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: 76ac0c76b3d5960371fd319998b75b6f7dd26736e2c80f903ff8b7064cf6fc54
|
4
|
+
data.tar.gz: dcd7f0c2eb895ca230d35bf612a3517d34913eebd1de2f045148e5515d1859ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bb02b4b3925e6a1e84ecf9f9a404816b12b69f22b2f0cbe5ab62a42fd1d9e88db156fc56ee8d81e14bdb2cc12354704f3083cf5a775ef9909bbdb1a9f898061
|
7
|
+
data.tar.gz: 74b19783bbd02311c9dc69b64a4d088f360eaceb23bb31855baaa4b9ef0541ca5c8bc8cc59e136e5afcb08a5bfaeba9f177dddee497c22e3a549d38a2cb447e5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-securitycenter_v1beta2
|
2
2
|
|
3
|
+
### v0.21.0 (2022-04-19)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220414
|
6
|
+
|
7
|
+
### v0.20.0 (2022-04-05)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220401
|
10
|
+
|
11
|
+
### v0.19.0 (2022-03-22)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220318
|
14
|
+
|
3
15
|
### v0.18.0 (2022-03-15)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220310
|
@@ -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
|
@@ -402,6 +456,11 @@ module Google
|
|
402
456
|
# @return [String]
|
403
457
|
attr_accessor :finding_class
|
404
458
|
|
459
|
+
# Represents IAM bindings associated with the Finding.
|
460
|
+
# Corresponds to the JSON property `iamBindings`
|
461
|
+
# @return [Array<Google::Apis::SecuritycenterV1beta2::IamBinding>]
|
462
|
+
attr_accessor :iam_bindings
|
463
|
+
|
405
464
|
# Represents what's commonly known as an Indicator of compromise (IoC) in
|
406
465
|
# computer forensics. This is an artifact observed on a network or in an
|
407
466
|
# operating system that, with high confidence, indicates a computer intrusion.
|
@@ -416,9 +475,9 @@ module Google
|
|
416
475
|
# @return [Google::Apis::SecuritycenterV1beta2::MitreAttack]
|
417
476
|
attr_accessor :mitre_attack
|
418
477
|
|
419
|
-
# Indicates the mute state of a finding (either
|
420
|
-
#
|
421
|
-
#
|
478
|
+
# Indicates the mute state of a finding (either muted, unmuted or undefined).
|
479
|
+
# Unlike other attributes of a finding, a finding provider shouldn't set the
|
480
|
+
# value of mute.
|
422
481
|
# Corresponds to the JSON property `mute`
|
423
482
|
# @return [String]
|
424
483
|
attr_accessor :mute
|
@@ -443,6 +502,11 @@ module Google
|
|
443
502
|
# @return [String]
|
444
503
|
attr_accessor :name
|
445
504
|
|
505
|
+
# Next steps associate to the finding.
|
506
|
+
# Corresponds to the JSON property `nextSteps`
|
507
|
+
# @return [String]
|
508
|
+
attr_accessor :next_steps
|
509
|
+
|
446
510
|
# The relative resource name of the source the finding belongs to. See: https://
|
447
511
|
# cloud.google.com/apis/design/resource_names#relative_resource_name This field
|
448
512
|
# is immutable after creation time. For example: "organizations/`organization_id`
|
@@ -501,17 +565,21 @@ module Google
|
|
501
565
|
@access = args[:access] if args.key?(:access)
|
502
566
|
@canonical_name = args[:canonical_name] if args.key?(:canonical_name)
|
503
567
|
@category = args[:category] if args.key?(:category)
|
568
|
+
@connections = args[:connections] if args.key?(:connections)
|
504
569
|
@create_time = args[:create_time] if args.key?(:create_time)
|
570
|
+
@description = args[:description] if args.key?(:description)
|
505
571
|
@event_time = args[:event_time] if args.key?(:event_time)
|
506
572
|
@external_systems = args[:external_systems] if args.key?(:external_systems)
|
507
573
|
@external_uri = args[:external_uri] if args.key?(:external_uri)
|
508
574
|
@finding_class = args[:finding_class] if args.key?(:finding_class)
|
575
|
+
@iam_bindings = args[:iam_bindings] if args.key?(:iam_bindings)
|
509
576
|
@indicator = args[:indicator] if args.key?(:indicator)
|
510
577
|
@mitre_attack = args[:mitre_attack] if args.key?(:mitre_attack)
|
511
578
|
@mute = args[:mute] if args.key?(:mute)
|
512
579
|
@mute_initiator = args[:mute_initiator] if args.key?(:mute_initiator)
|
513
580
|
@mute_update_time = args[:mute_update_time] if args.key?(:mute_update_time)
|
514
581
|
@name = args[:name] if args.key?(:name)
|
582
|
+
@next_steps = args[:next_steps] if args.key?(:next_steps)
|
515
583
|
@parent = args[:parent] if args.key?(:parent)
|
516
584
|
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
517
585
|
@security_marks = args[:security_marks] if args.key?(:security_marks)
|
@@ -855,7 +923,7 @@ module Google
|
|
855
923
|
# @return [String]
|
856
924
|
attr_accessor :project
|
857
925
|
|
858
|
-
# The project
|
926
|
+
# The project ID that the resource belongs to.
|
859
927
|
# Corresponds to the JSON property `projectDisplayName`
|
860
928
|
# @return [String]
|
861
929
|
attr_accessor :project_display_name
|
@@ -1232,6 +1300,40 @@ module Google
|
|
1232
1300
|
end
|
1233
1301
|
end
|
1234
1302
|
|
1303
|
+
# Represents a particular IAM binding, which captures a member's role addition,
|
1304
|
+
# removal, or state.
|
1305
|
+
class IamBinding
|
1306
|
+
include Google::Apis::Core::Hashable
|
1307
|
+
|
1308
|
+
# The action that was performed on a Binding.
|
1309
|
+
# Corresponds to the JSON property `action`
|
1310
|
+
# @return [String]
|
1311
|
+
attr_accessor :action
|
1312
|
+
|
1313
|
+
# A single identity requesting access for a Cloud Platform resource, e.g. "foo@
|
1314
|
+
# google.com".
|
1315
|
+
# Corresponds to the JSON property `member`
|
1316
|
+
# @return [String]
|
1317
|
+
attr_accessor :member
|
1318
|
+
|
1319
|
+
# Role that is assigned to "members". For example, "roles/viewer", "roles/editor"
|
1320
|
+
# , or "roles/owner".
|
1321
|
+
# Corresponds to the JSON property `role`
|
1322
|
+
# @return [String]
|
1323
|
+
attr_accessor :role
|
1324
|
+
|
1325
|
+
def initialize(**args)
|
1326
|
+
update!(**args)
|
1327
|
+
end
|
1328
|
+
|
1329
|
+
# Update properties of this object
|
1330
|
+
def update!(**args)
|
1331
|
+
@action = args[:action] if args.key?(:action)
|
1332
|
+
@member = args[:member] if args.key?(:member)
|
1333
|
+
@role = args[:role] if args.key?(:role)
|
1334
|
+
end
|
1335
|
+
end
|
1336
|
+
|
1235
1337
|
# Represents what's commonly known as an Indicator of compromise (IoC) in
|
1236
1338
|
# computer forensics. This is an artifact observed on a network or in an
|
1237
1339
|
# operating system that, with high confidence, indicates a computer intrusion.
|
@@ -1310,6 +1412,34 @@ module Google
|
|
1310
1412
|
end
|
1311
1413
|
end
|
1312
1414
|
|
1415
|
+
# Resource capturing onboarding information for a given CRM resource.
|
1416
|
+
class OnboardingState
|
1417
|
+
include Google::Apis::Core::Hashable
|
1418
|
+
|
1419
|
+
# The resource name of the OnboardingState. Format: organizations/`organization`/
|
1420
|
+
# onboardingState Format: folders/`folder`/onboardingState Format: projects/`
|
1421
|
+
# project`/onboardingState
|
1422
|
+
# Corresponds to the JSON property `name`
|
1423
|
+
# @return [String]
|
1424
|
+
attr_accessor :name
|
1425
|
+
|
1426
|
+
# Describes the level a given organization, folder, or project is onboarded with
|
1427
|
+
# SCC. If the resource wasn't onboarded, NOT_FOUND would have been thrown.
|
1428
|
+
# Corresponds to the JSON property `onboardingLevel`
|
1429
|
+
# @return [String]
|
1430
|
+
attr_accessor :onboarding_level
|
1431
|
+
|
1432
|
+
def initialize(**args)
|
1433
|
+
update!(**args)
|
1434
|
+
end
|
1435
|
+
|
1436
|
+
# Update properties of this object
|
1437
|
+
def update!(**args)
|
1438
|
+
@name = args[:name] if args.key?(:name)
|
1439
|
+
@onboarding_level = args[:onboarding_level] if args.key?(:onboarding_level)
|
1440
|
+
end
|
1441
|
+
end
|
1442
|
+
|
1313
1443
|
# Additional Links
|
1314
1444
|
class Reference
|
1315
1445
|
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.21.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 = "20220414"
|
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
|
|
@@ -166,6 +172,12 @@ module Google
|
|
166
172
|
include Google::Apis::Core::JsonObjectSupport
|
167
173
|
end
|
168
174
|
|
175
|
+
class IamBinding
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
169
181
|
class Indicator
|
170
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
183
|
|
@@ -178,6 +190,12 @@ module Google
|
|
178
190
|
include Google::Apis::Core::JsonObjectSupport
|
179
191
|
end
|
180
192
|
|
193
|
+
class OnboardingState
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
181
199
|
class Reference
|
182
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
201
|
|
@@ -247,6 +265,17 @@ module Google
|
|
247
265
|
end
|
248
266
|
end
|
249
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
|
+
|
250
279
|
class ContainerThreatDetectionSettings
|
251
280
|
# @private
|
252
281
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -313,12 +342,17 @@ module Google
|
|
313
342
|
|
314
343
|
property :canonical_name, as: 'canonicalName'
|
315
344
|
property :category, as: 'category'
|
345
|
+
collection :connections, as: 'connections', class: Google::Apis::SecuritycenterV1beta2::Connection, decorator: Google::Apis::SecuritycenterV1beta2::Connection::Representation
|
346
|
+
|
316
347
|
property :create_time, as: 'createTime'
|
348
|
+
property :description, as: 'description'
|
317
349
|
property :event_time, as: 'eventTime'
|
318
350
|
hash :external_systems, as: 'externalSystems', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ExternalSystem, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ExternalSystem::Representation
|
319
351
|
|
320
352
|
property :external_uri, as: 'externalUri'
|
321
353
|
property :finding_class, as: 'findingClass'
|
354
|
+
collection :iam_bindings, as: 'iamBindings', class: Google::Apis::SecuritycenterV1beta2::IamBinding, decorator: Google::Apis::SecuritycenterV1beta2::IamBinding::Representation
|
355
|
+
|
322
356
|
property :indicator, as: 'indicator', class: Google::Apis::SecuritycenterV1beta2::Indicator, decorator: Google::Apis::SecuritycenterV1beta2::Indicator::Representation
|
323
357
|
|
324
358
|
property :mitre_attack, as: 'mitreAttack', class: Google::Apis::SecuritycenterV1beta2::MitreAttack, decorator: Google::Apis::SecuritycenterV1beta2::MitreAttack::Representation
|
@@ -327,6 +361,7 @@ module Google
|
|
327
361
|
property :mute_initiator, as: 'muteInitiator'
|
328
362
|
property :mute_update_time, as: 'muteUpdateTime'
|
329
363
|
property :name, as: 'name'
|
364
|
+
property :next_steps, as: 'nextSteps'
|
330
365
|
property :parent, as: 'parent'
|
331
366
|
property :resource_name, as: 'resourceName'
|
332
367
|
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta2::SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta2::SecurityMarks::Representation
|
@@ -508,6 +543,15 @@ module Google
|
|
508
543
|
end
|
509
544
|
end
|
510
545
|
|
546
|
+
class IamBinding
|
547
|
+
# @private
|
548
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
549
|
+
property :action, as: 'action'
|
550
|
+
property :member, as: 'member'
|
551
|
+
property :role, as: 'role'
|
552
|
+
end
|
553
|
+
end
|
554
|
+
|
511
555
|
class Indicator
|
512
556
|
# @private
|
513
557
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -527,6 +571,14 @@ module Google
|
|
527
571
|
end
|
528
572
|
end
|
529
573
|
|
574
|
+
class OnboardingState
|
575
|
+
# @private
|
576
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
577
|
+
property :name, as: 'name'
|
578
|
+
property :onboarding_level, as: 'onboardingLevel'
|
579
|
+
end
|
580
|
+
end
|
581
|
+
|
530
582
|
class Reference
|
531
583
|
# @private
|
532
584
|
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.21.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-25 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.21.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: []
|