google-cloud-security_center-v1 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +1 -1
- data/lib/google/cloud/security_center/v1.rb +1 -1
- data/lib/google/cloud/security_center/v1/security_center.rb +1 -1
- data/lib/google/cloud/security_center/v1/security_center/client.rb +458 -458
- data/lib/google/cloud/security_center/v1/security_center/credentials.rb +1 -1
- data/lib/google/cloud/security_center/v1/security_center/operations.rb +100 -100
- data/lib/google/cloud/security_center/v1/security_center/paths.rb +16 -16
- data/lib/google/cloud/security_center/v1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/securitycenter/v1/asset.rb +26 -26
- data/proto_docs/google/cloud/securitycenter/v1/finding.rb +16 -16
- data/proto_docs/google/cloud/securitycenter/v1/notification_config.rb +10 -10
- data/proto_docs/google/cloud/securitycenter/v1/notification_message.rb +4 -4
- data/proto_docs/google/cloud/securitycenter/v1/organization_settings.rb +9 -9
- data/proto_docs/google/cloud/securitycenter/v1/run_asset_discovery_response.rb +4 -4
- data/proto_docs/google/cloud/securitycenter/v1/security_marks.rb +8 -8
- data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +159 -159
- data/proto_docs/google/cloud/securitycenter/v1/source.rb +5 -5
- data/proto_docs/google/iam/v1/iam_policy.rb +15 -15
- data/proto_docs/google/iam/v1/options.rb +3 -3
- data/proto_docs/google/iam/v1/policy.rb +26 -26
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/duration.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/struct.rb +18 -18
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/rpc/status.rb +6 -6
- data/proto_docs/google/type/expr.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb944bdb3110ec9500bccd8d31fe2bde397acbfb6185418ece3637a97abb39a7
|
4
|
+
data.tar.gz: a2762fac978d3d7b3d11a2162c546fcaf572389ed93b3541b449f09ba449aeed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc809cb3d7ddfcd44a1efd0720b52594830a0aa922d0b775834fb325b5ca282b107d88cf1bdfbb9c1ee89a40045f296765f6c87bd31477b762b94332e8e59daa
|
7
|
+
data.tar.gz: 3b811d4a68a6ae6b0a0ecee7d7464c53a6b9f55f177e0661b6e4c36960b648c12adcdda2adb62156e093d5141e919ed4df0f753be1e174ce09a6afddc4b017ec
|
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/v1"
|
29
29
|
|
30
|
-
client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
|
30
|
+
client = ::Google::Cloud::SecurityCenter::V1::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-v1
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
{Google::Cloud::SecurityCenter::V1::SecurityCenter::Credentials}):
|
67
|
+
{::Google::Cloud::SecurityCenter::V1::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/v1"
|
|
77
77
|
|
78
78
|
ENV["SECURITY_CENTER_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
80
|
-
client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
|
80
|
+
client = ::Google::Cloud::SecurityCenter::V1::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/v1"
|
90
90
|
|
91
|
-
client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new do |config|
|
91
|
+
client = ::Google::Cloud::SecurityCenter::V1::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/v1"
|
100
100
|
|
101
|
-
Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.configure do |config|
|
101
|
+
::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.configure do |config|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
103
103
|
end
|
104
104
|
|
105
|
-
client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
|
105
|
+
client = ::Google::Cloud::SecurityCenter::V1::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/v1"
|
27
27
|
|
28
|
-
client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
|
28
|
+
client = ::Google::Cloud::SecurityCenter::V1::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/v1"
|
29
|
-
# client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
|
29
|
+
# client = ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
|
30
30
|
#
|
31
31
|
module V1
|
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/v1/security_center"
|
40
|
-
# client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
|
40
|
+
# client = ::Google::Cloud::SecurityCenter::V1::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::V1::SecurityCenter::Client::Configuration}
|
41
|
+
# See {::Google::Cloud::SecurityCenter::V1::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::V1::SecurityCenter::Client.configure do |config|
|
49
|
-
# config.timeout =
|
48
|
+
# ::Google::Cloud::SecurityCenter::V1::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::V1::SecurityCenter::Client::Configuration}
|
193
|
+
# See {::Google::Cloud::SecurityCenter::V1::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::V1::SecurityCenter::Client.new
|
214
|
+
# client = ::Google::Cloud::SecurityCenter::V1::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::V1::SecurityCenter::Client.new do |config|
|
220
|
-
# config.timeout =
|
219
|
+
# client = ::Google::Cloud::SecurityCenter::V1::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::V1::SecurityCenter::Stub,
|
252
|
+
@security_center_stub = ::Gapic::ServiceStub.new(
|
253
|
+
::Google::Cloud::SecurityCenter::V1::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::V1::SecurityCenter::Operations]
|
264
|
+
# @return [::Google::Cloud::SecurityCenter::V1::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::V1::CreateSourceRequest} or an equivalent Hash.
|
275
|
+
# {::Google::Cloud::SecurityCenter::V1::CreateSourceRequest} or an equivalent Hash.
|
276
276
|
#
|
277
|
-
# @param request [Google::Cloud::SecurityCenter::V1::CreateSourceRequest, Hash]
|
277
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::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::V1::Source, Hash]
|
291
|
+
# @param source [::Google::Cloud::SecurityCenter::V1::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::V1::Source]
|
297
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
296
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::Source]
|
297
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
298
298
|
#
|
299
|
-
# @return [Google::Cloud::SecurityCenter::V1::Source]
|
299
|
+
# @return [::Google::Cloud::SecurityCenter::V1::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::V1::CreateSourceRequest
|
306
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::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::V1::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::V1::CreateFindingRequest} or an equivalent Hash.
|
346
|
+
# {::Google::Cloud::SecurityCenter::V1::CreateFindingRequest} or an equivalent Hash.
|
347
347
|
#
|
348
|
-
# @param request [Google::Cloud::SecurityCenter::V1::CreateFindingRequest, Hash]
|
348
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::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::V1::Finding, Hash]
|
366
|
+
# @param finding [::Google::Cloud::SecurityCenter::V1::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::V1::Finding]
|
372
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
371
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::Finding]
|
372
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
373
373
|
#
|
374
|
-
# @return [Google::Cloud::SecurityCenter::V1::Finding]
|
374
|
+
# @return [::Google::Cloud::SecurityCenter::V1::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::V1::CreateFindingRequest
|
381
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::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::V1::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::V1::CreateNotificationConfigRequest} or an equivalent Hash.
|
420
|
+
# {::Google::Cloud::SecurityCenter::V1::CreateNotificationConfigRequest} or an equivalent Hash.
|
421
421
|
#
|
422
|
-
# @param request [Google::Cloud::SecurityCenter::V1::CreateNotificationConfigRequest, Hash]
|
422
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::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::V1::NotificationConfig, Hash]
|
441
|
+
# @param notification_config [::Google::Cloud::SecurityCenter::V1::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::V1::NotificationConfig]
|
448
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
447
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
448
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
449
449
|
#
|
450
|
-
# @return [Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
450
|
+
# @return [::Google::Cloud::SecurityCenter::V1::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::V1::CreateNotificationConfigRequest
|
457
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::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::V1::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::V1::DeleteNotificationConfigRequest} or an equivalent Hash.
|
496
|
+
# {::Google::Cloud::SecurityCenter::V1::DeleteNotificationConfigRequest} or an equivalent Hash.
|
497
497
|
#
|
498
|
-
# @param request [Google::Cloud::SecurityCenter::V1::DeleteNotificationConfigRequest, Hash]
|
498
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::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::V1::DeleteNotificationConfigRequest
|
524
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::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::V1::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::V1::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::V1::GetNotificationConfigRequest} or an equivalent Hash.
|
633
|
+
# {::Google::Cloud::SecurityCenter::V1::GetNotificationConfigRequest} or an equivalent Hash.
|
634
634
|
#
|
635
|
-
# @param request [Google::Cloud::SecurityCenter::V1::GetNotificationConfigRequest, Hash]
|
635
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::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::V1::NotificationConfig]
|
652
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
651
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
652
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
653
653
|
#
|
654
|
-
# @return [Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
654
|
+
# @return [::Google::Cloud::SecurityCenter::V1::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::V1::GetNotificationConfigRequest
|
661
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::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::V1::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::V1::GetOrganizationSettingsRequest} or an equivalent Hash.
|
700
|
+
# {::Google::Cloud::SecurityCenter::V1::GetOrganizationSettingsRequest} or an equivalent Hash.
|
701
701
|
#
|
702
|
-
# @param request [Google::Cloud::SecurityCenter::V1::GetOrganizationSettingsRequest, Hash]
|
702
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::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::V1::OrganizationSettings]
|
719
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
718
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::OrganizationSettings]
|
719
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
720
720
|
#
|
721
|
-
# @return [Google::Cloud::SecurityCenter::V1::OrganizationSettings]
|
721
|
+
# @return [::Google::Cloud::SecurityCenter::V1::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::V1::GetOrganizationSettingsRequest
|
728
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::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::V1::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::V1::GetSourceRequest} or an equivalent Hash.
|
767
|
+
# {::Google::Cloud::SecurityCenter::V1::GetSourceRequest} or an equivalent Hash.
|
768
768
|
#
|
769
|
-
# @param request [Google::Cloud::SecurityCenter::V1::GetSourceRequest, Hash]
|
769
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::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::V1::Source]
|
786
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
785
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::Source]
|
786
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
787
787
|
#
|
788
|
-
# @return [Google::Cloud::SecurityCenter::V1::Source]
|
788
|
+
# @return [::Google::Cloud::SecurityCenter::V1::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::V1::GetSourceRequest
|
795
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::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::V1::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::V1::GroupAssetsRequest} or an equivalent Hash.
|
835
|
+
# {::Google::Cloud::SecurityCenter::V1::GroupAssetsRequest} or an equivalent Hash.
|
836
836
|
#
|
837
|
-
# @param request [Google::Cloud::SecurityCenter::V1::GroupAssetsRequest, Hash]
|
837
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::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, 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,40 +952,40 @@ 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 page_token [String]
|
960
|
+
# @param page_token [::String]
|
961
961
|
# The value returned by the last `GroupAssetsResponse`; indicates
|
962
962
|
# that this is a continuation of a prior `GroupAssets` call, and that the
|
963
963
|
# system should return the next page of data.
|
964
|
-
# @param page_size [Integer]
|
964
|
+
# @param page_size [::Integer]
|
965
965
|
# The maximum number of results to return in a single response. Default is
|
966
966
|
# 10, minimum is 1, maximum is 1000.
|
967
967
|
#
|
968
968
|
# @yield [response, operation] Access the result along with the RPC operation
|
969
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
970
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
969
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::GroupResult>]
|
970
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
971
971
|
#
|
972
|
-
# @return [Gapic::PagedEnumerable
|
972
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::GroupResult>]
|
973
973
|
#
|
974
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
974
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
975
975
|
#
|
976
976
|
def group_assets request, options = nil
|
977
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
977
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
978
978
|
|
979
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::GroupAssetsRequest
|
979
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::GroupAssetsRequest
|
980
980
|
|
981
981
|
# Converts hash and nil to an options object
|
982
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
982
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
983
983
|
|
984
984
|
# Customize the options with defaults
|
985
985
|
metadata = @config.rpcs.group_assets.metadata.to_h
|
986
986
|
|
987
987
|
# Set x-goog-api-client and x-goog-user-project headers
|
988
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
988
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
989
989
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
990
990
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
991
991
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1003,12 +1003,12 @@ module Google
|
|
1003
1003
|
retry_policy: @config.retry_policy
|
1004
1004
|
|
1005
1005
|
@security_center_stub.call_rpc :group_assets, request, options: options do |response, operation|
|
1006
|
-
response = Gapic::PagedEnumerable.new @security_center_stub, :group_assets, request, response, operation, options
|
1006
|
+
response = ::Gapic::PagedEnumerable.new @security_center_stub, :group_assets, request, response, operation, options
|
1007
1007
|
yield response, operation if block_given?
|
1008
1008
|
return response
|
1009
1009
|
end
|
1010
|
-
rescue GRPC::BadStatus => e
|
1011
|
-
raise Google::Cloud::Error.from_error(e)
|
1010
|
+
rescue ::GRPC::BadStatus => e
|
1011
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1012
1012
|
end
|
1013
1013
|
|
1014
1014
|
##
|
@@ -1020,12 +1020,12 @@ module Google
|
|
1020
1020
|
#
|
1021
1021
|
# @overload group_findings(request, options = nil)
|
1022
1022
|
# Pass arguments to `group_findings` via a request object, either of type
|
1023
|
-
# {Google::Cloud::SecurityCenter::V1::GroupFindingsRequest} or an equivalent Hash.
|
1023
|
+
# {::Google::Cloud::SecurityCenter::V1::GroupFindingsRequest} or an equivalent Hash.
|
1024
1024
|
#
|
1025
|
-
# @param request [Google::Cloud::SecurityCenter::V1::GroupFindingsRequest, Hash]
|
1025
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::GroupFindingsRequest, ::Hash]
|
1026
1026
|
# A request object representing the call parameters. Required. To specify no
|
1027
1027
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1028
|
-
# @param options [Gapic::CallOptions, Hash]
|
1028
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1029
1029
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1030
1030
|
#
|
1031
1031
|
# @overload group_findings(parent: nil, filter: nil, group_by: nil, read_time: nil, compare_duration: nil, page_token: nil, page_size: nil)
|
@@ -1033,12 +1033,12 @@ module Google
|
|
1033
1033
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1034
1034
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1035
1035
|
#
|
1036
|
-
# @param parent [String]
|
1036
|
+
# @param parent [::String]
|
1037
1037
|
# Required. Name of the source to groupBy. Its format is
|
1038
1038
|
# "organizations/[organization_id]/sources/[source_id]". To groupBy across
|
1039
1039
|
# all sources provide a source_id of `-`. For example:
|
1040
1040
|
# organizations/\\{organization_id}/sources/-
|
1041
|
-
# @param filter [String]
|
1041
|
+
# @param filter [::String]
|
1042
1042
|
# Expression that defines the filter to apply across findings.
|
1043
1043
|
# The expression is a list of one or more restrictions combined via logical
|
1044
1044
|
# operators `AND` and `OR`.
|
@@ -1082,7 +1082,7 @@ module Google
|
|
1082
1082
|
# * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
|
1083
1083
|
#
|
1084
1084
|
# For example, `source_properties.size = 100` is a valid filter string.
|
1085
|
-
# @param group_by [String]
|
1085
|
+
# @param group_by [::String]
|
1086
1086
|
# Required. Expression that defines what assets fields to use for grouping
|
1087
1087
|
# (including `state_change`). The string value should follow SQL syntax:
|
1088
1088
|
# comma separated list of fields. For example: "parent,resource_name".
|
@@ -1097,12 +1097,12 @@ module Google
|
|
1097
1097
|
# The following fields are supported when compare_duration is set:
|
1098
1098
|
#
|
1099
1099
|
# * state_change
|
1100
|
-
# @param read_time [Google::Protobuf::Timestamp, Hash]
|
1100
|
+
# @param read_time [::Google::Protobuf::Timestamp, ::Hash]
|
1101
1101
|
# Time used as a reference point when filtering findings. The filter is
|
1102
1102
|
# limited to findings existing at the supplied time and their values are
|
1103
1103
|
# those at that specific time. Absence of this field will default to the
|
1104
1104
|
# API's version of NOW.
|
1105
|
-
# @param compare_duration [Google::Protobuf::Duration, Hash]
|
1105
|
+
# @param compare_duration [::Google::Protobuf::Duration, ::Hash]
|
1106
1106
|
# When compare_duration is set, the GroupResult's "state_change" attribute is
|
1107
1107
|
# updated to indicate whether the finding had its state changed, the
|
1108
1108
|
# finding's state remained unchanged, or if the finding was added during the
|
@@ -1135,35 +1135,35 @@ module Google
|
|
1135
1135
|
#
|
1136
1136
|
# If this field is set then `state_change` must be a specified field in
|
1137
1137
|
# `group_by`.
|
1138
|
-
# @param page_token [String]
|
1138
|
+
# @param page_token [::String]
|
1139
1139
|
# The value returned by the last `GroupFindingsResponse`; indicates
|
1140
1140
|
# that this is a continuation of a prior `GroupFindings` call, and
|
1141
1141
|
# that the system should return the next page of data.
|
1142
|
-
# @param page_size [Integer]
|
1142
|
+
# @param page_size [::Integer]
|
1143
1143
|
# The maximum number of results to return in a single response. Default is
|
1144
1144
|
# 10, minimum is 1, maximum is 1000.
|
1145
1145
|
#
|
1146
1146
|
# @yield [response, operation] Access the result along with the RPC operation
|
1147
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1148
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1147
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::GroupResult>]
|
1148
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1149
1149
|
#
|
1150
|
-
# @return [Gapic::PagedEnumerable
|
1150
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::GroupResult>]
|
1151
1151
|
#
|
1152
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1152
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1153
1153
|
#
|
1154
1154
|
def group_findings request, options = nil
|
1155
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1155
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1156
1156
|
|
1157
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::GroupFindingsRequest
|
1157
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::GroupFindingsRequest
|
1158
1158
|
|
1159
1159
|
# Converts hash and nil to an options object
|
1160
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1160
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1161
1161
|
|
1162
1162
|
# Customize the options with defaults
|
1163
1163
|
metadata = @config.rpcs.group_findings.metadata.to_h
|
1164
1164
|
|
1165
1165
|
# Set x-goog-api-client and x-goog-user-project headers
|
1166
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1166
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1167
1167
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1168
1168
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1169
1169
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1181,12 +1181,12 @@ module Google
|
|
1181
1181
|
retry_policy: @config.retry_policy
|
1182
1182
|
|
1183
1183
|
@security_center_stub.call_rpc :group_findings, request, options: options do |response, operation|
|
1184
|
-
response = Gapic::PagedEnumerable.new @security_center_stub, :group_findings, request, response, operation, options
|
1184
|
+
response = ::Gapic::PagedEnumerable.new @security_center_stub, :group_findings, request, response, operation, options
|
1185
1185
|
yield response, operation if block_given?
|
1186
1186
|
return response
|
1187
1187
|
end
|
1188
|
-
rescue GRPC::BadStatus => e
|
1189
|
-
raise Google::Cloud::Error.from_error(e)
|
1188
|
+
rescue ::GRPC::BadStatus => e
|
1189
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1190
1190
|
end
|
1191
1191
|
|
1192
1192
|
##
|
@@ -1194,12 +1194,12 @@ module Google
|
|
1194
1194
|
#
|
1195
1195
|
# @overload list_assets(request, options = nil)
|
1196
1196
|
# Pass arguments to `list_assets` via a request object, either of type
|
1197
|
-
# {Google::Cloud::SecurityCenter::V1::ListAssetsRequest} or an equivalent Hash.
|
1197
|
+
# {::Google::Cloud::SecurityCenter::V1::ListAssetsRequest} or an equivalent Hash.
|
1198
1198
|
#
|
1199
|
-
# @param request [Google::Cloud::SecurityCenter::V1::ListAssetsRequest, Hash]
|
1199
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::ListAssetsRequest, ::Hash]
|
1200
1200
|
# A request object representing the call parameters. Required. To specify no
|
1201
1201
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1202
|
-
# @param options [Gapic::CallOptions, Hash]
|
1202
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1203
1203
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1204
1204
|
#
|
1205
1205
|
# @overload list_assets(parent: nil, filter: nil, order_by: nil, read_time: nil, compare_duration: nil, field_mask: nil, page_token: nil, page_size: nil)
|
@@ -1207,10 +1207,10 @@ module Google
|
|
1207
1207
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1208
1208
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1209
1209
|
#
|
1210
|
-
# @param parent [String]
|
1210
|
+
# @param parent [::String]
|
1211
1211
|
# Required. Name of the organization assets should belong to. Its format is
|
1212
1212
|
# "organizations/[organization_id]".
|
1213
|
-
# @param filter [String]
|
1213
|
+
# @param filter [::String]
|
1214
1214
|
# Expression that defines the filter to apply across assets.
|
1215
1215
|
# The expression is a list of zero or more restrictions combined via logical
|
1216
1216
|
# operators `AND` and `OR`.
|
@@ -1267,7 +1267,7 @@ module Google
|
|
1267
1267
|
# * security_center_properties.resource_owners: `=`, `:`
|
1268
1268
|
#
|
1269
1269
|
# For example, `resource_properties.size = 100` is a valid filter string.
|
1270
|
-
# @param order_by [String]
|
1270
|
+
# @param order_by [::String]
|
1271
1271
|
# Expression that defines what fields and order to use for sorting. The
|
1272
1272
|
# string value should follow SQL syntax: comma separated list of fields. For
|
1273
1273
|
# example: "name,resource_properties.a_property". The default sorting order
|
@@ -1289,12 +1289,12 @@ module Google
|
|
1289
1289
|
# security_center_properties.resource_project
|
1290
1290
|
# security_center_properties.resource_project_display_name
|
1291
1291
|
# security_center_properties.resource_type
|
1292
|
-
# @param read_time [Google::Protobuf::Timestamp, Hash]
|
1292
|
+
# @param read_time [::Google::Protobuf::Timestamp, ::Hash]
|
1293
1293
|
# Time used as a reference point when filtering assets. The filter is limited
|
1294
1294
|
# to assets existing at the supplied time and their values are those at that
|
1295
1295
|
# specific time. Absence of this field will default to the API's version of
|
1296
1296
|
# NOW.
|
1297
|
-
# @param compare_duration [Google::Protobuf::Duration, Hash]
|
1297
|
+
# @param compare_duration [::Google::Protobuf::Duration, ::Hash]
|
1298
1298
|
# When compare_duration is set, the ListAssetsResult's "state_change"
|
1299
1299
|
# attribute is updated to indicate whether the asset was added, removed, or
|
1300
1300
|
# remained present during the compare_duration period of time that precedes
|
@@ -1319,38 +1319,38 @@ module Google
|
|
1319
1319
|
# If compare_duration is not specified, then the only possible state_change
|
1320
1320
|
# is "UNUSED", which will be the state_change set for all assets present at
|
1321
1321
|
# read_time.
|
1322
|
-
# @param field_mask [Google::Protobuf::FieldMask, Hash]
|
1322
|
+
# @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1323
1323
|
# Optional. A field mask to specify the ListAssetsResult fields to be listed
|
1324
1324
|
# in the response. An empty field mask will list all fields.
|
1325
|
-
# @param page_token [String]
|
1325
|
+
# @param page_token [::String]
|
1326
1326
|
# The value returned by the last `ListAssetsResponse`; indicates
|
1327
1327
|
# that this is a continuation of a prior `ListAssets` call, and
|
1328
1328
|
# that the system should return the next page of data.
|
1329
|
-
# @param page_size [Integer]
|
1329
|
+
# @param page_size [::Integer]
|
1330
1330
|
# The maximum number of results to return in a single response. Default is
|
1331
1331
|
# 10, minimum is 1, maximum is 1000.
|
1332
1332
|
#
|
1333
1333
|
# @yield [response, operation] Access the result along with the RPC operation
|
1334
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1335
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1334
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult>]
|
1335
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1336
1336
|
#
|
1337
|
-
# @return [Gapic::PagedEnumerable
|
1337
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult>]
|
1338
1338
|
#
|
1339
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1339
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1340
1340
|
#
|
1341
1341
|
def list_assets request, options = nil
|
1342
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1342
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1343
1343
|
|
1344
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::ListAssetsRequest
|
1344
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::ListAssetsRequest
|
1345
1345
|
|
1346
1346
|
# Converts hash and nil to an options object
|
1347
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1347
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1348
1348
|
|
1349
1349
|
# Customize the options with defaults
|
1350
1350
|
metadata = @config.rpcs.list_assets.metadata.to_h
|
1351
1351
|
|
1352
1352
|
# Set x-goog-api-client and x-goog-user-project headers
|
1353
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1353
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1354
1354
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1355
1355
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1356
1356
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1368,12 +1368,12 @@ module Google
|
|
1368
1368
|
retry_policy: @config.retry_policy
|
1369
1369
|
|
1370
1370
|
@security_center_stub.call_rpc :list_assets, request, options: options do |response, operation|
|
1371
|
-
response = Gapic::PagedEnumerable.new @security_center_stub, :list_assets, request, response, operation, options
|
1371
|
+
response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_assets, request, response, operation, options
|
1372
1372
|
yield response, operation if block_given?
|
1373
1373
|
return response
|
1374
1374
|
end
|
1375
|
-
rescue GRPC::BadStatus => e
|
1376
|
-
raise Google::Cloud::Error.from_error(e)
|
1375
|
+
rescue ::GRPC::BadStatus => e
|
1376
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1377
1377
|
end
|
1378
1378
|
|
1379
1379
|
##
|
@@ -1384,12 +1384,12 @@ module Google
|
|
1384
1384
|
#
|
1385
1385
|
# @overload list_findings(request, options = nil)
|
1386
1386
|
# Pass arguments to `list_findings` via a request object, either of type
|
1387
|
-
# {Google::Cloud::SecurityCenter::V1::ListFindingsRequest} or an equivalent Hash.
|
1387
|
+
# {::Google::Cloud::SecurityCenter::V1::ListFindingsRequest} or an equivalent Hash.
|
1388
1388
|
#
|
1389
|
-
# @param request [Google::Cloud::SecurityCenter::V1::ListFindingsRequest, Hash]
|
1389
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::ListFindingsRequest, ::Hash]
|
1390
1390
|
# A request object representing the call parameters. Required. To specify no
|
1391
1391
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1392
|
-
# @param options [Gapic::CallOptions, Hash]
|
1392
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1393
1393
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1394
1394
|
#
|
1395
1395
|
# @overload list_findings(parent: nil, filter: nil, order_by: nil, read_time: nil, compare_duration: nil, field_mask: nil, page_token: nil, page_size: nil)
|
@@ -1397,12 +1397,12 @@ module Google
|
|
1397
1397
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1398
1398
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1399
1399
|
#
|
1400
|
-
# @param parent [String]
|
1400
|
+
# @param parent [::String]
|
1401
1401
|
# Required. Name of the source the findings belong to. Its format is
|
1402
1402
|
# "organizations/[organization_id]/sources/[source_id]". To list across all
|
1403
1403
|
# sources provide a source_id of `-`. For example:
|
1404
1404
|
# organizations/\\{organization_id}/sources/-
|
1405
|
-
# @param filter [String]
|
1405
|
+
# @param filter [::String]
|
1406
1406
|
# Expression that defines the filter to apply across findings.
|
1407
1407
|
# The expression is a list of one or more restrictions combined via logical
|
1408
1408
|
# operators `AND` and `OR`.
|
@@ -1446,7 +1446,7 @@ module Google
|
|
1446
1446
|
# source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
|
1447
1447
|
#
|
1448
1448
|
# For example, `source_properties.size = 100` is a valid filter string.
|
1449
|
-
# @param order_by [String]
|
1449
|
+
# @param order_by [::String]
|
1450
1450
|
# Expression that defines what fields and order to use for sorting. The
|
1451
1451
|
# string value should follow SQL syntax: comma separated list of fields. For
|
1452
1452
|
# example: "name,resource_properties.a_property". The default sorting order
|
@@ -1465,12 +1465,12 @@ module Google
|
|
1465
1465
|
# event_time
|
1466
1466
|
# source_properties
|
1467
1467
|
# security_marks.marks
|
1468
|
-
# @param read_time [Google::Protobuf::Timestamp, Hash]
|
1468
|
+
# @param read_time [::Google::Protobuf::Timestamp, ::Hash]
|
1469
1469
|
# Time used as a reference point when filtering findings. The filter is
|
1470
1470
|
# limited to findings existing at the supplied time and their values are
|
1471
1471
|
# those at that specific time. Absence of this field will default to the
|
1472
1472
|
# API's version of NOW.
|
1473
|
-
# @param compare_duration [Google::Protobuf::Duration, Hash]
|
1473
|
+
# @param compare_duration [::Google::Protobuf::Duration, ::Hash]
|
1474
1474
|
# When compare_duration is set, the ListFindingsResult's "state_change"
|
1475
1475
|
# attribute is updated to indicate whether the finding had its state changed,
|
1476
1476
|
# the finding's state remained unchanged, or if the finding was added in any
|
@@ -1501,38 +1501,38 @@ module Google
|
|
1501
1501
|
# If compare_duration is not specified, then the only possible state_change
|
1502
1502
|
# is "UNUSED", which will be the state_change set for all findings present at
|
1503
1503
|
# read_time.
|
1504
|
-
# @param field_mask [Google::Protobuf::FieldMask, Hash]
|
1504
|
+
# @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1505
1505
|
# Optional. A field mask to specify the Finding fields to be listed in the
|
1506
1506
|
# response. An empty field mask will list all fields.
|
1507
|
-
# @param page_token [String]
|
1507
|
+
# @param page_token [::String]
|
1508
1508
|
# The value returned by the last `ListFindingsResponse`; indicates
|
1509
1509
|
# that this is a continuation of a prior `ListFindings` call, and
|
1510
1510
|
# that the system should return the next page of data.
|
1511
|
-
# @param page_size [Integer]
|
1511
|
+
# @param page_size [::Integer]
|
1512
1512
|
# The maximum number of results to return in a single response. Default is
|
1513
1513
|
# 10, minimum is 1, maximum is 1000.
|
1514
1514
|
#
|
1515
1515
|
# @yield [response, operation] Access the result along with the RPC operation
|
1516
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1517
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1516
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult>]
|
1517
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1518
1518
|
#
|
1519
|
-
# @return [Gapic::PagedEnumerable
|
1519
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult>]
|
1520
1520
|
#
|
1521
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1521
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1522
1522
|
#
|
1523
1523
|
def list_findings request, options = nil
|
1524
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1524
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1525
1525
|
|
1526
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::ListFindingsRequest
|
1526
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::ListFindingsRequest
|
1527
1527
|
|
1528
1528
|
# Converts hash and nil to an options object
|
1529
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1529
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1530
1530
|
|
1531
1531
|
# Customize the options with defaults
|
1532
1532
|
metadata = @config.rpcs.list_findings.metadata.to_h
|
1533
1533
|
|
1534
1534
|
# Set x-goog-api-client and x-goog-user-project headers
|
1535
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1535
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1536
1536
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1537
1537
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1538
1538
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1550,12 +1550,12 @@ module Google
|
|
1550
1550
|
retry_policy: @config.retry_policy
|
1551
1551
|
|
1552
1552
|
@security_center_stub.call_rpc :list_findings, request, options: options do |response, operation|
|
1553
|
-
response = Gapic::PagedEnumerable.new @security_center_stub, :list_findings, request, response, operation, options
|
1553
|
+
response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_findings, request, response, operation, options
|
1554
1554
|
yield response, operation if block_given?
|
1555
1555
|
return response
|
1556
1556
|
end
|
1557
|
-
rescue GRPC::BadStatus => e
|
1558
|
-
raise Google::Cloud::Error.from_error(e)
|
1557
|
+
rescue ::GRPC::BadStatus => e
|
1558
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1559
1559
|
end
|
1560
1560
|
|
1561
1561
|
##
|
@@ -1563,12 +1563,12 @@ module Google
|
|
1563
1563
|
#
|
1564
1564
|
# @overload list_notification_configs(request, options = nil)
|
1565
1565
|
# Pass arguments to `list_notification_configs` via a request object, either of type
|
1566
|
-
# {Google::Cloud::SecurityCenter::V1::ListNotificationConfigsRequest} or an equivalent Hash.
|
1566
|
+
# {::Google::Cloud::SecurityCenter::V1::ListNotificationConfigsRequest} or an equivalent Hash.
|
1567
1567
|
#
|
1568
|
-
# @param request [Google::Cloud::SecurityCenter::V1::ListNotificationConfigsRequest, Hash]
|
1568
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::ListNotificationConfigsRequest, ::Hash]
|
1569
1569
|
# A request object representing the call parameters. Required. To specify no
|
1570
1570
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1571
|
-
# @param options [Gapic::CallOptions, Hash]
|
1571
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1572
1572
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1573
1573
|
#
|
1574
1574
|
# @overload list_notification_configs(parent: nil, page_token: nil, page_size: nil)
|
@@ -1576,38 +1576,38 @@ module Google
|
|
1576
1576
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1577
1577
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1578
1578
|
#
|
1579
|
-
# @param parent [String]
|
1579
|
+
# @param parent [::String]
|
1580
1580
|
# Required. Name of the organization to list notification configs.
|
1581
1581
|
# Its format is "organizations/[organization_id]".
|
1582
|
-
# @param page_token [String]
|
1582
|
+
# @param page_token [::String]
|
1583
1583
|
# The value returned by the last `ListNotificationConfigsResponse`; indicates
|
1584
1584
|
# that this is a continuation of a prior `ListNotificationConfigs` call, and
|
1585
1585
|
# that the system should return the next page of data.
|
1586
|
-
# @param page_size [Integer]
|
1586
|
+
# @param page_size [::Integer]
|
1587
1587
|
# The maximum number of results to return in a single response. Default is
|
1588
1588
|
# 10, minimum is 1, maximum is 1000.
|
1589
1589
|
#
|
1590
1590
|
# @yield [response, operation] Access the result along with the RPC operation
|
1591
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1592
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1591
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::NotificationConfig>]
|
1592
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1593
1593
|
#
|
1594
|
-
# @return [Gapic::PagedEnumerable
|
1594
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::NotificationConfig>]
|
1595
1595
|
#
|
1596
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1596
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1597
1597
|
#
|
1598
1598
|
def list_notification_configs request, options = nil
|
1599
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1599
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1600
1600
|
|
1601
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::ListNotificationConfigsRequest
|
1601
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::ListNotificationConfigsRequest
|
1602
1602
|
|
1603
1603
|
# Converts hash and nil to an options object
|
1604
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1604
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1605
1605
|
|
1606
1606
|
# Customize the options with defaults
|
1607
1607
|
metadata = @config.rpcs.list_notification_configs.metadata.to_h
|
1608
1608
|
|
1609
1609
|
# Set x-goog-api-client and x-goog-user-project headers
|
1610
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1610
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1611
1611
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1612
1612
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1613
1613
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1625,12 +1625,12 @@ module Google
|
|
1625
1625
|
retry_policy: @config.retry_policy
|
1626
1626
|
|
1627
1627
|
@security_center_stub.call_rpc :list_notification_configs, request, options: options do |response, operation|
|
1628
|
-
response = Gapic::PagedEnumerable.new @security_center_stub, :list_notification_configs, request, response, operation, options
|
1628
|
+
response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_notification_configs, request, response, operation, options
|
1629
1629
|
yield response, operation if block_given?
|
1630
1630
|
return response
|
1631
1631
|
end
|
1632
|
-
rescue GRPC::BadStatus => e
|
1633
|
-
raise Google::Cloud::Error.from_error(e)
|
1632
|
+
rescue ::GRPC::BadStatus => e
|
1633
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1634
1634
|
end
|
1635
1635
|
|
1636
1636
|
##
|
@@ -1638,12 +1638,12 @@ module Google
|
|
1638
1638
|
#
|
1639
1639
|
# @overload list_sources(request, options = nil)
|
1640
1640
|
# Pass arguments to `list_sources` via a request object, either of type
|
1641
|
-
# {Google::Cloud::SecurityCenter::V1::ListSourcesRequest} or an equivalent Hash.
|
1641
|
+
# {::Google::Cloud::SecurityCenter::V1::ListSourcesRequest} or an equivalent Hash.
|
1642
1642
|
#
|
1643
|
-
# @param request [Google::Cloud::SecurityCenter::V1::ListSourcesRequest, Hash]
|
1643
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::ListSourcesRequest, ::Hash]
|
1644
1644
|
# A request object representing the call parameters. Required. To specify no
|
1645
1645
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1646
|
-
# @param options [Gapic::CallOptions, Hash]
|
1646
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1647
1647
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1648
1648
|
#
|
1649
1649
|
# @overload list_sources(parent: nil, page_token: nil, page_size: nil)
|
@@ -1651,38 +1651,38 @@ module Google
|
|
1651
1651
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1652
1652
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1653
1653
|
#
|
1654
|
-
# @param parent [String]
|
1654
|
+
# @param parent [::String]
|
1655
1655
|
# Required. Resource name of the parent of sources to list. Its format should
|
1656
1656
|
# be "organizations/[organization_id]".
|
1657
|
-
# @param page_token [String]
|
1657
|
+
# @param page_token [::String]
|
1658
1658
|
# The value returned by the last `ListSourcesResponse`; indicates
|
1659
1659
|
# that this is a continuation of a prior `ListSources` call, and
|
1660
1660
|
# that the system should return the next page of data.
|
1661
|
-
# @param page_size [Integer]
|
1661
|
+
# @param page_size [::Integer]
|
1662
1662
|
# The maximum number of results to return in a single response. Default is
|
1663
1663
|
# 10, minimum is 1, maximum is 1000.
|
1664
1664
|
#
|
1665
1665
|
# @yield [response, operation] Access the result along with the RPC operation
|
1666
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1667
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1666
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::Source>]
|
1667
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1668
1668
|
#
|
1669
|
-
# @return [Gapic::PagedEnumerable
|
1669
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::Source>]
|
1670
1670
|
#
|
1671
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1671
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1672
1672
|
#
|
1673
1673
|
def list_sources request, options = nil
|
1674
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1674
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1675
1675
|
|
1676
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::ListSourcesRequest
|
1676
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::ListSourcesRequest
|
1677
1677
|
|
1678
1678
|
# Converts hash and nil to an options object
|
1679
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1679
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1680
1680
|
|
1681
1681
|
# Customize the options with defaults
|
1682
1682
|
metadata = @config.rpcs.list_sources.metadata.to_h
|
1683
1683
|
|
1684
1684
|
# Set x-goog-api-client and x-goog-user-project headers
|
1685
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1685
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1686
1686
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1687
1687
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1688
1688
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1700,12 +1700,12 @@ module Google
|
|
1700
1700
|
retry_policy: @config.retry_policy
|
1701
1701
|
|
1702
1702
|
@security_center_stub.call_rpc :list_sources, request, options: options do |response, operation|
|
1703
|
-
response = Gapic::PagedEnumerable.new @security_center_stub, :list_sources, request, response, operation, options
|
1703
|
+
response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_sources, request, response, operation, options
|
1704
1704
|
yield response, operation if block_given?
|
1705
1705
|
return response
|
1706
1706
|
end
|
1707
|
-
rescue GRPC::BadStatus => e
|
1708
|
-
raise Google::Cloud::Error.from_error(e)
|
1707
|
+
rescue ::GRPC::BadStatus => e
|
1708
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1709
1709
|
end
|
1710
1710
|
|
1711
1711
|
##
|
@@ -1718,12 +1718,12 @@ module Google
|
|
1718
1718
|
#
|
1719
1719
|
# @overload run_asset_discovery(request, options = nil)
|
1720
1720
|
# Pass arguments to `run_asset_discovery` via a request object, either of type
|
1721
|
-
# {Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryRequest} or an equivalent Hash.
|
1721
|
+
# {::Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryRequest} or an equivalent Hash.
|
1722
1722
|
#
|
1723
|
-
# @param request [Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryRequest, Hash]
|
1723
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryRequest, ::Hash]
|
1724
1724
|
# A request object representing the call parameters. Required. To specify no
|
1725
1725
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1726
|
-
# @param options [Gapic::CallOptions, Hash]
|
1726
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1727
1727
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1728
1728
|
#
|
1729
1729
|
# @overload run_asset_discovery(parent: nil)
|
@@ -1731,31 +1731,31 @@ module Google
|
|
1731
1731
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1732
1732
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1733
1733
|
#
|
1734
|
-
# @param parent [String]
|
1734
|
+
# @param parent [::String]
|
1735
1735
|
# Required. Name of the organization to run asset discovery for. Its format
|
1736
1736
|
# is "organizations/[organization_id]".
|
1737
1737
|
#
|
1738
1738
|
# @yield [response, operation] Access the result along with the RPC operation
|
1739
|
-
# @yieldparam response [Gapic::Operation]
|
1740
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1739
|
+
# @yieldparam response [::Gapic::Operation]
|
1740
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1741
1741
|
#
|
1742
|
-
# @return [Gapic::Operation]
|
1742
|
+
# @return [::Gapic::Operation]
|
1743
1743
|
#
|
1744
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1744
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1745
1745
|
#
|
1746
1746
|
def run_asset_discovery request, options = nil
|
1747
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1747
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1748
1748
|
|
1749
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryRequest
|
1749
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryRequest
|
1750
1750
|
|
1751
1751
|
# Converts hash and nil to an options object
|
1752
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1752
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1753
1753
|
|
1754
1754
|
# Customize the options with defaults
|
1755
1755
|
metadata = @config.rpcs.run_asset_discovery.metadata.to_h
|
1756
1756
|
|
1757
1757
|
# Set x-goog-api-client and x-goog-user-project headers
|
1758
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1758
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1759
1759
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1760
1760
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1761
1761
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1773,12 +1773,12 @@ module Google
|
|
1773
1773
|
retry_policy: @config.retry_policy
|
1774
1774
|
|
1775
1775
|
@security_center_stub.call_rpc :run_asset_discovery, request, options: options do |response, operation|
|
1776
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
1776
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1777
1777
|
yield response, operation if block_given?
|
1778
1778
|
return response
|
1779
1779
|
end
|
1780
|
-
rescue GRPC::BadStatus => e
|
1781
|
-
raise Google::Cloud::Error.from_error(e)
|
1780
|
+
rescue ::GRPC::BadStatus => e
|
1781
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1782
1782
|
end
|
1783
1783
|
|
1784
1784
|
##
|
@@ -1786,12 +1786,12 @@ module Google
|
|
1786
1786
|
#
|
1787
1787
|
# @overload set_finding_state(request, options = nil)
|
1788
1788
|
# Pass arguments to `set_finding_state` via a request object, either of type
|
1789
|
-
# {Google::Cloud::SecurityCenter::V1::SetFindingStateRequest} or an equivalent Hash.
|
1789
|
+
# {::Google::Cloud::SecurityCenter::V1::SetFindingStateRequest} or an equivalent Hash.
|
1790
1790
|
#
|
1791
|
-
# @param request [Google::Cloud::SecurityCenter::V1::SetFindingStateRequest, Hash]
|
1791
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::SetFindingStateRequest, ::Hash]
|
1792
1792
|
# A request object representing the call parameters. Required. To specify no
|
1793
1793
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1794
|
-
# @param options [Gapic::CallOptions, Hash]
|
1794
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1795
1795
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1796
1796
|
#
|
1797
1797
|
# @overload set_finding_state(name: nil, state: nil, start_time: nil)
|
@@ -1799,37 +1799,37 @@ module Google
|
|
1799
1799
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1800
1800
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1801
1801
|
#
|
1802
|
-
# @param name [String]
|
1802
|
+
# @param name [::String]
|
1803
1803
|
# Required. The relative resource name of the finding. See:
|
1804
1804
|
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
1805
1805
|
# Example:
|
1806
1806
|
# "organizations/\\{organization_id}/sources/\\{source_id}/finding/\\{finding_id}".
|
1807
|
-
# @param state [Google::Cloud::SecurityCenter::V1::Finding::State]
|
1807
|
+
# @param state [::Google::Cloud::SecurityCenter::V1::Finding::State]
|
1808
1808
|
# Required. The desired State of the finding.
|
1809
|
-
# @param start_time [Google::Protobuf::Timestamp, Hash]
|
1809
|
+
# @param start_time [::Google::Protobuf::Timestamp, ::Hash]
|
1810
1810
|
# Required. The time at which the updated state takes effect.
|
1811
1811
|
#
|
1812
1812
|
# @yield [response, operation] Access the result along with the RPC operation
|
1813
|
-
# @yieldparam response [Google::Cloud::SecurityCenter::V1::Finding]
|
1814
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1813
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::Finding]
|
1814
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1815
1815
|
#
|
1816
|
-
# @return [Google::Cloud::SecurityCenter::V1::Finding]
|
1816
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Finding]
|
1817
1817
|
#
|
1818
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1818
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1819
1819
|
#
|
1820
1820
|
def set_finding_state request, options = nil
|
1821
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1821
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1822
1822
|
|
1823
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::SetFindingStateRequest
|
1823
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::SetFindingStateRequest
|
1824
1824
|
|
1825
1825
|
# Converts hash and nil to an options object
|
1826
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1826
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1827
1827
|
|
1828
1828
|
# Customize the options with defaults
|
1829
1829
|
metadata = @config.rpcs.set_finding_state.metadata.to_h
|
1830
1830
|
|
1831
1831
|
# Set x-goog-api-client and x-goog-user-project headers
|
1832
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1832
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1833
1833
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1834
1834
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1835
1835
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1850,8 +1850,8 @@ module Google
|
|
1850
1850
|
yield response, operation if block_given?
|
1851
1851
|
return response
|
1852
1852
|
end
|
1853
|
-
rescue GRPC::BadStatus => e
|
1854
|
-
raise Google::Cloud::Error.from_error(e)
|
1853
|
+
rescue ::GRPC::BadStatus => e
|
1854
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1855
1855
|
end
|
1856
1856
|
|
1857
1857
|
##
|
@@ -1859,12 +1859,12 @@ module Google
|
|
1859
1859
|
#
|
1860
1860
|
# @overload set_iam_policy(request, options = nil)
|
1861
1861
|
# Pass arguments to `set_iam_policy` via a request object, either of type
|
1862
|
-
# {Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
|
1862
|
+
# {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
|
1863
1863
|
#
|
1864
|
-
# @param request [Google::Iam::V1::SetIamPolicyRequest, Hash]
|
1864
|
+
# @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
|
1865
1865
|
# A request object representing the call parameters. Required. To specify no
|
1866
1866
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1867
|
-
# @param options [Gapic::CallOptions, Hash]
|
1867
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1868
1868
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1869
1869
|
#
|
1870
1870
|
# @overload set_iam_policy(resource: nil, policy: nil)
|
@@ -1872,36 +1872,36 @@ module Google
|
|
1872
1872
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1873
1873
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1874
1874
|
#
|
1875
|
-
# @param resource [String]
|
1875
|
+
# @param resource [::String]
|
1876
1876
|
# REQUIRED: The resource for which the policy is being specified.
|
1877
1877
|
# See the operation documentation for the appropriate value for this field.
|
1878
|
-
# @param policy [Google::Iam::V1::Policy, Hash]
|
1878
|
+
# @param policy [::Google::Iam::V1::Policy, ::Hash]
|
1879
1879
|
# REQUIRED: The complete policy to be applied to the `resource`. The size of
|
1880
1880
|
# the policy is limited to a few 10s of KB. An empty policy is a
|
1881
1881
|
# valid policy but certain Cloud Platform services (such as Projects)
|
1882
1882
|
# might reject them.
|
1883
1883
|
#
|
1884
1884
|
# @yield [response, operation] Access the result along with the RPC operation
|
1885
|
-
# @yieldparam response [Google::Iam::V1::Policy]
|
1886
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1885
|
+
# @yieldparam response [::Google::Iam::V1::Policy]
|
1886
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1887
1887
|
#
|
1888
|
-
# @return [Google::Iam::V1::Policy]
|
1888
|
+
# @return [::Google::Iam::V1::Policy]
|
1889
1889
|
#
|
1890
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1890
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1891
1891
|
#
|
1892
1892
|
def set_iam_policy request, options = nil
|
1893
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1893
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1894
1894
|
|
1895
|
-
request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::SetIamPolicyRequest
|
1895
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
|
1896
1896
|
|
1897
1897
|
# Converts hash and nil to an options object
|
1898
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1898
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1899
1899
|
|
1900
1900
|
# Customize the options with defaults
|
1901
1901
|
metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
1902
1902
|
|
1903
1903
|
# Set x-goog-api-client and x-goog-user-project headers
|
1904
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1904
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1905
1905
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1906
1906
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1907
1907
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1922,8 +1922,8 @@ module Google
|
|
1922
1922
|
yield response, operation if block_given?
|
1923
1923
|
return response
|
1924
1924
|
end
|
1925
|
-
rescue GRPC::BadStatus => e
|
1926
|
-
raise Google::Cloud::Error.from_error(e)
|
1925
|
+
rescue ::GRPC::BadStatus => e
|
1926
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1927
1927
|
end
|
1928
1928
|
|
1929
1929
|
##
|
@@ -1931,12 +1931,12 @@ module Google
|
|
1931
1931
|
#
|
1932
1932
|
# @overload test_iam_permissions(request, options = nil)
|
1933
1933
|
# Pass arguments to `test_iam_permissions` via a request object, either of type
|
1934
|
-
# {Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
|
1934
|
+
# {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
|
1935
1935
|
#
|
1936
|
-
# @param request [Google::Iam::V1::TestIamPermissionsRequest, Hash]
|
1936
|
+
# @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
|
1937
1937
|
# A request object representing the call parameters. Required. To specify no
|
1938
1938
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1939
|
-
# @param options [Gapic::CallOptions, Hash]
|
1939
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1940
1940
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1941
1941
|
#
|
1942
1942
|
# @overload test_iam_permissions(resource: nil, permissions: nil)
|
@@ -1944,36 +1944,36 @@ module Google
|
|
1944
1944
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1945
1945
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1946
1946
|
#
|
1947
|
-
# @param resource [String]
|
1947
|
+
# @param resource [::String]
|
1948
1948
|
# REQUIRED: The resource for which the policy detail is being requested.
|
1949
1949
|
# See the operation documentation for the appropriate value for this field.
|
1950
|
-
# @param permissions [Array
|
1950
|
+
# @param permissions [::Array<::String>]
|
1951
1951
|
# The set of permissions to check for the `resource`. Permissions with
|
1952
1952
|
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
1953
1953
|
# information see
|
1954
1954
|
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
1955
1955
|
#
|
1956
1956
|
# @yield [response, operation] Access the result along with the RPC operation
|
1957
|
-
# @yieldparam response [Google::Iam::V1::TestIamPermissionsResponse]
|
1958
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1957
|
+
# @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse]
|
1958
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1959
1959
|
#
|
1960
|
-
# @return [Google::Iam::V1::TestIamPermissionsResponse]
|
1960
|
+
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
1961
1961
|
#
|
1962
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1962
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1963
1963
|
#
|
1964
1964
|
def test_iam_permissions request, options = nil
|
1965
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1965
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1966
1966
|
|
1967
|
-
request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::TestIamPermissionsRequest
|
1967
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
|
1968
1968
|
|
1969
1969
|
# Converts hash and nil to an options object
|
1970
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1970
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1971
1971
|
|
1972
1972
|
# Customize the options with defaults
|
1973
1973
|
metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
1974
1974
|
|
1975
1975
|
# Set x-goog-api-client and x-goog-user-project headers
|
1976
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1976
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1977
1977
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1978
1978
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1979
1979
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1994,8 +1994,8 @@ module Google
|
|
1994
1994
|
yield response, operation if block_given?
|
1995
1995
|
return response
|
1996
1996
|
end
|
1997
|
-
rescue GRPC::BadStatus => e
|
1998
|
-
raise Google::Cloud::Error.from_error(e)
|
1997
|
+
rescue ::GRPC::BadStatus => e
|
1998
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1999
1999
|
end
|
2000
2000
|
|
2001
2001
|
##
|
@@ -2004,12 +2004,12 @@ module Google
|
|
2004
2004
|
#
|
2005
2005
|
# @overload update_finding(request, options = nil)
|
2006
2006
|
# Pass arguments to `update_finding` via a request object, either of type
|
2007
|
-
# {Google::Cloud::SecurityCenter::V1::UpdateFindingRequest} or an equivalent Hash.
|
2007
|
+
# {::Google::Cloud::SecurityCenter::V1::UpdateFindingRequest} or an equivalent Hash.
|
2008
2008
|
#
|
2009
|
-
# @param request [Google::Cloud::SecurityCenter::V1::UpdateFindingRequest, Hash]
|
2009
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::UpdateFindingRequest, ::Hash]
|
2010
2010
|
# A request object representing the call parameters. Required. To specify no
|
2011
2011
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2012
|
-
# @param options [Gapic::CallOptions, Hash]
|
2012
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2013
2013
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2014
2014
|
#
|
2015
2015
|
# @overload update_finding(finding: nil, update_mask: nil)
|
@@ -2017,14 +2017,14 @@ module Google
|
|
2017
2017
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2018
2018
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2019
2019
|
#
|
2020
|
-
# @param finding [Google::Cloud::SecurityCenter::V1::Finding, Hash]
|
2020
|
+
# @param finding [::Google::Cloud::SecurityCenter::V1::Finding, ::Hash]
|
2021
2021
|
# Required. The finding resource to update or create if it does not already
|
2022
2022
|
# exist. parent, security_marks, and update_time will be ignored.
|
2023
2023
|
#
|
2024
2024
|
# In the case of creation, the finding id portion of the name must be
|
2025
2025
|
# alphanumeric and less than or equal to 32 characters and greater than 0
|
2026
2026
|
# characters in length.
|
2027
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
2027
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2028
2028
|
# The FieldMask to use when updating the finding resource. This field should
|
2029
2029
|
# not be specified when creating a finding.
|
2030
2030
|
#
|
@@ -2034,26 +2034,26 @@ module Google
|
|
2034
2034
|
# mask.
|
2035
2035
|
#
|
2036
2036
|
# @yield [response, operation] Access the result along with the RPC operation
|
2037
|
-
# @yieldparam response [Google::Cloud::SecurityCenter::V1::Finding]
|
2038
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
2037
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::Finding]
|
2038
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2039
2039
|
#
|
2040
|
-
# @return [Google::Cloud::SecurityCenter::V1::Finding]
|
2040
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Finding]
|
2041
2041
|
#
|
2042
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2042
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2043
2043
|
#
|
2044
2044
|
def update_finding request, options = nil
|
2045
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2045
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2046
2046
|
|
2047
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::UpdateFindingRequest
|
2047
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::UpdateFindingRequest
|
2048
2048
|
|
2049
2049
|
# Converts hash and nil to an options object
|
2050
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2050
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2051
2051
|
|
2052
2052
|
# Customize the options with defaults
|
2053
2053
|
metadata = @config.rpcs.update_finding.metadata.to_h
|
2054
2054
|
|
2055
2055
|
# Set x-goog-api-client and x-goog-user-project headers
|
2056
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2056
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2057
2057
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2058
2058
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
2059
2059
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2074,8 +2074,8 @@ module Google
|
|
2074
2074
|
yield response, operation if block_given?
|
2075
2075
|
return response
|
2076
2076
|
end
|
2077
|
-
rescue GRPC::BadStatus => e
|
2078
|
-
raise Google::Cloud::Error.from_error(e)
|
2077
|
+
rescue ::GRPC::BadStatus => e
|
2078
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2079
2079
|
end
|
2080
2080
|
|
2081
2081
|
##
|
@@ -2083,12 +2083,12 @@ module Google
|
|
2083
2083
|
#
|
2084
2084
|
# @overload update_notification_config(request, options = nil)
|
2085
2085
|
# Pass arguments to `update_notification_config` via a request object, either of type
|
2086
|
-
# {Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest} or an equivalent Hash.
|
2086
|
+
# {::Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest} or an equivalent Hash.
|
2087
2087
|
#
|
2088
|
-
# @param request [Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest, Hash]
|
2088
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest, ::Hash]
|
2089
2089
|
# A request object representing the call parameters. Required. To specify no
|
2090
2090
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2091
|
-
# @param options [Gapic::CallOptions, Hash]
|
2091
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2092
2092
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2093
2093
|
#
|
2094
2094
|
# @overload update_notification_config(notification_config: nil, update_mask: nil)
|
@@ -2096,34 +2096,34 @@ module Google
|
|
2096
2096
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2097
2097
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2098
2098
|
#
|
2099
|
-
# @param notification_config [Google::Cloud::SecurityCenter::V1::NotificationConfig, Hash]
|
2099
|
+
# @param notification_config [::Google::Cloud::SecurityCenter::V1::NotificationConfig, ::Hash]
|
2100
2100
|
# Required. The notification config to update.
|
2101
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
2101
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2102
2102
|
# The FieldMask to use when updating the notification config.
|
2103
2103
|
#
|
2104
2104
|
# If empty all mutable fields will be updated.
|
2105
2105
|
#
|
2106
2106
|
# @yield [response, operation] Access the result along with the RPC operation
|
2107
|
-
# @yieldparam response [Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
2108
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
2107
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
2108
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2109
2109
|
#
|
2110
|
-
# @return [Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
2110
|
+
# @return [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
2111
2111
|
#
|
2112
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2112
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2113
2113
|
#
|
2114
2114
|
def update_notification_config request, options = nil
|
2115
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2115
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2116
2116
|
|
2117
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest
|
2117
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest
|
2118
2118
|
|
2119
2119
|
# Converts hash and nil to an options object
|
2120
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2120
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2121
2121
|
|
2122
2122
|
# Customize the options with defaults
|
2123
2123
|
metadata = @config.rpcs.update_notification_config.metadata.to_h
|
2124
2124
|
|
2125
2125
|
# Set x-goog-api-client and x-goog-user-project headers
|
2126
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2126
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2127
2127
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2128
2128
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
2129
2129
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2144,8 +2144,8 @@ module Google
|
|
2144
2144
|
yield response, operation if block_given?
|
2145
2145
|
return response
|
2146
2146
|
end
|
2147
|
-
rescue GRPC::BadStatus => e
|
2148
|
-
raise Google::Cloud::Error.from_error(e)
|
2147
|
+
rescue ::GRPC::BadStatus => e
|
2148
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2149
2149
|
end
|
2150
2150
|
|
2151
2151
|
##
|
@@ -2153,12 +2153,12 @@ module Google
|
|
2153
2153
|
#
|
2154
2154
|
# @overload update_organization_settings(request, options = nil)
|
2155
2155
|
# Pass arguments to `update_organization_settings` via a request object, either of type
|
2156
|
-
# {Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest} or an equivalent Hash.
|
2156
|
+
# {::Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest} or an equivalent Hash.
|
2157
2157
|
#
|
2158
|
-
# @param request [Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest, Hash]
|
2158
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest, ::Hash]
|
2159
2159
|
# A request object representing the call parameters. Required. To specify no
|
2160
2160
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2161
|
-
# @param options [Gapic::CallOptions, Hash]
|
2161
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2162
2162
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2163
2163
|
#
|
2164
2164
|
# @overload update_organization_settings(organization_settings: nil, update_mask: nil)
|
@@ -2166,34 +2166,34 @@ module Google
|
|
2166
2166
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2167
2167
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2168
2168
|
#
|
2169
|
-
# @param organization_settings [Google::Cloud::SecurityCenter::V1::OrganizationSettings, Hash]
|
2169
|
+
# @param organization_settings [::Google::Cloud::SecurityCenter::V1::OrganizationSettings, ::Hash]
|
2170
2170
|
# Required. The organization settings resource to update.
|
2171
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
2171
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2172
2172
|
# The FieldMask to use when updating the settings resource.
|
2173
2173
|
#
|
2174
2174
|
# If empty all mutable fields will be updated.
|
2175
2175
|
#
|
2176
2176
|
# @yield [response, operation] Access the result along with the RPC operation
|
2177
|
-
# @yieldparam response [Google::Cloud::SecurityCenter::V1::OrganizationSettings]
|
2178
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
2177
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::OrganizationSettings]
|
2178
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2179
2179
|
#
|
2180
|
-
# @return [Google::Cloud::SecurityCenter::V1::OrganizationSettings]
|
2180
|
+
# @return [::Google::Cloud::SecurityCenter::V1::OrganizationSettings]
|
2181
2181
|
#
|
2182
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2182
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2183
2183
|
#
|
2184
2184
|
def update_organization_settings request, options = nil
|
2185
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2185
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2186
2186
|
|
2187
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest
|
2187
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest
|
2188
2188
|
|
2189
2189
|
# Converts hash and nil to an options object
|
2190
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2190
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2191
2191
|
|
2192
2192
|
# Customize the options with defaults
|
2193
2193
|
metadata = @config.rpcs.update_organization_settings.metadata.to_h
|
2194
2194
|
|
2195
2195
|
# Set x-goog-api-client and x-goog-user-project headers
|
2196
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2196
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2197
2197
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2198
2198
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
2199
2199
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2214,8 +2214,8 @@ module Google
|
|
2214
2214
|
yield response, operation if block_given?
|
2215
2215
|
return response
|
2216
2216
|
end
|
2217
|
-
rescue GRPC::BadStatus => e
|
2218
|
-
raise Google::Cloud::Error.from_error(e)
|
2217
|
+
rescue ::GRPC::BadStatus => e
|
2218
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2219
2219
|
end
|
2220
2220
|
|
2221
2221
|
##
|
@@ -2223,12 +2223,12 @@ module Google
|
|
2223
2223
|
#
|
2224
2224
|
# @overload update_source(request, options = nil)
|
2225
2225
|
# Pass arguments to `update_source` via a request object, either of type
|
2226
|
-
# {Google::Cloud::SecurityCenter::V1::UpdateSourceRequest} or an equivalent Hash.
|
2226
|
+
# {::Google::Cloud::SecurityCenter::V1::UpdateSourceRequest} or an equivalent Hash.
|
2227
2227
|
#
|
2228
|
-
# @param request [Google::Cloud::SecurityCenter::V1::UpdateSourceRequest, Hash]
|
2228
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::UpdateSourceRequest, ::Hash]
|
2229
2229
|
# A request object representing the call parameters. Required. To specify no
|
2230
2230
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2231
|
-
# @param options [Gapic::CallOptions, Hash]
|
2231
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2232
2232
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2233
2233
|
#
|
2234
2234
|
# @overload update_source(source: nil, update_mask: nil)
|
@@ -2236,34 +2236,34 @@ module Google
|
|
2236
2236
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2237
2237
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2238
2238
|
#
|
2239
|
-
# @param source [Google::Cloud::SecurityCenter::V1::Source, Hash]
|
2239
|
+
# @param source [::Google::Cloud::SecurityCenter::V1::Source, ::Hash]
|
2240
2240
|
# Required. The source resource to update.
|
2241
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
2241
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2242
2242
|
# The FieldMask to use when updating the source resource.
|
2243
2243
|
#
|
2244
2244
|
# If empty all mutable fields will be updated.
|
2245
2245
|
#
|
2246
2246
|
# @yield [response, operation] Access the result along with the RPC operation
|
2247
|
-
# @yieldparam response [Google::Cloud::SecurityCenter::V1::Source]
|
2248
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
2247
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::Source]
|
2248
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2249
2249
|
#
|
2250
|
-
# @return [Google::Cloud::SecurityCenter::V1::Source]
|
2250
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Source]
|
2251
2251
|
#
|
2252
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2252
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2253
2253
|
#
|
2254
2254
|
def update_source request, options = nil
|
2255
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2255
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2256
2256
|
|
2257
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::UpdateSourceRequest
|
2257
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::UpdateSourceRequest
|
2258
2258
|
|
2259
2259
|
# Converts hash and nil to an options object
|
2260
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2260
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2261
2261
|
|
2262
2262
|
# Customize the options with defaults
|
2263
2263
|
metadata = @config.rpcs.update_source.metadata.to_h
|
2264
2264
|
|
2265
2265
|
# Set x-goog-api-client and x-goog-user-project headers
|
2266
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2266
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2267
2267
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2268
2268
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
2269
2269
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2284,8 +2284,8 @@ module Google
|
|
2284
2284
|
yield response, operation if block_given?
|
2285
2285
|
return response
|
2286
2286
|
end
|
2287
|
-
rescue GRPC::BadStatus => e
|
2288
|
-
raise Google::Cloud::Error.from_error(e)
|
2287
|
+
rescue ::GRPC::BadStatus => e
|
2288
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2289
2289
|
end
|
2290
2290
|
|
2291
2291
|
##
|
@@ -2293,12 +2293,12 @@ module Google
|
|
2293
2293
|
#
|
2294
2294
|
# @overload update_security_marks(request, options = nil)
|
2295
2295
|
# Pass arguments to `update_security_marks` via a request object, either of type
|
2296
|
-
# {Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest} or an equivalent Hash.
|
2296
|
+
# {::Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest} or an equivalent Hash.
|
2297
2297
|
#
|
2298
|
-
# @param request [Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest, Hash]
|
2298
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest, ::Hash]
|
2299
2299
|
# A request object representing the call parameters. Required. To specify no
|
2300
2300
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2301
|
-
# @param options [Gapic::CallOptions, Hash]
|
2301
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2302
2302
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2303
2303
|
#
|
2304
2304
|
# @overload update_security_marks(security_marks: nil, update_mask: nil, start_time: nil)
|
@@ -2306,40 +2306,40 @@ module Google
|
|
2306
2306
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2307
2307
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2308
2308
|
#
|
2309
|
-
# @param security_marks [Google::Cloud::SecurityCenter::V1::SecurityMarks, Hash]
|
2309
|
+
# @param security_marks [::Google::Cloud::SecurityCenter::V1::SecurityMarks, ::Hash]
|
2310
2310
|
# Required. The security marks resource to update.
|
2311
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
2311
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2312
2312
|
# The FieldMask to use when updating the security marks resource.
|
2313
2313
|
#
|
2314
2314
|
# The field mask must not contain duplicate fields.
|
2315
2315
|
# If empty or set to "marks", all marks will be replaced. Individual
|
2316
2316
|
# marks can be updated using "marks.<mark_key>".
|
2317
|
-
# @param start_time [Google::Protobuf::Timestamp, Hash]
|
2317
|
+
# @param start_time [::Google::Protobuf::Timestamp, ::Hash]
|
2318
2318
|
# The time at which the updated SecurityMarks take effect.
|
2319
2319
|
# If not set uses current server time. Updates will be applied to the
|
2320
2320
|
# SecurityMarks that are active immediately preceding this time.
|
2321
2321
|
#
|
2322
2322
|
# @yield [response, operation] Access the result along with the RPC operation
|
2323
|
-
# @yieldparam response [Google::Cloud::SecurityCenter::V1::SecurityMarks]
|
2324
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
2323
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::SecurityMarks]
|
2324
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2325
2325
|
#
|
2326
|
-
# @return [Google::Cloud::SecurityCenter::V1::SecurityMarks]
|
2326
|
+
# @return [::Google::Cloud::SecurityCenter::V1::SecurityMarks]
|
2327
2327
|
#
|
2328
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2328
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2329
2329
|
#
|
2330
2330
|
def update_security_marks request, options = nil
|
2331
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2331
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2332
2332
|
|
2333
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest
|
2333
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest
|
2334
2334
|
|
2335
2335
|
# Converts hash and nil to an options object
|
2336
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2336
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2337
2337
|
|
2338
2338
|
# Customize the options with defaults
|
2339
2339
|
metadata = @config.rpcs.update_security_marks.metadata.to_h
|
2340
2340
|
|
2341
2341
|
# Set x-goog-api-client and x-goog-user-project headers
|
2342
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2342
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2343
2343
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2344
2344
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
2345
2345
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2360,8 +2360,8 @@ module Google
|
|
2360
2360
|
yield response, operation if block_given?
|
2361
2361
|
return response
|
2362
2362
|
end
|
2363
|
-
rescue GRPC::BadStatus => e
|
2364
|
-
raise Google::Cloud::Error.from_error(e)
|
2363
|
+
rescue ::GRPC::BadStatus => e
|
2364
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2365
2365
|
end
|
2366
2366
|
|
2367
2367
|
##
|
@@ -2371,7 +2371,7 @@ module Google
|
|
2371
2371
|
# providing control over timeouts, retry behavior, logging, transport
|
2372
2372
|
# parameters, and other low-level controls. Certain parameters can also be
|
2373
2373
|
# applied individually to specific RPCs. See
|
2374
|
-
# {Google::Cloud::SecurityCenter::V1::SecurityCenter::Client::Configuration::Rpcs}
|
2374
|
+
# {::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client::Configuration::Rpcs}
|
2375
2375
|
# for a list of RPCs that can be configured independently.
|
2376
2376
|
#
|
2377
2377
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -2382,22 +2382,22 @@ module Google
|
|
2382
2382
|
# To modify the global config, setting the timeout for create_source
|
2383
2383
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
2384
2384
|
#
|
2385
|
-
# Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.configure do |config|
|
2386
|
-
# config.timeout =
|
2387
|
-
# config.rpcs.create_source.timeout =
|
2385
|
+
# ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.configure do |config|
|
2386
|
+
# config.timeout = 10.0
|
2387
|
+
# config.rpcs.create_source.timeout = 20.0
|
2388
2388
|
# end
|
2389
2389
|
#
|
2390
2390
|
# To apply the above configuration only to a new client:
|
2391
2391
|
#
|
2392
|
-
# client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new do |config|
|
2393
|
-
# config.timeout =
|
2394
|
-
# config.rpcs.create_source.timeout =
|
2392
|
+
# client = ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new do |config|
|
2393
|
+
# config.timeout = 10.0
|
2394
|
+
# config.rpcs.create_source.timeout = 20.0
|
2395
2395
|
# end
|
2396
2396
|
#
|
2397
2397
|
# @!attribute [rw] endpoint
|
2398
2398
|
# The hostname or hostname:port of the service endpoint.
|
2399
2399
|
# Defaults to `"securitycenter.googleapis.com"`.
|
2400
|
-
# @return [String]
|
2400
|
+
# @return [::String]
|
2401
2401
|
# @!attribute [rw] credentials
|
2402
2402
|
# Credentials to send with calls. You may provide any of the following types:
|
2403
2403
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -2409,29 +2409,29 @@ module Google
|
|
2409
2409
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
2410
2410
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
2411
2411
|
# * (`nil`) indicating no credentials
|
2412
|
-
# @return [Object]
|
2412
|
+
# @return [::Object]
|
2413
2413
|
# @!attribute [rw] scope
|
2414
2414
|
# The OAuth scopes
|
2415
|
-
# @return [Array
|
2415
|
+
# @return [::Array<::String>]
|
2416
2416
|
# @!attribute [rw] lib_name
|
2417
2417
|
# The library name as recorded in instrumentation and logging
|
2418
|
-
# @return [String]
|
2418
|
+
# @return [::String]
|
2419
2419
|
# @!attribute [rw] lib_version
|
2420
2420
|
# The library version as recorded in instrumentation and logging
|
2421
|
-
# @return [String]
|
2421
|
+
# @return [::String]
|
2422
2422
|
# @!attribute [rw] channel_args
|
2423
2423
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
2424
2424
|
# `GRPC::Core::Channel` object is provided as the credential.
|
2425
|
-
# @return [Hash]
|
2425
|
+
# @return [::Hash]
|
2426
2426
|
# @!attribute [rw] interceptors
|
2427
2427
|
# An array of interceptors that are run before calls are executed.
|
2428
|
-
# @return [Array
|
2428
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
2429
2429
|
# @!attribute [rw] timeout
|
2430
|
-
# The call timeout in
|
2431
|
-
# @return [Numeric]
|
2430
|
+
# The call timeout in seconds.
|
2431
|
+
# @return [::Numeric]
|
2432
2432
|
# @!attribute [rw] metadata
|
2433
2433
|
# Additional gRPC headers to be sent with the call.
|
2434
|
-
# @return [Hash{Symbol
|
2434
|
+
# @return [::Hash{::Symbol=>::String}]
|
2435
2435
|
# @!attribute [rw] retry_policy
|
2436
2436
|
# The retry policy. The value is a hash with the following keys:
|
2437
2437
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -2439,10 +2439,10 @@ module Google
|
|
2439
2439
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
2440
2440
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
2441
2441
|
# trigger a retry.
|
2442
|
-
# @return [Hash]
|
2442
|
+
# @return [::Hash]
|
2443
2443
|
#
|
2444
2444
|
class Configuration
|
2445
|
-
extend Gapic::Config
|
2445
|
+
extend ::Gapic::Config
|
2446
2446
|
|
2447
2447
|
config_attr :endpoint, "securitycenter.googleapis.com", String
|
2448
2448
|
config_attr :credentials, nil do |value|
|
@@ -2450,14 +2450,14 @@ module Google
|
|
2450
2450
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
2451
2451
|
allowed.any? { |klass| klass === value }
|
2452
2452
|
end
|
2453
|
-
config_attr :scope, nil, String, Array, nil
|
2454
|
-
config_attr :lib_name, nil, String, nil
|
2455
|
-
config_attr :lib_version, nil, String, nil
|
2456
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
|
2457
|
-
config_attr :interceptors, nil, Array, nil
|
2458
|
-
config_attr :timeout, nil, Numeric, nil
|
2459
|
-
config_attr :metadata, nil, Hash, nil
|
2460
|
-
config_attr :retry_policy, nil, Hash, Proc, nil
|
2453
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
2454
|
+
config_attr :lib_name, nil, ::String, nil
|
2455
|
+
config_attr :lib_version, nil, ::String, nil
|
2456
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
2457
|
+
config_attr :interceptors, nil, ::Array, nil
|
2458
|
+
config_attr :timeout, nil, ::Numeric, nil
|
2459
|
+
config_attr :metadata, nil, ::Hash, nil
|
2460
|
+
config_attr :retry_policy, nil, ::Hash, Proc, nil
|
2461
2461
|
|
2462
2462
|
# @private
|
2463
2463
|
def initialize parent_config = nil
|
@@ -2498,168 +2498,168 @@ module Google
|
|
2498
2498
|
class Rpcs
|
2499
2499
|
##
|
2500
2500
|
# RPC-specific configuration for `create_source`
|
2501
|
-
# @return [Gapic::Config::Method]
|
2501
|
+
# @return [::Gapic::Config::Method]
|
2502
2502
|
#
|
2503
2503
|
attr_reader :create_source
|
2504
2504
|
##
|
2505
2505
|
# RPC-specific configuration for `create_finding`
|
2506
|
-
# @return [Gapic::Config::Method]
|
2506
|
+
# @return [::Gapic::Config::Method]
|
2507
2507
|
#
|
2508
2508
|
attr_reader :create_finding
|
2509
2509
|
##
|
2510
2510
|
# RPC-specific configuration for `create_notification_config`
|
2511
|
-
# @return [Gapic::Config::Method]
|
2511
|
+
# @return [::Gapic::Config::Method]
|
2512
2512
|
#
|
2513
2513
|
attr_reader :create_notification_config
|
2514
2514
|
##
|
2515
2515
|
# RPC-specific configuration for `delete_notification_config`
|
2516
|
-
# @return [Gapic::Config::Method]
|
2516
|
+
# @return [::Gapic::Config::Method]
|
2517
2517
|
#
|
2518
2518
|
attr_reader :delete_notification_config
|
2519
2519
|
##
|
2520
2520
|
# RPC-specific configuration for `get_iam_policy`
|
2521
|
-
# @return [Gapic::Config::Method]
|
2521
|
+
# @return [::Gapic::Config::Method]
|
2522
2522
|
#
|
2523
2523
|
attr_reader :get_iam_policy
|
2524
2524
|
##
|
2525
2525
|
# RPC-specific configuration for `get_notification_config`
|
2526
|
-
# @return [Gapic::Config::Method]
|
2526
|
+
# @return [::Gapic::Config::Method]
|
2527
2527
|
#
|
2528
2528
|
attr_reader :get_notification_config
|
2529
2529
|
##
|
2530
2530
|
# RPC-specific configuration for `get_organization_settings`
|
2531
|
-
# @return [Gapic::Config::Method]
|
2531
|
+
# @return [::Gapic::Config::Method]
|
2532
2532
|
#
|
2533
2533
|
attr_reader :get_organization_settings
|
2534
2534
|
##
|
2535
2535
|
# RPC-specific configuration for `get_source`
|
2536
|
-
# @return [Gapic::Config::Method]
|
2536
|
+
# @return [::Gapic::Config::Method]
|
2537
2537
|
#
|
2538
2538
|
attr_reader :get_source
|
2539
2539
|
##
|
2540
2540
|
# RPC-specific configuration for `group_assets`
|
2541
|
-
# @return [Gapic::Config::Method]
|
2541
|
+
# @return [::Gapic::Config::Method]
|
2542
2542
|
#
|
2543
2543
|
attr_reader :group_assets
|
2544
2544
|
##
|
2545
2545
|
# RPC-specific configuration for `group_findings`
|
2546
|
-
# @return [Gapic::Config::Method]
|
2546
|
+
# @return [::Gapic::Config::Method]
|
2547
2547
|
#
|
2548
2548
|
attr_reader :group_findings
|
2549
2549
|
##
|
2550
2550
|
# RPC-specific configuration for `list_assets`
|
2551
|
-
# @return [Gapic::Config::Method]
|
2551
|
+
# @return [::Gapic::Config::Method]
|
2552
2552
|
#
|
2553
2553
|
attr_reader :list_assets
|
2554
2554
|
##
|
2555
2555
|
# RPC-specific configuration for `list_findings`
|
2556
|
-
# @return [Gapic::Config::Method]
|
2556
|
+
# @return [::Gapic::Config::Method]
|
2557
2557
|
#
|
2558
2558
|
attr_reader :list_findings
|
2559
2559
|
##
|
2560
2560
|
# RPC-specific configuration for `list_notification_configs`
|
2561
|
-
# @return [Gapic::Config::Method]
|
2561
|
+
# @return [::Gapic::Config::Method]
|
2562
2562
|
#
|
2563
2563
|
attr_reader :list_notification_configs
|
2564
2564
|
##
|
2565
2565
|
# RPC-specific configuration for `list_sources`
|
2566
|
-
# @return [Gapic::Config::Method]
|
2566
|
+
# @return [::Gapic::Config::Method]
|
2567
2567
|
#
|
2568
2568
|
attr_reader :list_sources
|
2569
2569
|
##
|
2570
2570
|
# RPC-specific configuration for `run_asset_discovery`
|
2571
|
-
# @return [Gapic::Config::Method]
|
2571
|
+
# @return [::Gapic::Config::Method]
|
2572
2572
|
#
|
2573
2573
|
attr_reader :run_asset_discovery
|
2574
2574
|
##
|
2575
2575
|
# RPC-specific configuration for `set_finding_state`
|
2576
|
-
# @return [Gapic::Config::Method]
|
2576
|
+
# @return [::Gapic::Config::Method]
|
2577
2577
|
#
|
2578
2578
|
attr_reader :set_finding_state
|
2579
2579
|
##
|
2580
2580
|
# RPC-specific configuration for `set_iam_policy`
|
2581
|
-
# @return [Gapic::Config::Method]
|
2581
|
+
# @return [::Gapic::Config::Method]
|
2582
2582
|
#
|
2583
2583
|
attr_reader :set_iam_policy
|
2584
2584
|
##
|
2585
2585
|
# RPC-specific configuration for `test_iam_permissions`
|
2586
|
-
# @return [Gapic::Config::Method]
|
2586
|
+
# @return [::Gapic::Config::Method]
|
2587
2587
|
#
|
2588
2588
|
attr_reader :test_iam_permissions
|
2589
2589
|
##
|
2590
2590
|
# RPC-specific configuration for `update_finding`
|
2591
|
-
# @return [Gapic::Config::Method]
|
2591
|
+
# @return [::Gapic::Config::Method]
|
2592
2592
|
#
|
2593
2593
|
attr_reader :update_finding
|
2594
2594
|
##
|
2595
2595
|
# RPC-specific configuration for `update_notification_config`
|
2596
|
-
# @return [Gapic::Config::Method]
|
2596
|
+
# @return [::Gapic::Config::Method]
|
2597
2597
|
#
|
2598
2598
|
attr_reader :update_notification_config
|
2599
2599
|
##
|
2600
2600
|
# RPC-specific configuration for `update_organization_settings`
|
2601
|
-
# @return [Gapic::Config::Method]
|
2601
|
+
# @return [::Gapic::Config::Method]
|
2602
2602
|
#
|
2603
2603
|
attr_reader :update_organization_settings
|
2604
2604
|
##
|
2605
2605
|
# RPC-specific configuration for `update_source`
|
2606
|
-
# @return [Gapic::Config::Method]
|
2606
|
+
# @return [::Gapic::Config::Method]
|
2607
2607
|
#
|
2608
2608
|
attr_reader :update_source
|
2609
2609
|
##
|
2610
2610
|
# RPC-specific configuration for `update_security_marks`
|
2611
|
-
# @return [Gapic::Config::Method]
|
2611
|
+
# @return [::Gapic::Config::Method]
|
2612
2612
|
#
|
2613
2613
|
attr_reader :update_security_marks
|
2614
2614
|
|
2615
2615
|
# @private
|
2616
2616
|
def initialize parent_rpcs = nil
|
2617
2617
|
create_source_config = parent_rpcs&.create_source if parent_rpcs&.respond_to? :create_source
|
2618
|
-
@create_source = Gapic::Config::Method.new create_source_config
|
2618
|
+
@create_source = ::Gapic::Config::Method.new create_source_config
|
2619
2619
|
create_finding_config = parent_rpcs&.create_finding if parent_rpcs&.respond_to? :create_finding
|
2620
|
-
@create_finding = Gapic::Config::Method.new create_finding_config
|
2620
|
+
@create_finding = ::Gapic::Config::Method.new create_finding_config
|
2621
2621
|
create_notification_config_config = parent_rpcs&.create_notification_config if parent_rpcs&.respond_to? :create_notification_config
|
2622
|
-
@create_notification_config = Gapic::Config::Method.new create_notification_config_config
|
2622
|
+
@create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
|
2623
2623
|
delete_notification_config_config = parent_rpcs&.delete_notification_config if parent_rpcs&.respond_to? :delete_notification_config
|
2624
|
-
@delete_notification_config = Gapic::Config::Method.new delete_notification_config_config
|
2624
|
+
@delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
|
2625
2625
|
get_iam_policy_config = parent_rpcs&.get_iam_policy if parent_rpcs&.respond_to? :get_iam_policy
|
2626
|
-
@get_iam_policy = Gapic::Config::Method.new get_iam_policy_config
|
2626
|
+
@get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
|
2627
2627
|
get_notification_config_config = parent_rpcs&.get_notification_config if parent_rpcs&.respond_to? :get_notification_config
|
2628
|
-
@get_notification_config = Gapic::Config::Method.new get_notification_config_config
|
2628
|
+
@get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
|
2629
2629
|
get_organization_settings_config = parent_rpcs&.get_organization_settings if parent_rpcs&.respond_to? :get_organization_settings
|
2630
|
-
@get_organization_settings = Gapic::Config::Method.new get_organization_settings_config
|
2630
|
+
@get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
|
2631
2631
|
get_source_config = parent_rpcs&.get_source if parent_rpcs&.respond_to? :get_source
|
2632
|
-
@get_source = Gapic::Config::Method.new get_source_config
|
2632
|
+
@get_source = ::Gapic::Config::Method.new get_source_config
|
2633
2633
|
group_assets_config = parent_rpcs&.group_assets if parent_rpcs&.respond_to? :group_assets
|
2634
|
-
@group_assets = Gapic::Config::Method.new group_assets_config
|
2634
|
+
@group_assets = ::Gapic::Config::Method.new group_assets_config
|
2635
2635
|
group_findings_config = parent_rpcs&.group_findings if parent_rpcs&.respond_to? :group_findings
|
2636
|
-
@group_findings = Gapic::Config::Method.new group_findings_config
|
2636
|
+
@group_findings = ::Gapic::Config::Method.new group_findings_config
|
2637
2637
|
list_assets_config = parent_rpcs&.list_assets if parent_rpcs&.respond_to? :list_assets
|
2638
|
-
@list_assets = Gapic::Config::Method.new list_assets_config
|
2638
|
+
@list_assets = ::Gapic::Config::Method.new list_assets_config
|
2639
2639
|
list_findings_config = parent_rpcs&.list_findings if parent_rpcs&.respond_to? :list_findings
|
2640
|
-
@list_findings = Gapic::Config::Method.new list_findings_config
|
2640
|
+
@list_findings = ::Gapic::Config::Method.new list_findings_config
|
2641
2641
|
list_notification_configs_config = parent_rpcs&.list_notification_configs if parent_rpcs&.respond_to? :list_notification_configs
|
2642
|
-
@list_notification_configs = Gapic::Config::Method.new list_notification_configs_config
|
2642
|
+
@list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
|
2643
2643
|
list_sources_config = parent_rpcs&.list_sources if parent_rpcs&.respond_to? :list_sources
|
2644
|
-
@list_sources = Gapic::Config::Method.new list_sources_config
|
2644
|
+
@list_sources = ::Gapic::Config::Method.new list_sources_config
|
2645
2645
|
run_asset_discovery_config = parent_rpcs&.run_asset_discovery if parent_rpcs&.respond_to? :run_asset_discovery
|
2646
|
-
@run_asset_discovery = Gapic::Config::Method.new run_asset_discovery_config
|
2646
|
+
@run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
|
2647
2647
|
set_finding_state_config = parent_rpcs&.set_finding_state if parent_rpcs&.respond_to? :set_finding_state
|
2648
|
-
@set_finding_state = Gapic::Config::Method.new set_finding_state_config
|
2648
|
+
@set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
|
2649
2649
|
set_iam_policy_config = parent_rpcs&.set_iam_policy if parent_rpcs&.respond_to? :set_iam_policy
|
2650
|
-
@set_iam_policy = Gapic::Config::Method.new set_iam_policy_config
|
2650
|
+
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
2651
2651
|
test_iam_permissions_config = parent_rpcs&.test_iam_permissions if parent_rpcs&.respond_to? :test_iam_permissions
|
2652
|
-
@test_iam_permissions = Gapic::Config::Method.new test_iam_permissions_config
|
2652
|
+
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
2653
2653
|
update_finding_config = parent_rpcs&.update_finding if parent_rpcs&.respond_to? :update_finding
|
2654
|
-
@update_finding = Gapic::Config::Method.new update_finding_config
|
2654
|
+
@update_finding = ::Gapic::Config::Method.new update_finding_config
|
2655
2655
|
update_notification_config_config = parent_rpcs&.update_notification_config if parent_rpcs&.respond_to? :update_notification_config
|
2656
|
-
@update_notification_config = Gapic::Config::Method.new update_notification_config_config
|
2656
|
+
@update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
|
2657
2657
|
update_organization_settings_config = parent_rpcs&.update_organization_settings if parent_rpcs&.respond_to? :update_organization_settings
|
2658
|
-
@update_organization_settings = Gapic::Config::Method.new update_organization_settings_config
|
2658
|
+
@update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
|
2659
2659
|
update_source_config = parent_rpcs&.update_source if parent_rpcs&.respond_to? :update_source
|
2660
|
-
@update_source = Gapic::Config::Method.new update_source_config
|
2660
|
+
@update_source = ::Gapic::Config::Method.new update_source_config
|
2661
2661
|
update_security_marks_config = parent_rpcs&.update_security_marks if parent_rpcs&.respond_to? :update_security_marks
|
2662
|
-
@update_security_marks = Gapic::Config::Method.new update_security_marks_config
|
2662
|
+
@update_security_marks = ::Gapic::Config::Method.new update_security_marks_config
|
2663
2663
|
|
2664
2664
|
yield self if block_given?
|
2665
2665
|
end
|