google-cloud-security_center_management-v1 1.1.0 → 1.2.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/README.md +30 -20
- data/lib/google/cloud/security_center_management/v1/security_center_management/client.rb +35 -22
- data/lib/google/cloud/security_center_management/v1/security_center_management/rest/client.rb +35 -22
- data/lib/google/cloud/security_center_management/v1/security_center_management/rest/service_stub.rb +182 -128
- data/lib/google/cloud/security_center_management/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +25 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9edafcef2094c417af25abb94ff6eed43a02a59fdc987ed2cfa36bd6dc9b7071
|
4
|
+
data.tar.gz: 55f4f52af0fbf735bbbba73f6c59ce745e48b86cbc0319e2553a9e6d7ad2bdbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b9f887dd78c453249fd68c903ec792b4c72259830eb928dea967ec498ae63775d0fc64e65cdec71ed604b3441f4f54430089dffd0614889171f46cdb8efeef3
|
7
|
+
data.tar.gz: e5541c8c795139f0a9960edcc064f56245270ca27d0435b3c25bb25d8ffd574fbcb561c4b219a63af3aeb3155affa1d1451340ed792e24865433663bf39d541a
|
data/README.md
CHANGED
@@ -43,33 +43,43 @@ for class and method documentation.
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/security-command-center/docs/reference/security-center-management/rest)
|
44
44
|
for general usage information.
|
45
45
|
|
46
|
-
##
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
## Debug Logging
|
47
|
+
|
48
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
49
|
+
your application's integration with the API. When logging is activated, key
|
50
|
+
events such as requests and responses, along with data payloads and metadata
|
51
|
+
such as headers and client configuration, are logged to the standard error
|
52
|
+
stream.
|
53
|
+
|
54
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
55
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
56
|
+
customers, private keys, or other security data that could be compromising if
|
57
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
58
|
+
the principle of least access. Google also recommends that Client Library Debug
|
59
|
+
Logging be enabled only temporarily during active debugging, and not used
|
60
|
+
permanently in production.
|
61
|
+
|
62
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
63
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
64
|
+
list of client library gem names. This will select the default logging behavior,
|
65
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
66
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
67
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
68
|
+
results in logs appearing alongside your application logs in the
|
69
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
70
|
+
|
71
|
+
You can customize logging by modifying the `logger` configuration when
|
72
|
+
constructing a client object. For example:
|
55
73
|
|
56
74
|
```ruby
|
75
|
+
require "google/cloud/security_center_management/v1"
|
57
76
|
require "logger"
|
58
77
|
|
59
|
-
|
60
|
-
|
61
|
-
def logger
|
62
|
-
LOGGER
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
67
|
-
module GRPC
|
68
|
-
extend MyLogger
|
78
|
+
client = ::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterManagement::Client.new do |config|
|
79
|
+
config.logger = Logger.new "my-app.log"
|
69
80
|
end
|
70
81
|
```
|
71
82
|
|
72
|
-
|
73
83
|
## Google Cloud Samples
|
74
84
|
|
75
85
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
@@ -230,14 +230,26 @@ module Google
|
|
230
230
|
universe_domain: @config.universe_domain,
|
231
231
|
channel_args: @config.channel_args,
|
232
232
|
interceptors: @config.interceptors,
|
233
|
-
channel_pool_config: @config.channel_pool
|
233
|
+
channel_pool_config: @config.channel_pool,
|
234
|
+
logger: @config.logger
|
234
235
|
)
|
235
236
|
|
237
|
+
@security_center_management_stub.stub_logger&.info do |entry|
|
238
|
+
entry.set_system_name
|
239
|
+
entry.set_service
|
240
|
+
entry.message = "Created client for #{entry.service}"
|
241
|
+
entry.set_credentials_fields credentials
|
242
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
243
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
244
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
245
|
+
end
|
246
|
+
|
236
247
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
237
248
|
config.credentials = credentials
|
238
249
|
config.quota_project = @quota_project_id
|
239
250
|
config.endpoint = @security_center_management_stub.endpoint
|
240
251
|
config.universe_domain = @security_center_management_stub.universe_domain
|
252
|
+
config.logger = @security_center_management_stub.logger if config.respond_to? :logger=
|
241
253
|
end
|
242
254
|
end
|
243
255
|
|
@@ -248,6 +260,15 @@ module Google
|
|
248
260
|
#
|
249
261
|
attr_reader :location_client
|
250
262
|
|
263
|
+
##
|
264
|
+
# The logger used for request/response debug logging.
|
265
|
+
#
|
266
|
+
# @return [Logger]
|
267
|
+
#
|
268
|
+
def logger
|
269
|
+
@security_center_management_stub.logger
|
270
|
+
end
|
271
|
+
|
251
272
|
# Service calls
|
252
273
|
|
253
274
|
##
|
@@ -353,7 +374,7 @@ module Google
|
|
353
374
|
@security_center_management_stub.call_rpc :list_effective_security_health_analytics_custom_modules, request, options: options do |response, operation|
|
354
375
|
response = ::Gapic::PagedEnumerable.new @security_center_management_stub, :list_effective_security_health_analytics_custom_modules, request, response, operation, options
|
355
376
|
yield response, operation if block_given?
|
356
|
-
|
377
|
+
throw :response, response
|
357
378
|
end
|
358
379
|
rescue ::GRPC::BadStatus => e
|
359
380
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -445,7 +466,6 @@ module Google
|
|
445
466
|
|
446
467
|
@security_center_management_stub.call_rpc :get_effective_security_health_analytics_custom_module, request, options: options do |response, operation|
|
447
468
|
yield response, operation if block_given?
|
448
|
-
return response
|
449
469
|
end
|
450
470
|
rescue ::GRPC::BadStatus => e
|
451
471
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -554,7 +574,7 @@ module Google
|
|
554
574
|
@security_center_management_stub.call_rpc :list_security_health_analytics_custom_modules, request, options: options do |response, operation|
|
555
575
|
response = ::Gapic::PagedEnumerable.new @security_center_management_stub, :list_security_health_analytics_custom_modules, request, response, operation, options
|
556
576
|
yield response, operation if block_given?
|
557
|
-
|
577
|
+
throw :response, response
|
558
578
|
end
|
559
579
|
rescue ::GRPC::BadStatus => e
|
560
580
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -662,7 +682,7 @@ module Google
|
|
662
682
|
@security_center_management_stub.call_rpc :list_descendant_security_health_analytics_custom_modules, request, options: options do |response, operation|
|
663
683
|
response = ::Gapic::PagedEnumerable.new @security_center_management_stub, :list_descendant_security_health_analytics_custom_modules, request, response, operation, options
|
664
684
|
yield response, operation if block_given?
|
665
|
-
|
685
|
+
throw :response, response
|
666
686
|
end
|
667
687
|
rescue ::GRPC::BadStatus => e
|
668
688
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -750,7 +770,6 @@ module Google
|
|
750
770
|
|
751
771
|
@security_center_management_stub.call_rpc :get_security_health_analytics_custom_module, request, options: options do |response, operation|
|
752
772
|
yield response, operation if block_given?
|
753
|
-
return response
|
754
773
|
end
|
755
774
|
rescue ::GRPC::BadStatus => e
|
756
775
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -862,7 +881,6 @@ module Google
|
|
862
881
|
|
863
882
|
@security_center_management_stub.call_rpc :create_security_health_analytics_custom_module, request, options: options do |response, operation|
|
864
883
|
yield response, operation if block_given?
|
865
|
-
return response
|
866
884
|
end
|
867
885
|
rescue ::GRPC::BadStatus => e
|
868
886
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -976,7 +994,6 @@ module Google
|
|
976
994
|
|
977
995
|
@security_center_management_stub.call_rpc :update_security_health_analytics_custom_module, request, options: options do |response, operation|
|
978
996
|
yield response, operation if block_given?
|
979
|
-
return response
|
980
997
|
end
|
981
998
|
rescue ::GRPC::BadStatus => e
|
982
999
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1084,7 +1101,6 @@ module Google
|
|
1084
1101
|
|
1085
1102
|
@security_center_management_stub.call_rpc :delete_security_health_analytics_custom_module, request, options: options do |response, operation|
|
1086
1103
|
yield response, operation if block_given?
|
1087
|
-
return response
|
1088
1104
|
end
|
1089
1105
|
rescue ::GRPC::BadStatus => e
|
1090
1106
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1179,7 +1195,6 @@ module Google
|
|
1179
1195
|
|
1180
1196
|
@security_center_management_stub.call_rpc :simulate_security_health_analytics_custom_module, request, options: options do |response, operation|
|
1181
1197
|
yield response, operation if block_given?
|
1182
|
-
return response
|
1183
1198
|
end
|
1184
1199
|
rescue ::GRPC::BadStatus => e
|
1185
1200
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1286,7 +1301,7 @@ module Google
|
|
1286
1301
|
@security_center_management_stub.call_rpc :list_effective_event_threat_detection_custom_modules, request, options: options do |response, operation|
|
1287
1302
|
response = ::Gapic::PagedEnumerable.new @security_center_management_stub, :list_effective_event_threat_detection_custom_modules, request, response, operation, options
|
1288
1303
|
yield response, operation if block_given?
|
1289
|
-
|
1304
|
+
throw :response, response
|
1290
1305
|
end
|
1291
1306
|
rescue ::GRPC::BadStatus => e
|
1292
1307
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1388,7 +1403,6 @@ module Google
|
|
1388
1403
|
|
1389
1404
|
@security_center_management_stub.call_rpc :get_effective_event_threat_detection_custom_module, request, options: options do |response, operation|
|
1390
1405
|
yield response, operation if block_given?
|
1391
|
-
return response
|
1392
1406
|
end
|
1393
1407
|
rescue ::GRPC::BadStatus => e
|
1394
1408
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1496,7 +1510,7 @@ module Google
|
|
1496
1510
|
@security_center_management_stub.call_rpc :list_event_threat_detection_custom_modules, request, options: options do |response, operation|
|
1497
1511
|
response = ::Gapic::PagedEnumerable.new @security_center_management_stub, :list_event_threat_detection_custom_modules, request, response, operation, options
|
1498
1512
|
yield response, operation if block_given?
|
1499
|
-
|
1513
|
+
throw :response, response
|
1500
1514
|
end
|
1501
1515
|
rescue ::GRPC::BadStatus => e
|
1502
1516
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1603,7 +1617,7 @@ module Google
|
|
1603
1617
|
@security_center_management_stub.call_rpc :list_descendant_event_threat_detection_custom_modules, request, options: options do |response, operation|
|
1604
1618
|
response = ::Gapic::PagedEnumerable.new @security_center_management_stub, :list_descendant_event_threat_detection_custom_modules, request, response, operation, options
|
1605
1619
|
yield response, operation if block_given?
|
1606
|
-
|
1620
|
+
throw :response, response
|
1607
1621
|
end
|
1608
1622
|
rescue ::GRPC::BadStatus => e
|
1609
1623
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1694,7 +1708,6 @@ module Google
|
|
1694
1708
|
|
1695
1709
|
@security_center_management_stub.call_rpc :get_event_threat_detection_custom_module, request, options: options do |response, operation|
|
1696
1710
|
yield response, operation if block_given?
|
1697
|
-
return response
|
1698
1711
|
end
|
1699
1712
|
rescue ::GRPC::BadStatus => e
|
1700
1713
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1805,7 +1818,6 @@ module Google
|
|
1805
1818
|
|
1806
1819
|
@security_center_management_stub.call_rpc :create_event_threat_detection_custom_module, request, options: options do |response, operation|
|
1807
1820
|
yield response, operation if block_given?
|
1808
|
-
return response
|
1809
1821
|
end
|
1810
1822
|
rescue ::GRPC::BadStatus => e
|
1811
1823
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1912,7 +1924,6 @@ module Google
|
|
1912
1924
|
|
1913
1925
|
@security_center_management_stub.call_rpc :update_event_threat_detection_custom_module, request, options: options do |response, operation|
|
1914
1926
|
yield response, operation if block_given?
|
1915
|
-
return response
|
1916
1927
|
end
|
1917
1928
|
rescue ::GRPC::BadStatus => e
|
1918
1929
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2019,7 +2030,6 @@ module Google
|
|
2019
2030
|
|
2020
2031
|
@security_center_management_stub.call_rpc :delete_event_threat_detection_custom_module, request, options: options do |response, operation|
|
2021
2032
|
yield response, operation if block_given?
|
2022
|
-
return response
|
2023
2033
|
end
|
2024
2034
|
rescue ::GRPC::BadStatus => e
|
2025
2035
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2113,7 +2123,6 @@ module Google
|
|
2113
2123
|
|
2114
2124
|
@security_center_management_stub.call_rpc :validate_event_threat_detection_custom_module, request, options: options do |response, operation|
|
2115
2125
|
yield response, operation if block_given?
|
2116
|
-
return response
|
2117
2126
|
end
|
2118
2127
|
rescue ::GRPC::BadStatus => e
|
2119
2128
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2215,7 +2224,6 @@ module Google
|
|
2215
2224
|
|
2216
2225
|
@security_center_management_stub.call_rpc :get_security_center_service, request, options: options do |response, operation|
|
2217
2226
|
yield response, operation if block_given?
|
2218
|
-
return response
|
2219
2227
|
end
|
2220
2228
|
rescue ::GRPC::BadStatus => e
|
2221
2229
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2324,7 +2332,7 @@ module Google
|
|
2324
2332
|
@security_center_management_stub.call_rpc :list_security_center_services, request, options: options do |response, operation|
|
2325
2333
|
response = ::Gapic::PagedEnumerable.new @security_center_management_stub, :list_security_center_services, request, response, operation, options
|
2326
2334
|
yield response, operation if block_given?
|
2327
|
-
|
2335
|
+
throw :response, response
|
2328
2336
|
end
|
2329
2337
|
rescue ::GRPC::BadStatus => e
|
2330
2338
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2431,7 +2439,6 @@ module Google
|
|
2431
2439
|
|
2432
2440
|
@security_center_management_stub.call_rpc :update_security_center_service, request, options: options do |response, operation|
|
2433
2441
|
yield response, operation if block_given?
|
2434
|
-
return response
|
2435
2442
|
end
|
2436
2443
|
rescue ::GRPC::BadStatus => e
|
2437
2444
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2520,6 +2527,11 @@ module Google
|
|
2520
2527
|
# default endpoint URL. The default value of nil uses the environment
|
2521
2528
|
# universe (usually the default "googleapis.com" universe).
|
2522
2529
|
# @return [::String,nil]
|
2530
|
+
# @!attribute [rw] logger
|
2531
|
+
# A custom logger to use for request/response debug logging, or the value
|
2532
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
2533
|
+
# explicitly disable logging.
|
2534
|
+
# @return [::Logger,:default,nil]
|
2523
2535
|
#
|
2524
2536
|
class Configuration
|
2525
2537
|
extend ::Gapic::Config
|
@@ -2544,6 +2556,7 @@ module Google
|
|
2544
2556
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2545
2557
|
config_attr :quota_project, nil, ::String, nil
|
2546
2558
|
config_attr :universe_domain, nil, ::String, nil
|
2559
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
2547
2560
|
|
2548
2561
|
# @private
|
2549
2562
|
def initialize parent_config = nil
|
data/lib/google/cloud/security_center_management/v1/security_center_management/rest/client.rb
CHANGED
@@ -223,15 +223,27 @@ module Google
|
|
223
223
|
endpoint: @config.endpoint,
|
224
224
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
225
225
|
universe_domain: @config.universe_domain,
|
226
|
-
credentials: credentials
|
226
|
+
credentials: credentials,
|
227
|
+
logger: @config.logger
|
227
228
|
)
|
228
229
|
|
230
|
+
@security_center_management_stub.logger(stub: true)&.info do |entry|
|
231
|
+
entry.set_system_name
|
232
|
+
entry.set_service
|
233
|
+
entry.message = "Created client for #{entry.service}"
|
234
|
+
entry.set_credentials_fields credentials
|
235
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
236
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
237
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
238
|
+
end
|
239
|
+
|
229
240
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
230
241
|
config.credentials = credentials
|
231
242
|
config.quota_project = @quota_project_id
|
232
243
|
config.endpoint = @security_center_management_stub.endpoint
|
233
244
|
config.universe_domain = @security_center_management_stub.universe_domain
|
234
245
|
config.bindings_override = @config.bindings_override
|
246
|
+
config.logger = @security_center_management_stub.logger if config.respond_to? :logger=
|
235
247
|
end
|
236
248
|
end
|
237
249
|
|
@@ -242,6 +254,15 @@ module Google
|
|
242
254
|
#
|
243
255
|
attr_reader :location_client
|
244
256
|
|
257
|
+
##
|
258
|
+
# The logger used for request/response debug logging.
|
259
|
+
#
|
260
|
+
# @return [Logger]
|
261
|
+
#
|
262
|
+
def logger
|
263
|
+
@security_center_management_stub.logger
|
264
|
+
end
|
265
|
+
|
245
266
|
# Service calls
|
246
267
|
|
247
268
|
##
|
@@ -340,7 +361,7 @@ module Google
|
|
340
361
|
@security_center_management_stub.list_effective_security_health_analytics_custom_modules request, options do |result, operation|
|
341
362
|
result = ::Gapic::Rest::PagedEnumerable.new @security_center_management_stub, :list_effective_security_health_analytics_custom_modules, "effective_security_health_analytics_custom_modules", request, result, options
|
342
363
|
yield result, operation if block_given?
|
343
|
-
|
364
|
+
throw :response, result
|
344
365
|
end
|
345
366
|
rescue ::Gapic::Rest::Error => e
|
346
367
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -425,7 +446,6 @@ module Google
|
|
425
446
|
|
426
447
|
@security_center_management_stub.get_effective_security_health_analytics_custom_module request, options do |result, operation|
|
427
448
|
yield result, operation if block_given?
|
428
|
-
return result
|
429
449
|
end
|
430
450
|
rescue ::Gapic::Rest::Error => e
|
431
451
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -527,7 +547,7 @@ module Google
|
|
527
547
|
@security_center_management_stub.list_security_health_analytics_custom_modules request, options do |result, operation|
|
528
548
|
result = ::Gapic::Rest::PagedEnumerable.new @security_center_management_stub, :list_security_health_analytics_custom_modules, "security_health_analytics_custom_modules", request, result, options
|
529
549
|
yield result, operation if block_given?
|
530
|
-
|
550
|
+
throw :response, result
|
531
551
|
end
|
532
552
|
rescue ::Gapic::Rest::Error => e
|
533
553
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -628,7 +648,7 @@ module Google
|
|
628
648
|
@security_center_management_stub.list_descendant_security_health_analytics_custom_modules request, options do |result, operation|
|
629
649
|
result = ::Gapic::Rest::PagedEnumerable.new @security_center_management_stub, :list_descendant_security_health_analytics_custom_modules, "security_health_analytics_custom_modules", request, result, options
|
630
650
|
yield result, operation if block_given?
|
631
|
-
|
651
|
+
throw :response, result
|
632
652
|
end
|
633
653
|
rescue ::Gapic::Rest::Error => e
|
634
654
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -709,7 +729,6 @@ module Google
|
|
709
729
|
|
710
730
|
@security_center_management_stub.get_security_health_analytics_custom_module request, options do |result, operation|
|
711
731
|
yield result, operation if block_given?
|
712
|
-
return result
|
713
732
|
end
|
714
733
|
rescue ::Gapic::Rest::Error => e
|
715
734
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -814,7 +833,6 @@ module Google
|
|
814
833
|
|
815
834
|
@security_center_management_stub.create_security_health_analytics_custom_module request, options do |result, operation|
|
816
835
|
yield result, operation if block_given?
|
817
|
-
return result
|
818
836
|
end
|
819
837
|
rescue ::Gapic::Rest::Error => e
|
820
838
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -921,7 +939,6 @@ module Google
|
|
921
939
|
|
922
940
|
@security_center_management_stub.update_security_health_analytics_custom_module request, options do |result, operation|
|
923
941
|
yield result, operation if block_given?
|
924
|
-
return result
|
925
942
|
end
|
926
943
|
rescue ::Gapic::Rest::Error => e
|
927
944
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1022,7 +1039,6 @@ module Google
|
|
1022
1039
|
|
1023
1040
|
@security_center_management_stub.delete_security_health_analytics_custom_module request, options do |result, operation|
|
1024
1041
|
yield result, operation if block_given?
|
1025
|
-
return result
|
1026
1042
|
end
|
1027
1043
|
rescue ::Gapic::Rest::Error => e
|
1028
1044
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1110,7 +1126,6 @@ module Google
|
|
1110
1126
|
|
1111
1127
|
@security_center_management_stub.simulate_security_health_analytics_custom_module request, options do |result, operation|
|
1112
1128
|
yield result, operation if block_given?
|
1113
|
-
return result
|
1114
1129
|
end
|
1115
1130
|
rescue ::Gapic::Rest::Error => e
|
1116
1131
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1210,7 +1225,7 @@ module Google
|
|
1210
1225
|
@security_center_management_stub.list_effective_event_threat_detection_custom_modules request, options do |result, operation|
|
1211
1226
|
result = ::Gapic::Rest::PagedEnumerable.new @security_center_management_stub, :list_effective_event_threat_detection_custom_modules, "effective_event_threat_detection_custom_modules", request, result, options
|
1212
1227
|
yield result, operation if block_given?
|
1213
|
-
|
1228
|
+
throw :response, result
|
1214
1229
|
end
|
1215
1230
|
rescue ::Gapic::Rest::Error => e
|
1216
1231
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1305,7 +1320,6 @@ module Google
|
|
1305
1320
|
|
1306
1321
|
@security_center_management_stub.get_effective_event_threat_detection_custom_module request, options do |result, operation|
|
1307
1322
|
yield result, operation if block_given?
|
1308
|
-
return result
|
1309
1323
|
end
|
1310
1324
|
rescue ::Gapic::Rest::Error => e
|
1311
1325
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1406,7 +1420,7 @@ module Google
|
|
1406
1420
|
@security_center_management_stub.list_event_threat_detection_custom_modules request, options do |result, operation|
|
1407
1421
|
result = ::Gapic::Rest::PagedEnumerable.new @security_center_management_stub, :list_event_threat_detection_custom_modules, "event_threat_detection_custom_modules", request, result, options
|
1408
1422
|
yield result, operation if block_given?
|
1409
|
-
|
1423
|
+
throw :response, result
|
1410
1424
|
end
|
1411
1425
|
rescue ::Gapic::Rest::Error => e
|
1412
1426
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1506,7 +1520,7 @@ module Google
|
|
1506
1520
|
@security_center_management_stub.list_descendant_event_threat_detection_custom_modules request, options do |result, operation|
|
1507
1521
|
result = ::Gapic::Rest::PagedEnumerable.new @security_center_management_stub, :list_descendant_event_threat_detection_custom_modules, "event_threat_detection_custom_modules", request, result, options
|
1508
1522
|
yield result, operation if block_given?
|
1509
|
-
|
1523
|
+
throw :response, result
|
1510
1524
|
end
|
1511
1525
|
rescue ::Gapic::Rest::Error => e
|
1512
1526
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1590,7 +1604,6 @@ module Google
|
|
1590
1604
|
|
1591
1605
|
@security_center_management_stub.get_event_threat_detection_custom_module request, options do |result, operation|
|
1592
1606
|
yield result, operation if block_given?
|
1593
|
-
return result
|
1594
1607
|
end
|
1595
1608
|
rescue ::Gapic::Rest::Error => e
|
1596
1609
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1694,7 +1707,6 @@ module Google
|
|
1694
1707
|
|
1695
1708
|
@security_center_management_stub.create_event_threat_detection_custom_module request, options do |result, operation|
|
1696
1709
|
yield result, operation if block_given?
|
1697
|
-
return result
|
1698
1710
|
end
|
1699
1711
|
rescue ::Gapic::Rest::Error => e
|
1700
1712
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1794,7 +1806,6 @@ module Google
|
|
1794
1806
|
|
1795
1807
|
@security_center_management_stub.update_event_threat_detection_custom_module request, options do |result, operation|
|
1796
1808
|
yield result, operation if block_given?
|
1797
|
-
return result
|
1798
1809
|
end
|
1799
1810
|
rescue ::Gapic::Rest::Error => e
|
1800
1811
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1894,7 +1905,6 @@ module Google
|
|
1894
1905
|
|
1895
1906
|
@security_center_management_stub.delete_event_threat_detection_custom_module request, options do |result, operation|
|
1896
1907
|
yield result, operation if block_given?
|
1897
|
-
return result
|
1898
1908
|
end
|
1899
1909
|
rescue ::Gapic::Rest::Error => e
|
1900
1910
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1981,7 +1991,6 @@ module Google
|
|
1981
1991
|
|
1982
1992
|
@security_center_management_stub.validate_event_threat_detection_custom_module request, options do |result, operation|
|
1983
1993
|
yield result, operation if block_given?
|
1984
|
-
return result
|
1985
1994
|
end
|
1986
1995
|
rescue ::Gapic::Rest::Error => e
|
1987
1996
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2076,7 +2085,6 @@ module Google
|
|
2076
2085
|
|
2077
2086
|
@security_center_management_stub.get_security_center_service request, options do |result, operation|
|
2078
2087
|
yield result, operation if block_given?
|
2079
|
-
return result
|
2080
2088
|
end
|
2081
2089
|
rescue ::Gapic::Rest::Error => e
|
2082
2090
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2178,7 +2186,7 @@ module Google
|
|
2178
2186
|
@security_center_management_stub.list_security_center_services request, options do |result, operation|
|
2179
2187
|
result = ::Gapic::Rest::PagedEnumerable.new @security_center_management_stub, :list_security_center_services, "security_center_services", request, result, options
|
2180
2188
|
yield result, operation if block_given?
|
2181
|
-
|
2189
|
+
throw :response, result
|
2182
2190
|
end
|
2183
2191
|
rescue ::Gapic::Rest::Error => e
|
2184
2192
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2278,7 +2286,6 @@ module Google
|
|
2278
2286
|
|
2279
2287
|
@security_center_management_stub.update_security_center_service request, options do |result, operation|
|
2280
2288
|
yield result, operation if block_given?
|
2281
|
-
return result
|
2282
2289
|
end
|
2283
2290
|
rescue ::Gapic::Rest::Error => e
|
2284
2291
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2358,6 +2365,11 @@ module Google
|
|
2358
2365
|
# default endpoint URL. The default value of nil uses the environment
|
2359
2366
|
# universe (usually the default "googleapis.com" universe).
|
2360
2367
|
# @return [::String,nil]
|
2368
|
+
# @!attribute [rw] logger
|
2369
|
+
# A custom logger to use for request/response debug logging, or the value
|
2370
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
2371
|
+
# explicitly disable logging.
|
2372
|
+
# @return [::Logger,:default,nil]
|
2361
2373
|
#
|
2362
2374
|
class Configuration
|
2363
2375
|
extend ::Gapic::Config
|
@@ -2386,6 +2398,7 @@ module Google
|
|
2386
2398
|
# by the host service.
|
2387
2399
|
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
2388
2400
|
config_attr :bindings_override, {}, ::Hash, nil
|
2401
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
2389
2402
|
|
2390
2403
|
# @private
|
2391
2404
|
def initialize parent_config = nil
|
data/lib/google/cloud/security_center_management/v1/security_center_management/rest/service_stub.rb
CHANGED
@@ -30,7 +30,8 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
|
33
|
+
# @private
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
34
35
|
# These require statements are intentionally placed here to initialize
|
35
36
|
# the REST modules only when it's required.
|
36
37
|
require "gapic/rest"
|
@@ -40,7 +41,9 @@ module Google
|
|
40
41
|
universe_domain: universe_domain,
|
41
42
|
credentials: credentials,
|
42
43
|
numeric_enums: true,
|
43
|
-
|
44
|
+
service_name: self.class,
|
45
|
+
raise_faraday_errors: false,
|
46
|
+
logger: logger
|
44
47
|
end
|
45
48
|
|
46
49
|
##
|
@@ -61,6 +64,15 @@ module Google
|
|
61
64
|
@client_stub.endpoint
|
62
65
|
end
|
63
66
|
|
67
|
+
##
|
68
|
+
# The logger used for request/response debug logging.
|
69
|
+
#
|
70
|
+
# @return [Logger]
|
71
|
+
#
|
72
|
+
def logger stub: false
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
74
|
+
end
|
75
|
+
|
64
76
|
##
|
65
77
|
# Baseline implementation for the list_effective_security_health_analytics_custom_modules REST call
|
66
78
|
#
|
@@ -87,16 +99,18 @@ module Google
|
|
87
99
|
|
88
100
|
response = @client_stub.make_http_request(
|
89
101
|
verb,
|
90
|
-
uri:
|
91
|
-
body:
|
92
|
-
params:
|
102
|
+
uri: uri,
|
103
|
+
body: body || "",
|
104
|
+
params: query_string_params,
|
105
|
+
method_name: "list_effective_security_health_analytics_custom_modules",
|
93
106
|
options: options
|
94
107
|
)
|
95
108
|
operation = ::Gapic::Rest::TransportOperation.new response
|
96
109
|
result = ::Google::Cloud::SecurityCenterManagement::V1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.decode_json response.body, ignore_unknown_fields: true
|
97
|
-
|
98
|
-
|
99
|
-
|
110
|
+
catch :response do
|
111
|
+
yield result, operation if block_given?
|
112
|
+
result
|
113
|
+
end
|
100
114
|
end
|
101
115
|
|
102
116
|
##
|
@@ -125,16 +139,18 @@ module Google
|
|
125
139
|
|
126
140
|
response = @client_stub.make_http_request(
|
127
141
|
verb,
|
128
|
-
uri:
|
129
|
-
body:
|
130
|
-
params:
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "get_effective_security_health_analytics_custom_module",
|
131
146
|
options: options
|
132
147
|
)
|
133
148
|
operation = ::Gapic::Rest::TransportOperation.new response
|
134
149
|
result = ::Google::Cloud::SecurityCenterManagement::V1::EffectiveSecurityHealthAnalyticsCustomModule.decode_json response.body, ignore_unknown_fields: true
|
135
|
-
|
136
|
-
|
137
|
-
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
138
154
|
end
|
139
155
|
|
140
156
|
##
|
@@ -163,16 +179,18 @@ module Google
|
|
163
179
|
|
164
180
|
response = @client_stub.make_http_request(
|
165
181
|
verb,
|
166
|
-
uri:
|
167
|
-
body:
|
168
|
-
params:
|
182
|
+
uri: uri,
|
183
|
+
body: body || "",
|
184
|
+
params: query_string_params,
|
185
|
+
method_name: "list_security_health_analytics_custom_modules",
|
169
186
|
options: options
|
170
187
|
)
|
171
188
|
operation = ::Gapic::Rest::TransportOperation.new response
|
172
189
|
result = ::Google::Cloud::SecurityCenterManagement::V1::ListSecurityHealthAnalyticsCustomModulesResponse.decode_json response.body, ignore_unknown_fields: true
|
173
|
-
|
174
|
-
|
175
|
-
|
190
|
+
catch :response do
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
176
194
|
end
|
177
195
|
|
178
196
|
##
|
@@ -201,16 +219,18 @@ module Google
|
|
201
219
|
|
202
220
|
response = @client_stub.make_http_request(
|
203
221
|
verb,
|
204
|
-
uri:
|
205
|
-
body:
|
206
|
-
params:
|
222
|
+
uri: uri,
|
223
|
+
body: body || "",
|
224
|
+
params: query_string_params,
|
225
|
+
method_name: "list_descendant_security_health_analytics_custom_modules",
|
207
226
|
options: options
|
208
227
|
)
|
209
228
|
operation = ::Gapic::Rest::TransportOperation.new response
|
210
229
|
result = ::Google::Cloud::SecurityCenterManagement::V1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse.decode_json response.body, ignore_unknown_fields: true
|
211
|
-
|
212
|
-
|
213
|
-
|
230
|
+
catch :response do
|
231
|
+
yield result, operation if block_given?
|
232
|
+
result
|
233
|
+
end
|
214
234
|
end
|
215
235
|
|
216
236
|
##
|
@@ -239,16 +259,18 @@ module Google
|
|
239
259
|
|
240
260
|
response = @client_stub.make_http_request(
|
241
261
|
verb,
|
242
|
-
uri:
|
243
|
-
body:
|
244
|
-
params:
|
262
|
+
uri: uri,
|
263
|
+
body: body || "",
|
264
|
+
params: query_string_params,
|
265
|
+
method_name: "get_security_health_analytics_custom_module",
|
245
266
|
options: options
|
246
267
|
)
|
247
268
|
operation = ::Gapic::Rest::TransportOperation.new response
|
248
269
|
result = ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule.decode_json response.body, ignore_unknown_fields: true
|
249
|
-
|
250
|
-
|
251
|
-
|
270
|
+
catch :response do
|
271
|
+
yield result, operation if block_given?
|
272
|
+
result
|
273
|
+
end
|
252
274
|
end
|
253
275
|
|
254
276
|
##
|
@@ -277,16 +299,18 @@ module Google
|
|
277
299
|
|
278
300
|
response = @client_stub.make_http_request(
|
279
301
|
verb,
|
280
|
-
uri:
|
281
|
-
body:
|
282
|
-
params:
|
302
|
+
uri: uri,
|
303
|
+
body: body || "",
|
304
|
+
params: query_string_params,
|
305
|
+
method_name: "create_security_health_analytics_custom_module",
|
283
306
|
options: options
|
284
307
|
)
|
285
308
|
operation = ::Gapic::Rest::TransportOperation.new response
|
286
309
|
result = ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule.decode_json response.body, ignore_unknown_fields: true
|
287
|
-
|
288
|
-
|
289
|
-
|
310
|
+
catch :response do
|
311
|
+
yield result, operation if block_given?
|
312
|
+
result
|
313
|
+
end
|
290
314
|
end
|
291
315
|
|
292
316
|
##
|
@@ -315,16 +339,18 @@ module Google
|
|
315
339
|
|
316
340
|
response = @client_stub.make_http_request(
|
317
341
|
verb,
|
318
|
-
uri:
|
319
|
-
body:
|
320
|
-
params:
|
342
|
+
uri: uri,
|
343
|
+
body: body || "",
|
344
|
+
params: query_string_params,
|
345
|
+
method_name: "update_security_health_analytics_custom_module",
|
321
346
|
options: options
|
322
347
|
)
|
323
348
|
operation = ::Gapic::Rest::TransportOperation.new response
|
324
349
|
result = ::Google::Cloud::SecurityCenterManagement::V1::SecurityHealthAnalyticsCustomModule.decode_json response.body, ignore_unknown_fields: true
|
325
|
-
|
326
|
-
|
327
|
-
|
350
|
+
catch :response do
|
351
|
+
yield result, operation if block_given?
|
352
|
+
result
|
353
|
+
end
|
328
354
|
end
|
329
355
|
|
330
356
|
##
|
@@ -353,16 +379,18 @@ module Google
|
|
353
379
|
|
354
380
|
response = @client_stub.make_http_request(
|
355
381
|
verb,
|
356
|
-
uri:
|
357
|
-
body:
|
358
|
-
params:
|
382
|
+
uri: uri,
|
383
|
+
body: body || "",
|
384
|
+
params: query_string_params,
|
385
|
+
method_name: "delete_security_health_analytics_custom_module",
|
359
386
|
options: options
|
360
387
|
)
|
361
388
|
operation = ::Gapic::Rest::TransportOperation.new response
|
362
389
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
363
|
-
|
364
|
-
|
365
|
-
|
390
|
+
catch :response do
|
391
|
+
yield result, operation if block_given?
|
392
|
+
result
|
393
|
+
end
|
366
394
|
end
|
367
395
|
|
368
396
|
##
|
@@ -391,16 +419,18 @@ module Google
|
|
391
419
|
|
392
420
|
response = @client_stub.make_http_request(
|
393
421
|
verb,
|
394
|
-
uri:
|
395
|
-
body:
|
396
|
-
params:
|
422
|
+
uri: uri,
|
423
|
+
body: body || "",
|
424
|
+
params: query_string_params,
|
425
|
+
method_name: "simulate_security_health_analytics_custom_module",
|
397
426
|
options: options
|
398
427
|
)
|
399
428
|
operation = ::Gapic::Rest::TransportOperation.new response
|
400
429
|
result = ::Google::Cloud::SecurityCenterManagement::V1::SimulateSecurityHealthAnalyticsCustomModuleResponse.decode_json response.body, ignore_unknown_fields: true
|
401
|
-
|
402
|
-
|
403
|
-
|
430
|
+
catch :response do
|
431
|
+
yield result, operation if block_given?
|
432
|
+
result
|
433
|
+
end
|
404
434
|
end
|
405
435
|
|
406
436
|
##
|
@@ -429,16 +459,18 @@ module Google
|
|
429
459
|
|
430
460
|
response = @client_stub.make_http_request(
|
431
461
|
verb,
|
432
|
-
uri:
|
433
|
-
body:
|
434
|
-
params:
|
462
|
+
uri: uri,
|
463
|
+
body: body || "",
|
464
|
+
params: query_string_params,
|
465
|
+
method_name: "list_effective_event_threat_detection_custom_modules",
|
435
466
|
options: options
|
436
467
|
)
|
437
468
|
operation = ::Gapic::Rest::TransportOperation.new response
|
438
469
|
result = ::Google::Cloud::SecurityCenterManagement::V1::ListEffectiveEventThreatDetectionCustomModulesResponse.decode_json response.body, ignore_unknown_fields: true
|
439
|
-
|
440
|
-
|
441
|
-
|
470
|
+
catch :response do
|
471
|
+
yield result, operation if block_given?
|
472
|
+
result
|
473
|
+
end
|
442
474
|
end
|
443
475
|
|
444
476
|
##
|
@@ -467,16 +499,18 @@ module Google
|
|
467
499
|
|
468
500
|
response = @client_stub.make_http_request(
|
469
501
|
verb,
|
470
|
-
uri:
|
471
|
-
body:
|
472
|
-
params:
|
502
|
+
uri: uri,
|
503
|
+
body: body || "",
|
504
|
+
params: query_string_params,
|
505
|
+
method_name: "get_effective_event_threat_detection_custom_module",
|
473
506
|
options: options
|
474
507
|
)
|
475
508
|
operation = ::Gapic::Rest::TransportOperation.new response
|
476
509
|
result = ::Google::Cloud::SecurityCenterManagement::V1::EffectiveEventThreatDetectionCustomModule.decode_json response.body, ignore_unknown_fields: true
|
477
|
-
|
478
|
-
|
479
|
-
|
510
|
+
catch :response do
|
511
|
+
yield result, operation if block_given?
|
512
|
+
result
|
513
|
+
end
|
480
514
|
end
|
481
515
|
|
482
516
|
##
|
@@ -505,16 +539,18 @@ module Google
|
|
505
539
|
|
506
540
|
response = @client_stub.make_http_request(
|
507
541
|
verb,
|
508
|
-
uri:
|
509
|
-
body:
|
510
|
-
params:
|
542
|
+
uri: uri,
|
543
|
+
body: body || "",
|
544
|
+
params: query_string_params,
|
545
|
+
method_name: "list_event_threat_detection_custom_modules",
|
511
546
|
options: options
|
512
547
|
)
|
513
548
|
operation = ::Gapic::Rest::TransportOperation.new response
|
514
549
|
result = ::Google::Cloud::SecurityCenterManagement::V1::ListEventThreatDetectionCustomModulesResponse.decode_json response.body, ignore_unknown_fields: true
|
515
|
-
|
516
|
-
|
517
|
-
|
550
|
+
catch :response do
|
551
|
+
yield result, operation if block_given?
|
552
|
+
result
|
553
|
+
end
|
518
554
|
end
|
519
555
|
|
520
556
|
##
|
@@ -543,16 +579,18 @@ module Google
|
|
543
579
|
|
544
580
|
response = @client_stub.make_http_request(
|
545
581
|
verb,
|
546
|
-
uri:
|
547
|
-
body:
|
548
|
-
params:
|
582
|
+
uri: uri,
|
583
|
+
body: body || "",
|
584
|
+
params: query_string_params,
|
585
|
+
method_name: "list_descendant_event_threat_detection_custom_modules",
|
549
586
|
options: options
|
550
587
|
)
|
551
588
|
operation = ::Gapic::Rest::TransportOperation.new response
|
552
589
|
result = ::Google::Cloud::SecurityCenterManagement::V1::ListDescendantEventThreatDetectionCustomModulesResponse.decode_json response.body, ignore_unknown_fields: true
|
553
|
-
|
554
|
-
|
555
|
-
|
590
|
+
catch :response do
|
591
|
+
yield result, operation if block_given?
|
592
|
+
result
|
593
|
+
end
|
556
594
|
end
|
557
595
|
|
558
596
|
##
|
@@ -581,16 +619,18 @@ module Google
|
|
581
619
|
|
582
620
|
response = @client_stub.make_http_request(
|
583
621
|
verb,
|
584
|
-
uri:
|
585
|
-
body:
|
586
|
-
params:
|
622
|
+
uri: uri,
|
623
|
+
body: body || "",
|
624
|
+
params: query_string_params,
|
625
|
+
method_name: "get_event_threat_detection_custom_module",
|
587
626
|
options: options
|
588
627
|
)
|
589
628
|
operation = ::Gapic::Rest::TransportOperation.new response
|
590
629
|
result = ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule.decode_json response.body, ignore_unknown_fields: true
|
591
|
-
|
592
|
-
|
593
|
-
|
630
|
+
catch :response do
|
631
|
+
yield result, operation if block_given?
|
632
|
+
result
|
633
|
+
end
|
594
634
|
end
|
595
635
|
|
596
636
|
##
|
@@ -619,16 +659,18 @@ module Google
|
|
619
659
|
|
620
660
|
response = @client_stub.make_http_request(
|
621
661
|
verb,
|
622
|
-
uri:
|
623
|
-
body:
|
624
|
-
params:
|
662
|
+
uri: uri,
|
663
|
+
body: body || "",
|
664
|
+
params: query_string_params,
|
665
|
+
method_name: "create_event_threat_detection_custom_module",
|
625
666
|
options: options
|
626
667
|
)
|
627
668
|
operation = ::Gapic::Rest::TransportOperation.new response
|
628
669
|
result = ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule.decode_json response.body, ignore_unknown_fields: true
|
629
|
-
|
630
|
-
|
631
|
-
|
670
|
+
catch :response do
|
671
|
+
yield result, operation if block_given?
|
672
|
+
result
|
673
|
+
end
|
632
674
|
end
|
633
675
|
|
634
676
|
##
|
@@ -657,16 +699,18 @@ module Google
|
|
657
699
|
|
658
700
|
response = @client_stub.make_http_request(
|
659
701
|
verb,
|
660
|
-
uri:
|
661
|
-
body:
|
662
|
-
params:
|
702
|
+
uri: uri,
|
703
|
+
body: body || "",
|
704
|
+
params: query_string_params,
|
705
|
+
method_name: "update_event_threat_detection_custom_module",
|
663
706
|
options: options
|
664
707
|
)
|
665
708
|
operation = ::Gapic::Rest::TransportOperation.new response
|
666
709
|
result = ::Google::Cloud::SecurityCenterManagement::V1::EventThreatDetectionCustomModule.decode_json response.body, ignore_unknown_fields: true
|
667
|
-
|
668
|
-
|
669
|
-
|
710
|
+
catch :response do
|
711
|
+
yield result, operation if block_given?
|
712
|
+
result
|
713
|
+
end
|
670
714
|
end
|
671
715
|
|
672
716
|
##
|
@@ -695,16 +739,18 @@ module Google
|
|
695
739
|
|
696
740
|
response = @client_stub.make_http_request(
|
697
741
|
verb,
|
698
|
-
uri:
|
699
|
-
body:
|
700
|
-
params:
|
742
|
+
uri: uri,
|
743
|
+
body: body || "",
|
744
|
+
params: query_string_params,
|
745
|
+
method_name: "delete_event_threat_detection_custom_module",
|
701
746
|
options: options
|
702
747
|
)
|
703
748
|
operation = ::Gapic::Rest::TransportOperation.new response
|
704
749
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
705
|
-
|
706
|
-
|
707
|
-
|
750
|
+
catch :response do
|
751
|
+
yield result, operation if block_given?
|
752
|
+
result
|
753
|
+
end
|
708
754
|
end
|
709
755
|
|
710
756
|
##
|
@@ -733,16 +779,18 @@ module Google
|
|
733
779
|
|
734
780
|
response = @client_stub.make_http_request(
|
735
781
|
verb,
|
736
|
-
uri:
|
737
|
-
body:
|
738
|
-
params:
|
782
|
+
uri: uri,
|
783
|
+
body: body || "",
|
784
|
+
params: query_string_params,
|
785
|
+
method_name: "validate_event_threat_detection_custom_module",
|
739
786
|
options: options
|
740
787
|
)
|
741
788
|
operation = ::Gapic::Rest::TransportOperation.new response
|
742
789
|
result = ::Google::Cloud::SecurityCenterManagement::V1::ValidateEventThreatDetectionCustomModuleResponse.decode_json response.body, ignore_unknown_fields: true
|
743
|
-
|
744
|
-
|
745
|
-
|
790
|
+
catch :response do
|
791
|
+
yield result, operation if block_given?
|
792
|
+
result
|
793
|
+
end
|
746
794
|
end
|
747
795
|
|
748
796
|
##
|
@@ -771,16 +819,18 @@ module Google
|
|
771
819
|
|
772
820
|
response = @client_stub.make_http_request(
|
773
821
|
verb,
|
774
|
-
uri:
|
775
|
-
body:
|
776
|
-
params:
|
822
|
+
uri: uri,
|
823
|
+
body: body || "",
|
824
|
+
params: query_string_params,
|
825
|
+
method_name: "get_security_center_service",
|
777
826
|
options: options
|
778
827
|
)
|
779
828
|
operation = ::Gapic::Rest::TransportOperation.new response
|
780
829
|
result = ::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService.decode_json response.body, ignore_unknown_fields: true
|
781
|
-
|
782
|
-
|
783
|
-
|
830
|
+
catch :response do
|
831
|
+
yield result, operation if block_given?
|
832
|
+
result
|
833
|
+
end
|
784
834
|
end
|
785
835
|
|
786
836
|
##
|
@@ -809,16 +859,18 @@ module Google
|
|
809
859
|
|
810
860
|
response = @client_stub.make_http_request(
|
811
861
|
verb,
|
812
|
-
uri:
|
813
|
-
body:
|
814
|
-
params:
|
862
|
+
uri: uri,
|
863
|
+
body: body || "",
|
864
|
+
params: query_string_params,
|
865
|
+
method_name: "list_security_center_services",
|
815
866
|
options: options
|
816
867
|
)
|
817
868
|
operation = ::Gapic::Rest::TransportOperation.new response
|
818
869
|
result = ::Google::Cloud::SecurityCenterManagement::V1::ListSecurityCenterServicesResponse.decode_json response.body, ignore_unknown_fields: true
|
819
|
-
|
820
|
-
|
821
|
-
|
870
|
+
catch :response do
|
871
|
+
yield result, operation if block_given?
|
872
|
+
result
|
873
|
+
end
|
822
874
|
end
|
823
875
|
|
824
876
|
##
|
@@ -847,16 +899,18 @@ module Google
|
|
847
899
|
|
848
900
|
response = @client_stub.make_http_request(
|
849
901
|
verb,
|
850
|
-
uri:
|
851
|
-
body:
|
852
|
-
params:
|
902
|
+
uri: uri,
|
903
|
+
body: body || "",
|
904
|
+
params: query_string_params,
|
905
|
+
method_name: "update_security_center_service",
|
853
906
|
options: options
|
854
907
|
)
|
855
908
|
operation = ::Gapic::Rest::TransportOperation.new response
|
856
909
|
result = ::Google::Cloud::SecurityCenterManagement::V1::SecurityCenterService.decode_json response.body, ignore_unknown_fields: true
|
857
|
-
|
858
|
-
|
859
|
-
|
910
|
+
catch :response do
|
911
|
+
yield result, operation if block_given?
|
912
|
+
result
|
913
|
+
end
|
860
914
|
end
|
861
915
|
|
862
916
|
##
|
@@ -215,6 +215,12 @@ module Google
|
|
215
215
|
# enabled. By default, asynchronous REST clients will not be generated.
|
216
216
|
# This feature will be enabled by default 1 month after launching the
|
217
217
|
# feature in preview packages.
|
218
|
+
# @!attribute [rw] protobuf_pythonic_types_enabled
|
219
|
+
# @return [::Boolean]
|
220
|
+
# Enables generation of protobuf code using new types that are more
|
221
|
+
# Pythonic which are included in `protobuf>=5.29.x`. This feature will be
|
222
|
+
# enabled by default 1 month after launching the feature in preview
|
223
|
+
# packages.
|
218
224
|
class ExperimentalFeatures
|
219
225
|
include ::Google::Protobuf::MessageExts
|
220
226
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -300,9 +306,28 @@ module Google
|
|
300
306
|
# @!attribute [rw] common
|
301
307
|
# @return [::Google::Api::CommonLanguageSettings]
|
302
308
|
# Some settings.
|
309
|
+
# @!attribute [rw] renamed_services
|
310
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
311
|
+
# Map of service names to renamed services. Keys are the package relative
|
312
|
+
# service names and values are the name to be used for the service client
|
313
|
+
# and call options.
|
314
|
+
#
|
315
|
+
# publishing:
|
316
|
+
# go_settings:
|
317
|
+
# renamed_services:
|
318
|
+
# Publisher: TopicAdmin
|
303
319
|
class GoSettings
|
304
320
|
include ::Google::Protobuf::MessageExts
|
305
321
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
322
|
+
|
323
|
+
# @!attribute [rw] key
|
324
|
+
# @return [::String]
|
325
|
+
# @!attribute [rw] value
|
326
|
+
# @return [::String]
|
327
|
+
class RenamedServicesEntry
|
328
|
+
include ::Google::Protobuf::MessageExts
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
330
|
+
end
|
306
331
|
end
|
307
332
|
|
308
333
|
# Describes the generator configuration for a method.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-security_center_management-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.24.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.24.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
|
-
rubygems_version: 3.5.
|
144
|
+
rubygems_version: 3.5.23
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: Management API for Security Command Center, a built-in security and risk
|