google-cloud-security_center-v1p1beta1 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +1 -1
  4. data/lib/google/cloud/security_center/v1p1beta1.rb +1 -1
  5. data/lib/google/cloud/security_center/v1p1beta1/security_center.rb +1 -1
  6. data/lib/google/cloud/security_center/v1p1beta1/security_center/client.rb +462 -462
  7. data/lib/google/cloud/security_center/v1p1beta1/security_center/credentials.rb +1 -1
  8. data/lib/google/cloud/security_center/v1p1beta1/security_center/operations.rb +100 -100
  9. data/lib/google/cloud/security_center/v1p1beta1/security_center/paths.rb +16 -16
  10. data/lib/google/cloud/security_center/v1p1beta1/version.rb +1 -1
  11. data/proto_docs/google/api/resource.rb +12 -12
  12. data/proto_docs/google/cloud/securitycenter/v1p1beta1/asset.rb +26 -26
  13. data/proto_docs/google/cloud/securitycenter/v1p1beta1/finding.rb +16 -16
  14. data/proto_docs/google/cloud/securitycenter/v1p1beta1/notification_config.rb +11 -11
  15. data/proto_docs/google/cloud/securitycenter/v1p1beta1/notification_message.rb +4 -4
  16. data/proto_docs/google/cloud/securitycenter/v1p1beta1/organization_settings.rb +9 -9
  17. data/proto_docs/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.rb +4 -4
  18. data/proto_docs/google/cloud/securitycenter/v1p1beta1/security_marks.rb +8 -8
  19. data/proto_docs/google/cloud/securitycenter/v1p1beta1/securitycenter_service.rb +163 -163
  20. data/proto_docs/google/cloud/securitycenter/v1p1beta1/source.rb +5 -5
  21. data/proto_docs/google/iam/v1/iam_policy.rb +15 -15
  22. data/proto_docs/google/iam/v1/options.rb +3 -3
  23. data/proto_docs/google/iam/v1/policy.rb +26 -26
  24. data/proto_docs/google/longrunning/operations.rb +30 -30
  25. data/proto_docs/google/protobuf/any.rb +4 -4
  26. data/proto_docs/google/protobuf/duration.rb +4 -4
  27. data/proto_docs/google/protobuf/empty.rb +2 -2
  28. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  29. data/proto_docs/google/protobuf/struct.rb +18 -18
  30. data/proto_docs/google/protobuf/timestamp.rb +4 -4
  31. data/proto_docs/google/rpc/status.rb +6 -6
  32. data/proto_docs/google/type/expr.rb +6 -6
  33. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2041d8d626adf734ac61dbcc9e2001b6607cfa0541dadc394c84005a7cc8710
4
- data.tar.gz: 69fb42cbd3b432d36340e8f08b917a7c5987021848a335d1fac2a610933e1a43
3
+ metadata.gz: 4f6eea35e9e59564148ef0f49aaaa1c560930d8897daca1b012226a543a99ae4
4
+ data.tar.gz: a82bdf3bfcdb59cd1cb0663d8c0650369e818315d8c9d6974ea9804362eac943
5
5
  SHA512:
6
- metadata.gz: edabc333554658baad787778fe16663463dc4ace45585268003d03c808df3c2cd9c98336384060f14bae8c1a3239382dee8e31ec2d1972d399cb7b1650409a44
7
- data.tar.gz: 31bbc03b62aadaa65bb9517d0ba15da723ed24e91f43325ff0d92e85ea8bd444a461277db11bec30247fe97208e942df67a30573e0039813696eb03a8979db2d
6
+ metadata.gz: c440f25fed955371da5e93c7874d642036dff625a2d23c8e31a67fc378d38d15cdd6503d3e69b55ad77419a8ce712942272baa23e8da0b4bcff154c716f8a732
7
+ data.tar.gz: e2a06def055952f6e82ceed0e07eb7fbfe904a3342054b5db8f29249fc8c55eb267961d2eefc191029ba4a090dbfe3a89291603939b5be9ac1303477d9dd8ec0
data/AUTHENTICATION.md CHANGED
@@ -27,7 +27,7 @@ export SECURITY_CENTER_CREDENTIALS=path/to/keyfile.json
27
27
  ```ruby
28
28
  require "google/cloud/security_center/v1p1beta1"
29
29
 
30
- client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
30
+ client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
31
31
  ```
32
32
 
33
33
  ## Credential Lookup
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
64
64
 
65
65
  The environment variables that google-cloud-security_center-v1p1beta1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
- {Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Credentials}):
67
+ {::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Credentials}):
68
68
 
69
69
  1. `SECURITY_CENTER_CREDENTIALS` - Path to JSON file, or JSON contents
70
70
  2. `SECURITY_CENTER_KEYFILE` - Path to JSON file, or JSON contents
@@ -77,7 +77,7 @@ require "google/cloud/security_center/v1p1beta1"
77
77
 
78
78
  ENV["SECURITY_CENTER_CREDENTIALS"] = "path/to/keyfile.json"
79
79
 
80
- client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
80
+ client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
81
81
  ```
82
82
 
83
83
  ### Configuration
@@ -88,7 +88,7 @@ environment variables. Either on an individual client initialization:
88
88
  ```ruby
89
89
  require "google/cloud/security_center/v1p1beta1"
90
90
 
91
- client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new do |config|
91
+ client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new do |config|
92
92
  config.credentials = "path/to/keyfile.json"
93
93
  end
94
94
  ```
@@ -98,11 +98,11 @@ Or configured globally for all clients:
98
98
  ```ruby
99
99
  require "google/cloud/security_center/v1p1beta1"
100
100
 
101
- Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.configure do |config|
101
+ ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.configure do |config|
102
102
  config.credentials = "path/to/keyfile.json"
103
103
  end
104
104
 
105
- client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
105
+ client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
106
106
  ```
107
107
 
108
108
  ### Cloud SDK
data/README.md CHANGED
@@ -25,7 +25,7 @@ In order to use this library, you first need to go through the following steps:
25
25
  ```ruby
26
26
  require "google/cloud/security_center/v1p1beta1"
27
27
 
28
- client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
28
+ client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
29
29
  request = my_create_request
30
30
  response = client.create_source request
31
31
  ```
@@ -26,7 +26,7 @@ module Google
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
28
  # require "google/cloud/security_center/v1p1beta1"
29
- # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
29
+ # client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
30
30
  #
31
31
  module V1p1beta1
32
32
  end
@@ -37,7 +37,7 @@ module Google
37
37
  # To load this service and instantiate a client:
38
38
  #
39
39
  # require "google/cloud/security_center/v1p1beta1/security_center"
40
- # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
40
+ # client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
41
41
  #
42
42
  module SecurityCenter
43
43
  end
@@ -38,15 +38,15 @@ module Google
38
38
  ##
39
39
  # Configure the SecurityCenter Client class.
40
40
  #
41
- # See {Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client::Configuration}
41
+ # See {::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
44
  # ## Example
45
45
  #
46
46
  # To modify the configuration for all SecurityCenter clients:
47
47
  #
48
- # Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.configure do |config|
49
- # config.timeout = 10_000
48
+ # ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.configure do |config|
49
+ # config.timeout = 10.0
50
50
  # end
51
51
  #
52
52
  # @yield [config] Configure the Client client.
@@ -190,7 +190,7 @@ module Google
190
190
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
191
191
  # should be made on {Client.configure}.
192
192
  #
193
- # See {Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client::Configuration}
193
+ # See {::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client::Configuration}
194
194
  # for a description of the configuration fields.
195
195
  #
196
196
  # @yield [config] Configure the Client client.
@@ -211,13 +211,13 @@ module Google
211
211
  # To create a new SecurityCenter client with the default
212
212
  # configuration:
213
213
  #
214
- # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
214
+ # client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
215
215
  #
216
216
  # To create a new SecurityCenter client with a custom
217
217
  # configuration:
218
218
  #
219
- # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new do |config|
220
- # config.timeout = 10_000
219
+ # client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new do |config|
220
+ # config.timeout = 10.0
221
221
  # end
222
222
  #
223
223
  # @yield [config] Configure the SecurityCenter client.
@@ -249,8 +249,8 @@ module Google
249
249
  config.endpoint = @config.endpoint
250
250
  end
251
251
 
252
- @security_center_stub = Gapic::ServiceStub.new(
253
- Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Stub,
252
+ @security_center_stub = ::Gapic::ServiceStub.new(
253
+ ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Stub,
254
254
  credentials: credentials,
255
255
  endpoint: @config.endpoint,
256
256
  channel_args: @config.channel_args,
@@ -261,7 +261,7 @@ module Google
261
261
  ##
262
262
  # Get the associated client for long-running operations.
263
263
  #
264
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Operations]
264
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Operations]
265
265
  #
266
266
  attr_reader :operations_client
267
267
 
@@ -272,12 +272,12 @@ module Google
272
272
  #
273
273
  # @overload create_source(request, options = nil)
274
274
  # Pass arguments to `create_source` via a request object, either of type
275
- # {Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest} or an equivalent Hash.
275
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest} or an equivalent Hash.
276
276
  #
277
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest, Hash]
277
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest, ::Hash]
278
278
  # A request object representing the call parameters. Required. To specify no
279
279
  # parameters, or to keep all the default parameter values, pass an empty Hash.
280
- # @param options [Gapic::CallOptions, Hash]
280
+ # @param options [::Gapic::CallOptions, ::Hash]
281
281
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
282
282
  #
283
283
  # @overload create_source(parent: nil, source: nil)
@@ -285,34 +285,34 @@ module Google
285
285
  # least one keyword argument is required. To specify no parameters, or to keep all
286
286
  # the default parameter values, pass an empty Hash as a request object (see above).
287
287
  #
288
- # @param parent [String]
288
+ # @param parent [::String]
289
289
  # Required. Resource name of the new source's parent. Its format should be
290
290
  # "organizations/[organization_id]".
291
- # @param source [Google::Cloud::SecurityCenter::V1p1beta1::Source, Hash]
291
+ # @param source [::Google::Cloud::SecurityCenter::V1p1beta1::Source, ::Hash]
292
292
  # Required. The Source being created, only the display_name and description
293
293
  # will be used. All other fields will be ignored.
294
294
  #
295
295
  # @yield [response, operation] Access the result along with the RPC operation
296
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::Source]
297
- # @yieldparam operation [GRPC::ActiveCall::Operation]
296
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
297
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
298
298
  #
299
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::Source]
299
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
300
300
  #
301
- # @raise [Google::Cloud::Error] if the RPC is aborted.
301
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
302
302
  #
303
303
  def create_source request, options = nil
304
- raise ArgumentError, "request must be provided" if request.nil?
304
+ raise ::ArgumentError, "request must be provided" if request.nil?
305
305
 
306
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest
306
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest
307
307
 
308
308
  # Converts hash and nil to an options object
309
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
309
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
310
310
 
311
311
  # Customize the options with defaults
312
312
  metadata = @config.rpcs.create_source.metadata.to_h
313
313
 
314
314
  # Set x-goog-api-client and x-goog-user-project headers
315
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
315
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
316
316
  lib_name: @config.lib_name, lib_version: @config.lib_version,
317
317
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
318
318
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -333,8 +333,8 @@ module Google
333
333
  yield response, operation if block_given?
334
334
  return response
335
335
  end
336
- rescue GRPC::BadStatus => e
337
- raise Google::Cloud::Error.from_error(e)
336
+ rescue ::GRPC::BadStatus => e
337
+ raise ::Google::Cloud::Error.from_error(e)
338
338
  end
339
339
 
340
340
  ##
@@ -343,12 +343,12 @@ module Google
343
343
  #
344
344
  # @overload create_finding(request, options = nil)
345
345
  # Pass arguments to `create_finding` via a request object, either of type
346
- # {Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest} or an equivalent Hash.
346
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest} or an equivalent Hash.
347
347
  #
348
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest, Hash]
348
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest, ::Hash]
349
349
  # A request object representing the call parameters. Required. To specify no
350
350
  # parameters, or to keep all the default parameter values, pass an empty Hash.
351
- # @param options [Gapic::CallOptions, Hash]
351
+ # @param options [::Gapic::CallOptions, ::Hash]
352
352
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
353
353
  #
354
354
  # @overload create_finding(parent: nil, finding_id: nil, finding: nil)
@@ -356,38 +356,38 @@ module Google
356
356
  # least one keyword argument is required. To specify no parameters, or to keep all
357
357
  # the default parameter values, pass an empty Hash as a request object (see above).
358
358
  #
359
- # @param parent [String]
359
+ # @param parent [::String]
360
360
  # Required. Resource name of the new finding's parent. Its format should be
361
361
  # "organizations/[organization_id]/sources/[source_id]".
362
- # @param finding_id [String]
362
+ # @param finding_id [::String]
363
363
  # Required. Unique identifier provided by the client within the parent scope.
364
364
  # It must be alphanumeric and less than or equal to 32 characters and
365
365
  # greater than 0 characters in length.
366
- # @param finding [Google::Cloud::SecurityCenter::V1p1beta1::Finding, Hash]
366
+ # @param finding [::Google::Cloud::SecurityCenter::V1p1beta1::Finding, ::Hash]
367
367
  # Required. The Finding being created. The name and security_marks will be
368
368
  # ignored as they are both output only fields on this resource.
369
369
  #
370
370
  # @yield [response, operation] Access the result along with the RPC operation
371
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::Finding]
372
- # @yieldparam operation [GRPC::ActiveCall::Operation]
371
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
372
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
373
373
  #
374
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::Finding]
374
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
375
375
  #
376
- # @raise [Google::Cloud::Error] if the RPC is aborted.
376
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
377
377
  #
378
378
  def create_finding request, options = nil
379
- raise ArgumentError, "request must be provided" if request.nil?
379
+ raise ::ArgumentError, "request must be provided" if request.nil?
380
380
 
381
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest
381
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest
382
382
 
383
383
  # Converts hash and nil to an options object
384
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
384
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
385
385
 
386
386
  # Customize the options with defaults
387
387
  metadata = @config.rpcs.create_finding.metadata.to_h
388
388
 
389
389
  # Set x-goog-api-client and x-goog-user-project headers
390
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
390
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
391
391
  lib_name: @config.lib_name, lib_version: @config.lib_version,
392
392
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
393
393
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -408,8 +408,8 @@ module Google
408
408
  yield response, operation if block_given?
409
409
  return response
410
410
  end
411
- rescue GRPC::BadStatus => e
412
- raise Google::Cloud::Error.from_error(e)
411
+ rescue ::GRPC::BadStatus => e
412
+ raise ::Google::Cloud::Error.from_error(e)
413
413
  end
414
414
 
415
415
  ##
@@ -417,12 +417,12 @@ module Google
417
417
  #
418
418
  # @overload create_notification_config(request, options = nil)
419
419
  # Pass arguments to `create_notification_config` via a request object, either of type
420
- # {Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest} or an equivalent Hash.
420
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest} or an equivalent Hash.
421
421
  #
422
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest, Hash]
422
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest, ::Hash]
423
423
  # A request object representing the call parameters. Required. To specify no
424
424
  # parameters, or to keep all the default parameter values, pass an empty Hash.
425
- # @param options [Gapic::CallOptions, Hash]
425
+ # @param options [::Gapic::CallOptions, ::Hash]
426
426
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
427
427
  #
428
428
  # @overload create_notification_config(parent: nil, config_id: nil, notification_config: nil)
@@ -430,40 +430,40 @@ module Google
430
430
  # least one keyword argument is required. To specify no parameters, or to keep all
431
431
  # the default parameter values, pass an empty Hash as a request object (see above).
432
432
  #
433
- # @param parent [String]
433
+ # @param parent [::String]
434
434
  # Required. Resource name of the new notification config's parent. Its format
435
435
  # is "organizations/[organization_id]".
436
- # @param config_id [String]
436
+ # @param config_id [::String]
437
437
  # Required.
438
438
  # Unique identifier provided by the client within the parent scope.
439
439
  # It must be between 1 and 128 characters, and contains alphanumeric
440
440
  # characters, underscores or hyphens only.
441
- # @param notification_config [Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig, Hash]
441
+ # @param notification_config [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig, ::Hash]
442
442
  # Required. The notification config being created. The name and the service
443
443
  # account will be ignored as they are both output only fields on this
444
444
  # resource.
445
445
  #
446
446
  # @yield [response, operation] Access the result along with the RPC operation
447
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
448
- # @yieldparam operation [GRPC::ActiveCall::Operation]
447
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
448
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
449
449
  #
450
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
450
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
451
451
  #
452
- # @raise [Google::Cloud::Error] if the RPC is aborted.
452
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
453
453
  #
454
454
  def create_notification_config request, options = nil
455
- raise ArgumentError, "request must be provided" if request.nil?
455
+ raise ::ArgumentError, "request must be provided" if request.nil?
456
456
 
457
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest
457
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest
458
458
 
459
459
  # Converts hash and nil to an options object
460
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
460
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
461
461
 
462
462
  # Customize the options with defaults
463
463
  metadata = @config.rpcs.create_notification_config.metadata.to_h
464
464
 
465
465
  # Set x-goog-api-client and x-goog-user-project headers
466
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
466
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
467
467
  lib_name: @config.lib_name, lib_version: @config.lib_version,
468
468
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
469
469
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -484,8 +484,8 @@ module Google
484
484
  yield response, operation if block_given?
485
485
  return response
486
486
  end
487
- rescue GRPC::BadStatus => e
488
- raise Google::Cloud::Error.from_error(e)
487
+ rescue ::GRPC::BadStatus => e
488
+ raise ::Google::Cloud::Error.from_error(e)
489
489
  end
490
490
 
491
491
  ##
@@ -493,12 +493,12 @@ module Google
493
493
  #
494
494
  # @overload delete_notification_config(request, options = nil)
495
495
  # Pass arguments to `delete_notification_config` via a request object, either of type
496
- # {Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest} or an equivalent Hash.
496
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest} or an equivalent Hash.
497
497
  #
498
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest, Hash]
498
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest, ::Hash]
499
499
  # A request object representing the call parameters. Required. To specify no
500
500
  # parameters, or to keep all the default parameter values, pass an empty Hash.
501
- # @param options [Gapic::CallOptions, Hash]
501
+ # @param options [::Gapic::CallOptions, ::Hash]
502
502
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
503
503
  #
504
504
  # @overload delete_notification_config(name: nil)
@@ -506,31 +506,31 @@ module Google
506
506
  # least one keyword argument is required. To specify no parameters, or to keep all
507
507
  # the default parameter values, pass an empty Hash as a request object (see above).
508
508
  #
509
- # @param name [String]
509
+ # @param name [::String]
510
510
  # Required. Name of the notification config to delete. Its format is
511
511
  # "organizations/[organization_id]/notificationConfigs/[config_id]".
512
512
  #
513
513
  # @yield [response, operation] Access the result along with the RPC operation
514
- # @yieldparam response [Google::Protobuf::Empty]
515
- # @yieldparam operation [GRPC::ActiveCall::Operation]
514
+ # @yieldparam response [::Google::Protobuf::Empty]
515
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
516
516
  #
517
- # @return [Google::Protobuf::Empty]
517
+ # @return [::Google::Protobuf::Empty]
518
518
  #
519
- # @raise [Google::Cloud::Error] if the RPC is aborted.
519
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
520
520
  #
521
521
  def delete_notification_config request, options = nil
522
- raise ArgumentError, "request must be provided" if request.nil?
522
+ raise ::ArgumentError, "request must be provided" if request.nil?
523
523
 
524
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest
524
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest
525
525
 
526
526
  # Converts hash and nil to an options object
527
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
527
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
528
528
 
529
529
  # Customize the options with defaults
530
530
  metadata = @config.rpcs.delete_notification_config.metadata.to_h
531
531
 
532
532
  # Set x-goog-api-client and x-goog-user-project headers
533
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
533
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
534
534
  lib_name: @config.lib_name, lib_version: @config.lib_version,
535
535
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
536
536
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -551,8 +551,8 @@ module Google
551
551
  yield response, operation if block_given?
552
552
  return response
553
553
  end
554
- rescue GRPC::BadStatus => e
555
- raise Google::Cloud::Error.from_error(e)
554
+ rescue ::GRPC::BadStatus => e
555
+ raise ::Google::Cloud::Error.from_error(e)
556
556
  end
557
557
 
558
558
  ##
@@ -560,12 +560,12 @@ module Google
560
560
  #
561
561
  # @overload get_iam_policy(request, options = nil)
562
562
  # Pass arguments to `get_iam_policy` via a request object, either of type
563
- # {Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
563
+ # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
564
564
  #
565
- # @param request [Google::Iam::V1::GetIamPolicyRequest, Hash]
565
+ # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
566
566
  # A request object representing the call parameters. Required. To specify no
567
567
  # parameters, or to keep all the default parameter values, pass an empty Hash.
568
- # @param options [Gapic::CallOptions, Hash]
568
+ # @param options [::Gapic::CallOptions, ::Hash]
569
569
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
570
570
  #
571
571
  # @overload get_iam_policy(resource: nil, options: nil)
@@ -573,34 +573,34 @@ module Google
573
573
  # least one keyword argument is required. To specify no parameters, or to keep all
574
574
  # the default parameter values, pass an empty Hash as a request object (see above).
575
575
  #
576
- # @param resource [String]
576
+ # @param resource [::String]
577
577
  # REQUIRED: The resource for which the policy is being requested.
578
578
  # See the operation documentation for the appropriate value for this field.
579
- # @param options [Google::Iam::V1::GetPolicyOptions, Hash]
579
+ # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
580
580
  # OPTIONAL: A `GetPolicyOptions` object for specifying options to
581
581
  # `GetIamPolicy`. This field is only used by Cloud IAM.
582
582
  #
583
583
  # @yield [response, operation] Access the result along with the RPC operation
584
- # @yieldparam response [Google::Iam::V1::Policy]
585
- # @yieldparam operation [GRPC::ActiveCall::Operation]
584
+ # @yieldparam response [::Google::Iam::V1::Policy]
585
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
586
586
  #
587
- # @return [Google::Iam::V1::Policy]
587
+ # @return [::Google::Iam::V1::Policy]
588
588
  #
589
- # @raise [Google::Cloud::Error] if the RPC is aborted.
589
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
590
590
  #
591
591
  def get_iam_policy request, options = nil
592
- raise ArgumentError, "request must be provided" if request.nil?
592
+ raise ::ArgumentError, "request must be provided" if request.nil?
593
593
 
594
- request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::GetIamPolicyRequest
594
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
595
595
 
596
596
  # Converts hash and nil to an options object
597
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
597
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
598
598
 
599
599
  # Customize the options with defaults
600
600
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
601
601
 
602
602
  # Set x-goog-api-client and x-goog-user-project headers
603
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
603
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
604
604
  lib_name: @config.lib_name, lib_version: @config.lib_version,
605
605
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
606
606
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -621,8 +621,8 @@ module Google
621
621
  yield response, operation if block_given?
622
622
  return response
623
623
  end
624
- rescue GRPC::BadStatus => e
625
- raise Google::Cloud::Error.from_error(e)
624
+ rescue ::GRPC::BadStatus => e
625
+ raise ::Google::Cloud::Error.from_error(e)
626
626
  end
627
627
 
628
628
  ##
@@ -630,12 +630,12 @@ module Google
630
630
  #
631
631
  # @overload get_notification_config(request, options = nil)
632
632
  # Pass arguments to `get_notification_config` via a request object, either of type
633
- # {Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest} or an equivalent Hash.
633
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest} or an equivalent Hash.
634
634
  #
635
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest, Hash]
635
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest, ::Hash]
636
636
  # A request object representing the call parameters. Required. To specify no
637
637
  # parameters, or to keep all the default parameter values, pass an empty Hash.
638
- # @param options [Gapic::CallOptions, Hash]
638
+ # @param options [::Gapic::CallOptions, ::Hash]
639
639
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
640
640
  #
641
641
  # @overload get_notification_config(name: nil)
@@ -643,31 +643,31 @@ module Google
643
643
  # least one keyword argument is required. To specify no parameters, or to keep all
644
644
  # the default parameter values, pass an empty Hash as a request object (see above).
645
645
  #
646
- # @param name [String]
646
+ # @param name [::String]
647
647
  # Required. Name of the notification config to get. Its format is
648
648
  # "organizations/[organization_id]/notificationConfigs/[config_id]".
649
649
  #
650
650
  # @yield [response, operation] Access the result along with the RPC operation
651
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
652
- # @yieldparam operation [GRPC::ActiveCall::Operation]
651
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
652
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
653
653
  #
654
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
654
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
655
655
  #
656
- # @raise [Google::Cloud::Error] if the RPC is aborted.
656
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
657
657
  #
658
658
  def get_notification_config request, options = nil
659
- raise ArgumentError, "request must be provided" if request.nil?
659
+ raise ::ArgumentError, "request must be provided" if request.nil?
660
660
 
661
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest
661
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest
662
662
 
663
663
  # Converts hash and nil to an options object
664
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
664
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
665
665
 
666
666
  # Customize the options with defaults
667
667
  metadata = @config.rpcs.get_notification_config.metadata.to_h
668
668
 
669
669
  # Set x-goog-api-client and x-goog-user-project headers
670
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
670
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
671
671
  lib_name: @config.lib_name, lib_version: @config.lib_version,
672
672
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
673
673
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -688,8 +688,8 @@ module Google
688
688
  yield response, operation if block_given?
689
689
  return response
690
690
  end
691
- rescue GRPC::BadStatus => e
692
- raise Google::Cloud::Error.from_error(e)
691
+ rescue ::GRPC::BadStatus => e
692
+ raise ::Google::Cloud::Error.from_error(e)
693
693
  end
694
694
 
695
695
  ##
@@ -697,12 +697,12 @@ module Google
697
697
  #
698
698
  # @overload get_organization_settings(request, options = nil)
699
699
  # Pass arguments to `get_organization_settings` via a request object, either of type
700
- # {Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest} or an equivalent Hash.
700
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest} or an equivalent Hash.
701
701
  #
702
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest, Hash]
702
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest, ::Hash]
703
703
  # A request object representing the call parameters. Required. To specify no
704
704
  # parameters, or to keep all the default parameter values, pass an empty Hash.
705
- # @param options [Gapic::CallOptions, Hash]
705
+ # @param options [::Gapic::CallOptions, ::Hash]
706
706
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
707
707
  #
708
708
  # @overload get_organization_settings(name: nil)
@@ -710,31 +710,31 @@ module Google
710
710
  # least one keyword argument is required. To specify no parameters, or to keep all
711
711
  # the default parameter values, pass an empty Hash as a request object (see above).
712
712
  #
713
- # @param name [String]
713
+ # @param name [::String]
714
714
  # Required. Name of the organization to get organization settings for. Its
715
715
  # format is "organizations/[organization_id]/organizationSettings".
716
716
  #
717
717
  # @yield [response, operation] Access the result along with the RPC operation
718
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
719
- # @yieldparam operation [GRPC::ActiveCall::Operation]
718
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
719
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
720
720
  #
721
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
721
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
722
722
  #
723
- # @raise [Google::Cloud::Error] if the RPC is aborted.
723
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
724
724
  #
725
725
  def get_organization_settings request, options = nil
726
- raise ArgumentError, "request must be provided" if request.nil?
726
+ raise ::ArgumentError, "request must be provided" if request.nil?
727
727
 
728
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest
728
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest
729
729
 
730
730
  # Converts hash and nil to an options object
731
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
731
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
732
732
 
733
733
  # Customize the options with defaults
734
734
  metadata = @config.rpcs.get_organization_settings.metadata.to_h
735
735
 
736
736
  # Set x-goog-api-client and x-goog-user-project headers
737
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
737
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
738
738
  lib_name: @config.lib_name, lib_version: @config.lib_version,
739
739
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
740
740
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -755,8 +755,8 @@ module Google
755
755
  yield response, operation if block_given?
756
756
  return response
757
757
  end
758
- rescue GRPC::BadStatus => e
759
- raise Google::Cloud::Error.from_error(e)
758
+ rescue ::GRPC::BadStatus => e
759
+ raise ::Google::Cloud::Error.from_error(e)
760
760
  end
761
761
 
762
762
  ##
@@ -764,12 +764,12 @@ module Google
764
764
  #
765
765
  # @overload get_source(request, options = nil)
766
766
  # Pass arguments to `get_source` via a request object, either of type
767
- # {Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest} or an equivalent Hash.
767
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest} or an equivalent Hash.
768
768
  #
769
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest, Hash]
769
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest, ::Hash]
770
770
  # A request object representing the call parameters. Required. To specify no
771
771
  # parameters, or to keep all the default parameter values, pass an empty Hash.
772
- # @param options [Gapic::CallOptions, Hash]
772
+ # @param options [::Gapic::CallOptions, ::Hash]
773
773
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
774
774
  #
775
775
  # @overload get_source(name: nil)
@@ -777,31 +777,31 @@ module Google
777
777
  # least one keyword argument is required. To specify no parameters, or to keep all
778
778
  # the default parameter values, pass an empty Hash as a request object (see above).
779
779
  #
780
- # @param name [String]
780
+ # @param name [::String]
781
781
  # Required. Relative resource name of the source. Its format is
782
782
  # "organizations/[organization_id]/source/[source_id]".
783
783
  #
784
784
  # @yield [response, operation] Access the result along with the RPC operation
785
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::Source]
786
- # @yieldparam operation [GRPC::ActiveCall::Operation]
785
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
786
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
787
787
  #
788
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::Source]
788
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
789
789
  #
790
- # @raise [Google::Cloud::Error] if the RPC is aborted.
790
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
791
791
  #
792
792
  def get_source request, options = nil
793
- raise ArgumentError, "request must be provided" if request.nil?
793
+ raise ::ArgumentError, "request must be provided" if request.nil?
794
794
 
795
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest
795
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest
796
796
 
797
797
  # Converts hash and nil to an options object
798
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
798
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
799
799
 
800
800
  # Customize the options with defaults
801
801
  metadata = @config.rpcs.get_source.metadata.to_h
802
802
 
803
803
  # Set x-goog-api-client and x-goog-user-project headers
804
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
804
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
805
805
  lib_name: @config.lib_name, lib_version: @config.lib_version,
806
806
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
807
807
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -822,8 +822,8 @@ module Google
822
822
  yield response, operation if block_given?
823
823
  return response
824
824
  end
825
- rescue GRPC::BadStatus => e
826
- raise Google::Cloud::Error.from_error(e)
825
+ rescue ::GRPC::BadStatus => e
826
+ raise ::Google::Cloud::Error.from_error(e)
827
827
  end
828
828
 
829
829
  ##
@@ -832,12 +832,12 @@ module Google
832
832
  #
833
833
  # @overload group_assets(request, options = nil)
834
834
  # Pass arguments to `group_assets` via a request object, either of type
835
- # {Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest} or an equivalent Hash.
835
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest} or an equivalent Hash.
836
836
  #
837
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest, Hash]
837
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest, ::Hash]
838
838
  # A request object representing the call parameters. Required. To specify no
839
839
  # parameters, or to keep all the default parameter values, pass an empty Hash.
840
- # @param options [Gapic::CallOptions, Hash]
840
+ # @param options [::Gapic::CallOptions, ::Hash]
841
841
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
842
842
  #
843
843
  # @overload group_assets(parent: nil, filter: nil, group_by: nil, compare_duration: nil, read_time: nil, having: nil, page_token: nil, page_size: nil)
@@ -845,10 +845,10 @@ module Google
845
845
  # least one keyword argument is required. To specify no parameters, or to keep all
846
846
  # the default parameter values, pass an empty Hash as a request object (see above).
847
847
  #
848
- # @param parent [String]
848
+ # @param parent [::String]
849
849
  # Required. Name of the organization to groupBy. Its format is
850
850
  # "organizations/[organization_id]".
851
- # @param filter [String]
851
+ # @param filter [::String]
852
852
  # Expression that defines the filter to apply across assets.
853
853
  # The expression is a list of zero or more restrictions combined via logical
854
854
  # operators `AND` and `OR`.
@@ -905,7 +905,7 @@ module Google
905
905
  # * security_center_properties.resource_owners: `=`, `:`
906
906
  #
907
907
  # For example, `resource_properties.size = 100` is a valid filter string.
908
- # @param group_by [String]
908
+ # @param group_by [::String]
909
909
  # Required. Expression that defines what assets fields to use for grouping.
910
910
  # The string value should follow SQL syntax: comma separated list of fields.
911
911
  # For example:
@@ -924,7 +924,7 @@ module Google
924
924
  # * security_center_properties.resource_type
925
925
  # * security_center_properties.resource_project_display_name
926
926
  # * security_center_properties.resource_parent_display_name
927
- # @param compare_duration [Google::Protobuf::Duration, Hash]
927
+ # @param compare_duration [::Google::Protobuf::Duration, ::Hash]
928
928
  # When compare_duration is set, the GroupResult's "state_change" property is
929
929
  # updated to indicate whether the asset was added, removed, or remained
930
930
  # present during the compare_duration period of time that precedes the
@@ -952,44 +952,44 @@ module Google
952
952
  #
953
953
  # If this field is set then `state_change` must be a specified field in
954
954
  # `group_by`.
955
- # @param read_time [Google::Protobuf::Timestamp, Hash]
955
+ # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
956
956
  # Time used as a reference point when filtering assets. The filter is limited
957
957
  # to assets existing at the supplied time and their values are those at that
958
958
  # specific time. Absence of this field will default to the API's version of
959
959
  # NOW.
960
- # @param having [String]
960
+ # @param having [::String]
961
961
  # Filter that specifies what fields to further filter on *after* the query
962
962
  # filter has been executed. Currently only `state_change` is supported and
963
963
  # requires compare_duration to be specified.
964
- # @param page_token [String]
964
+ # @param page_token [::String]
965
965
  # The value returned by the last `GroupAssetsResponse`; indicates
966
966
  # that this is a continuation of a prior `GroupAssets` call, and that the
967
967
  # system should return the next page of data.
968
- # @param page_size [Integer]
968
+ # @param page_size [::Integer]
969
969
  # The maximum number of results to return in a single response. Default is
970
970
  # 10, minimum is 1, maximum is 1000.
971
971
  #
972
972
  # @yield [response, operation] Access the result along with the RPC operation
973
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
974
- # @yieldparam operation [GRPC::ActiveCall::Operation]
973
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
974
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
975
975
  #
976
- # @return [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
976
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
977
977
  #
978
- # @raise [Google::Cloud::Error] if the RPC is aborted.
978
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
979
979
  #
980
980
  def group_assets request, options = nil
981
- raise ArgumentError, "request must be provided" if request.nil?
981
+ raise ::ArgumentError, "request must be provided" if request.nil?
982
982
 
983
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest
983
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest
984
984
 
985
985
  # Converts hash and nil to an options object
986
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
986
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
987
987
 
988
988
  # Customize the options with defaults
989
989
  metadata = @config.rpcs.group_assets.metadata.to_h
990
990
 
991
991
  # Set x-goog-api-client and x-goog-user-project headers
992
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
992
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
993
993
  lib_name: @config.lib_name, lib_version: @config.lib_version,
994
994
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
995
995
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1007,12 +1007,12 @@ module Google
1007
1007
  retry_policy: @config.retry_policy
1008
1008
 
1009
1009
  @security_center_stub.call_rpc :group_assets, request, options: options do |response, operation|
1010
- response = Gapic::PagedEnumerable.new @security_center_stub, :group_assets, request, response, operation, options
1010
+ response = ::Gapic::PagedEnumerable.new @security_center_stub, :group_assets, request, response, operation, options
1011
1011
  yield response, operation if block_given?
1012
1012
  return response
1013
1013
  end
1014
- rescue GRPC::BadStatus => e
1015
- raise Google::Cloud::Error.from_error(e)
1014
+ rescue ::GRPC::BadStatus => e
1015
+ raise ::Google::Cloud::Error.from_error(e)
1016
1016
  end
1017
1017
 
1018
1018
  ##
@@ -1024,12 +1024,12 @@ module Google
1024
1024
  #
1025
1025
  # @overload group_findings(request, options = nil)
1026
1026
  # Pass arguments to `group_findings` via a request object, either of type
1027
- # {Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest} or an equivalent Hash.
1027
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest} or an equivalent Hash.
1028
1028
  #
1029
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest, Hash]
1029
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest, ::Hash]
1030
1030
  # A request object representing the call parameters. Required. To specify no
1031
1031
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1032
- # @param options [Gapic::CallOptions, Hash]
1032
+ # @param options [::Gapic::CallOptions, ::Hash]
1033
1033
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1034
1034
  #
1035
1035
  # @overload group_findings(parent: nil, filter: nil, group_by: nil, read_time: nil, compare_duration: nil, having: nil, page_token: nil, page_size: nil)
@@ -1037,12 +1037,12 @@ module Google
1037
1037
  # least one keyword argument is required. To specify no parameters, or to keep all
1038
1038
  # the default parameter values, pass an empty Hash as a request object (see above).
1039
1039
  #
1040
- # @param parent [String]
1040
+ # @param parent [::String]
1041
1041
  # Required. Name of the source to groupBy. Its format is
1042
1042
  # "organizations/[organization_id]/sources/[source_id]". To groupBy across
1043
1043
  # all sources provide a source_id of `-`. For example:
1044
1044
  # organizations/\\{organization_id}/sources/-
1045
- # @param filter [String]
1045
+ # @param filter [::String]
1046
1046
  # Expression that defines the filter to apply across findings.
1047
1047
  # The expression is a list of one or more restrictions combined via logical
1048
1048
  # operators `AND` and `OR`.
@@ -1086,7 +1086,7 @@ module Google
1086
1086
  # * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
1087
1087
  #
1088
1088
  # For example, `source_properties.size = 100` is a valid filter string.
1089
- # @param group_by [String]
1089
+ # @param group_by [::String]
1090
1090
  # Required. Expression that defines what assets fields to use for grouping
1091
1091
  # (including `state_change`). The string value should follow SQL syntax:
1092
1092
  # comma separated list of fields. For example: "parent,resource_name".
@@ -1101,12 +1101,12 @@ module Google
1101
1101
  # The following fields are supported when compare_duration is set:
1102
1102
  #
1103
1103
  # * state_change
1104
- # @param read_time [Google::Protobuf::Timestamp, Hash]
1104
+ # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
1105
1105
  # Time used as a reference point when filtering findings. The filter is
1106
1106
  # limited to findings existing at the supplied time and their values are
1107
1107
  # those at that specific time. Absence of this field will default to the
1108
1108
  # API's version of NOW.
1109
- # @param compare_duration [Google::Protobuf::Duration, Hash]
1109
+ # @param compare_duration [::Google::Protobuf::Duration, ::Hash]
1110
1110
  # When compare_duration is set, the GroupResult's "state_change" attribute is
1111
1111
  # updated to indicate whether the finding had its state changed, the
1112
1112
  # finding's state remained unchanged, or if the finding was added during the
@@ -1133,39 +1133,39 @@ module Google
1133
1133
  #
1134
1134
  # If this field is set then `state_change` must be a specified field in
1135
1135
  # `group_by`.
1136
- # @param having [String]
1136
+ # @param having [::String]
1137
1137
  # Filter that specifies what fields to further filter on *after* the query
1138
1138
  # filter has been executed. Currently only `finding.state` and `state_change`
1139
1139
  # are supported and requires compare_duration to be specified.
1140
- # @param page_token [String]
1140
+ # @param page_token [::String]
1141
1141
  # The value returned by the last `GroupFindingsResponse`; indicates
1142
1142
  # that this is a continuation of a prior `GroupFindings` call, and
1143
1143
  # that the system should return the next page of data.
1144
- # @param page_size [Integer]
1144
+ # @param page_size [::Integer]
1145
1145
  # The maximum number of results to return in a single response. Default is
1146
1146
  # 10, minimum is 1, maximum is 1000.
1147
1147
  #
1148
1148
  # @yield [response, operation] Access the result along with the RPC operation
1149
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
1150
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1149
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
1150
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1151
1151
  #
1152
- # @return [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
1152
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
1153
1153
  #
1154
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1154
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1155
1155
  #
1156
1156
  def group_findings request, options = nil
1157
- raise ArgumentError, "request must be provided" if request.nil?
1157
+ raise ::ArgumentError, "request must be provided" if request.nil?
1158
1158
 
1159
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest
1159
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest
1160
1160
 
1161
1161
  # Converts hash and nil to an options object
1162
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1162
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1163
1163
 
1164
1164
  # Customize the options with defaults
1165
1165
  metadata = @config.rpcs.group_findings.metadata.to_h
1166
1166
 
1167
1167
  # Set x-goog-api-client and x-goog-user-project headers
1168
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1168
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1169
1169
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1170
1170
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1171
1171
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1183,12 +1183,12 @@ module Google
1183
1183
  retry_policy: @config.retry_policy
1184
1184
 
1185
1185
  @security_center_stub.call_rpc :group_findings, request, options: options do |response, operation|
1186
- response = Gapic::PagedEnumerable.new @security_center_stub, :group_findings, request, response, operation, options
1186
+ response = ::Gapic::PagedEnumerable.new @security_center_stub, :group_findings, request, response, operation, options
1187
1187
  yield response, operation if block_given?
1188
1188
  return response
1189
1189
  end
1190
- rescue GRPC::BadStatus => e
1191
- raise Google::Cloud::Error.from_error(e)
1190
+ rescue ::GRPC::BadStatus => e
1191
+ raise ::Google::Cloud::Error.from_error(e)
1192
1192
  end
1193
1193
 
1194
1194
  ##
@@ -1196,12 +1196,12 @@ module Google
1196
1196
  #
1197
1197
  # @overload list_assets(request, options = nil)
1198
1198
  # Pass arguments to `list_assets` via a request object, either of type
1199
- # {Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest} or an equivalent Hash.
1199
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest} or an equivalent Hash.
1200
1200
  #
1201
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest, Hash]
1201
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest, ::Hash]
1202
1202
  # A request object representing the call parameters. Required. To specify no
1203
1203
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1204
- # @param options [Gapic::CallOptions, Hash]
1204
+ # @param options [::Gapic::CallOptions, ::Hash]
1205
1205
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1206
1206
  #
1207
1207
  # @overload list_assets(parent: nil, filter: nil, order_by: nil, read_time: nil, compare_duration: nil, having: nil, field_mask: nil, page_token: nil, page_size: nil)
@@ -1209,10 +1209,10 @@ module Google
1209
1209
  # least one keyword argument is required. To specify no parameters, or to keep all
1210
1210
  # the default parameter values, pass an empty Hash as a request object (see above).
1211
1211
  #
1212
- # @param parent [String]
1212
+ # @param parent [::String]
1213
1213
  # Required. Name of the organization assets should belong to. Its format is
1214
1214
  # "organizations/[organization_id]".
1215
- # @param filter [String]
1215
+ # @param filter [::String]
1216
1216
  # Expression that defines the filter to apply across assets.
1217
1217
  # The expression is a list of zero or more restrictions combined via logical
1218
1218
  # operators `AND` and `OR`.
@@ -1269,7 +1269,7 @@ module Google
1269
1269
  # * security_center_properties.resource_owners: `=`, `:`
1270
1270
  #
1271
1271
  # For example, `resource_properties.size = 100` is a valid filter string.
1272
- # @param order_by [String]
1272
+ # @param order_by [::String]
1273
1273
  # Expression that defines what fields and order to use for sorting. The
1274
1274
  # string value should follow SQL syntax: comma separated list of fields. For
1275
1275
  # example: "name,resource_properties.a_property". The default sorting order
@@ -1291,12 +1291,12 @@ module Google
1291
1291
  # security_center_properties.resource_project
1292
1292
  # security_center_properties.resource_project_display_name
1293
1293
  # security_center_properties.resource_type
1294
- # @param read_time [Google::Protobuf::Timestamp, Hash]
1294
+ # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
1295
1295
  # Time used as a reference point when filtering assets. The filter is limited
1296
1296
  # to assets existing at the supplied time and their values are those at that
1297
1297
  # specific time. Absence of this field will default to the API's version of
1298
1298
  # NOW.
1299
- # @param compare_duration [Google::Protobuf::Duration, Hash]
1299
+ # @param compare_duration [::Google::Protobuf::Duration, ::Hash]
1300
1300
  # When compare_duration is set, the ListAssetsResult's "state_change"
1301
1301
  # attribute is updated to indicate whether the asset was added, removed, or
1302
1302
  # remained present during the compare_duration period of time that precedes
@@ -1321,44 +1321,44 @@ module Google
1321
1321
  # If compare_duration is not specified, then the only possible state_change
1322
1322
  # is "UNUSED", which will be the state_change set for all assets present at
1323
1323
  # read_time.
1324
- # @param having [String]
1324
+ # @param having [::String]
1325
1325
  # Filter that specifies what fields to further filter on *after* the query
1326
1326
  # filter has been executed. Currently only `state_change` is supported and
1327
1327
  # requires compare_duration to be specified.
1328
- # @param field_mask [Google::Protobuf::FieldMask, Hash]
1328
+ # @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
1329
1329
  # Optional.
1330
1330
  # A field mask to specify the ListAssetsResult fields to be listed in the
1331
1331
  # response.
1332
1332
  # An empty field mask will list all fields.
1333
- # @param page_token [String]
1333
+ # @param page_token [::String]
1334
1334
  # The value returned by the last `ListAssetsResponse`; indicates
1335
1335
  # that this is a continuation of a prior `ListAssets` call, and
1336
1336
  # that the system should return the next page of data.
1337
- # @param page_size [Integer]
1337
+ # @param page_size [::Integer]
1338
1338
  # The maximum number of results to return in a single response. Default is
1339
1339
  # 10, minimum is 1, maximum is 1000.
1340
1340
  #
1341
1341
  # @yield [response, operation] Access the result along with the RPC operation
1342
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse::ListAssetsResult>]
1343
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1342
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse::ListAssetsResult>]
1343
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1344
1344
  #
1345
- # @return [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse::ListAssetsResult>]
1345
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse::ListAssetsResult>]
1346
1346
  #
1347
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1347
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1348
1348
  #
1349
1349
  def list_assets request, options = nil
1350
- raise ArgumentError, "request must be provided" if request.nil?
1350
+ raise ::ArgumentError, "request must be provided" if request.nil?
1351
1351
 
1352
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest
1352
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest
1353
1353
 
1354
1354
  # Converts hash and nil to an options object
1355
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1355
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1356
1356
 
1357
1357
  # Customize the options with defaults
1358
1358
  metadata = @config.rpcs.list_assets.metadata.to_h
1359
1359
 
1360
1360
  # Set x-goog-api-client and x-goog-user-project headers
1361
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1361
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1362
1362
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1363
1363
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1364
1364
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1376,12 +1376,12 @@ module Google
1376
1376
  retry_policy: @config.retry_policy
1377
1377
 
1378
1378
  @security_center_stub.call_rpc :list_assets, request, options: options do |response, operation|
1379
- response = Gapic::PagedEnumerable.new @security_center_stub, :list_assets, request, response, operation, options
1379
+ response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_assets, request, response, operation, options
1380
1380
  yield response, operation if block_given?
1381
1381
  return response
1382
1382
  end
1383
- rescue GRPC::BadStatus => e
1384
- raise Google::Cloud::Error.from_error(e)
1383
+ rescue ::GRPC::BadStatus => e
1384
+ raise ::Google::Cloud::Error.from_error(e)
1385
1385
  end
1386
1386
 
1387
1387
  ##
@@ -1392,12 +1392,12 @@ module Google
1392
1392
  #
1393
1393
  # @overload list_findings(request, options = nil)
1394
1394
  # Pass arguments to `list_findings` via a request object, either of type
1395
- # {Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest} or an equivalent Hash.
1395
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest} or an equivalent Hash.
1396
1396
  #
1397
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest, Hash]
1397
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest, ::Hash]
1398
1398
  # A request object representing the call parameters. Required. To specify no
1399
1399
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1400
- # @param options [Gapic::CallOptions, Hash]
1400
+ # @param options [::Gapic::CallOptions, ::Hash]
1401
1401
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1402
1402
  #
1403
1403
  # @overload list_findings(parent: nil, filter: nil, order_by: nil, read_time: nil, compare_duration: nil, having: nil, field_mask: nil, page_token: nil, page_size: nil)
@@ -1405,12 +1405,12 @@ module Google
1405
1405
  # least one keyword argument is required. To specify no parameters, or to keep all
1406
1406
  # the default parameter values, pass an empty Hash as a request object (see above).
1407
1407
  #
1408
- # @param parent [String]
1408
+ # @param parent [::String]
1409
1409
  # Required. Name of the source the findings belong to. Its format is
1410
1410
  # "organizations/[organization_id]/sources/[source_id]". To list across all
1411
1411
  # sources provide a source_id of `-`. For example:
1412
1412
  # organizations/\\{organization_id}/sources/-
1413
- # @param filter [String]
1413
+ # @param filter [::String]
1414
1414
  # Expression that defines the filter to apply across findings.
1415
1415
  # The expression is a list of one or more restrictions combined via logical
1416
1416
  # operators `AND` and `OR`.
@@ -1454,7 +1454,7 @@ module Google
1454
1454
  # source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
1455
1455
  #
1456
1456
  # For example, `source_properties.size = 100` is a valid filter string.
1457
- # @param order_by [String]
1457
+ # @param order_by [::String]
1458
1458
  # Expression that defines what fields and order to use for sorting. The
1459
1459
  # string value should follow SQL syntax: comma separated list of fields. For
1460
1460
  # example: "name,resource_properties.a_property". The default sorting order
@@ -1473,12 +1473,12 @@ module Google
1473
1473
  # event_time
1474
1474
  # source_properties
1475
1475
  # security_marks.marks
1476
- # @param read_time [Google::Protobuf::Timestamp, Hash]
1476
+ # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
1477
1477
  # Time used as a reference point when filtering findings. The filter is
1478
1478
  # limited to findings existing at the supplied time and their values are
1479
1479
  # those at that specific time. Absence of this field will default to the
1480
1480
  # API's version of NOW.
1481
- # @param compare_duration [Google::Protobuf::Duration, Hash]
1481
+ # @param compare_duration [::Google::Protobuf::Duration, ::Hash]
1482
1482
  # When compare_duration is set, the ListFindingsResult's "state_change"
1483
1483
  # attribute is updated to indicate whether the finding had its state changed,
1484
1484
  # the finding's state remained unchanged, or if the finding was added in any
@@ -1503,43 +1503,43 @@ module Google
1503
1503
  # If compare_duration is not specified, then the only possible state_change
1504
1504
  # is "UNUSED", which will be the state_change set for all findings present at
1505
1505
  # read_time.
1506
- # @param having [String]
1506
+ # @param having [::String]
1507
1507
  # Filter that specifies what fields to further filter on *after* the query
1508
1508
  # filter has been executed. Currently only `finding.state` and `state_change`
1509
1509
  # are supported and requires compare_duration to be specified.
1510
- # @param field_mask [Google::Protobuf::FieldMask, Hash]
1510
+ # @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
1511
1511
  # Optional.
1512
1512
  # A field mask to specify the Finding fields to be listed in the response.
1513
1513
  # An empty field mask will list all fields.
1514
- # @param page_token [String]
1514
+ # @param page_token [::String]
1515
1515
  # The value returned by the last `ListFindingsResponse`; indicates
1516
1516
  # that this is a continuation of a prior `ListFindings` call, and
1517
1517
  # that the system should return the next page of data.
1518
- # @param page_size [Integer]
1518
+ # @param page_size [::Integer]
1519
1519
  # The maximum number of results to return in a single response. Default is
1520
1520
  # 10, minimum is 1, maximum is 1000.
1521
1521
  #
1522
1522
  # @yield [response, operation] Access the result along with the RPC operation
1523
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse::ListFindingsResult>]
1524
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1523
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse::ListFindingsResult>]
1524
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1525
1525
  #
1526
- # @return [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse::ListFindingsResult>]
1526
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse::ListFindingsResult>]
1527
1527
  #
1528
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1528
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1529
1529
  #
1530
1530
  def list_findings request, options = nil
1531
- raise ArgumentError, "request must be provided" if request.nil?
1531
+ raise ::ArgumentError, "request must be provided" if request.nil?
1532
1532
 
1533
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest
1533
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest
1534
1534
 
1535
1535
  # Converts hash and nil to an options object
1536
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1536
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1537
1537
 
1538
1538
  # Customize the options with defaults
1539
1539
  metadata = @config.rpcs.list_findings.metadata.to_h
1540
1540
 
1541
1541
  # Set x-goog-api-client and x-goog-user-project headers
1542
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1542
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1543
1543
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1544
1544
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1545
1545
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1557,12 +1557,12 @@ module Google
1557
1557
  retry_policy: @config.retry_policy
1558
1558
 
1559
1559
  @security_center_stub.call_rpc :list_findings, request, options: options do |response, operation|
1560
- response = Gapic::PagedEnumerable.new @security_center_stub, :list_findings, request, response, operation, options
1560
+ response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_findings, request, response, operation, options
1561
1561
  yield response, operation if block_given?
1562
1562
  return response
1563
1563
  end
1564
- rescue GRPC::BadStatus => e
1565
- raise Google::Cloud::Error.from_error(e)
1564
+ rescue ::GRPC::BadStatus => e
1565
+ raise ::Google::Cloud::Error.from_error(e)
1566
1566
  end
1567
1567
 
1568
1568
  ##
@@ -1570,12 +1570,12 @@ module Google
1570
1570
  #
1571
1571
  # @overload list_notification_configs(request, options = nil)
1572
1572
  # Pass arguments to `list_notification_configs` via a request object, either of type
1573
- # {Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest} or an equivalent Hash.
1573
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest} or an equivalent Hash.
1574
1574
  #
1575
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest, Hash]
1575
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest, ::Hash]
1576
1576
  # A request object representing the call parameters. Required. To specify no
1577
1577
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1578
- # @param options [Gapic::CallOptions, Hash]
1578
+ # @param options [::Gapic::CallOptions, ::Hash]
1579
1579
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1580
1580
  #
1581
1581
  # @overload list_notification_configs(parent: nil, page_token: nil, page_size: nil)
@@ -1583,38 +1583,38 @@ module Google
1583
1583
  # least one keyword argument is required. To specify no parameters, or to keep all
1584
1584
  # the default parameter values, pass an empty Hash as a request object (see above).
1585
1585
  #
1586
- # @param parent [String]
1586
+ # @param parent [::String]
1587
1587
  # Required. Name of the organization to list notification configs.
1588
1588
  # Its format is "organizations/[organization_id]".
1589
- # @param page_token [String]
1589
+ # @param page_token [::String]
1590
1590
  # The value returned by the last `ListNotificationConfigsResponse`; indicates
1591
1591
  # that this is a continuation of a prior `ListNotificationConfigs` call, and
1592
1592
  # that the system should return the next page of data.
1593
- # @param page_size [Integer]
1593
+ # @param page_size [::Integer]
1594
1594
  # The maximum number of results to return in a single response. Default is
1595
1595
  # 10, minimum is 1, maximum is 1000.
1596
1596
  #
1597
1597
  # @yield [response, operation] Access the result along with the RPC operation
1598
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig>]
1599
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1598
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig>]
1599
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1600
1600
  #
1601
- # @return [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig>]
1601
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig>]
1602
1602
  #
1603
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1603
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1604
1604
  #
1605
1605
  def list_notification_configs request, options = nil
1606
- raise ArgumentError, "request must be provided" if request.nil?
1606
+ raise ::ArgumentError, "request must be provided" if request.nil?
1607
1607
 
1608
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest
1608
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest
1609
1609
 
1610
1610
  # Converts hash and nil to an options object
1611
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1611
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1612
1612
 
1613
1613
  # Customize the options with defaults
1614
1614
  metadata = @config.rpcs.list_notification_configs.metadata.to_h
1615
1615
 
1616
1616
  # Set x-goog-api-client and x-goog-user-project headers
1617
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1617
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1618
1618
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1619
1619
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1620
1620
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1632,12 +1632,12 @@ module Google
1632
1632
  retry_policy: @config.retry_policy
1633
1633
 
1634
1634
  @security_center_stub.call_rpc :list_notification_configs, request, options: options do |response, operation|
1635
- response = Gapic::PagedEnumerable.new @security_center_stub, :list_notification_configs, request, response, operation, options
1635
+ response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_notification_configs, request, response, operation, options
1636
1636
  yield response, operation if block_given?
1637
1637
  return response
1638
1638
  end
1639
- rescue GRPC::BadStatus => e
1640
- raise Google::Cloud::Error.from_error(e)
1639
+ rescue ::GRPC::BadStatus => e
1640
+ raise ::Google::Cloud::Error.from_error(e)
1641
1641
  end
1642
1642
 
1643
1643
  ##
@@ -1645,12 +1645,12 @@ module Google
1645
1645
  #
1646
1646
  # @overload list_sources(request, options = nil)
1647
1647
  # Pass arguments to `list_sources` via a request object, either of type
1648
- # {Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest} or an equivalent Hash.
1648
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest} or an equivalent Hash.
1649
1649
  #
1650
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest, Hash]
1650
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest, ::Hash]
1651
1651
  # A request object representing the call parameters. Required. To specify no
1652
1652
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1653
- # @param options [Gapic::CallOptions, Hash]
1653
+ # @param options [::Gapic::CallOptions, ::Hash]
1654
1654
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1655
1655
  #
1656
1656
  # @overload list_sources(parent: nil, page_token: nil, page_size: nil)
@@ -1658,38 +1658,38 @@ module Google
1658
1658
  # least one keyword argument is required. To specify no parameters, or to keep all
1659
1659
  # the default parameter values, pass an empty Hash as a request object (see above).
1660
1660
  #
1661
- # @param parent [String]
1661
+ # @param parent [::String]
1662
1662
  # Required. Resource name of the parent of sources to list. Its format should
1663
1663
  # be "organizations/[organization_id]".
1664
- # @param page_token [String]
1664
+ # @param page_token [::String]
1665
1665
  # The value returned by the last `ListSourcesResponse`; indicates
1666
1666
  # that this is a continuation of a prior `ListSources` call, and
1667
1667
  # that the system should return the next page of data.
1668
- # @param page_size [Integer]
1668
+ # @param page_size [::Integer]
1669
1669
  # The maximum number of results to return in a single response. Default is
1670
1670
  # 10, minimum is 1, maximum is 1000.
1671
1671
  #
1672
1672
  # @yield [response, operation] Access the result along with the RPC operation
1673
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::Source>]
1674
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1673
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::Source>]
1674
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1675
1675
  #
1676
- # @return [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::Source>]
1676
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::Source>]
1677
1677
  #
1678
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1678
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1679
1679
  #
1680
1680
  def list_sources request, options = nil
1681
- raise ArgumentError, "request must be provided" if request.nil?
1681
+ raise ::ArgumentError, "request must be provided" if request.nil?
1682
1682
 
1683
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest
1683
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest
1684
1684
 
1685
1685
  # Converts hash and nil to an options object
1686
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1686
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1687
1687
 
1688
1688
  # Customize the options with defaults
1689
1689
  metadata = @config.rpcs.list_sources.metadata.to_h
1690
1690
 
1691
1691
  # Set x-goog-api-client and x-goog-user-project headers
1692
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1692
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1693
1693
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1694
1694
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1695
1695
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1707,12 +1707,12 @@ module Google
1707
1707
  retry_policy: @config.retry_policy
1708
1708
 
1709
1709
  @security_center_stub.call_rpc :list_sources, request, options: options do |response, operation|
1710
- response = Gapic::PagedEnumerable.new @security_center_stub, :list_sources, request, response, operation, options
1710
+ response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_sources, request, response, operation, options
1711
1711
  yield response, operation if block_given?
1712
1712
  return response
1713
1713
  end
1714
- rescue GRPC::BadStatus => e
1715
- raise Google::Cloud::Error.from_error(e)
1714
+ rescue ::GRPC::BadStatus => e
1715
+ raise ::Google::Cloud::Error.from_error(e)
1716
1716
  end
1717
1717
 
1718
1718
  ##
@@ -1725,12 +1725,12 @@ module Google
1725
1725
  #
1726
1726
  # @overload run_asset_discovery(request, options = nil)
1727
1727
  # Pass arguments to `run_asset_discovery` via a request object, either of type
1728
- # {Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest} or an equivalent Hash.
1728
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest} or an equivalent Hash.
1729
1729
  #
1730
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest, Hash]
1730
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest, ::Hash]
1731
1731
  # A request object representing the call parameters. Required. To specify no
1732
1732
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1733
- # @param options [Gapic::CallOptions, Hash]
1733
+ # @param options [::Gapic::CallOptions, ::Hash]
1734
1734
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1735
1735
  #
1736
1736
  # @overload run_asset_discovery(parent: nil)
@@ -1738,31 +1738,31 @@ module Google
1738
1738
  # least one keyword argument is required. To specify no parameters, or to keep all
1739
1739
  # the default parameter values, pass an empty Hash as a request object (see above).
1740
1740
  #
1741
- # @param parent [String]
1741
+ # @param parent [::String]
1742
1742
  # Required. Name of the organization to run asset discovery for. Its format
1743
1743
  # is "organizations/[organization_id]".
1744
1744
  #
1745
1745
  # @yield [response, operation] Access the result along with the RPC operation
1746
- # @yieldparam response [Gapic::Operation]
1747
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1746
+ # @yieldparam response [::Gapic::Operation]
1747
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1748
1748
  #
1749
- # @return [Gapic::Operation]
1749
+ # @return [::Gapic::Operation]
1750
1750
  #
1751
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1751
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1752
1752
  #
1753
1753
  def run_asset_discovery request, options = nil
1754
- raise ArgumentError, "request must be provided" if request.nil?
1754
+ raise ::ArgumentError, "request must be provided" if request.nil?
1755
1755
 
1756
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest
1756
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest
1757
1757
 
1758
1758
  # Converts hash and nil to an options object
1759
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1759
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1760
1760
 
1761
1761
  # Customize the options with defaults
1762
1762
  metadata = @config.rpcs.run_asset_discovery.metadata.to_h
1763
1763
 
1764
1764
  # Set x-goog-api-client and x-goog-user-project headers
1765
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1765
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1766
1766
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1767
1767
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1768
1768
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1780,12 +1780,12 @@ module Google
1780
1780
  retry_policy: @config.retry_policy
1781
1781
 
1782
1782
  @security_center_stub.call_rpc :run_asset_discovery, request, options: options do |response, operation|
1783
- response = Gapic::Operation.new response, @operations_client, options: options
1783
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1784
1784
  yield response, operation if block_given?
1785
1785
  return response
1786
1786
  end
1787
- rescue GRPC::BadStatus => e
1788
- raise Google::Cloud::Error.from_error(e)
1787
+ rescue ::GRPC::BadStatus => e
1788
+ raise ::Google::Cloud::Error.from_error(e)
1789
1789
  end
1790
1790
 
1791
1791
  ##
@@ -1793,12 +1793,12 @@ module Google
1793
1793
  #
1794
1794
  # @overload set_finding_state(request, options = nil)
1795
1795
  # Pass arguments to `set_finding_state` via a request object, either of type
1796
- # {Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest} or an equivalent Hash.
1796
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest} or an equivalent Hash.
1797
1797
  #
1798
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest, Hash]
1798
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest, ::Hash]
1799
1799
  # A request object representing the call parameters. Required. To specify no
1800
1800
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1801
- # @param options [Gapic::CallOptions, Hash]
1801
+ # @param options [::Gapic::CallOptions, ::Hash]
1802
1802
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1803
1803
  #
1804
1804
  # @overload set_finding_state(name: nil, state: nil, start_time: nil)
@@ -1806,37 +1806,37 @@ module Google
1806
1806
  # least one keyword argument is required. To specify no parameters, or to keep all
1807
1807
  # the default parameter values, pass an empty Hash as a request object (see above).
1808
1808
  #
1809
- # @param name [String]
1809
+ # @param name [::String]
1810
1810
  # Required. The relative resource name of the finding. See:
1811
1811
  # https://cloud.google.com/apis/design/resource_names#relative_resource_name
1812
1812
  # Example:
1813
1813
  # "organizations/\\{organization_id}/sources/\\{source_id}/finding/\\{finding_id}".
1814
- # @param state [Google::Cloud::SecurityCenter::V1p1beta1::Finding::State]
1814
+ # @param state [::Google::Cloud::SecurityCenter::V1p1beta1::Finding::State]
1815
1815
  # Required. The desired State of the finding.
1816
- # @param start_time [Google::Protobuf::Timestamp, Hash]
1816
+ # @param start_time [::Google::Protobuf::Timestamp, ::Hash]
1817
1817
  # Required. The time at which the updated state takes effect.
1818
1818
  #
1819
1819
  # @yield [response, operation] Access the result along with the RPC operation
1820
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::Finding]
1821
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1820
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
1821
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1822
1822
  #
1823
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::Finding]
1823
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
1824
1824
  #
1825
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1825
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1826
1826
  #
1827
1827
  def set_finding_state request, options = nil
1828
- raise ArgumentError, "request must be provided" if request.nil?
1828
+ raise ::ArgumentError, "request must be provided" if request.nil?
1829
1829
 
1830
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest
1830
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest
1831
1831
 
1832
1832
  # Converts hash and nil to an options object
1833
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1833
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1834
1834
 
1835
1835
  # Customize the options with defaults
1836
1836
  metadata = @config.rpcs.set_finding_state.metadata.to_h
1837
1837
 
1838
1838
  # Set x-goog-api-client and x-goog-user-project headers
1839
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1839
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1840
1840
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1841
1841
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1842
1842
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1857,8 +1857,8 @@ module Google
1857
1857
  yield response, operation if block_given?
1858
1858
  return response
1859
1859
  end
1860
- rescue GRPC::BadStatus => e
1861
- raise Google::Cloud::Error.from_error(e)
1860
+ rescue ::GRPC::BadStatus => e
1861
+ raise ::Google::Cloud::Error.from_error(e)
1862
1862
  end
1863
1863
 
1864
1864
  ##
@@ -1866,12 +1866,12 @@ module Google
1866
1866
  #
1867
1867
  # @overload set_iam_policy(request, options = nil)
1868
1868
  # Pass arguments to `set_iam_policy` via a request object, either of type
1869
- # {Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
1869
+ # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
1870
1870
  #
1871
- # @param request [Google::Iam::V1::SetIamPolicyRequest, Hash]
1871
+ # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
1872
1872
  # A request object representing the call parameters. Required. To specify no
1873
1873
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1874
- # @param options [Gapic::CallOptions, Hash]
1874
+ # @param options [::Gapic::CallOptions, ::Hash]
1875
1875
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1876
1876
  #
1877
1877
  # @overload set_iam_policy(resource: nil, policy: nil)
@@ -1879,36 +1879,36 @@ module Google
1879
1879
  # least one keyword argument is required. To specify no parameters, or to keep all
1880
1880
  # the default parameter values, pass an empty Hash as a request object (see above).
1881
1881
  #
1882
- # @param resource [String]
1882
+ # @param resource [::String]
1883
1883
  # REQUIRED: The resource for which the policy is being specified.
1884
1884
  # See the operation documentation for the appropriate value for this field.
1885
- # @param policy [Google::Iam::V1::Policy, Hash]
1885
+ # @param policy [::Google::Iam::V1::Policy, ::Hash]
1886
1886
  # REQUIRED: The complete policy to be applied to the `resource`. The size of
1887
1887
  # the policy is limited to a few 10s of KB. An empty policy is a
1888
1888
  # valid policy but certain Cloud Platform services (such as Projects)
1889
1889
  # might reject them.
1890
1890
  #
1891
1891
  # @yield [response, operation] Access the result along with the RPC operation
1892
- # @yieldparam response [Google::Iam::V1::Policy]
1893
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1892
+ # @yieldparam response [::Google::Iam::V1::Policy]
1893
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1894
1894
  #
1895
- # @return [Google::Iam::V1::Policy]
1895
+ # @return [::Google::Iam::V1::Policy]
1896
1896
  #
1897
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1897
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1898
1898
  #
1899
1899
  def set_iam_policy request, options = nil
1900
- raise ArgumentError, "request must be provided" if request.nil?
1900
+ raise ::ArgumentError, "request must be provided" if request.nil?
1901
1901
 
1902
- request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::SetIamPolicyRequest
1902
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
1903
1903
 
1904
1904
  # Converts hash and nil to an options object
1905
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1905
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1906
1906
 
1907
1907
  # Customize the options with defaults
1908
1908
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
1909
1909
 
1910
1910
  # Set x-goog-api-client and x-goog-user-project headers
1911
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1911
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1912
1912
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1913
1913
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1914
1914
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1929,8 +1929,8 @@ module Google
1929
1929
  yield response, operation if block_given?
1930
1930
  return response
1931
1931
  end
1932
- rescue GRPC::BadStatus => e
1933
- raise Google::Cloud::Error.from_error(e)
1932
+ rescue ::GRPC::BadStatus => e
1933
+ raise ::Google::Cloud::Error.from_error(e)
1934
1934
  end
1935
1935
 
1936
1936
  ##
@@ -1938,12 +1938,12 @@ module Google
1938
1938
  #
1939
1939
  # @overload test_iam_permissions(request, options = nil)
1940
1940
  # Pass arguments to `test_iam_permissions` via a request object, either of type
1941
- # {Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
1941
+ # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
1942
1942
  #
1943
- # @param request [Google::Iam::V1::TestIamPermissionsRequest, Hash]
1943
+ # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
1944
1944
  # A request object representing the call parameters. Required. To specify no
1945
1945
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1946
- # @param options [Gapic::CallOptions, Hash]
1946
+ # @param options [::Gapic::CallOptions, ::Hash]
1947
1947
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1948
1948
  #
1949
1949
  # @overload test_iam_permissions(resource: nil, permissions: nil)
@@ -1951,36 +1951,36 @@ module Google
1951
1951
  # least one keyword argument is required. To specify no parameters, or to keep all
1952
1952
  # the default parameter values, pass an empty Hash as a request object (see above).
1953
1953
  #
1954
- # @param resource [String]
1954
+ # @param resource [::String]
1955
1955
  # REQUIRED: The resource for which the policy detail is being requested.
1956
1956
  # See the operation documentation for the appropriate value for this field.
1957
- # @param permissions [Array<String>]
1957
+ # @param permissions [::Array<::String>]
1958
1958
  # The set of permissions to check for the `resource`. Permissions with
1959
1959
  # wildcards (such as '*' or 'storage.*') are not allowed. For more
1960
1960
  # information see
1961
1961
  # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1962
1962
  #
1963
1963
  # @yield [response, operation] Access the result along with the RPC operation
1964
- # @yieldparam response [Google::Iam::V1::TestIamPermissionsResponse]
1965
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1964
+ # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse]
1965
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1966
1966
  #
1967
- # @return [Google::Iam::V1::TestIamPermissionsResponse]
1967
+ # @return [::Google::Iam::V1::TestIamPermissionsResponse]
1968
1968
  #
1969
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1969
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1970
1970
  #
1971
1971
  def test_iam_permissions request, options = nil
1972
- raise ArgumentError, "request must be provided" if request.nil?
1972
+ raise ::ArgumentError, "request must be provided" if request.nil?
1973
1973
 
1974
- request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::TestIamPermissionsRequest
1974
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
1975
1975
 
1976
1976
  # Converts hash and nil to an options object
1977
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1977
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1978
1978
 
1979
1979
  # Customize the options with defaults
1980
1980
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1981
1981
 
1982
1982
  # Set x-goog-api-client and x-goog-user-project headers
1983
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1983
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1984
1984
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1985
1985
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1986
1986
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2001,8 +2001,8 @@ module Google
2001
2001
  yield response, operation if block_given?
2002
2002
  return response
2003
2003
  end
2004
- rescue GRPC::BadStatus => e
2005
- raise Google::Cloud::Error.from_error(e)
2004
+ rescue ::GRPC::BadStatus => e
2005
+ raise ::Google::Cloud::Error.from_error(e)
2006
2006
  end
2007
2007
 
2008
2008
  ##
@@ -2011,12 +2011,12 @@ module Google
2011
2011
  #
2012
2012
  # @overload update_finding(request, options = nil)
2013
2013
  # Pass arguments to `update_finding` via a request object, either of type
2014
- # {Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest} or an equivalent Hash.
2014
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest} or an equivalent Hash.
2015
2015
  #
2016
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest, Hash]
2016
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest, ::Hash]
2017
2017
  # A request object representing the call parameters. Required. To specify no
2018
2018
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2019
- # @param options [Gapic::CallOptions, Hash]
2019
+ # @param options [::Gapic::CallOptions, ::Hash]
2020
2020
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2021
2021
  #
2022
2022
  # @overload update_finding(finding: nil, update_mask: nil)
@@ -2024,14 +2024,14 @@ module Google
2024
2024
  # least one keyword argument is required. To specify no parameters, or to keep all
2025
2025
  # the default parameter values, pass an empty Hash as a request object (see above).
2026
2026
  #
2027
- # @param finding [Google::Cloud::SecurityCenter::V1p1beta1::Finding, Hash]
2027
+ # @param finding [::Google::Cloud::SecurityCenter::V1p1beta1::Finding, ::Hash]
2028
2028
  # Required. The finding resource to update or create if it does not already
2029
2029
  # exist. parent, security_marks, and update_time will be ignored.
2030
2030
  #
2031
2031
  # In the case of creation, the finding id portion of the name must be
2032
2032
  # alphanumeric and less than or equal to 32 characters and greater than 0
2033
2033
  # characters in length.
2034
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
2034
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2035
2035
  # The FieldMask to use when updating the finding resource. This field should
2036
2036
  # not be specified when creating a finding.
2037
2037
  #
@@ -2041,26 +2041,26 @@ module Google
2041
2041
  # mask.
2042
2042
  #
2043
2043
  # @yield [response, operation] Access the result along with the RPC operation
2044
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::Finding]
2045
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2044
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
2045
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2046
2046
  #
2047
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::Finding]
2047
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
2048
2048
  #
2049
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2049
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2050
2050
  #
2051
2051
  def update_finding request, options = nil
2052
- raise ArgumentError, "request must be provided" if request.nil?
2052
+ raise ::ArgumentError, "request must be provided" if request.nil?
2053
2053
 
2054
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest
2054
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest
2055
2055
 
2056
2056
  # Converts hash and nil to an options object
2057
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2057
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2058
2058
 
2059
2059
  # Customize the options with defaults
2060
2060
  metadata = @config.rpcs.update_finding.metadata.to_h
2061
2061
 
2062
2062
  # Set x-goog-api-client and x-goog-user-project headers
2063
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2063
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2064
2064
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2065
2065
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2066
2066
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2081,8 +2081,8 @@ module Google
2081
2081
  yield response, operation if block_given?
2082
2082
  return response
2083
2083
  end
2084
- rescue GRPC::BadStatus => e
2085
- raise Google::Cloud::Error.from_error(e)
2084
+ rescue ::GRPC::BadStatus => e
2085
+ raise ::Google::Cloud::Error.from_error(e)
2086
2086
  end
2087
2087
 
2088
2088
  ##
@@ -2090,12 +2090,12 @@ module Google
2090
2090
  #
2091
2091
  # @overload update_notification_config(request, options = nil)
2092
2092
  # Pass arguments to `update_notification_config` via a request object, either of type
2093
- # {Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest} or an equivalent Hash.
2093
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest} or an equivalent Hash.
2094
2094
  #
2095
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest, Hash]
2095
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest, ::Hash]
2096
2096
  # A request object representing the call parameters. Required. To specify no
2097
2097
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2098
- # @param options [Gapic::CallOptions, Hash]
2098
+ # @param options [::Gapic::CallOptions, ::Hash]
2099
2099
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2100
2100
  #
2101
2101
  # @overload update_notification_config(notification_config: nil, update_mask: nil)
@@ -2103,34 +2103,34 @@ module Google
2103
2103
  # least one keyword argument is required. To specify no parameters, or to keep all
2104
2104
  # the default parameter values, pass an empty Hash as a request object (see above).
2105
2105
  #
2106
- # @param notification_config [Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig, Hash]
2106
+ # @param notification_config [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig, ::Hash]
2107
2107
  # Required. The notification config to update.
2108
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
2108
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2109
2109
  # The FieldMask to use when updating the notification config.
2110
2110
  #
2111
2111
  # If empty all mutable fields will be updated.
2112
2112
  #
2113
2113
  # @yield [response, operation] Access the result along with the RPC operation
2114
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
2115
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2114
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
2115
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2116
2116
  #
2117
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
2117
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
2118
2118
  #
2119
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2119
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2120
2120
  #
2121
2121
  def update_notification_config request, options = nil
2122
- raise ArgumentError, "request must be provided" if request.nil?
2122
+ raise ::ArgumentError, "request must be provided" if request.nil?
2123
2123
 
2124
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest
2124
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest
2125
2125
 
2126
2126
  # Converts hash and nil to an options object
2127
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2127
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2128
2128
 
2129
2129
  # Customize the options with defaults
2130
2130
  metadata = @config.rpcs.update_notification_config.metadata.to_h
2131
2131
 
2132
2132
  # Set x-goog-api-client and x-goog-user-project headers
2133
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2133
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2134
2134
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2135
2135
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2136
2136
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2151,8 +2151,8 @@ module Google
2151
2151
  yield response, operation if block_given?
2152
2152
  return response
2153
2153
  end
2154
- rescue GRPC::BadStatus => e
2155
- raise Google::Cloud::Error.from_error(e)
2154
+ rescue ::GRPC::BadStatus => e
2155
+ raise ::Google::Cloud::Error.from_error(e)
2156
2156
  end
2157
2157
 
2158
2158
  ##
@@ -2160,12 +2160,12 @@ module Google
2160
2160
  #
2161
2161
  # @overload update_organization_settings(request, options = nil)
2162
2162
  # Pass arguments to `update_organization_settings` via a request object, either of type
2163
- # {Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest} or an equivalent Hash.
2163
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest} or an equivalent Hash.
2164
2164
  #
2165
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest, Hash]
2165
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest, ::Hash]
2166
2166
  # A request object representing the call parameters. Required. To specify no
2167
2167
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2168
- # @param options [Gapic::CallOptions, Hash]
2168
+ # @param options [::Gapic::CallOptions, ::Hash]
2169
2169
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2170
2170
  #
2171
2171
  # @overload update_organization_settings(organization_settings: nil, update_mask: nil)
@@ -2173,34 +2173,34 @@ module Google
2173
2173
  # least one keyword argument is required. To specify no parameters, or to keep all
2174
2174
  # the default parameter values, pass an empty Hash as a request object (see above).
2175
2175
  #
2176
- # @param organization_settings [Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings, Hash]
2176
+ # @param organization_settings [::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings, ::Hash]
2177
2177
  # Required. The organization settings resource to update.
2178
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
2178
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2179
2179
  # The FieldMask to use when updating the settings resource.
2180
2180
  #
2181
2181
  # If empty all mutable fields will be updated.
2182
2182
  #
2183
2183
  # @yield [response, operation] Access the result along with the RPC operation
2184
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
2185
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2184
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
2185
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2186
2186
  #
2187
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
2187
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
2188
2188
  #
2189
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2189
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2190
2190
  #
2191
2191
  def update_organization_settings request, options = nil
2192
- raise ArgumentError, "request must be provided" if request.nil?
2192
+ raise ::ArgumentError, "request must be provided" if request.nil?
2193
2193
 
2194
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest
2194
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest
2195
2195
 
2196
2196
  # Converts hash and nil to an options object
2197
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2197
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2198
2198
 
2199
2199
  # Customize the options with defaults
2200
2200
  metadata = @config.rpcs.update_organization_settings.metadata.to_h
2201
2201
 
2202
2202
  # Set x-goog-api-client and x-goog-user-project headers
2203
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2203
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2204
2204
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2205
2205
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2206
2206
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2221,8 +2221,8 @@ module Google
2221
2221
  yield response, operation if block_given?
2222
2222
  return response
2223
2223
  end
2224
- rescue GRPC::BadStatus => e
2225
- raise Google::Cloud::Error.from_error(e)
2224
+ rescue ::GRPC::BadStatus => e
2225
+ raise ::Google::Cloud::Error.from_error(e)
2226
2226
  end
2227
2227
 
2228
2228
  ##
@@ -2230,12 +2230,12 @@ module Google
2230
2230
  #
2231
2231
  # @overload update_source(request, options = nil)
2232
2232
  # Pass arguments to `update_source` via a request object, either of type
2233
- # {Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest} or an equivalent Hash.
2233
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest} or an equivalent Hash.
2234
2234
  #
2235
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest, Hash]
2235
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest, ::Hash]
2236
2236
  # A request object representing the call parameters. Required. To specify no
2237
2237
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2238
- # @param options [Gapic::CallOptions, Hash]
2238
+ # @param options [::Gapic::CallOptions, ::Hash]
2239
2239
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2240
2240
  #
2241
2241
  # @overload update_source(source: nil, update_mask: nil)
@@ -2243,34 +2243,34 @@ module Google
2243
2243
  # least one keyword argument is required. To specify no parameters, or to keep all
2244
2244
  # the default parameter values, pass an empty Hash as a request object (see above).
2245
2245
  #
2246
- # @param source [Google::Cloud::SecurityCenter::V1p1beta1::Source, Hash]
2246
+ # @param source [::Google::Cloud::SecurityCenter::V1p1beta1::Source, ::Hash]
2247
2247
  # Required. The source resource to update.
2248
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
2248
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2249
2249
  # The FieldMask to use when updating the source resource.
2250
2250
  #
2251
2251
  # If empty all mutable fields will be updated.
2252
2252
  #
2253
2253
  # @yield [response, operation] Access the result along with the RPC operation
2254
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::Source]
2255
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2254
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
2255
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2256
2256
  #
2257
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::Source]
2257
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
2258
2258
  #
2259
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2259
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2260
2260
  #
2261
2261
  def update_source request, options = nil
2262
- raise ArgumentError, "request must be provided" if request.nil?
2262
+ raise ::ArgumentError, "request must be provided" if request.nil?
2263
2263
 
2264
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest
2264
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest
2265
2265
 
2266
2266
  # Converts hash and nil to an options object
2267
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2267
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2268
2268
 
2269
2269
  # Customize the options with defaults
2270
2270
  metadata = @config.rpcs.update_source.metadata.to_h
2271
2271
 
2272
2272
  # Set x-goog-api-client and x-goog-user-project headers
2273
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2273
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2274
2274
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2275
2275
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2276
2276
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2291,8 +2291,8 @@ module Google
2291
2291
  yield response, operation if block_given?
2292
2292
  return response
2293
2293
  end
2294
- rescue GRPC::BadStatus => e
2295
- raise Google::Cloud::Error.from_error(e)
2294
+ rescue ::GRPC::BadStatus => e
2295
+ raise ::Google::Cloud::Error.from_error(e)
2296
2296
  end
2297
2297
 
2298
2298
  ##
@@ -2300,12 +2300,12 @@ module Google
2300
2300
  #
2301
2301
  # @overload update_security_marks(request, options = nil)
2302
2302
  # Pass arguments to `update_security_marks` via a request object, either of type
2303
- # {Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest} or an equivalent Hash.
2303
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest} or an equivalent Hash.
2304
2304
  #
2305
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest, Hash]
2305
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest, ::Hash]
2306
2306
  # A request object representing the call parameters. Required. To specify no
2307
2307
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2308
- # @param options [Gapic::CallOptions, Hash]
2308
+ # @param options [::Gapic::CallOptions, ::Hash]
2309
2309
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2310
2310
  #
2311
2311
  # @overload update_security_marks(security_marks: nil, update_mask: nil, start_time: nil)
@@ -2313,40 +2313,40 @@ module Google
2313
2313
  # least one keyword argument is required. To specify no parameters, or to keep all
2314
2314
  # the default parameter values, pass an empty Hash as a request object (see above).
2315
2315
  #
2316
- # @param security_marks [Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks, Hash]
2316
+ # @param security_marks [::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks, ::Hash]
2317
2317
  # Required. The security marks resource to update.
2318
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
2318
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2319
2319
  # The FieldMask to use when updating the security marks resource.
2320
2320
  #
2321
2321
  # The field mask must not contain duplicate fields.
2322
2322
  # If empty or set to "marks", all marks will be replaced. Individual
2323
2323
  # marks can be updated using "marks.<mark_key>".
2324
- # @param start_time [Google::Protobuf::Timestamp, Hash]
2324
+ # @param start_time [::Google::Protobuf::Timestamp, ::Hash]
2325
2325
  # The time at which the updated SecurityMarks take effect.
2326
2326
  # If not set uses current server time. Updates will be applied to the
2327
2327
  # SecurityMarks that are active immediately preceding this time.
2328
2328
  #
2329
2329
  # @yield [response, operation] Access the result along with the RPC operation
2330
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks]
2331
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2330
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks]
2331
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2332
2332
  #
2333
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks]
2333
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks]
2334
2334
  #
2335
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2335
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2336
2336
  #
2337
2337
  def update_security_marks request, options = nil
2338
- raise ArgumentError, "request must be provided" if request.nil?
2338
+ raise ::ArgumentError, "request must be provided" if request.nil?
2339
2339
 
2340
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest
2340
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest
2341
2341
 
2342
2342
  # Converts hash and nil to an options object
2343
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2343
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2344
2344
 
2345
2345
  # Customize the options with defaults
2346
2346
  metadata = @config.rpcs.update_security_marks.metadata.to_h
2347
2347
 
2348
2348
  # Set x-goog-api-client and x-goog-user-project headers
2349
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2349
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2350
2350
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2351
2351
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2352
2352
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2367,8 +2367,8 @@ module Google
2367
2367
  yield response, operation if block_given?
2368
2368
  return response
2369
2369
  end
2370
- rescue GRPC::BadStatus => e
2371
- raise Google::Cloud::Error.from_error(e)
2370
+ rescue ::GRPC::BadStatus => e
2371
+ raise ::Google::Cloud::Error.from_error(e)
2372
2372
  end
2373
2373
 
2374
2374
  ##
@@ -2378,7 +2378,7 @@ module Google
2378
2378
  # providing control over timeouts, retry behavior, logging, transport
2379
2379
  # parameters, and other low-level controls. Certain parameters can also be
2380
2380
  # applied individually to specific RPCs. See
2381
- # {Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client::Configuration::Rpcs}
2381
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client::Configuration::Rpcs}
2382
2382
  # for a list of RPCs that can be configured independently.
2383
2383
  #
2384
2384
  # Configuration can be applied globally to all clients, or to a single client
@@ -2389,22 +2389,22 @@ module Google
2389
2389
  # To modify the global config, setting the timeout for create_source
2390
2390
  # to 20 seconds, and all remaining timeouts to 10 seconds:
2391
2391
  #
2392
- # Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.configure do |config|
2393
- # config.timeout = 10_000
2394
- # config.rpcs.create_source.timeout = 20_000
2392
+ # ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.configure do |config|
2393
+ # config.timeout = 10.0
2394
+ # config.rpcs.create_source.timeout = 20.0
2395
2395
  # end
2396
2396
  #
2397
2397
  # To apply the above configuration only to a new client:
2398
2398
  #
2399
- # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new do |config|
2400
- # config.timeout = 10_000
2401
- # config.rpcs.create_source.timeout = 20_000
2399
+ # client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new do |config|
2400
+ # config.timeout = 10.0
2401
+ # config.rpcs.create_source.timeout = 20.0
2402
2402
  # end
2403
2403
  #
2404
2404
  # @!attribute [rw] endpoint
2405
2405
  # The hostname or hostname:port of the service endpoint.
2406
2406
  # Defaults to `"securitycenter.googleapis.com"`.
2407
- # @return [String]
2407
+ # @return [::String]
2408
2408
  # @!attribute [rw] credentials
2409
2409
  # Credentials to send with calls. You may provide any of the following types:
2410
2410
  # * (`String`) The path to a service account key file in JSON format
@@ -2416,29 +2416,29 @@ module Google
2416
2416
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2417
2417
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2418
2418
  # * (`nil`) indicating no credentials
2419
- # @return [Object]
2419
+ # @return [::Object]
2420
2420
  # @!attribute [rw] scope
2421
2421
  # The OAuth scopes
2422
- # @return [Array<String>]
2422
+ # @return [::Array<::String>]
2423
2423
  # @!attribute [rw] lib_name
2424
2424
  # The library name as recorded in instrumentation and logging
2425
- # @return [String]
2425
+ # @return [::String]
2426
2426
  # @!attribute [rw] lib_version
2427
2427
  # The library version as recorded in instrumentation and logging
2428
- # @return [String]
2428
+ # @return [::String]
2429
2429
  # @!attribute [rw] channel_args
2430
2430
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
2431
2431
  # `GRPC::Core::Channel` object is provided as the credential.
2432
- # @return [Hash]
2432
+ # @return [::Hash]
2433
2433
  # @!attribute [rw] interceptors
2434
2434
  # An array of interceptors that are run before calls are executed.
2435
- # @return [Array<GRPC::ClientInterceptor>]
2435
+ # @return [::Array<::GRPC::ClientInterceptor>]
2436
2436
  # @!attribute [rw] timeout
2437
- # The call timeout in milliseconds.
2438
- # @return [Numeric]
2437
+ # The call timeout in seconds.
2438
+ # @return [::Numeric]
2439
2439
  # @!attribute [rw] metadata
2440
2440
  # Additional gRPC headers to be sent with the call.
2441
- # @return [Hash{Symbol=>String}]
2441
+ # @return [::Hash{::Symbol=>::String}]
2442
2442
  # @!attribute [rw] retry_policy
2443
2443
  # The retry policy. The value is a hash with the following keys:
2444
2444
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -2446,10 +2446,10 @@ module Google
2446
2446
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2447
2447
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2448
2448
  # trigger a retry.
2449
- # @return [Hash]
2449
+ # @return [::Hash]
2450
2450
  #
2451
2451
  class Configuration
2452
- extend Gapic::Config
2452
+ extend ::Gapic::Config
2453
2453
 
2454
2454
  config_attr :endpoint, "securitycenter.googleapis.com", String
2455
2455
  config_attr :credentials, nil do |value|
@@ -2457,14 +2457,14 @@ module Google
2457
2457
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
2458
2458
  allowed.any? { |klass| klass === value }
2459
2459
  end
2460
- config_attr :scope, nil, String, Array, nil
2461
- config_attr :lib_name, nil, String, nil
2462
- config_attr :lib_version, nil, String, nil
2463
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
2464
- config_attr :interceptors, nil, Array, nil
2465
- config_attr :timeout, nil, Numeric, nil
2466
- config_attr :metadata, nil, Hash, nil
2467
- config_attr :retry_policy, nil, Hash, Proc, nil
2460
+ config_attr :scope, nil, ::String, ::Array, nil
2461
+ config_attr :lib_name, nil, ::String, nil
2462
+ config_attr :lib_version, nil, ::String, nil
2463
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
2464
+ config_attr :interceptors, nil, ::Array, nil
2465
+ config_attr :timeout, nil, ::Numeric, nil
2466
+ config_attr :metadata, nil, ::Hash, nil
2467
+ config_attr :retry_policy, nil, ::Hash, Proc, nil
2468
2468
 
2469
2469
  # @private
2470
2470
  def initialize parent_config = nil
@@ -2505,168 +2505,168 @@ module Google
2505
2505
  class Rpcs
2506
2506
  ##
2507
2507
  # RPC-specific configuration for `create_source`
2508
- # @return [Gapic::Config::Method]
2508
+ # @return [::Gapic::Config::Method]
2509
2509
  #
2510
2510
  attr_reader :create_source
2511
2511
  ##
2512
2512
  # RPC-specific configuration for `create_finding`
2513
- # @return [Gapic::Config::Method]
2513
+ # @return [::Gapic::Config::Method]
2514
2514
  #
2515
2515
  attr_reader :create_finding
2516
2516
  ##
2517
2517
  # RPC-specific configuration for `create_notification_config`
2518
- # @return [Gapic::Config::Method]
2518
+ # @return [::Gapic::Config::Method]
2519
2519
  #
2520
2520
  attr_reader :create_notification_config
2521
2521
  ##
2522
2522
  # RPC-specific configuration for `delete_notification_config`
2523
- # @return [Gapic::Config::Method]
2523
+ # @return [::Gapic::Config::Method]
2524
2524
  #
2525
2525
  attr_reader :delete_notification_config
2526
2526
  ##
2527
2527
  # RPC-specific configuration for `get_iam_policy`
2528
- # @return [Gapic::Config::Method]
2528
+ # @return [::Gapic::Config::Method]
2529
2529
  #
2530
2530
  attr_reader :get_iam_policy
2531
2531
  ##
2532
2532
  # RPC-specific configuration for `get_notification_config`
2533
- # @return [Gapic::Config::Method]
2533
+ # @return [::Gapic::Config::Method]
2534
2534
  #
2535
2535
  attr_reader :get_notification_config
2536
2536
  ##
2537
2537
  # RPC-specific configuration for `get_organization_settings`
2538
- # @return [Gapic::Config::Method]
2538
+ # @return [::Gapic::Config::Method]
2539
2539
  #
2540
2540
  attr_reader :get_organization_settings
2541
2541
  ##
2542
2542
  # RPC-specific configuration for `get_source`
2543
- # @return [Gapic::Config::Method]
2543
+ # @return [::Gapic::Config::Method]
2544
2544
  #
2545
2545
  attr_reader :get_source
2546
2546
  ##
2547
2547
  # RPC-specific configuration for `group_assets`
2548
- # @return [Gapic::Config::Method]
2548
+ # @return [::Gapic::Config::Method]
2549
2549
  #
2550
2550
  attr_reader :group_assets
2551
2551
  ##
2552
2552
  # RPC-specific configuration for `group_findings`
2553
- # @return [Gapic::Config::Method]
2553
+ # @return [::Gapic::Config::Method]
2554
2554
  #
2555
2555
  attr_reader :group_findings
2556
2556
  ##
2557
2557
  # RPC-specific configuration for `list_assets`
2558
- # @return [Gapic::Config::Method]
2558
+ # @return [::Gapic::Config::Method]
2559
2559
  #
2560
2560
  attr_reader :list_assets
2561
2561
  ##
2562
2562
  # RPC-specific configuration for `list_findings`
2563
- # @return [Gapic::Config::Method]
2563
+ # @return [::Gapic::Config::Method]
2564
2564
  #
2565
2565
  attr_reader :list_findings
2566
2566
  ##
2567
2567
  # RPC-specific configuration for `list_notification_configs`
2568
- # @return [Gapic::Config::Method]
2568
+ # @return [::Gapic::Config::Method]
2569
2569
  #
2570
2570
  attr_reader :list_notification_configs
2571
2571
  ##
2572
2572
  # RPC-specific configuration for `list_sources`
2573
- # @return [Gapic::Config::Method]
2573
+ # @return [::Gapic::Config::Method]
2574
2574
  #
2575
2575
  attr_reader :list_sources
2576
2576
  ##
2577
2577
  # RPC-specific configuration for `run_asset_discovery`
2578
- # @return [Gapic::Config::Method]
2578
+ # @return [::Gapic::Config::Method]
2579
2579
  #
2580
2580
  attr_reader :run_asset_discovery
2581
2581
  ##
2582
2582
  # RPC-specific configuration for `set_finding_state`
2583
- # @return [Gapic::Config::Method]
2583
+ # @return [::Gapic::Config::Method]
2584
2584
  #
2585
2585
  attr_reader :set_finding_state
2586
2586
  ##
2587
2587
  # RPC-specific configuration for `set_iam_policy`
2588
- # @return [Gapic::Config::Method]
2588
+ # @return [::Gapic::Config::Method]
2589
2589
  #
2590
2590
  attr_reader :set_iam_policy
2591
2591
  ##
2592
2592
  # RPC-specific configuration for `test_iam_permissions`
2593
- # @return [Gapic::Config::Method]
2593
+ # @return [::Gapic::Config::Method]
2594
2594
  #
2595
2595
  attr_reader :test_iam_permissions
2596
2596
  ##
2597
2597
  # RPC-specific configuration for `update_finding`
2598
- # @return [Gapic::Config::Method]
2598
+ # @return [::Gapic::Config::Method]
2599
2599
  #
2600
2600
  attr_reader :update_finding
2601
2601
  ##
2602
2602
  # RPC-specific configuration for `update_notification_config`
2603
- # @return [Gapic::Config::Method]
2603
+ # @return [::Gapic::Config::Method]
2604
2604
  #
2605
2605
  attr_reader :update_notification_config
2606
2606
  ##
2607
2607
  # RPC-specific configuration for `update_organization_settings`
2608
- # @return [Gapic::Config::Method]
2608
+ # @return [::Gapic::Config::Method]
2609
2609
  #
2610
2610
  attr_reader :update_organization_settings
2611
2611
  ##
2612
2612
  # RPC-specific configuration for `update_source`
2613
- # @return [Gapic::Config::Method]
2613
+ # @return [::Gapic::Config::Method]
2614
2614
  #
2615
2615
  attr_reader :update_source
2616
2616
  ##
2617
2617
  # RPC-specific configuration for `update_security_marks`
2618
- # @return [Gapic::Config::Method]
2618
+ # @return [::Gapic::Config::Method]
2619
2619
  #
2620
2620
  attr_reader :update_security_marks
2621
2621
 
2622
2622
  # @private
2623
2623
  def initialize parent_rpcs = nil
2624
2624
  create_source_config = parent_rpcs&.create_source if parent_rpcs&.respond_to? :create_source
2625
- @create_source = Gapic::Config::Method.new create_source_config
2625
+ @create_source = ::Gapic::Config::Method.new create_source_config
2626
2626
  create_finding_config = parent_rpcs&.create_finding if parent_rpcs&.respond_to? :create_finding
2627
- @create_finding = Gapic::Config::Method.new create_finding_config
2627
+ @create_finding = ::Gapic::Config::Method.new create_finding_config
2628
2628
  create_notification_config_config = parent_rpcs&.create_notification_config if parent_rpcs&.respond_to? :create_notification_config
2629
- @create_notification_config = Gapic::Config::Method.new create_notification_config_config
2629
+ @create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
2630
2630
  delete_notification_config_config = parent_rpcs&.delete_notification_config if parent_rpcs&.respond_to? :delete_notification_config
2631
- @delete_notification_config = Gapic::Config::Method.new delete_notification_config_config
2631
+ @delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
2632
2632
  get_iam_policy_config = parent_rpcs&.get_iam_policy if parent_rpcs&.respond_to? :get_iam_policy
2633
- @get_iam_policy = Gapic::Config::Method.new get_iam_policy_config
2633
+ @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
2634
2634
  get_notification_config_config = parent_rpcs&.get_notification_config if parent_rpcs&.respond_to? :get_notification_config
2635
- @get_notification_config = Gapic::Config::Method.new get_notification_config_config
2635
+ @get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
2636
2636
  get_organization_settings_config = parent_rpcs&.get_organization_settings if parent_rpcs&.respond_to? :get_organization_settings
2637
- @get_organization_settings = Gapic::Config::Method.new get_organization_settings_config
2637
+ @get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
2638
2638
  get_source_config = parent_rpcs&.get_source if parent_rpcs&.respond_to? :get_source
2639
- @get_source = Gapic::Config::Method.new get_source_config
2639
+ @get_source = ::Gapic::Config::Method.new get_source_config
2640
2640
  group_assets_config = parent_rpcs&.group_assets if parent_rpcs&.respond_to? :group_assets
2641
- @group_assets = Gapic::Config::Method.new group_assets_config
2641
+ @group_assets = ::Gapic::Config::Method.new group_assets_config
2642
2642
  group_findings_config = parent_rpcs&.group_findings if parent_rpcs&.respond_to? :group_findings
2643
- @group_findings = Gapic::Config::Method.new group_findings_config
2643
+ @group_findings = ::Gapic::Config::Method.new group_findings_config
2644
2644
  list_assets_config = parent_rpcs&.list_assets if parent_rpcs&.respond_to? :list_assets
2645
- @list_assets = Gapic::Config::Method.new list_assets_config
2645
+ @list_assets = ::Gapic::Config::Method.new list_assets_config
2646
2646
  list_findings_config = parent_rpcs&.list_findings if parent_rpcs&.respond_to? :list_findings
2647
- @list_findings = Gapic::Config::Method.new list_findings_config
2647
+ @list_findings = ::Gapic::Config::Method.new list_findings_config
2648
2648
  list_notification_configs_config = parent_rpcs&.list_notification_configs if parent_rpcs&.respond_to? :list_notification_configs
2649
- @list_notification_configs = Gapic::Config::Method.new list_notification_configs_config
2649
+ @list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
2650
2650
  list_sources_config = parent_rpcs&.list_sources if parent_rpcs&.respond_to? :list_sources
2651
- @list_sources = Gapic::Config::Method.new list_sources_config
2651
+ @list_sources = ::Gapic::Config::Method.new list_sources_config
2652
2652
  run_asset_discovery_config = parent_rpcs&.run_asset_discovery if parent_rpcs&.respond_to? :run_asset_discovery
2653
- @run_asset_discovery = Gapic::Config::Method.new run_asset_discovery_config
2653
+ @run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
2654
2654
  set_finding_state_config = parent_rpcs&.set_finding_state if parent_rpcs&.respond_to? :set_finding_state
2655
- @set_finding_state = Gapic::Config::Method.new set_finding_state_config
2655
+ @set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
2656
2656
  set_iam_policy_config = parent_rpcs&.set_iam_policy if parent_rpcs&.respond_to? :set_iam_policy
2657
- @set_iam_policy = Gapic::Config::Method.new set_iam_policy_config
2657
+ @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
2658
2658
  test_iam_permissions_config = parent_rpcs&.test_iam_permissions if parent_rpcs&.respond_to? :test_iam_permissions
2659
- @test_iam_permissions = Gapic::Config::Method.new test_iam_permissions_config
2659
+ @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
2660
2660
  update_finding_config = parent_rpcs&.update_finding if parent_rpcs&.respond_to? :update_finding
2661
- @update_finding = Gapic::Config::Method.new update_finding_config
2661
+ @update_finding = ::Gapic::Config::Method.new update_finding_config
2662
2662
  update_notification_config_config = parent_rpcs&.update_notification_config if parent_rpcs&.respond_to? :update_notification_config
2663
- @update_notification_config = Gapic::Config::Method.new update_notification_config_config
2663
+ @update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
2664
2664
  update_organization_settings_config = parent_rpcs&.update_organization_settings if parent_rpcs&.respond_to? :update_organization_settings
2665
- @update_organization_settings = Gapic::Config::Method.new update_organization_settings_config
2665
+ @update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
2666
2666
  update_source_config = parent_rpcs&.update_source if parent_rpcs&.respond_to? :update_source
2667
- @update_source = Gapic::Config::Method.new update_source_config
2667
+ @update_source = ::Gapic::Config::Method.new update_source_config
2668
2668
  update_security_marks_config = parent_rpcs&.update_security_marks if parent_rpcs&.respond_to? :update_security_marks
2669
- @update_security_marks = Gapic::Config::Method.new update_security_marks_config
2669
+ @update_security_marks = ::Gapic::Config::Method.new update_security_marks_config
2670
2670
 
2671
2671
  yield self if block_given?
2672
2672
  end