google-cloud-security_center-v1 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/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 +503 -474
- data/lib/google/cloud/security_center/v1/security_center/credentials.rb +1 -1
- data/lib/google/cloud/security_center/v1/security_center/operations.rb +109 -103
- 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/lib/google/cloud/securitycenter/v1/notification_message_pb.rb +2 -0
- data/lib/google/cloud/securitycenter/v1/resource_pb.rb +27 -0
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/securitycenter/v1/asset.rb +52 -49
- data/proto_docs/google/cloud/securitycenter/v1/finding.rb +28 -28
- data/proto_docs/google/cloud/securitycenter/v1/notification_config.rb +10 -10
- data/proto_docs/google/cloud/securitycenter/v1/notification_message.rb +7 -4
- data/proto_docs/google/cloud/securitycenter/v1/organization_settings.rb +11 -11
- data/proto_docs/google/cloud/securitycenter/v1/resource.rb +48 -0
- data/proto_docs/google/cloud/securitycenter/v1/run_asset_discovery_response.rb +4 -4
- data/proto_docs/google/cloud/securitycenter/v1/security_marks.rb +11 -11
- data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +196 -172
- data/proto_docs/google/cloud/securitycenter/v1/source.rb +6 -6
- 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 +35 -6
- data/lib/google/cloud/common_resources_pb.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e178ebd0f755ef86a7943825eb34e513ebb1594f0f33265008b246652057ace
|
4
|
+
data.tar.gz: 5a1dc2333d97ae4df25bced5b4da4cb9aa29bd451b8bf9fdb9b7c80e2d51b249
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7310ba1d596443b451f84e04937c99222ecfa0c3aec3fe6e6a91fc955cbf7418d03948f0a5c5fc220754731e75788e18c14ab8a892757a1b11d1935347d7c69
|
7
|
+
data.tar.gz: dc472c3afd523db81ee8ecd81642bc69a9aa82bca5f6dff478d125ac7adb54a085d8007a1638c709384cc81eaedf94a5c96398877d14e0175f0452868bf2c21e
|
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.
|
@@ -242,15 +242,16 @@ module Google
|
|
242
242
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
243
243
|
credentials = Credentials.new credentials, scope: @config.scope
|
244
244
|
end
|
245
|
-
@quota_project_id =
|
245
|
+
@quota_project_id = @config.quota_project
|
246
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
246
247
|
|
247
248
|
@operations_client = Operations.new do |config|
|
248
249
|
config.credentials = credentials
|
249
250
|
config.endpoint = @config.endpoint
|
250
251
|
end
|
251
252
|
|
252
|
-
@security_center_stub = Gapic::ServiceStub.new(
|
253
|
-
Google::Cloud::SecurityCenter::V1::SecurityCenter::Stub,
|
253
|
+
@security_center_stub = ::Gapic::ServiceStub.new(
|
254
|
+
::Google::Cloud::SecurityCenter::V1::SecurityCenter::Stub,
|
254
255
|
credentials: credentials,
|
255
256
|
endpoint: @config.endpoint,
|
256
257
|
channel_args: @config.channel_args,
|
@@ -261,7 +262,7 @@ module Google
|
|
261
262
|
##
|
262
263
|
# Get the associated client for long-running operations.
|
263
264
|
#
|
264
|
-
# @return [Google::Cloud::SecurityCenter::V1::SecurityCenter::Operations]
|
265
|
+
# @return [::Google::Cloud::SecurityCenter::V1::SecurityCenter::Operations]
|
265
266
|
#
|
266
267
|
attr_reader :operations_client
|
267
268
|
|
@@ -272,12 +273,12 @@ module Google
|
|
272
273
|
#
|
273
274
|
# @overload create_source(request, options = nil)
|
274
275
|
# Pass arguments to `create_source` via a request object, either of type
|
275
|
-
# {Google::Cloud::SecurityCenter::V1::CreateSourceRequest} or an equivalent Hash.
|
276
|
+
# {::Google::Cloud::SecurityCenter::V1::CreateSourceRequest} or an equivalent Hash.
|
276
277
|
#
|
277
|
-
# @param request [Google::Cloud::SecurityCenter::V1::CreateSourceRequest, Hash]
|
278
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::CreateSourceRequest, ::Hash]
|
278
279
|
# A request object representing the call parameters. Required. To specify no
|
279
280
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
280
|
-
# @param options [Gapic::CallOptions, Hash]
|
281
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
281
282
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
282
283
|
#
|
283
284
|
# @overload create_source(parent: nil, source: nil)
|
@@ -285,34 +286,34 @@ module Google
|
|
285
286
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
286
287
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
287
288
|
#
|
288
|
-
# @param parent [String]
|
289
|
+
# @param parent [::String]
|
289
290
|
# Required. Resource name of the new source's parent. Its format should be
|
290
291
|
# "organizations/[organization_id]".
|
291
|
-
# @param source [Google::Cloud::SecurityCenter::V1::Source, Hash]
|
292
|
+
# @param source [::Google::Cloud::SecurityCenter::V1::Source, ::Hash]
|
292
293
|
# Required. The Source being created, only the display_name and description
|
293
294
|
# will be used. All other fields will be ignored.
|
294
295
|
#
|
295
296
|
# @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]
|
297
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::Source]
|
298
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
298
299
|
#
|
299
|
-
# @return [Google::Cloud::SecurityCenter::V1::Source]
|
300
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Source]
|
300
301
|
#
|
301
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
302
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
302
303
|
#
|
303
304
|
def create_source request, options = nil
|
304
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
305
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
305
306
|
|
306
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::CreateSourceRequest
|
307
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::CreateSourceRequest
|
307
308
|
|
308
309
|
# Converts hash and nil to an options object
|
309
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
310
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
310
311
|
|
311
312
|
# Customize the options with defaults
|
312
313
|
metadata = @config.rpcs.create_source.metadata.to_h
|
313
314
|
|
314
315
|
# Set x-goog-api-client and x-goog-user-project headers
|
315
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
316
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
316
317
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
317
318
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
318
319
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -333,8 +334,8 @@ module Google
|
|
333
334
|
yield response, operation if block_given?
|
334
335
|
return response
|
335
336
|
end
|
336
|
-
rescue GRPC::BadStatus => e
|
337
|
-
raise Google::Cloud::Error.from_error(e)
|
337
|
+
rescue ::GRPC::BadStatus => e
|
338
|
+
raise ::Google::Cloud::Error.from_error(e)
|
338
339
|
end
|
339
340
|
|
340
341
|
##
|
@@ -343,12 +344,12 @@ module Google
|
|
343
344
|
#
|
344
345
|
# @overload create_finding(request, options = nil)
|
345
346
|
# Pass arguments to `create_finding` via a request object, either of type
|
346
|
-
# {Google::Cloud::SecurityCenter::V1::CreateFindingRequest} or an equivalent Hash.
|
347
|
+
# {::Google::Cloud::SecurityCenter::V1::CreateFindingRequest} or an equivalent Hash.
|
347
348
|
#
|
348
|
-
# @param request [Google::Cloud::SecurityCenter::V1::CreateFindingRequest, Hash]
|
349
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::CreateFindingRequest, ::Hash]
|
349
350
|
# A request object representing the call parameters. Required. To specify no
|
350
351
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
351
|
-
# @param options [Gapic::CallOptions, Hash]
|
352
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
352
353
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
353
354
|
#
|
354
355
|
# @overload create_finding(parent: nil, finding_id: nil, finding: nil)
|
@@ -356,38 +357,38 @@ module Google
|
|
356
357
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
357
358
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
358
359
|
#
|
359
|
-
# @param parent [String]
|
360
|
+
# @param parent [::String]
|
360
361
|
# Required. Resource name of the new finding's parent. Its format should be
|
361
362
|
# "organizations/[organization_id]/sources/[source_id]".
|
362
|
-
# @param finding_id [String]
|
363
|
+
# @param finding_id [::String]
|
363
364
|
# Required. Unique identifier provided by the client within the parent scope.
|
364
365
|
# It must be alphanumeric and less than or equal to 32 characters and
|
365
366
|
# greater than 0 characters in length.
|
366
|
-
# @param finding [Google::Cloud::SecurityCenter::V1::Finding, Hash]
|
367
|
+
# @param finding [::Google::Cloud::SecurityCenter::V1::Finding, ::Hash]
|
367
368
|
# Required. The Finding being created. The name and security_marks will be
|
368
369
|
# ignored as they are both output only fields on this resource.
|
369
370
|
#
|
370
371
|
# @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]
|
372
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::Finding]
|
373
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
373
374
|
#
|
374
|
-
# @return [Google::Cloud::SecurityCenter::V1::Finding]
|
375
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Finding]
|
375
376
|
#
|
376
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
377
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
377
378
|
#
|
378
379
|
def create_finding request, options = nil
|
379
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
380
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
380
381
|
|
381
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::CreateFindingRequest
|
382
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::CreateFindingRequest
|
382
383
|
|
383
384
|
# Converts hash and nil to an options object
|
384
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
385
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
385
386
|
|
386
387
|
# Customize the options with defaults
|
387
388
|
metadata = @config.rpcs.create_finding.metadata.to_h
|
388
389
|
|
389
390
|
# Set x-goog-api-client and x-goog-user-project headers
|
390
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
391
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
391
392
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
392
393
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
393
394
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -408,8 +409,8 @@ module Google
|
|
408
409
|
yield response, operation if block_given?
|
409
410
|
return response
|
410
411
|
end
|
411
|
-
rescue GRPC::BadStatus => e
|
412
|
-
raise Google::Cloud::Error.from_error(e)
|
412
|
+
rescue ::GRPC::BadStatus => e
|
413
|
+
raise ::Google::Cloud::Error.from_error(e)
|
413
414
|
end
|
414
415
|
|
415
416
|
##
|
@@ -417,12 +418,12 @@ module Google
|
|
417
418
|
#
|
418
419
|
# @overload create_notification_config(request, options = nil)
|
419
420
|
# Pass arguments to `create_notification_config` via a request object, either of type
|
420
|
-
# {Google::Cloud::SecurityCenter::V1::CreateNotificationConfigRequest} or an equivalent Hash.
|
421
|
+
# {::Google::Cloud::SecurityCenter::V1::CreateNotificationConfigRequest} or an equivalent Hash.
|
421
422
|
#
|
422
|
-
# @param request [Google::Cloud::SecurityCenter::V1::CreateNotificationConfigRequest, Hash]
|
423
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::CreateNotificationConfigRequest, ::Hash]
|
423
424
|
# A request object representing the call parameters. Required. To specify no
|
424
425
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
425
|
-
# @param options [Gapic::CallOptions, Hash]
|
426
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
426
427
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
427
428
|
#
|
428
429
|
# @overload create_notification_config(parent: nil, config_id: nil, notification_config: nil)
|
@@ -430,40 +431,40 @@ module Google
|
|
430
431
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
431
432
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
432
433
|
#
|
433
|
-
# @param parent [String]
|
434
|
+
# @param parent [::String]
|
434
435
|
# Required. Resource name of the new notification config's parent. Its format
|
435
436
|
# is "organizations/[organization_id]".
|
436
|
-
# @param config_id [String]
|
437
|
+
# @param config_id [::String]
|
437
438
|
# Required.
|
438
439
|
# Unique identifier provided by the client within the parent scope.
|
439
440
|
# It must be between 1 and 128 characters, and contains alphanumeric
|
440
441
|
# characters, underscores or hyphens only.
|
441
|
-
# @param notification_config [Google::Cloud::SecurityCenter::V1::NotificationConfig, Hash]
|
442
|
+
# @param notification_config [::Google::Cloud::SecurityCenter::V1::NotificationConfig, ::Hash]
|
442
443
|
# Required. The notification config being created. The name and the service
|
443
444
|
# account will be ignored as they are both output only fields on this
|
444
445
|
# resource.
|
445
446
|
#
|
446
447
|
# @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]
|
448
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
449
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
449
450
|
#
|
450
|
-
# @return [Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
451
|
+
# @return [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
451
452
|
#
|
452
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
453
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
453
454
|
#
|
454
455
|
def create_notification_config request, options = nil
|
455
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
456
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
456
457
|
|
457
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::CreateNotificationConfigRequest
|
458
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::CreateNotificationConfigRequest
|
458
459
|
|
459
460
|
# Converts hash and nil to an options object
|
460
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
461
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
461
462
|
|
462
463
|
# Customize the options with defaults
|
463
464
|
metadata = @config.rpcs.create_notification_config.metadata.to_h
|
464
465
|
|
465
466
|
# Set x-goog-api-client and x-goog-user-project headers
|
466
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
467
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
467
468
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
468
469
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
469
470
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -484,8 +485,8 @@ module Google
|
|
484
485
|
yield response, operation if block_given?
|
485
486
|
return response
|
486
487
|
end
|
487
|
-
rescue GRPC::BadStatus => e
|
488
|
-
raise Google::Cloud::Error.from_error(e)
|
488
|
+
rescue ::GRPC::BadStatus => e
|
489
|
+
raise ::Google::Cloud::Error.from_error(e)
|
489
490
|
end
|
490
491
|
|
491
492
|
##
|
@@ -493,12 +494,12 @@ module Google
|
|
493
494
|
#
|
494
495
|
# @overload delete_notification_config(request, options = nil)
|
495
496
|
# Pass arguments to `delete_notification_config` via a request object, either of type
|
496
|
-
# {Google::Cloud::SecurityCenter::V1::DeleteNotificationConfigRequest} or an equivalent Hash.
|
497
|
+
# {::Google::Cloud::SecurityCenter::V1::DeleteNotificationConfigRequest} or an equivalent Hash.
|
497
498
|
#
|
498
|
-
# @param request [Google::Cloud::SecurityCenter::V1::DeleteNotificationConfigRequest, Hash]
|
499
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::DeleteNotificationConfigRequest, ::Hash]
|
499
500
|
# A request object representing the call parameters. Required. To specify no
|
500
501
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
501
|
-
# @param options [Gapic::CallOptions, Hash]
|
502
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
502
503
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
503
504
|
#
|
504
505
|
# @overload delete_notification_config(name: nil)
|
@@ -506,31 +507,31 @@ module Google
|
|
506
507
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
507
508
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
508
509
|
#
|
509
|
-
# @param name [String]
|
510
|
+
# @param name [::String]
|
510
511
|
# Required. Name of the notification config to delete. Its format is
|
511
512
|
# "organizations/[organization_id]/notificationConfigs/[config_id]".
|
512
513
|
#
|
513
514
|
# @yield [response, operation] Access the result along with the RPC operation
|
514
|
-
# @yieldparam response [Google::Protobuf::Empty]
|
515
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
515
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
516
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
516
517
|
#
|
517
|
-
# @return [Google::Protobuf::Empty]
|
518
|
+
# @return [::Google::Protobuf::Empty]
|
518
519
|
#
|
519
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
520
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
520
521
|
#
|
521
522
|
def delete_notification_config request, options = nil
|
522
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
523
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
523
524
|
|
524
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::DeleteNotificationConfigRequest
|
525
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::DeleteNotificationConfigRequest
|
525
526
|
|
526
527
|
# Converts hash and nil to an options object
|
527
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
528
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
528
529
|
|
529
530
|
# Customize the options with defaults
|
530
531
|
metadata = @config.rpcs.delete_notification_config.metadata.to_h
|
531
532
|
|
532
533
|
# Set x-goog-api-client and x-goog-user-project headers
|
533
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
534
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
534
535
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
535
536
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
536
537
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -551,8 +552,8 @@ module Google
|
|
551
552
|
yield response, operation if block_given?
|
552
553
|
return response
|
553
554
|
end
|
554
|
-
rescue GRPC::BadStatus => e
|
555
|
-
raise Google::Cloud::Error.from_error(e)
|
555
|
+
rescue ::GRPC::BadStatus => e
|
556
|
+
raise ::Google::Cloud::Error.from_error(e)
|
556
557
|
end
|
557
558
|
|
558
559
|
##
|
@@ -560,12 +561,12 @@ module Google
|
|
560
561
|
#
|
561
562
|
# @overload get_iam_policy(request, options = nil)
|
562
563
|
# Pass arguments to `get_iam_policy` via a request object, either of type
|
563
|
-
# {Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
|
564
|
+
# {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
|
564
565
|
#
|
565
|
-
# @param request [Google::Iam::V1::GetIamPolicyRequest, Hash]
|
566
|
+
# @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
|
566
567
|
# A request object representing the call parameters. Required. To specify no
|
567
568
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
568
|
-
# @param options [Gapic::CallOptions, Hash]
|
569
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
569
570
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
570
571
|
#
|
571
572
|
# @overload get_iam_policy(resource: nil, options: nil)
|
@@ -573,34 +574,34 @@ module Google
|
|
573
574
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
574
575
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
575
576
|
#
|
576
|
-
# @param resource [String]
|
577
|
+
# @param resource [::String]
|
577
578
|
# REQUIRED: The resource for which the policy is being requested.
|
578
579
|
# See the operation documentation for the appropriate value for this field.
|
579
|
-
# @param options [Google::Iam::V1::GetPolicyOptions, Hash]
|
580
|
+
# @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
|
580
581
|
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
581
582
|
# `GetIamPolicy`. This field is only used by Cloud IAM.
|
582
583
|
#
|
583
584
|
# @yield [response, operation] Access the result along with the RPC operation
|
584
|
-
# @yieldparam response [Google::Iam::V1::Policy]
|
585
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
585
|
+
# @yieldparam response [::Google::Iam::V1::Policy]
|
586
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
586
587
|
#
|
587
|
-
# @return [Google::Iam::V1::Policy]
|
588
|
+
# @return [::Google::Iam::V1::Policy]
|
588
589
|
#
|
589
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
590
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
590
591
|
#
|
591
592
|
def get_iam_policy request, options = nil
|
592
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
593
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
593
594
|
|
594
|
-
request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::GetIamPolicyRequest
|
595
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
|
595
596
|
|
596
597
|
# Converts hash and nil to an options object
|
597
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
598
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
598
599
|
|
599
600
|
# Customize the options with defaults
|
600
601
|
metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
601
602
|
|
602
603
|
# Set x-goog-api-client and x-goog-user-project headers
|
603
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
604
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
604
605
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
605
606
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
606
607
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -621,8 +622,8 @@ module Google
|
|
621
622
|
yield response, operation if block_given?
|
622
623
|
return response
|
623
624
|
end
|
624
|
-
rescue GRPC::BadStatus => e
|
625
|
-
raise Google::Cloud::Error.from_error(e)
|
625
|
+
rescue ::GRPC::BadStatus => e
|
626
|
+
raise ::Google::Cloud::Error.from_error(e)
|
626
627
|
end
|
627
628
|
|
628
629
|
##
|
@@ -630,12 +631,12 @@ module Google
|
|
630
631
|
#
|
631
632
|
# @overload get_notification_config(request, options = nil)
|
632
633
|
# Pass arguments to `get_notification_config` via a request object, either of type
|
633
|
-
# {Google::Cloud::SecurityCenter::V1::GetNotificationConfigRequest} or an equivalent Hash.
|
634
|
+
# {::Google::Cloud::SecurityCenter::V1::GetNotificationConfigRequest} or an equivalent Hash.
|
634
635
|
#
|
635
|
-
# @param request [Google::Cloud::SecurityCenter::V1::GetNotificationConfigRequest, Hash]
|
636
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::GetNotificationConfigRequest, ::Hash]
|
636
637
|
# A request object representing the call parameters. Required. To specify no
|
637
638
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
638
|
-
# @param options [Gapic::CallOptions, Hash]
|
639
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
639
640
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
640
641
|
#
|
641
642
|
# @overload get_notification_config(name: nil)
|
@@ -643,31 +644,31 @@ module Google
|
|
643
644
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
644
645
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
645
646
|
#
|
646
|
-
# @param name [String]
|
647
|
+
# @param name [::String]
|
647
648
|
# Required. Name of the notification config to get. Its format is
|
648
649
|
# "organizations/[organization_id]/notificationConfigs/[config_id]".
|
649
650
|
#
|
650
651
|
# @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]
|
652
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
653
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
653
654
|
#
|
654
|
-
# @return [Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
655
|
+
# @return [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
655
656
|
#
|
656
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
657
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
657
658
|
#
|
658
659
|
def get_notification_config request, options = nil
|
659
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
660
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
660
661
|
|
661
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::GetNotificationConfigRequest
|
662
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::GetNotificationConfigRequest
|
662
663
|
|
663
664
|
# Converts hash and nil to an options object
|
664
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
665
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
665
666
|
|
666
667
|
# Customize the options with defaults
|
667
668
|
metadata = @config.rpcs.get_notification_config.metadata.to_h
|
668
669
|
|
669
670
|
# Set x-goog-api-client and x-goog-user-project headers
|
670
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
671
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
671
672
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
672
673
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
673
674
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -688,8 +689,8 @@ module Google
|
|
688
689
|
yield response, operation if block_given?
|
689
690
|
return response
|
690
691
|
end
|
691
|
-
rescue GRPC::BadStatus => e
|
692
|
-
raise Google::Cloud::Error.from_error(e)
|
692
|
+
rescue ::GRPC::BadStatus => e
|
693
|
+
raise ::Google::Cloud::Error.from_error(e)
|
693
694
|
end
|
694
695
|
|
695
696
|
##
|
@@ -697,12 +698,12 @@ module Google
|
|
697
698
|
#
|
698
699
|
# @overload get_organization_settings(request, options = nil)
|
699
700
|
# Pass arguments to `get_organization_settings` via a request object, either of type
|
700
|
-
# {Google::Cloud::SecurityCenter::V1::GetOrganizationSettingsRequest} or an equivalent Hash.
|
701
|
+
# {::Google::Cloud::SecurityCenter::V1::GetOrganizationSettingsRequest} or an equivalent Hash.
|
701
702
|
#
|
702
|
-
# @param request [Google::Cloud::SecurityCenter::V1::GetOrganizationSettingsRequest, Hash]
|
703
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::GetOrganizationSettingsRequest, ::Hash]
|
703
704
|
# A request object representing the call parameters. Required. To specify no
|
704
705
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
705
|
-
# @param options [Gapic::CallOptions, Hash]
|
706
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
706
707
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
707
708
|
#
|
708
709
|
# @overload get_organization_settings(name: nil)
|
@@ -710,31 +711,31 @@ module Google
|
|
710
711
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
711
712
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
712
713
|
#
|
713
|
-
# @param name [String]
|
714
|
+
# @param name [::String]
|
714
715
|
# Required. Name of the organization to get organization settings for. Its
|
715
716
|
# format is "organizations/[organization_id]/organizationSettings".
|
716
717
|
#
|
717
718
|
# @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]
|
719
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::OrganizationSettings]
|
720
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
720
721
|
#
|
721
|
-
# @return [Google::Cloud::SecurityCenter::V1::OrganizationSettings]
|
722
|
+
# @return [::Google::Cloud::SecurityCenter::V1::OrganizationSettings]
|
722
723
|
#
|
723
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
724
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
724
725
|
#
|
725
726
|
def get_organization_settings request, options = nil
|
726
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
727
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
727
728
|
|
728
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::GetOrganizationSettingsRequest
|
729
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::GetOrganizationSettingsRequest
|
729
730
|
|
730
731
|
# Converts hash and nil to an options object
|
731
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
732
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
732
733
|
|
733
734
|
# Customize the options with defaults
|
734
735
|
metadata = @config.rpcs.get_organization_settings.metadata.to_h
|
735
736
|
|
736
737
|
# Set x-goog-api-client and x-goog-user-project headers
|
737
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
738
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
738
739
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
739
740
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
740
741
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -755,8 +756,8 @@ module Google
|
|
755
756
|
yield response, operation if block_given?
|
756
757
|
return response
|
757
758
|
end
|
758
|
-
rescue GRPC::BadStatus => e
|
759
|
-
raise Google::Cloud::Error.from_error(e)
|
759
|
+
rescue ::GRPC::BadStatus => e
|
760
|
+
raise ::Google::Cloud::Error.from_error(e)
|
760
761
|
end
|
761
762
|
|
762
763
|
##
|
@@ -764,12 +765,12 @@ module Google
|
|
764
765
|
#
|
765
766
|
# @overload get_source(request, options = nil)
|
766
767
|
# Pass arguments to `get_source` via a request object, either of type
|
767
|
-
# {Google::Cloud::SecurityCenter::V1::GetSourceRequest} or an equivalent Hash.
|
768
|
+
# {::Google::Cloud::SecurityCenter::V1::GetSourceRequest} or an equivalent Hash.
|
768
769
|
#
|
769
|
-
# @param request [Google::Cloud::SecurityCenter::V1::GetSourceRequest, Hash]
|
770
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::GetSourceRequest, ::Hash]
|
770
771
|
# A request object representing the call parameters. Required. To specify no
|
771
772
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
772
|
-
# @param options [Gapic::CallOptions, Hash]
|
773
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
773
774
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
774
775
|
#
|
775
776
|
# @overload get_source(name: nil)
|
@@ -777,31 +778,31 @@ module Google
|
|
777
778
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
778
779
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
779
780
|
#
|
780
|
-
# @param name [String]
|
781
|
+
# @param name [::String]
|
781
782
|
# Required. Relative resource name of the source. Its format is
|
782
783
|
# "organizations/[organization_id]/source/[source_id]".
|
783
784
|
#
|
784
785
|
# @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]
|
786
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::Source]
|
787
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
787
788
|
#
|
788
|
-
# @return [Google::Cloud::SecurityCenter::V1::Source]
|
789
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Source]
|
789
790
|
#
|
790
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
791
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
791
792
|
#
|
792
793
|
def get_source request, options = nil
|
793
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
794
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
794
795
|
|
795
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::GetSourceRequest
|
796
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::GetSourceRequest
|
796
797
|
|
797
798
|
# Converts hash and nil to an options object
|
798
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
799
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
799
800
|
|
800
801
|
# Customize the options with defaults
|
801
802
|
metadata = @config.rpcs.get_source.metadata.to_h
|
802
803
|
|
803
804
|
# Set x-goog-api-client and x-goog-user-project headers
|
804
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
805
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
805
806
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
806
807
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
807
808
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -822,8 +823,8 @@ module Google
|
|
822
823
|
yield response, operation if block_given?
|
823
824
|
return response
|
824
825
|
end
|
825
|
-
rescue GRPC::BadStatus => e
|
826
|
-
raise Google::Cloud::Error.from_error(e)
|
826
|
+
rescue ::GRPC::BadStatus => e
|
827
|
+
raise ::Google::Cloud::Error.from_error(e)
|
827
828
|
end
|
828
829
|
|
829
830
|
##
|
@@ -832,12 +833,12 @@ module Google
|
|
832
833
|
#
|
833
834
|
# @overload group_assets(request, options = nil)
|
834
835
|
# Pass arguments to `group_assets` via a request object, either of type
|
835
|
-
# {Google::Cloud::SecurityCenter::V1::GroupAssetsRequest} or an equivalent Hash.
|
836
|
+
# {::Google::Cloud::SecurityCenter::V1::GroupAssetsRequest} or an equivalent Hash.
|
836
837
|
#
|
837
|
-
# @param request [Google::Cloud::SecurityCenter::V1::GroupAssetsRequest, Hash]
|
838
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::GroupAssetsRequest, ::Hash]
|
838
839
|
# A request object representing the call parameters. Required. To specify no
|
839
840
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
840
|
-
# @param options [Gapic::CallOptions, Hash]
|
841
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
841
842
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
842
843
|
#
|
843
844
|
# @overload group_assets(parent: nil, filter: nil, group_by: nil, compare_duration: nil, read_time: nil, page_token: nil, page_size: nil)
|
@@ -845,10 +846,10 @@ module Google
|
|
845
846
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
846
847
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
847
848
|
#
|
848
|
-
# @param parent [String]
|
849
|
+
# @param parent [::String]
|
849
850
|
# Required. Name of the organization to groupBy. Its format is
|
850
851
|
# "organizations/[organization_id]".
|
851
|
-
# @param filter [String]
|
852
|
+
# @param filter [::String]
|
852
853
|
# Expression that defines the filter to apply across assets.
|
853
854
|
# The expression is a list of zero or more restrictions combined via logical
|
854
855
|
# operators `AND` and `OR`.
|
@@ -882,15 +883,15 @@ module Google
|
|
882
883
|
#
|
883
884
|
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
884
885
|
# Examples:
|
885
|
-
#
|
886
|
-
#
|
886
|
+
# `update_time = "2019-06-10T16:07:18-07:00"`
|
887
|
+
# `update_time = 1560208038000`
|
887
888
|
#
|
888
889
|
# * create_time: `=`, `>`, `<`, `>=`, `<=`
|
889
890
|
#
|
890
891
|
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
891
892
|
# Examples:
|
892
|
-
#
|
893
|
-
#
|
893
|
+
# `create_time = "2019-06-10T16:07:18-07:00"`
|
894
|
+
# `create_time = 1560208038000`
|
894
895
|
#
|
895
896
|
# * iam_policy.policy_blob: `=`, `:`
|
896
897
|
# * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
|
@@ -905,7 +906,13 @@ module Google
|
|
905
906
|
# * security_center_properties.resource_owners: `=`, `:`
|
906
907
|
#
|
907
908
|
# For example, `resource_properties.size = 100` is a valid filter string.
|
908
|
-
#
|
909
|
+
#
|
910
|
+
# Use a partial match on the empty string to filter based on a property
|
911
|
+
# existing:`resource_properties.my_property : ""`
|
912
|
+
#
|
913
|
+
# Use a negated partial match on the empty string to filter based on a
|
914
|
+
# property not existing: `-resource_properties.my_property : ""`
|
915
|
+
# @param group_by [::String]
|
909
916
|
# Required. Expression that defines what assets fields to use for grouping.
|
910
917
|
# The string value should follow SQL syntax: comma separated list of fields.
|
911
918
|
# For example:
|
@@ -924,7 +931,7 @@ module Google
|
|
924
931
|
# * security_center_properties.resource_type
|
925
932
|
# * security_center_properties.resource_project_display_name
|
926
933
|
# * security_center_properties.resource_parent_display_name
|
927
|
-
# @param compare_duration [Google::Protobuf::Duration, Hash]
|
934
|
+
# @param compare_duration [::Google::Protobuf::Duration, ::Hash]
|
928
935
|
# When compare_duration is set, the GroupResult's "state_change" property is
|
929
936
|
# updated to indicate whether the asset was added, removed, or remained
|
930
937
|
# present during the compare_duration period of time that precedes the
|
@@ -952,40 +959,40 @@ module Google
|
|
952
959
|
#
|
953
960
|
# If this field is set then `state_change` must be a specified field in
|
954
961
|
# `group_by`.
|
955
|
-
# @param read_time [Google::Protobuf::Timestamp, Hash]
|
962
|
+
# @param read_time [::Google::Protobuf::Timestamp, ::Hash]
|
956
963
|
# Time used as a reference point when filtering assets. The filter is limited
|
957
964
|
# to assets existing at the supplied time and their values are those at that
|
958
965
|
# specific time. Absence of this field will default to the API's version of
|
959
966
|
# NOW.
|
960
|
-
# @param page_token [String]
|
967
|
+
# @param page_token [::String]
|
961
968
|
# The value returned by the last `GroupAssetsResponse`; indicates
|
962
969
|
# that this is a continuation of a prior `GroupAssets` call, and that the
|
963
970
|
# system should return the next page of data.
|
964
|
-
# @param page_size [Integer]
|
971
|
+
# @param page_size [::Integer]
|
965
972
|
# The maximum number of results to return in a single response. Default is
|
966
973
|
# 10, minimum is 1, maximum is 1000.
|
967
974
|
#
|
968
975
|
# @yield [response, operation] Access the result along with the RPC operation
|
969
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
970
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
976
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::GroupResult>]
|
977
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
971
978
|
#
|
972
|
-
# @return [Gapic::PagedEnumerable
|
979
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::GroupResult>]
|
973
980
|
#
|
974
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
981
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
975
982
|
#
|
976
983
|
def group_assets request, options = nil
|
977
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
984
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
978
985
|
|
979
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::GroupAssetsRequest
|
986
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::GroupAssetsRequest
|
980
987
|
|
981
988
|
# Converts hash and nil to an options object
|
982
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
989
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
983
990
|
|
984
991
|
# Customize the options with defaults
|
985
992
|
metadata = @config.rpcs.group_assets.metadata.to_h
|
986
993
|
|
987
994
|
# Set x-goog-api-client and x-goog-user-project headers
|
988
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
995
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
989
996
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
990
997
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
991
998
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1003,12 +1010,12 @@ module Google
|
|
1003
1010
|
retry_policy: @config.retry_policy
|
1004
1011
|
|
1005
1012
|
@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
|
1013
|
+
response = ::Gapic::PagedEnumerable.new @security_center_stub, :group_assets, request, response, operation, options
|
1007
1014
|
yield response, operation if block_given?
|
1008
1015
|
return response
|
1009
1016
|
end
|
1010
|
-
rescue GRPC::BadStatus => e
|
1011
|
-
raise Google::Cloud::Error.from_error(e)
|
1017
|
+
rescue ::GRPC::BadStatus => e
|
1018
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1012
1019
|
end
|
1013
1020
|
|
1014
1021
|
##
|
@@ -1020,12 +1027,12 @@ module Google
|
|
1020
1027
|
#
|
1021
1028
|
# @overload group_findings(request, options = nil)
|
1022
1029
|
# Pass arguments to `group_findings` via a request object, either of type
|
1023
|
-
# {Google::Cloud::SecurityCenter::V1::GroupFindingsRequest} or an equivalent Hash.
|
1030
|
+
# {::Google::Cloud::SecurityCenter::V1::GroupFindingsRequest} or an equivalent Hash.
|
1024
1031
|
#
|
1025
|
-
# @param request [Google::Cloud::SecurityCenter::V1::GroupFindingsRequest, Hash]
|
1032
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::GroupFindingsRequest, ::Hash]
|
1026
1033
|
# A request object representing the call parameters. Required. To specify no
|
1027
1034
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1028
|
-
# @param options [Gapic::CallOptions, Hash]
|
1035
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1029
1036
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1030
1037
|
#
|
1031
1038
|
# @overload group_findings(parent: nil, filter: nil, group_by: nil, read_time: nil, compare_duration: nil, page_token: nil, page_size: nil)
|
@@ -1033,12 +1040,12 @@ module Google
|
|
1033
1040
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1034
1041
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1035
1042
|
#
|
1036
|
-
# @param parent [String]
|
1043
|
+
# @param parent [::String]
|
1037
1044
|
# Required. Name of the source to groupBy. Its format is
|
1038
1045
|
# "organizations/[organization_id]/sources/[source_id]". To groupBy across
|
1039
1046
|
# all sources provide a source_id of `-`. For example:
|
1040
1047
|
# organizations/\\{organization_id}/sources/-
|
1041
|
-
# @param filter [String]
|
1048
|
+
# @param filter [::String]
|
1042
1049
|
# Expression that defines the filter to apply across findings.
|
1043
1050
|
# The expression is a list of one or more restrictions combined via logical
|
1044
1051
|
# operators `AND` and `OR`.
|
@@ -1075,14 +1082,20 @@ module Google
|
|
1075
1082
|
#
|
1076
1083
|
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
1077
1084
|
# Examples:
|
1078
|
-
#
|
1079
|
-
#
|
1085
|
+
# `event_time = "2019-06-10T16:07:18-07:00"`
|
1086
|
+
# `event_time = 1560208038000`
|
1080
1087
|
#
|
1081
1088
|
# * security_marks.marks: `=`, `:`
|
1082
1089
|
# * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
|
1083
1090
|
#
|
1084
1091
|
# For example, `source_properties.size = 100` is a valid filter string.
|
1085
|
-
#
|
1092
|
+
#
|
1093
|
+
# Use a partial match on the empty string to filter based on a property
|
1094
|
+
# existing: `source_properties.my_property : ""`
|
1095
|
+
#
|
1096
|
+
# Use a negated partial match on the empty string to filter based on a
|
1097
|
+
# property not existing: `-source_properties.my_property : ""`
|
1098
|
+
# @param group_by [::String]
|
1086
1099
|
# Required. Expression that defines what assets fields to use for grouping
|
1087
1100
|
# (including `state_change`). The string value should follow SQL syntax:
|
1088
1101
|
# comma separated list of fields. For example: "parent,resource_name".
|
@@ -1097,12 +1110,12 @@ module Google
|
|
1097
1110
|
# The following fields are supported when compare_duration is set:
|
1098
1111
|
#
|
1099
1112
|
# * state_change
|
1100
|
-
# @param read_time [Google::Protobuf::Timestamp, Hash]
|
1113
|
+
# @param read_time [::Google::Protobuf::Timestamp, ::Hash]
|
1101
1114
|
# Time used as a reference point when filtering findings. The filter is
|
1102
1115
|
# limited to findings existing at the supplied time and their values are
|
1103
1116
|
# those at that specific time. Absence of this field will default to the
|
1104
1117
|
# API's version of NOW.
|
1105
|
-
# @param compare_duration [Google::Protobuf::Duration, Hash]
|
1118
|
+
# @param compare_duration [::Google::Protobuf::Duration, ::Hash]
|
1106
1119
|
# When compare_duration is set, the GroupResult's "state_change" attribute is
|
1107
1120
|
# updated to indicate whether the finding had its state changed, the
|
1108
1121
|
# finding's state remained unchanged, or if the finding was added during the
|
@@ -1135,35 +1148,35 @@ module Google
|
|
1135
1148
|
#
|
1136
1149
|
# If this field is set then `state_change` must be a specified field in
|
1137
1150
|
# `group_by`.
|
1138
|
-
# @param page_token [String]
|
1151
|
+
# @param page_token [::String]
|
1139
1152
|
# The value returned by the last `GroupFindingsResponse`; indicates
|
1140
1153
|
# that this is a continuation of a prior `GroupFindings` call, and
|
1141
1154
|
# that the system should return the next page of data.
|
1142
|
-
# @param page_size [Integer]
|
1155
|
+
# @param page_size [::Integer]
|
1143
1156
|
# The maximum number of results to return in a single response. Default is
|
1144
1157
|
# 10, minimum is 1, maximum is 1000.
|
1145
1158
|
#
|
1146
1159
|
# @yield [response, operation] Access the result along with the RPC operation
|
1147
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1148
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1160
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::GroupResult>]
|
1161
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1149
1162
|
#
|
1150
|
-
# @return [Gapic::PagedEnumerable
|
1163
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::GroupResult>]
|
1151
1164
|
#
|
1152
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1165
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1153
1166
|
#
|
1154
1167
|
def group_findings request, options = nil
|
1155
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1168
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1156
1169
|
|
1157
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::GroupFindingsRequest
|
1170
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::GroupFindingsRequest
|
1158
1171
|
|
1159
1172
|
# Converts hash and nil to an options object
|
1160
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1173
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1161
1174
|
|
1162
1175
|
# Customize the options with defaults
|
1163
1176
|
metadata = @config.rpcs.group_findings.metadata.to_h
|
1164
1177
|
|
1165
1178
|
# Set x-goog-api-client and x-goog-user-project headers
|
1166
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1179
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1167
1180
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1168
1181
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1169
1182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1181,12 +1194,12 @@ module Google
|
|
1181
1194
|
retry_policy: @config.retry_policy
|
1182
1195
|
|
1183
1196
|
@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
|
1197
|
+
response = ::Gapic::PagedEnumerable.new @security_center_stub, :group_findings, request, response, operation, options
|
1185
1198
|
yield response, operation if block_given?
|
1186
1199
|
return response
|
1187
1200
|
end
|
1188
|
-
rescue GRPC::BadStatus => e
|
1189
|
-
raise Google::Cloud::Error.from_error(e)
|
1201
|
+
rescue ::GRPC::BadStatus => e
|
1202
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1190
1203
|
end
|
1191
1204
|
|
1192
1205
|
##
|
@@ -1194,12 +1207,12 @@ module Google
|
|
1194
1207
|
#
|
1195
1208
|
# @overload list_assets(request, options = nil)
|
1196
1209
|
# Pass arguments to `list_assets` via a request object, either of type
|
1197
|
-
# {Google::Cloud::SecurityCenter::V1::ListAssetsRequest} or an equivalent Hash.
|
1210
|
+
# {::Google::Cloud::SecurityCenter::V1::ListAssetsRequest} or an equivalent Hash.
|
1198
1211
|
#
|
1199
|
-
# @param request [Google::Cloud::SecurityCenter::V1::ListAssetsRequest, Hash]
|
1212
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::ListAssetsRequest, ::Hash]
|
1200
1213
|
# A request object representing the call parameters. Required. To specify no
|
1201
1214
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1202
|
-
# @param options [Gapic::CallOptions, Hash]
|
1215
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1203
1216
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1204
1217
|
#
|
1205
1218
|
# @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 +1220,10 @@ module Google
|
|
1207
1220
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1208
1221
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1209
1222
|
#
|
1210
|
-
# @param parent [String]
|
1223
|
+
# @param parent [::String]
|
1211
1224
|
# Required. Name of the organization assets should belong to. Its format is
|
1212
1225
|
# "organizations/[organization_id]".
|
1213
|
-
# @param filter [String]
|
1226
|
+
# @param filter [::String]
|
1214
1227
|
# Expression that defines the filter to apply across assets.
|
1215
1228
|
# The expression is a list of zero or more restrictions combined via logical
|
1216
1229
|
# operators `AND` and `OR`.
|
@@ -1244,15 +1257,15 @@ module Google
|
|
1244
1257
|
#
|
1245
1258
|
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
1246
1259
|
# Examples:
|
1247
|
-
#
|
1248
|
-
#
|
1260
|
+
# `update_time = "2019-06-10T16:07:18-07:00"`
|
1261
|
+
# `update_time = 1560208038000`
|
1249
1262
|
#
|
1250
1263
|
# * create_time: `=`, `>`, `<`, `>=`, `<=`
|
1251
1264
|
#
|
1252
1265
|
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
1253
1266
|
# Examples:
|
1254
|
-
#
|
1255
|
-
#
|
1267
|
+
# `create_time = "2019-06-10T16:07:18-07:00"`
|
1268
|
+
# `create_time = 1560208038000`
|
1256
1269
|
#
|
1257
1270
|
# * iam_policy.policy_blob: `=`, `:`
|
1258
1271
|
# * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
|
@@ -1267,7 +1280,13 @@ module Google
|
|
1267
1280
|
# * security_center_properties.resource_owners: `=`, `:`
|
1268
1281
|
#
|
1269
1282
|
# For example, `resource_properties.size = 100` is a valid filter string.
|
1270
|
-
#
|
1283
|
+
#
|
1284
|
+
# Use a partial match on the empty string to filter based on a property
|
1285
|
+
# existing: `resource_properties.my_property : ""`
|
1286
|
+
#
|
1287
|
+
# Use a negated partial match on the empty string to filter based on a
|
1288
|
+
# property not existing: `-resource_properties.my_property : ""`
|
1289
|
+
# @param order_by [::String]
|
1271
1290
|
# Expression that defines what fields and order to use for sorting. The
|
1272
1291
|
# string value should follow SQL syntax: comma separated list of fields. For
|
1273
1292
|
# example: "name,resource_properties.a_property". The default sorting order
|
@@ -1289,12 +1308,12 @@ module Google
|
|
1289
1308
|
# security_center_properties.resource_project
|
1290
1309
|
# security_center_properties.resource_project_display_name
|
1291
1310
|
# security_center_properties.resource_type
|
1292
|
-
# @param read_time [Google::Protobuf::Timestamp, Hash]
|
1311
|
+
# @param read_time [::Google::Protobuf::Timestamp, ::Hash]
|
1293
1312
|
# Time used as a reference point when filtering assets. The filter is limited
|
1294
1313
|
# to assets existing at the supplied time and their values are those at that
|
1295
1314
|
# specific time. Absence of this field will default to the API's version of
|
1296
1315
|
# NOW.
|
1297
|
-
# @param compare_duration [Google::Protobuf::Duration, Hash]
|
1316
|
+
# @param compare_duration [::Google::Protobuf::Duration, ::Hash]
|
1298
1317
|
# When compare_duration is set, the ListAssetsResult's "state_change"
|
1299
1318
|
# attribute is updated to indicate whether the asset was added, removed, or
|
1300
1319
|
# remained present during the compare_duration period of time that precedes
|
@@ -1319,38 +1338,38 @@ module Google
|
|
1319
1338
|
# If compare_duration is not specified, then the only possible state_change
|
1320
1339
|
# is "UNUSED", which will be the state_change set for all assets present at
|
1321
1340
|
# read_time.
|
1322
|
-
# @param field_mask [Google::Protobuf::FieldMask, Hash]
|
1341
|
+
# @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1323
1342
|
# Optional. A field mask to specify the ListAssetsResult fields to be listed
|
1324
1343
|
# in the response. An empty field mask will list all fields.
|
1325
|
-
# @param page_token [String]
|
1344
|
+
# @param page_token [::String]
|
1326
1345
|
# The value returned by the last `ListAssetsResponse`; indicates
|
1327
1346
|
# that this is a continuation of a prior `ListAssets` call, and
|
1328
1347
|
# that the system should return the next page of data.
|
1329
|
-
# @param page_size [Integer]
|
1348
|
+
# @param page_size [::Integer]
|
1330
1349
|
# The maximum number of results to return in a single response. Default is
|
1331
1350
|
# 10, minimum is 1, maximum is 1000.
|
1332
1351
|
#
|
1333
1352
|
# @yield [response, operation] Access the result along with the RPC operation
|
1334
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1335
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1353
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult>]
|
1354
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1336
1355
|
#
|
1337
|
-
# @return [Gapic::PagedEnumerable
|
1356
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult>]
|
1338
1357
|
#
|
1339
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1358
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1340
1359
|
#
|
1341
1360
|
def list_assets request, options = nil
|
1342
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1361
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1343
1362
|
|
1344
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::ListAssetsRequest
|
1363
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::ListAssetsRequest
|
1345
1364
|
|
1346
1365
|
# Converts hash and nil to an options object
|
1347
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1366
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1348
1367
|
|
1349
1368
|
# Customize the options with defaults
|
1350
1369
|
metadata = @config.rpcs.list_assets.metadata.to_h
|
1351
1370
|
|
1352
1371
|
# Set x-goog-api-client and x-goog-user-project headers
|
1353
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1372
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1354
1373
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1355
1374
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1356
1375
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1368,12 +1387,12 @@ module Google
|
|
1368
1387
|
retry_policy: @config.retry_policy
|
1369
1388
|
|
1370
1389
|
@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
|
1390
|
+
response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_assets, request, response, operation, options
|
1372
1391
|
yield response, operation if block_given?
|
1373
1392
|
return response
|
1374
1393
|
end
|
1375
|
-
rescue GRPC::BadStatus => e
|
1376
|
-
raise Google::Cloud::Error.from_error(e)
|
1394
|
+
rescue ::GRPC::BadStatus => e
|
1395
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1377
1396
|
end
|
1378
1397
|
|
1379
1398
|
##
|
@@ -1384,12 +1403,12 @@ module Google
|
|
1384
1403
|
#
|
1385
1404
|
# @overload list_findings(request, options = nil)
|
1386
1405
|
# Pass arguments to `list_findings` via a request object, either of type
|
1387
|
-
# {Google::Cloud::SecurityCenter::V1::ListFindingsRequest} or an equivalent Hash.
|
1406
|
+
# {::Google::Cloud::SecurityCenter::V1::ListFindingsRequest} or an equivalent Hash.
|
1388
1407
|
#
|
1389
|
-
# @param request [Google::Cloud::SecurityCenter::V1::ListFindingsRequest, Hash]
|
1408
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::ListFindingsRequest, ::Hash]
|
1390
1409
|
# A request object representing the call parameters. Required. To specify no
|
1391
1410
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1392
|
-
# @param options [Gapic::CallOptions, Hash]
|
1411
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1393
1412
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1394
1413
|
#
|
1395
1414
|
# @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 +1416,12 @@ module Google
|
|
1397
1416
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1398
1417
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1399
1418
|
#
|
1400
|
-
# @param parent [String]
|
1419
|
+
# @param parent [::String]
|
1401
1420
|
# Required. Name of the source the findings belong to. Its format is
|
1402
1421
|
# "organizations/[organization_id]/sources/[source_id]". To list across all
|
1403
1422
|
# sources provide a source_id of `-`. For example:
|
1404
1423
|
# organizations/\\{organization_id}/sources/-
|
1405
|
-
# @param filter [String]
|
1424
|
+
# @param filter [::String]
|
1406
1425
|
# Expression that defines the filter to apply across findings.
|
1407
1426
|
# The expression is a list of one or more restrictions combined via logical
|
1408
1427
|
# operators `AND` and `OR`.
|
@@ -1439,14 +1458,20 @@ module Google
|
|
1439
1458
|
#
|
1440
1459
|
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
1441
1460
|
# Examples:
|
1442
|
-
#
|
1443
|
-
#
|
1461
|
+
# `event_time = "2019-06-10T16:07:18-07:00"`
|
1462
|
+
# `event_time = 1560208038000`
|
1444
1463
|
#
|
1445
1464
|
# security_marks.marks: `=`, `:`
|
1446
1465
|
# source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
|
1447
1466
|
#
|
1448
1467
|
# For example, `source_properties.size = 100` is a valid filter string.
|
1449
|
-
#
|
1468
|
+
#
|
1469
|
+
# Use a partial match on the empty string to filter based on a property
|
1470
|
+
# existing: `source_properties.my_property : ""`
|
1471
|
+
#
|
1472
|
+
# Use a negated partial match on the empty string to filter based on a
|
1473
|
+
# property not existing: `-source_properties.my_property : ""`
|
1474
|
+
# @param order_by [::String]
|
1450
1475
|
# Expression that defines what fields and order to use for sorting. The
|
1451
1476
|
# string value should follow SQL syntax: comma separated list of fields. For
|
1452
1477
|
# example: "name,resource_properties.a_property". The default sorting order
|
@@ -1465,12 +1490,12 @@ module Google
|
|
1465
1490
|
# event_time
|
1466
1491
|
# source_properties
|
1467
1492
|
# security_marks.marks
|
1468
|
-
# @param read_time [Google::Protobuf::Timestamp, Hash]
|
1493
|
+
# @param read_time [::Google::Protobuf::Timestamp, ::Hash]
|
1469
1494
|
# Time used as a reference point when filtering findings. The filter is
|
1470
1495
|
# limited to findings existing at the supplied time and their values are
|
1471
1496
|
# those at that specific time. Absence of this field will default to the
|
1472
1497
|
# API's version of NOW.
|
1473
|
-
# @param compare_duration [Google::Protobuf::Duration, Hash]
|
1498
|
+
# @param compare_duration [::Google::Protobuf::Duration, ::Hash]
|
1474
1499
|
# When compare_duration is set, the ListFindingsResult's "state_change"
|
1475
1500
|
# attribute is updated to indicate whether the finding had its state changed,
|
1476
1501
|
# the finding's state remained unchanged, or if the finding was added in any
|
@@ -1501,38 +1526,38 @@ module Google
|
|
1501
1526
|
# If compare_duration is not specified, then the only possible state_change
|
1502
1527
|
# is "UNUSED", which will be the state_change set for all findings present at
|
1503
1528
|
# read_time.
|
1504
|
-
# @param field_mask [Google::Protobuf::FieldMask, Hash]
|
1529
|
+
# @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1505
1530
|
# Optional. A field mask to specify the Finding fields to be listed in the
|
1506
1531
|
# response. An empty field mask will list all fields.
|
1507
|
-
# @param page_token [String]
|
1532
|
+
# @param page_token [::String]
|
1508
1533
|
# The value returned by the last `ListFindingsResponse`; indicates
|
1509
1534
|
# that this is a continuation of a prior `ListFindings` call, and
|
1510
1535
|
# that the system should return the next page of data.
|
1511
|
-
# @param page_size [Integer]
|
1536
|
+
# @param page_size [::Integer]
|
1512
1537
|
# The maximum number of results to return in a single response. Default is
|
1513
1538
|
# 10, minimum is 1, maximum is 1000.
|
1514
1539
|
#
|
1515
1540
|
# @yield [response, operation] Access the result along with the RPC operation
|
1516
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1517
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1541
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult>]
|
1542
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1518
1543
|
#
|
1519
|
-
# @return [Gapic::PagedEnumerable
|
1544
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult>]
|
1520
1545
|
#
|
1521
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1546
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1522
1547
|
#
|
1523
1548
|
def list_findings request, options = nil
|
1524
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1549
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1525
1550
|
|
1526
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::ListFindingsRequest
|
1551
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::ListFindingsRequest
|
1527
1552
|
|
1528
1553
|
# Converts hash and nil to an options object
|
1529
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1554
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1530
1555
|
|
1531
1556
|
# Customize the options with defaults
|
1532
1557
|
metadata = @config.rpcs.list_findings.metadata.to_h
|
1533
1558
|
|
1534
1559
|
# Set x-goog-api-client and x-goog-user-project headers
|
1535
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1560
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1536
1561
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1537
1562
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1538
1563
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1550,12 +1575,12 @@ module Google
|
|
1550
1575
|
retry_policy: @config.retry_policy
|
1551
1576
|
|
1552
1577
|
@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
|
1578
|
+
response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_findings, request, response, operation, options
|
1554
1579
|
yield response, operation if block_given?
|
1555
1580
|
return response
|
1556
1581
|
end
|
1557
|
-
rescue GRPC::BadStatus => e
|
1558
|
-
raise Google::Cloud::Error.from_error(e)
|
1582
|
+
rescue ::GRPC::BadStatus => e
|
1583
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1559
1584
|
end
|
1560
1585
|
|
1561
1586
|
##
|
@@ -1563,12 +1588,12 @@ module Google
|
|
1563
1588
|
#
|
1564
1589
|
# @overload list_notification_configs(request, options = nil)
|
1565
1590
|
# Pass arguments to `list_notification_configs` via a request object, either of type
|
1566
|
-
# {Google::Cloud::SecurityCenter::V1::ListNotificationConfigsRequest} or an equivalent Hash.
|
1591
|
+
# {::Google::Cloud::SecurityCenter::V1::ListNotificationConfigsRequest} or an equivalent Hash.
|
1567
1592
|
#
|
1568
|
-
# @param request [Google::Cloud::SecurityCenter::V1::ListNotificationConfigsRequest, Hash]
|
1593
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::ListNotificationConfigsRequest, ::Hash]
|
1569
1594
|
# A request object representing the call parameters. Required. To specify no
|
1570
1595
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1571
|
-
# @param options [Gapic::CallOptions, Hash]
|
1596
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1572
1597
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1573
1598
|
#
|
1574
1599
|
# @overload list_notification_configs(parent: nil, page_token: nil, page_size: nil)
|
@@ -1576,38 +1601,38 @@ module Google
|
|
1576
1601
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1577
1602
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1578
1603
|
#
|
1579
|
-
# @param parent [String]
|
1604
|
+
# @param parent [::String]
|
1580
1605
|
# Required. Name of the organization to list notification configs.
|
1581
1606
|
# Its format is "organizations/[organization_id]".
|
1582
|
-
# @param page_token [String]
|
1607
|
+
# @param page_token [::String]
|
1583
1608
|
# The value returned by the last `ListNotificationConfigsResponse`; indicates
|
1584
1609
|
# that this is a continuation of a prior `ListNotificationConfigs` call, and
|
1585
1610
|
# that the system should return the next page of data.
|
1586
|
-
# @param page_size [Integer]
|
1611
|
+
# @param page_size [::Integer]
|
1587
1612
|
# The maximum number of results to return in a single response. Default is
|
1588
1613
|
# 10, minimum is 1, maximum is 1000.
|
1589
1614
|
#
|
1590
1615
|
# @yield [response, operation] Access the result along with the RPC operation
|
1591
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1592
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1616
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::NotificationConfig>]
|
1617
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1593
1618
|
#
|
1594
|
-
# @return [Gapic::PagedEnumerable
|
1619
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::NotificationConfig>]
|
1595
1620
|
#
|
1596
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1621
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1597
1622
|
#
|
1598
1623
|
def list_notification_configs request, options = nil
|
1599
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1624
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1600
1625
|
|
1601
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::ListNotificationConfigsRequest
|
1626
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::ListNotificationConfigsRequest
|
1602
1627
|
|
1603
1628
|
# Converts hash and nil to an options object
|
1604
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1629
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1605
1630
|
|
1606
1631
|
# Customize the options with defaults
|
1607
1632
|
metadata = @config.rpcs.list_notification_configs.metadata.to_h
|
1608
1633
|
|
1609
1634
|
# Set x-goog-api-client and x-goog-user-project headers
|
1610
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1635
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1611
1636
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1612
1637
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1613
1638
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1625,12 +1650,12 @@ module Google
|
|
1625
1650
|
retry_policy: @config.retry_policy
|
1626
1651
|
|
1627
1652
|
@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
|
1653
|
+
response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_notification_configs, request, response, operation, options
|
1629
1654
|
yield response, operation if block_given?
|
1630
1655
|
return response
|
1631
1656
|
end
|
1632
|
-
rescue GRPC::BadStatus => e
|
1633
|
-
raise Google::Cloud::Error.from_error(e)
|
1657
|
+
rescue ::GRPC::BadStatus => e
|
1658
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1634
1659
|
end
|
1635
1660
|
|
1636
1661
|
##
|
@@ -1638,12 +1663,12 @@ module Google
|
|
1638
1663
|
#
|
1639
1664
|
# @overload list_sources(request, options = nil)
|
1640
1665
|
# Pass arguments to `list_sources` via a request object, either of type
|
1641
|
-
# {Google::Cloud::SecurityCenter::V1::ListSourcesRequest} or an equivalent Hash.
|
1666
|
+
# {::Google::Cloud::SecurityCenter::V1::ListSourcesRequest} or an equivalent Hash.
|
1642
1667
|
#
|
1643
|
-
# @param request [Google::Cloud::SecurityCenter::V1::ListSourcesRequest, Hash]
|
1668
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::ListSourcesRequest, ::Hash]
|
1644
1669
|
# A request object representing the call parameters. Required. To specify no
|
1645
1670
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1646
|
-
# @param options [Gapic::CallOptions, Hash]
|
1671
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1647
1672
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1648
1673
|
#
|
1649
1674
|
# @overload list_sources(parent: nil, page_token: nil, page_size: nil)
|
@@ -1651,38 +1676,38 @@ module Google
|
|
1651
1676
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1652
1677
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1653
1678
|
#
|
1654
|
-
# @param parent [String]
|
1679
|
+
# @param parent [::String]
|
1655
1680
|
# Required. Resource name of the parent of sources to list. Its format should
|
1656
1681
|
# be "organizations/[organization_id]".
|
1657
|
-
# @param page_token [String]
|
1682
|
+
# @param page_token [::String]
|
1658
1683
|
# The value returned by the last `ListSourcesResponse`; indicates
|
1659
1684
|
# that this is a continuation of a prior `ListSources` call, and
|
1660
1685
|
# that the system should return the next page of data.
|
1661
|
-
# @param page_size [Integer]
|
1686
|
+
# @param page_size [::Integer]
|
1662
1687
|
# The maximum number of results to return in a single response. Default is
|
1663
1688
|
# 10, minimum is 1, maximum is 1000.
|
1664
1689
|
#
|
1665
1690
|
# @yield [response, operation] Access the result along with the RPC operation
|
1666
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1667
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1691
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::Source>]
|
1692
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1668
1693
|
#
|
1669
|
-
# @return [Gapic::PagedEnumerable
|
1694
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::Source>]
|
1670
1695
|
#
|
1671
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1696
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1672
1697
|
#
|
1673
1698
|
def list_sources request, options = nil
|
1674
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1699
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1675
1700
|
|
1676
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::ListSourcesRequest
|
1701
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::ListSourcesRequest
|
1677
1702
|
|
1678
1703
|
# Converts hash and nil to an options object
|
1679
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1704
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1680
1705
|
|
1681
1706
|
# Customize the options with defaults
|
1682
1707
|
metadata = @config.rpcs.list_sources.metadata.to_h
|
1683
1708
|
|
1684
1709
|
# Set x-goog-api-client and x-goog-user-project headers
|
1685
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1710
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1686
1711
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1687
1712
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1688
1713
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1700,12 +1725,12 @@ module Google
|
|
1700
1725
|
retry_policy: @config.retry_policy
|
1701
1726
|
|
1702
1727
|
@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
|
1728
|
+
response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_sources, request, response, operation, options
|
1704
1729
|
yield response, operation if block_given?
|
1705
1730
|
return response
|
1706
1731
|
end
|
1707
|
-
rescue GRPC::BadStatus => e
|
1708
|
-
raise Google::Cloud::Error.from_error(e)
|
1732
|
+
rescue ::GRPC::BadStatus => e
|
1733
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1709
1734
|
end
|
1710
1735
|
|
1711
1736
|
##
|
@@ -1718,12 +1743,12 @@ module Google
|
|
1718
1743
|
#
|
1719
1744
|
# @overload run_asset_discovery(request, options = nil)
|
1720
1745
|
# Pass arguments to `run_asset_discovery` via a request object, either of type
|
1721
|
-
# {Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryRequest} or an equivalent Hash.
|
1746
|
+
# {::Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryRequest} or an equivalent Hash.
|
1722
1747
|
#
|
1723
|
-
# @param request [Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryRequest, Hash]
|
1748
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryRequest, ::Hash]
|
1724
1749
|
# A request object representing the call parameters. Required. To specify no
|
1725
1750
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1726
|
-
# @param options [Gapic::CallOptions, Hash]
|
1751
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1727
1752
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1728
1753
|
#
|
1729
1754
|
# @overload run_asset_discovery(parent: nil)
|
@@ -1731,31 +1756,31 @@ module Google
|
|
1731
1756
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1732
1757
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1733
1758
|
#
|
1734
|
-
# @param parent [String]
|
1759
|
+
# @param parent [::String]
|
1735
1760
|
# Required. Name of the organization to run asset discovery for. Its format
|
1736
1761
|
# is "organizations/[organization_id]".
|
1737
1762
|
#
|
1738
1763
|
# @yield [response, operation] Access the result along with the RPC operation
|
1739
|
-
# @yieldparam response [Gapic::Operation]
|
1740
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1764
|
+
# @yieldparam response [::Gapic::Operation]
|
1765
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1741
1766
|
#
|
1742
|
-
# @return [Gapic::Operation]
|
1767
|
+
# @return [::Gapic::Operation]
|
1743
1768
|
#
|
1744
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1769
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1745
1770
|
#
|
1746
1771
|
def run_asset_discovery request, options = nil
|
1747
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1772
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1748
1773
|
|
1749
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryRequest
|
1774
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryRequest
|
1750
1775
|
|
1751
1776
|
# Converts hash and nil to an options object
|
1752
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1777
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1753
1778
|
|
1754
1779
|
# Customize the options with defaults
|
1755
1780
|
metadata = @config.rpcs.run_asset_discovery.metadata.to_h
|
1756
1781
|
|
1757
1782
|
# Set x-goog-api-client and x-goog-user-project headers
|
1758
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1783
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1759
1784
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1760
1785
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1761
1786
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1773,12 +1798,12 @@ module Google
|
|
1773
1798
|
retry_policy: @config.retry_policy
|
1774
1799
|
|
1775
1800
|
@security_center_stub.call_rpc :run_asset_discovery, request, options: options do |response, operation|
|
1776
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
1801
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1777
1802
|
yield response, operation if block_given?
|
1778
1803
|
return response
|
1779
1804
|
end
|
1780
|
-
rescue GRPC::BadStatus => e
|
1781
|
-
raise Google::Cloud::Error.from_error(e)
|
1805
|
+
rescue ::GRPC::BadStatus => e
|
1806
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1782
1807
|
end
|
1783
1808
|
|
1784
1809
|
##
|
@@ -1786,12 +1811,12 @@ module Google
|
|
1786
1811
|
#
|
1787
1812
|
# @overload set_finding_state(request, options = nil)
|
1788
1813
|
# Pass arguments to `set_finding_state` via a request object, either of type
|
1789
|
-
# {Google::Cloud::SecurityCenter::V1::SetFindingStateRequest} or an equivalent Hash.
|
1814
|
+
# {::Google::Cloud::SecurityCenter::V1::SetFindingStateRequest} or an equivalent Hash.
|
1790
1815
|
#
|
1791
|
-
# @param request [Google::Cloud::SecurityCenter::V1::SetFindingStateRequest, Hash]
|
1816
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::SetFindingStateRequest, ::Hash]
|
1792
1817
|
# A request object representing the call parameters. Required. To specify no
|
1793
1818
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1794
|
-
# @param options [Gapic::CallOptions, Hash]
|
1819
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1795
1820
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1796
1821
|
#
|
1797
1822
|
# @overload set_finding_state(name: nil, state: nil, start_time: nil)
|
@@ -1799,37 +1824,37 @@ module Google
|
|
1799
1824
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1800
1825
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1801
1826
|
#
|
1802
|
-
# @param name [String]
|
1827
|
+
# @param name [::String]
|
1803
1828
|
# Required. The relative resource name of the finding. See:
|
1804
1829
|
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
1805
1830
|
# Example:
|
1806
1831
|
# "organizations/\\{organization_id}/sources/\\{source_id}/finding/\\{finding_id}".
|
1807
|
-
# @param state [Google::Cloud::SecurityCenter::V1::Finding::State]
|
1832
|
+
# @param state [::Google::Cloud::SecurityCenter::V1::Finding::State]
|
1808
1833
|
# Required. The desired State of the finding.
|
1809
|
-
# @param start_time [Google::Protobuf::Timestamp, Hash]
|
1834
|
+
# @param start_time [::Google::Protobuf::Timestamp, ::Hash]
|
1810
1835
|
# Required. The time at which the updated state takes effect.
|
1811
1836
|
#
|
1812
1837
|
# @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]
|
1838
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::Finding]
|
1839
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1815
1840
|
#
|
1816
|
-
# @return [Google::Cloud::SecurityCenter::V1::Finding]
|
1841
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Finding]
|
1817
1842
|
#
|
1818
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1843
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1819
1844
|
#
|
1820
1845
|
def set_finding_state request, options = nil
|
1821
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1846
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1822
1847
|
|
1823
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::SetFindingStateRequest
|
1848
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::SetFindingStateRequest
|
1824
1849
|
|
1825
1850
|
# Converts hash and nil to an options object
|
1826
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1851
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1827
1852
|
|
1828
1853
|
# Customize the options with defaults
|
1829
1854
|
metadata = @config.rpcs.set_finding_state.metadata.to_h
|
1830
1855
|
|
1831
1856
|
# Set x-goog-api-client and x-goog-user-project headers
|
1832
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1857
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1833
1858
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1834
1859
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1835
1860
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1850,8 +1875,8 @@ module Google
|
|
1850
1875
|
yield response, operation if block_given?
|
1851
1876
|
return response
|
1852
1877
|
end
|
1853
|
-
rescue GRPC::BadStatus => e
|
1854
|
-
raise Google::Cloud::Error.from_error(e)
|
1878
|
+
rescue ::GRPC::BadStatus => e
|
1879
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1855
1880
|
end
|
1856
1881
|
|
1857
1882
|
##
|
@@ -1859,12 +1884,12 @@ module Google
|
|
1859
1884
|
#
|
1860
1885
|
# @overload set_iam_policy(request, options = nil)
|
1861
1886
|
# Pass arguments to `set_iam_policy` via a request object, either of type
|
1862
|
-
# {Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
|
1887
|
+
# {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
|
1863
1888
|
#
|
1864
|
-
# @param request [Google::Iam::V1::SetIamPolicyRequest, Hash]
|
1889
|
+
# @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
|
1865
1890
|
# A request object representing the call parameters. Required. To specify no
|
1866
1891
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1867
|
-
# @param options [Gapic::CallOptions, Hash]
|
1892
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1868
1893
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1869
1894
|
#
|
1870
1895
|
# @overload set_iam_policy(resource: nil, policy: nil)
|
@@ -1872,36 +1897,36 @@ module Google
|
|
1872
1897
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1873
1898
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1874
1899
|
#
|
1875
|
-
# @param resource [String]
|
1900
|
+
# @param resource [::String]
|
1876
1901
|
# REQUIRED: The resource for which the policy is being specified.
|
1877
1902
|
# See the operation documentation for the appropriate value for this field.
|
1878
|
-
# @param policy [Google::Iam::V1::Policy, Hash]
|
1903
|
+
# @param policy [::Google::Iam::V1::Policy, ::Hash]
|
1879
1904
|
# REQUIRED: The complete policy to be applied to the `resource`. The size of
|
1880
1905
|
# the policy is limited to a few 10s of KB. An empty policy is a
|
1881
1906
|
# valid policy but certain Cloud Platform services (such as Projects)
|
1882
1907
|
# might reject them.
|
1883
1908
|
#
|
1884
1909
|
# @yield [response, operation] Access the result along with the RPC operation
|
1885
|
-
# @yieldparam response [Google::Iam::V1::Policy]
|
1886
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1910
|
+
# @yieldparam response [::Google::Iam::V1::Policy]
|
1911
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1887
1912
|
#
|
1888
|
-
# @return [Google::Iam::V1::Policy]
|
1913
|
+
# @return [::Google::Iam::V1::Policy]
|
1889
1914
|
#
|
1890
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1915
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1891
1916
|
#
|
1892
1917
|
def set_iam_policy request, options = nil
|
1893
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1918
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1894
1919
|
|
1895
|
-
request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::SetIamPolicyRequest
|
1920
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
|
1896
1921
|
|
1897
1922
|
# Converts hash and nil to an options object
|
1898
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1923
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1899
1924
|
|
1900
1925
|
# Customize the options with defaults
|
1901
1926
|
metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
1902
1927
|
|
1903
1928
|
# Set x-goog-api-client and x-goog-user-project headers
|
1904
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1929
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1905
1930
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1906
1931
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1907
1932
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1922,8 +1947,8 @@ module Google
|
|
1922
1947
|
yield response, operation if block_given?
|
1923
1948
|
return response
|
1924
1949
|
end
|
1925
|
-
rescue GRPC::BadStatus => e
|
1926
|
-
raise Google::Cloud::Error.from_error(e)
|
1950
|
+
rescue ::GRPC::BadStatus => e
|
1951
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1927
1952
|
end
|
1928
1953
|
|
1929
1954
|
##
|
@@ -1931,12 +1956,12 @@ module Google
|
|
1931
1956
|
#
|
1932
1957
|
# @overload test_iam_permissions(request, options = nil)
|
1933
1958
|
# Pass arguments to `test_iam_permissions` via a request object, either of type
|
1934
|
-
# {Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
|
1959
|
+
# {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
|
1935
1960
|
#
|
1936
|
-
# @param request [Google::Iam::V1::TestIamPermissionsRequest, Hash]
|
1961
|
+
# @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
|
1937
1962
|
# A request object representing the call parameters. Required. To specify no
|
1938
1963
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1939
|
-
# @param options [Gapic::CallOptions, Hash]
|
1964
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1940
1965
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1941
1966
|
#
|
1942
1967
|
# @overload test_iam_permissions(resource: nil, permissions: nil)
|
@@ -1944,36 +1969,36 @@ module Google
|
|
1944
1969
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1945
1970
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1946
1971
|
#
|
1947
|
-
# @param resource [String]
|
1972
|
+
# @param resource [::String]
|
1948
1973
|
# REQUIRED: The resource for which the policy detail is being requested.
|
1949
1974
|
# See the operation documentation for the appropriate value for this field.
|
1950
|
-
# @param permissions [Array
|
1975
|
+
# @param permissions [::Array<::String>]
|
1951
1976
|
# The set of permissions to check for the `resource`. Permissions with
|
1952
1977
|
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
1953
1978
|
# information see
|
1954
1979
|
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
1955
1980
|
#
|
1956
1981
|
# @yield [response, operation] Access the result along with the RPC operation
|
1957
|
-
# @yieldparam response [Google::Iam::V1::TestIamPermissionsResponse]
|
1958
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1982
|
+
# @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse]
|
1983
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1959
1984
|
#
|
1960
|
-
# @return [Google::Iam::V1::TestIamPermissionsResponse]
|
1985
|
+
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
1961
1986
|
#
|
1962
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1987
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1963
1988
|
#
|
1964
1989
|
def test_iam_permissions request, options = nil
|
1965
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1990
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1966
1991
|
|
1967
|
-
request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::TestIamPermissionsRequest
|
1992
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
|
1968
1993
|
|
1969
1994
|
# Converts hash and nil to an options object
|
1970
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1995
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1971
1996
|
|
1972
1997
|
# Customize the options with defaults
|
1973
1998
|
metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
1974
1999
|
|
1975
2000
|
# Set x-goog-api-client and x-goog-user-project headers
|
1976
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2001
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1977
2002
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1978
2003
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
1979
2004
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1994,8 +2019,8 @@ module Google
|
|
1994
2019
|
yield response, operation if block_given?
|
1995
2020
|
return response
|
1996
2021
|
end
|
1997
|
-
rescue GRPC::BadStatus => e
|
1998
|
-
raise Google::Cloud::Error.from_error(e)
|
2022
|
+
rescue ::GRPC::BadStatus => e
|
2023
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1999
2024
|
end
|
2000
2025
|
|
2001
2026
|
##
|
@@ -2004,12 +2029,12 @@ module Google
|
|
2004
2029
|
#
|
2005
2030
|
# @overload update_finding(request, options = nil)
|
2006
2031
|
# Pass arguments to `update_finding` via a request object, either of type
|
2007
|
-
# {Google::Cloud::SecurityCenter::V1::UpdateFindingRequest} or an equivalent Hash.
|
2032
|
+
# {::Google::Cloud::SecurityCenter::V1::UpdateFindingRequest} or an equivalent Hash.
|
2008
2033
|
#
|
2009
|
-
# @param request [Google::Cloud::SecurityCenter::V1::UpdateFindingRequest, Hash]
|
2034
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::UpdateFindingRequest, ::Hash]
|
2010
2035
|
# A request object representing the call parameters. Required. To specify no
|
2011
2036
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2012
|
-
# @param options [Gapic::CallOptions, Hash]
|
2037
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2013
2038
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2014
2039
|
#
|
2015
2040
|
# @overload update_finding(finding: nil, update_mask: nil)
|
@@ -2017,14 +2042,14 @@ module Google
|
|
2017
2042
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2018
2043
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2019
2044
|
#
|
2020
|
-
# @param finding [Google::Cloud::SecurityCenter::V1::Finding, Hash]
|
2045
|
+
# @param finding [::Google::Cloud::SecurityCenter::V1::Finding, ::Hash]
|
2021
2046
|
# Required. The finding resource to update or create if it does not already
|
2022
2047
|
# exist. parent, security_marks, and update_time will be ignored.
|
2023
2048
|
#
|
2024
2049
|
# In the case of creation, the finding id portion of the name must be
|
2025
2050
|
# alphanumeric and less than or equal to 32 characters and greater than 0
|
2026
2051
|
# characters in length.
|
2027
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
2052
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2028
2053
|
# The FieldMask to use when updating the finding resource. This field should
|
2029
2054
|
# not be specified when creating a finding.
|
2030
2055
|
#
|
@@ -2034,26 +2059,26 @@ module Google
|
|
2034
2059
|
# mask.
|
2035
2060
|
#
|
2036
2061
|
# @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]
|
2062
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::Finding]
|
2063
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2039
2064
|
#
|
2040
|
-
# @return [Google::Cloud::SecurityCenter::V1::Finding]
|
2065
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Finding]
|
2041
2066
|
#
|
2042
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2067
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2043
2068
|
#
|
2044
2069
|
def update_finding request, options = nil
|
2045
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2070
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2046
2071
|
|
2047
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::UpdateFindingRequest
|
2072
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::UpdateFindingRequest
|
2048
2073
|
|
2049
2074
|
# Converts hash and nil to an options object
|
2050
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2075
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2051
2076
|
|
2052
2077
|
# Customize the options with defaults
|
2053
2078
|
metadata = @config.rpcs.update_finding.metadata.to_h
|
2054
2079
|
|
2055
2080
|
# Set x-goog-api-client and x-goog-user-project headers
|
2056
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2081
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2057
2082
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2058
2083
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
2059
2084
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2074,8 +2099,8 @@ module Google
|
|
2074
2099
|
yield response, operation if block_given?
|
2075
2100
|
return response
|
2076
2101
|
end
|
2077
|
-
rescue GRPC::BadStatus => e
|
2078
|
-
raise Google::Cloud::Error.from_error(e)
|
2102
|
+
rescue ::GRPC::BadStatus => e
|
2103
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2079
2104
|
end
|
2080
2105
|
|
2081
2106
|
##
|
@@ -2083,12 +2108,12 @@ module Google
|
|
2083
2108
|
#
|
2084
2109
|
# @overload update_notification_config(request, options = nil)
|
2085
2110
|
# Pass arguments to `update_notification_config` via a request object, either of type
|
2086
|
-
# {Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest} or an equivalent Hash.
|
2111
|
+
# {::Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest} or an equivalent Hash.
|
2087
2112
|
#
|
2088
|
-
# @param request [Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest, Hash]
|
2113
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest, ::Hash]
|
2089
2114
|
# A request object representing the call parameters. Required. To specify no
|
2090
2115
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2091
|
-
# @param options [Gapic::CallOptions, Hash]
|
2116
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2092
2117
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2093
2118
|
#
|
2094
2119
|
# @overload update_notification_config(notification_config: nil, update_mask: nil)
|
@@ -2096,34 +2121,34 @@ module Google
|
|
2096
2121
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2097
2122
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2098
2123
|
#
|
2099
|
-
# @param notification_config [Google::Cloud::SecurityCenter::V1::NotificationConfig, Hash]
|
2124
|
+
# @param notification_config [::Google::Cloud::SecurityCenter::V1::NotificationConfig, ::Hash]
|
2100
2125
|
# Required. The notification config to update.
|
2101
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
2126
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2102
2127
|
# The FieldMask to use when updating the notification config.
|
2103
2128
|
#
|
2104
2129
|
# If empty all mutable fields will be updated.
|
2105
2130
|
#
|
2106
2131
|
# @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]
|
2132
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
2133
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2109
2134
|
#
|
2110
|
-
# @return [Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
2135
|
+
# @return [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
2111
2136
|
#
|
2112
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2137
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2113
2138
|
#
|
2114
2139
|
def update_notification_config request, options = nil
|
2115
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2140
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2116
2141
|
|
2117
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest
|
2142
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest
|
2118
2143
|
|
2119
2144
|
# Converts hash and nil to an options object
|
2120
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2145
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2121
2146
|
|
2122
2147
|
# Customize the options with defaults
|
2123
2148
|
metadata = @config.rpcs.update_notification_config.metadata.to_h
|
2124
2149
|
|
2125
2150
|
# Set x-goog-api-client and x-goog-user-project headers
|
2126
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2151
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2127
2152
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2128
2153
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
2129
2154
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2144,8 +2169,8 @@ module Google
|
|
2144
2169
|
yield response, operation if block_given?
|
2145
2170
|
return response
|
2146
2171
|
end
|
2147
|
-
rescue GRPC::BadStatus => e
|
2148
|
-
raise Google::Cloud::Error.from_error(e)
|
2172
|
+
rescue ::GRPC::BadStatus => e
|
2173
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2149
2174
|
end
|
2150
2175
|
|
2151
2176
|
##
|
@@ -2153,12 +2178,12 @@ module Google
|
|
2153
2178
|
#
|
2154
2179
|
# @overload update_organization_settings(request, options = nil)
|
2155
2180
|
# Pass arguments to `update_organization_settings` via a request object, either of type
|
2156
|
-
# {Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest} or an equivalent Hash.
|
2181
|
+
# {::Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest} or an equivalent Hash.
|
2157
2182
|
#
|
2158
|
-
# @param request [Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest, Hash]
|
2183
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest, ::Hash]
|
2159
2184
|
# A request object representing the call parameters. Required. To specify no
|
2160
2185
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2161
|
-
# @param options [Gapic::CallOptions, Hash]
|
2186
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2162
2187
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2163
2188
|
#
|
2164
2189
|
# @overload update_organization_settings(organization_settings: nil, update_mask: nil)
|
@@ -2166,34 +2191,34 @@ module Google
|
|
2166
2191
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2167
2192
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2168
2193
|
#
|
2169
|
-
# @param organization_settings [Google::Cloud::SecurityCenter::V1::OrganizationSettings, Hash]
|
2194
|
+
# @param organization_settings [::Google::Cloud::SecurityCenter::V1::OrganizationSettings, ::Hash]
|
2170
2195
|
# Required. The organization settings resource to update.
|
2171
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
2196
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2172
2197
|
# The FieldMask to use when updating the settings resource.
|
2173
2198
|
#
|
2174
2199
|
# If empty all mutable fields will be updated.
|
2175
2200
|
#
|
2176
2201
|
# @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]
|
2202
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::OrganizationSettings]
|
2203
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2179
2204
|
#
|
2180
|
-
# @return [Google::Cloud::SecurityCenter::V1::OrganizationSettings]
|
2205
|
+
# @return [::Google::Cloud::SecurityCenter::V1::OrganizationSettings]
|
2181
2206
|
#
|
2182
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2207
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2183
2208
|
#
|
2184
2209
|
def update_organization_settings request, options = nil
|
2185
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2210
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2186
2211
|
|
2187
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest
|
2212
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest
|
2188
2213
|
|
2189
2214
|
# Converts hash and nil to an options object
|
2190
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2215
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2191
2216
|
|
2192
2217
|
# Customize the options with defaults
|
2193
2218
|
metadata = @config.rpcs.update_organization_settings.metadata.to_h
|
2194
2219
|
|
2195
2220
|
# Set x-goog-api-client and x-goog-user-project headers
|
2196
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2221
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2197
2222
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2198
2223
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
2199
2224
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2214,8 +2239,8 @@ module Google
|
|
2214
2239
|
yield response, operation if block_given?
|
2215
2240
|
return response
|
2216
2241
|
end
|
2217
|
-
rescue GRPC::BadStatus => e
|
2218
|
-
raise Google::Cloud::Error.from_error(e)
|
2242
|
+
rescue ::GRPC::BadStatus => e
|
2243
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2219
2244
|
end
|
2220
2245
|
|
2221
2246
|
##
|
@@ -2223,12 +2248,12 @@ module Google
|
|
2223
2248
|
#
|
2224
2249
|
# @overload update_source(request, options = nil)
|
2225
2250
|
# Pass arguments to `update_source` via a request object, either of type
|
2226
|
-
# {Google::Cloud::SecurityCenter::V1::UpdateSourceRequest} or an equivalent Hash.
|
2251
|
+
# {::Google::Cloud::SecurityCenter::V1::UpdateSourceRequest} or an equivalent Hash.
|
2227
2252
|
#
|
2228
|
-
# @param request [Google::Cloud::SecurityCenter::V1::UpdateSourceRequest, Hash]
|
2253
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::UpdateSourceRequest, ::Hash]
|
2229
2254
|
# A request object representing the call parameters. Required. To specify no
|
2230
2255
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2231
|
-
# @param options [Gapic::CallOptions, Hash]
|
2256
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2232
2257
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2233
2258
|
#
|
2234
2259
|
# @overload update_source(source: nil, update_mask: nil)
|
@@ -2236,34 +2261,34 @@ module Google
|
|
2236
2261
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2237
2262
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2238
2263
|
#
|
2239
|
-
# @param source [Google::Cloud::SecurityCenter::V1::Source, Hash]
|
2264
|
+
# @param source [::Google::Cloud::SecurityCenter::V1::Source, ::Hash]
|
2240
2265
|
# Required. The source resource to update.
|
2241
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
2266
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2242
2267
|
# The FieldMask to use when updating the source resource.
|
2243
2268
|
#
|
2244
2269
|
# If empty all mutable fields will be updated.
|
2245
2270
|
#
|
2246
2271
|
# @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]
|
2272
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::Source]
|
2273
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2249
2274
|
#
|
2250
|
-
# @return [Google::Cloud::SecurityCenter::V1::Source]
|
2275
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Source]
|
2251
2276
|
#
|
2252
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2277
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2253
2278
|
#
|
2254
2279
|
def update_source request, options = nil
|
2255
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2280
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2256
2281
|
|
2257
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::UpdateSourceRequest
|
2282
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::UpdateSourceRequest
|
2258
2283
|
|
2259
2284
|
# Converts hash and nil to an options object
|
2260
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2285
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2261
2286
|
|
2262
2287
|
# Customize the options with defaults
|
2263
2288
|
metadata = @config.rpcs.update_source.metadata.to_h
|
2264
2289
|
|
2265
2290
|
# Set x-goog-api-client and x-goog-user-project headers
|
2266
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2291
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2267
2292
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2268
2293
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
2269
2294
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2284,8 +2309,8 @@ module Google
|
|
2284
2309
|
yield response, operation if block_given?
|
2285
2310
|
return response
|
2286
2311
|
end
|
2287
|
-
rescue GRPC::BadStatus => e
|
2288
|
-
raise Google::Cloud::Error.from_error(e)
|
2312
|
+
rescue ::GRPC::BadStatus => e
|
2313
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2289
2314
|
end
|
2290
2315
|
|
2291
2316
|
##
|
@@ -2293,12 +2318,12 @@ module Google
|
|
2293
2318
|
#
|
2294
2319
|
# @overload update_security_marks(request, options = nil)
|
2295
2320
|
# Pass arguments to `update_security_marks` via a request object, either of type
|
2296
|
-
# {Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest} or an equivalent Hash.
|
2321
|
+
# {::Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest} or an equivalent Hash.
|
2297
2322
|
#
|
2298
|
-
# @param request [Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest, Hash]
|
2323
|
+
# @param request [::Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest, ::Hash]
|
2299
2324
|
# A request object representing the call parameters. Required. To specify no
|
2300
2325
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2301
|
-
# @param options [Gapic::CallOptions, Hash]
|
2326
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2302
2327
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2303
2328
|
#
|
2304
2329
|
# @overload update_security_marks(security_marks: nil, update_mask: nil, start_time: nil)
|
@@ -2306,40 +2331,40 @@ module Google
|
|
2306
2331
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2307
2332
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2308
2333
|
#
|
2309
|
-
# @param security_marks [Google::Cloud::SecurityCenter::V1::SecurityMarks, Hash]
|
2334
|
+
# @param security_marks [::Google::Cloud::SecurityCenter::V1::SecurityMarks, ::Hash]
|
2310
2335
|
# Required. The security marks resource to update.
|
2311
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
2336
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2312
2337
|
# The FieldMask to use when updating the security marks resource.
|
2313
2338
|
#
|
2314
2339
|
# The field mask must not contain duplicate fields.
|
2315
2340
|
# If empty or set to "marks", all marks will be replaced. Individual
|
2316
2341
|
# marks can be updated using "marks.<mark_key>".
|
2317
|
-
# @param start_time [Google::Protobuf::Timestamp, Hash]
|
2342
|
+
# @param start_time [::Google::Protobuf::Timestamp, ::Hash]
|
2318
2343
|
# The time at which the updated SecurityMarks take effect.
|
2319
2344
|
# If not set uses current server time. Updates will be applied to the
|
2320
2345
|
# SecurityMarks that are active immediately preceding this time.
|
2321
2346
|
#
|
2322
2347
|
# @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]
|
2348
|
+
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::SecurityMarks]
|
2349
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2325
2350
|
#
|
2326
|
-
# @return [Google::Cloud::SecurityCenter::V1::SecurityMarks]
|
2351
|
+
# @return [::Google::Cloud::SecurityCenter::V1::SecurityMarks]
|
2327
2352
|
#
|
2328
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2353
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2329
2354
|
#
|
2330
2355
|
def update_security_marks request, options = nil
|
2331
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2356
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2332
2357
|
|
2333
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest
|
2358
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest
|
2334
2359
|
|
2335
2360
|
# Converts hash and nil to an options object
|
2336
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2361
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2337
2362
|
|
2338
2363
|
# Customize the options with defaults
|
2339
2364
|
metadata = @config.rpcs.update_security_marks.metadata.to_h
|
2340
2365
|
|
2341
2366
|
# Set x-goog-api-client and x-goog-user-project headers
|
2342
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2367
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2343
2368
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2344
2369
|
gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION
|
2345
2370
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2360,8 +2385,8 @@ module Google
|
|
2360
2385
|
yield response, operation if block_given?
|
2361
2386
|
return response
|
2362
2387
|
end
|
2363
|
-
rescue GRPC::BadStatus => e
|
2364
|
-
raise Google::Cloud::Error.from_error(e)
|
2388
|
+
rescue ::GRPC::BadStatus => e
|
2389
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2365
2390
|
end
|
2366
2391
|
|
2367
2392
|
##
|
@@ -2371,7 +2396,7 @@ module Google
|
|
2371
2396
|
# providing control over timeouts, retry behavior, logging, transport
|
2372
2397
|
# parameters, and other low-level controls. Certain parameters can also be
|
2373
2398
|
# applied individually to specific RPCs. See
|
2374
|
-
# {Google::Cloud::SecurityCenter::V1::SecurityCenter::Client::Configuration::Rpcs}
|
2399
|
+
# {::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client::Configuration::Rpcs}
|
2375
2400
|
# for a list of RPCs that can be configured independently.
|
2376
2401
|
#
|
2377
2402
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -2382,22 +2407,22 @@ module Google
|
|
2382
2407
|
# To modify the global config, setting the timeout for create_source
|
2383
2408
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
2384
2409
|
#
|
2385
|
-
# Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.configure do |config|
|
2386
|
-
# config.timeout =
|
2387
|
-
# config.rpcs.create_source.timeout =
|
2410
|
+
# ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.configure do |config|
|
2411
|
+
# config.timeout = 10.0
|
2412
|
+
# config.rpcs.create_source.timeout = 20.0
|
2388
2413
|
# end
|
2389
2414
|
#
|
2390
2415
|
# To apply the above configuration only to a new client:
|
2391
2416
|
#
|
2392
|
-
# client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new do |config|
|
2393
|
-
# config.timeout =
|
2394
|
-
# config.rpcs.create_source.timeout =
|
2417
|
+
# client = ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new do |config|
|
2418
|
+
# config.timeout = 10.0
|
2419
|
+
# config.rpcs.create_source.timeout = 20.0
|
2395
2420
|
# end
|
2396
2421
|
#
|
2397
2422
|
# @!attribute [rw] endpoint
|
2398
2423
|
# The hostname or hostname:port of the service endpoint.
|
2399
2424
|
# Defaults to `"securitycenter.googleapis.com"`.
|
2400
|
-
# @return [String]
|
2425
|
+
# @return [::String]
|
2401
2426
|
# @!attribute [rw] credentials
|
2402
2427
|
# Credentials to send with calls. You may provide any of the following types:
|
2403
2428
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -2409,29 +2434,29 @@ module Google
|
|
2409
2434
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
2410
2435
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
2411
2436
|
# * (`nil`) indicating no credentials
|
2412
|
-
# @return [Object]
|
2437
|
+
# @return [::Object]
|
2413
2438
|
# @!attribute [rw] scope
|
2414
2439
|
# The OAuth scopes
|
2415
|
-
# @return [Array
|
2440
|
+
# @return [::Array<::String>]
|
2416
2441
|
# @!attribute [rw] lib_name
|
2417
2442
|
# The library name as recorded in instrumentation and logging
|
2418
|
-
# @return [String]
|
2443
|
+
# @return [::String]
|
2419
2444
|
# @!attribute [rw] lib_version
|
2420
2445
|
# The library version as recorded in instrumentation and logging
|
2421
|
-
# @return [String]
|
2446
|
+
# @return [::String]
|
2422
2447
|
# @!attribute [rw] channel_args
|
2423
2448
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
2424
2449
|
# `GRPC::Core::Channel` object is provided as the credential.
|
2425
|
-
# @return [Hash]
|
2450
|
+
# @return [::Hash]
|
2426
2451
|
# @!attribute [rw] interceptors
|
2427
2452
|
# An array of interceptors that are run before calls are executed.
|
2428
|
-
# @return [Array
|
2453
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
2429
2454
|
# @!attribute [rw] timeout
|
2430
|
-
# The call timeout in
|
2431
|
-
# @return [Numeric]
|
2455
|
+
# The call timeout in seconds.
|
2456
|
+
# @return [::Numeric]
|
2432
2457
|
# @!attribute [rw] metadata
|
2433
2458
|
# Additional gRPC headers to be sent with the call.
|
2434
|
-
# @return [Hash{Symbol
|
2459
|
+
# @return [::Hash{::Symbol=>::String}]
|
2435
2460
|
# @!attribute [rw] retry_policy
|
2436
2461
|
# The retry policy. The value is a hash with the following keys:
|
2437
2462
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -2439,25 +2464,29 @@ module Google
|
|
2439
2464
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
2440
2465
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
2441
2466
|
# trigger a retry.
|
2442
|
-
# @return [Hash]
|
2467
|
+
# @return [::Hash]
|
2468
|
+
# @!attribute [rw] quota_project
|
2469
|
+
# A separate project against which to charge quota.
|
2470
|
+
# @return [::String]
|
2443
2471
|
#
|
2444
2472
|
class Configuration
|
2445
|
-
extend Gapic::Config
|
2473
|
+
extend ::Gapic::Config
|
2446
2474
|
|
2447
|
-
config_attr :endpoint,
|
2448
|
-
config_attr :credentials,
|
2475
|
+
config_attr :endpoint, "securitycenter.googleapis.com", ::String
|
2476
|
+
config_attr :credentials, nil do |value|
|
2449
2477
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2450
2478
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
2451
2479
|
allowed.any? { |klass| klass === value }
|
2452
2480
|
end
|
2453
|
-
config_attr :scope,
|
2454
|
-
config_attr :lib_name,
|
2455
|
-
config_attr :lib_version,
|
2456
|
-
config_attr(:channel_args,
|
2457
|
-
config_attr :interceptors,
|
2458
|
-
config_attr :timeout,
|
2459
|
-
config_attr :metadata,
|
2460
|
-
config_attr :retry_policy,
|
2481
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
2482
|
+
config_attr :lib_name, nil, ::String, nil
|
2483
|
+
config_attr :lib_version, nil, ::String, nil
|
2484
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
2485
|
+
config_attr :interceptors, nil, ::Array, nil
|
2486
|
+
config_attr :timeout, nil, ::Numeric, nil
|
2487
|
+
config_attr :metadata, nil, ::Hash, nil
|
2488
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2489
|
+
config_attr :quota_project, nil, ::String, nil
|
2461
2490
|
|
2462
2491
|
# @private
|
2463
2492
|
def initialize parent_config = nil
|
@@ -2473,7 +2502,7 @@ module Google
|
|
2473
2502
|
def rpcs
|
2474
2503
|
@rpcs ||= begin
|
2475
2504
|
parent_rpcs = nil
|
2476
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
2505
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
2477
2506
|
Rpcs.new parent_rpcs
|
2478
2507
|
end
|
2479
2508
|
end
|
@@ -2498,168 +2527,168 @@ module Google
|
|
2498
2527
|
class Rpcs
|
2499
2528
|
##
|
2500
2529
|
# RPC-specific configuration for `create_source`
|
2501
|
-
# @return [Gapic::Config::Method]
|
2530
|
+
# @return [::Gapic::Config::Method]
|
2502
2531
|
#
|
2503
2532
|
attr_reader :create_source
|
2504
2533
|
##
|
2505
2534
|
# RPC-specific configuration for `create_finding`
|
2506
|
-
# @return [Gapic::Config::Method]
|
2535
|
+
# @return [::Gapic::Config::Method]
|
2507
2536
|
#
|
2508
2537
|
attr_reader :create_finding
|
2509
2538
|
##
|
2510
2539
|
# RPC-specific configuration for `create_notification_config`
|
2511
|
-
# @return [Gapic::Config::Method]
|
2540
|
+
# @return [::Gapic::Config::Method]
|
2512
2541
|
#
|
2513
2542
|
attr_reader :create_notification_config
|
2514
2543
|
##
|
2515
2544
|
# RPC-specific configuration for `delete_notification_config`
|
2516
|
-
# @return [Gapic::Config::Method]
|
2545
|
+
# @return [::Gapic::Config::Method]
|
2517
2546
|
#
|
2518
2547
|
attr_reader :delete_notification_config
|
2519
2548
|
##
|
2520
2549
|
# RPC-specific configuration for `get_iam_policy`
|
2521
|
-
# @return [Gapic::Config::Method]
|
2550
|
+
# @return [::Gapic::Config::Method]
|
2522
2551
|
#
|
2523
2552
|
attr_reader :get_iam_policy
|
2524
2553
|
##
|
2525
2554
|
# RPC-specific configuration for `get_notification_config`
|
2526
|
-
# @return [Gapic::Config::Method]
|
2555
|
+
# @return [::Gapic::Config::Method]
|
2527
2556
|
#
|
2528
2557
|
attr_reader :get_notification_config
|
2529
2558
|
##
|
2530
2559
|
# RPC-specific configuration for `get_organization_settings`
|
2531
|
-
# @return [Gapic::Config::Method]
|
2560
|
+
# @return [::Gapic::Config::Method]
|
2532
2561
|
#
|
2533
2562
|
attr_reader :get_organization_settings
|
2534
2563
|
##
|
2535
2564
|
# RPC-specific configuration for `get_source`
|
2536
|
-
# @return [Gapic::Config::Method]
|
2565
|
+
# @return [::Gapic::Config::Method]
|
2537
2566
|
#
|
2538
2567
|
attr_reader :get_source
|
2539
2568
|
##
|
2540
2569
|
# RPC-specific configuration for `group_assets`
|
2541
|
-
# @return [Gapic::Config::Method]
|
2570
|
+
# @return [::Gapic::Config::Method]
|
2542
2571
|
#
|
2543
2572
|
attr_reader :group_assets
|
2544
2573
|
##
|
2545
2574
|
# RPC-specific configuration for `group_findings`
|
2546
|
-
# @return [Gapic::Config::Method]
|
2575
|
+
# @return [::Gapic::Config::Method]
|
2547
2576
|
#
|
2548
2577
|
attr_reader :group_findings
|
2549
2578
|
##
|
2550
2579
|
# RPC-specific configuration for `list_assets`
|
2551
|
-
# @return [Gapic::Config::Method]
|
2580
|
+
# @return [::Gapic::Config::Method]
|
2552
2581
|
#
|
2553
2582
|
attr_reader :list_assets
|
2554
2583
|
##
|
2555
2584
|
# RPC-specific configuration for `list_findings`
|
2556
|
-
# @return [Gapic::Config::Method]
|
2585
|
+
# @return [::Gapic::Config::Method]
|
2557
2586
|
#
|
2558
2587
|
attr_reader :list_findings
|
2559
2588
|
##
|
2560
2589
|
# RPC-specific configuration for `list_notification_configs`
|
2561
|
-
# @return [Gapic::Config::Method]
|
2590
|
+
# @return [::Gapic::Config::Method]
|
2562
2591
|
#
|
2563
2592
|
attr_reader :list_notification_configs
|
2564
2593
|
##
|
2565
2594
|
# RPC-specific configuration for `list_sources`
|
2566
|
-
# @return [Gapic::Config::Method]
|
2595
|
+
# @return [::Gapic::Config::Method]
|
2567
2596
|
#
|
2568
2597
|
attr_reader :list_sources
|
2569
2598
|
##
|
2570
2599
|
# RPC-specific configuration for `run_asset_discovery`
|
2571
|
-
# @return [Gapic::Config::Method]
|
2600
|
+
# @return [::Gapic::Config::Method]
|
2572
2601
|
#
|
2573
2602
|
attr_reader :run_asset_discovery
|
2574
2603
|
##
|
2575
2604
|
# RPC-specific configuration for `set_finding_state`
|
2576
|
-
# @return [Gapic::Config::Method]
|
2605
|
+
# @return [::Gapic::Config::Method]
|
2577
2606
|
#
|
2578
2607
|
attr_reader :set_finding_state
|
2579
2608
|
##
|
2580
2609
|
# RPC-specific configuration for `set_iam_policy`
|
2581
|
-
# @return [Gapic::Config::Method]
|
2610
|
+
# @return [::Gapic::Config::Method]
|
2582
2611
|
#
|
2583
2612
|
attr_reader :set_iam_policy
|
2584
2613
|
##
|
2585
2614
|
# RPC-specific configuration for `test_iam_permissions`
|
2586
|
-
# @return [Gapic::Config::Method]
|
2615
|
+
# @return [::Gapic::Config::Method]
|
2587
2616
|
#
|
2588
2617
|
attr_reader :test_iam_permissions
|
2589
2618
|
##
|
2590
2619
|
# RPC-specific configuration for `update_finding`
|
2591
|
-
# @return [Gapic::Config::Method]
|
2620
|
+
# @return [::Gapic::Config::Method]
|
2592
2621
|
#
|
2593
2622
|
attr_reader :update_finding
|
2594
2623
|
##
|
2595
2624
|
# RPC-specific configuration for `update_notification_config`
|
2596
|
-
# @return [Gapic::Config::Method]
|
2625
|
+
# @return [::Gapic::Config::Method]
|
2597
2626
|
#
|
2598
2627
|
attr_reader :update_notification_config
|
2599
2628
|
##
|
2600
2629
|
# RPC-specific configuration for `update_organization_settings`
|
2601
|
-
# @return [Gapic::Config::Method]
|
2630
|
+
# @return [::Gapic::Config::Method]
|
2602
2631
|
#
|
2603
2632
|
attr_reader :update_organization_settings
|
2604
2633
|
##
|
2605
2634
|
# RPC-specific configuration for `update_source`
|
2606
|
-
# @return [Gapic::Config::Method]
|
2635
|
+
# @return [::Gapic::Config::Method]
|
2607
2636
|
#
|
2608
2637
|
attr_reader :update_source
|
2609
2638
|
##
|
2610
2639
|
# RPC-specific configuration for `update_security_marks`
|
2611
|
-
# @return [Gapic::Config::Method]
|
2640
|
+
# @return [::Gapic::Config::Method]
|
2612
2641
|
#
|
2613
2642
|
attr_reader :update_security_marks
|
2614
2643
|
|
2615
2644
|
# @private
|
2616
2645
|
def initialize parent_rpcs = nil
|
2617
2646
|
create_source_config = parent_rpcs&.create_source if parent_rpcs&.respond_to? :create_source
|
2618
|
-
@create_source = Gapic::Config::Method.new create_source_config
|
2647
|
+
@create_source = ::Gapic::Config::Method.new create_source_config
|
2619
2648
|
create_finding_config = parent_rpcs&.create_finding if parent_rpcs&.respond_to? :create_finding
|
2620
|
-
@create_finding = Gapic::Config::Method.new create_finding_config
|
2649
|
+
@create_finding = ::Gapic::Config::Method.new create_finding_config
|
2621
2650
|
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
|
2651
|
+
@create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
|
2623
2652
|
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
|
2653
|
+
@delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
|
2625
2654
|
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
|
2655
|
+
@get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
|
2627
2656
|
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
|
2657
|
+
@get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
|
2629
2658
|
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
|
2659
|
+
@get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
|
2631
2660
|
get_source_config = parent_rpcs&.get_source if parent_rpcs&.respond_to? :get_source
|
2632
|
-
@get_source = Gapic::Config::Method.new get_source_config
|
2661
|
+
@get_source = ::Gapic::Config::Method.new get_source_config
|
2633
2662
|
group_assets_config = parent_rpcs&.group_assets if parent_rpcs&.respond_to? :group_assets
|
2634
|
-
@group_assets = Gapic::Config::Method.new group_assets_config
|
2663
|
+
@group_assets = ::Gapic::Config::Method.new group_assets_config
|
2635
2664
|
group_findings_config = parent_rpcs&.group_findings if parent_rpcs&.respond_to? :group_findings
|
2636
|
-
@group_findings = Gapic::Config::Method.new group_findings_config
|
2665
|
+
@group_findings = ::Gapic::Config::Method.new group_findings_config
|
2637
2666
|
list_assets_config = parent_rpcs&.list_assets if parent_rpcs&.respond_to? :list_assets
|
2638
|
-
@list_assets = Gapic::Config::Method.new list_assets_config
|
2667
|
+
@list_assets = ::Gapic::Config::Method.new list_assets_config
|
2639
2668
|
list_findings_config = parent_rpcs&.list_findings if parent_rpcs&.respond_to? :list_findings
|
2640
|
-
@list_findings = Gapic::Config::Method.new list_findings_config
|
2669
|
+
@list_findings = ::Gapic::Config::Method.new list_findings_config
|
2641
2670
|
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
|
2671
|
+
@list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
|
2643
2672
|
list_sources_config = parent_rpcs&.list_sources if parent_rpcs&.respond_to? :list_sources
|
2644
|
-
@list_sources = Gapic::Config::Method.new list_sources_config
|
2673
|
+
@list_sources = ::Gapic::Config::Method.new list_sources_config
|
2645
2674
|
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
|
2675
|
+
@run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
|
2647
2676
|
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
|
2677
|
+
@set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
|
2649
2678
|
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
|
2679
|
+
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
2651
2680
|
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
|
2681
|
+
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
2653
2682
|
update_finding_config = parent_rpcs&.update_finding if parent_rpcs&.respond_to? :update_finding
|
2654
|
-
@update_finding = Gapic::Config::Method.new update_finding_config
|
2683
|
+
@update_finding = ::Gapic::Config::Method.new update_finding_config
|
2655
2684
|
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
|
2685
|
+
@update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
|
2657
2686
|
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
|
2687
|
+
@update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
|
2659
2688
|
update_source_config = parent_rpcs&.update_source if parent_rpcs&.respond_to? :update_source
|
2660
|
-
@update_source = Gapic::Config::Method.new update_source_config
|
2689
|
+
@update_source = ::Gapic::Config::Method.new update_source_config
|
2661
2690
|
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
|
2691
|
+
@update_security_marks = ::Gapic::Config::Method.new update_security_marks_config
|
2663
2692
|
|
2664
2693
|
yield self if block_given?
|
2665
2694
|
end
|