google-apis-securitycenter_v1beta2 0.19.0 → 0.22.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bde5f2b838d8119b9849d19abdb330e3241e46749487db96e356b38764ebe941
4
- data.tar.gz: aa0382e00ea0e4b8d23a3cc25c2aeefa52f570fb2e1e706df1e21f9f1b50edee
3
+ metadata.gz: 77e2e6ed6d00ae977de5f492c7df0ce616714be8d814a50a9f8d84637a0b945a
4
+ data.tar.gz: '0846f43b7cc25a4b47236e6c6f602f012c95f68fbe899ea21ba2e7f7e682ecd3'
5
5
  SHA512:
6
- metadata.gz: c8dfa466fe683380cb356f64dbea1f92e5a680b53777d866a2f7ed97905e77bfd30717e819ca09937c4fc42cdb69e26a16813b676c6b29f4e30d201c9b3d085a
7
- data.tar.gz: 0e3cffe51da2498ebeb20b74d61331d02da1a96e19edbef6cb65553be9801248b7239727f279ad3528dd8c6107b2af3817fe2c7df9384f7211bc1d94088557d8
6
+ metadata.gz: 68d3fe432223921319f437728f608854484e285243b0213203fc53ee9995f4155162ee0cb3711ba2788adf065284837b461b3897682d79ae481d2e539d28eb79
7
+ data.tar.gz: 497636ea7d63117fa96d8d81eb1fc1b5512c89e2a3841dda42b4e1f92b930d57a51c9e9141f64d4645a059ff275565158dac27d04195fca232c5ee144d884766
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-securitycenter_v1beta2
2
2
 
3
+ ### v0.22.0 (2022-05-10)
4
+
5
+ * Regenerated from discovery document revision 20220506
6
+
7
+ ### v0.21.0 (2022-04-19)
8
+
9
+ * Regenerated from discovery document revision 20220414
10
+
11
+ ### v0.20.0 (2022-04-05)
12
+
13
+ * Regenerated from discovery document revision 20220401
14
+
3
15
  ### v0.19.0 (2022-03-22)
4
16
 
5
17
  * Regenerated from discovery document revision 20220318
@@ -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.
@@ -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)
@@ -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
@@ -1350,7 +1480,8 @@ module Google
1350
1480
  attr_accessor :log_sink_project
1351
1481
 
1352
1482
  # The resource name of the SecurityCenterSettings. Format: organizations/`
1353
- # organization`/securityCenterSettings
1483
+ # organization`/securityCenterSettings Format: folders/`folder`/
1484
+ # securityCenterSettings Format: projects/`project`/securityCenterSettings
1354
1485
  # Corresponds to the JSON property `name`
1355
1486
  # @return [String]
1356
1487
  attr_accessor :name
@@ -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.0"
19
+ GEM_VERSION = "0.22.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 = "20220318"
25
+ REVISION = "20220506"
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,70 @@ 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
+
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
+
119
183
  # Get the SecurityHealthAnalyticsSettings resource.
120
184
  # @param [String] name
121
185
  # Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats:
@@ -643,10 +707,43 @@ module Google
643
707
  execute_or_queue_command(command, &block)
644
708
  end
645
709
 
710
+ # Retrieve the OnboardingState of a resource.
711
+ # @param [String] name
712
+ # Required. The name of the OnboardingState to retrieve. Formats: *
713
+ # organizations/`organization`/onboardingState * folders/`folder`/
714
+ # onboardingState * projects/`project`/onboardingState
715
+ # @param [String] fields
716
+ # Selector specifying which fields to include in a partial response.
717
+ # @param [String] quota_user
718
+ # Available to use for quota purposes for server-side applications. Can be any
719
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
720
+ # @param [Google::Apis::RequestOptions] options
721
+ # Request-specific options
722
+ #
723
+ # @yield [result, err] Result & error if block supplied
724
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta2::OnboardingState] parsed result object
725
+ # @yieldparam err [StandardError] error object if request failed
726
+ #
727
+ # @return [Google::Apis::SecuritycenterV1beta2::OnboardingState]
728
+ #
729
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
730
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
731
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
732
+ def get_organization_onboarding_state(name, fields: nil, quota_user: nil, options: nil, &block)
733
+ command = make_simple_command(:get, 'v1beta2/{+name}', options)
734
+ command.response_representation = Google::Apis::SecuritycenterV1beta2::OnboardingState::Representation
735
+ command.response_class = Google::Apis::SecuritycenterV1beta2::OnboardingState
736
+ command.params['name'] = name unless name.nil?
737
+ command.query['fields'] = fields unless fields.nil?
738
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
739
+ execute_or_queue_command(command, &block)
740
+ end
741
+
646
742
  # Get the SecurityCenterSettings resource.
647
743
  # @param [String] name
648
744
  # Required. The name of the SecurityCenterSettings to retrieve. Format:
649
- # organizations/`organization`/securityCenterSettings
745
+ # organizations/`organization`/securityCenterSettings Format: folders/`folder`/
746
+ # securityCenterSettings Format: projects/`project`/securityCenterSettings
650
747
  # @param [String] fields
651
748
  # Selector specifying which fields to include in a partial response.
652
749
  # @param [String] quota_user
@@ -1232,6 +1329,70 @@ module Google
1232
1329
  execute_or_queue_command(command, &block)
1233
1330
  end
1234
1331
 
1332
+ # Retrieve the OnboardingState of a resource.
1333
+ # @param [String] name
1334
+ # Required. The name of the OnboardingState to retrieve. Formats: *
1335
+ # organizations/`organization`/onboardingState * folders/`folder`/
1336
+ # onboardingState * projects/`project`/onboardingState
1337
+ # @param [String] fields
1338
+ # Selector specifying which fields to include in a partial response.
1339
+ # @param [String] quota_user
1340
+ # Available to use for quota purposes for server-side applications. Can be any
1341
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1342
+ # @param [Google::Apis::RequestOptions] options
1343
+ # Request-specific options
1344
+ #
1345
+ # @yield [result, err] Result & error if block supplied
1346
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta2::OnboardingState] parsed result object
1347
+ # @yieldparam err [StandardError] error object if request failed
1348
+ #
1349
+ # @return [Google::Apis::SecuritycenterV1beta2::OnboardingState]
1350
+ #
1351
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1352
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1353
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1354
+ def get_project_onboarding_state(name, fields: nil, quota_user: nil, options: nil, &block)
1355
+ command = make_simple_command(:get, 'v1beta2/{+name}', options)
1356
+ command.response_representation = Google::Apis::SecuritycenterV1beta2::OnboardingState::Representation
1357
+ command.response_class = Google::Apis::SecuritycenterV1beta2::OnboardingState
1358
+ command.params['name'] = name unless name.nil?
1359
+ command.query['fields'] = fields unless fields.nil?
1360
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1361
+ execute_or_queue_command(command, &block)
1362
+ end
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
+
1235
1396
  # Get the SecurityHealthAnalyticsSettings resource.
1236
1397
  # @param [String] name
1237
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.19.0
4
+ version: 0.22.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-03-28 00:00:00.000000000 Z
11
+ date: 2022-05-16 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.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.22.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: []