google-cloud-telco_automation-v1 1.0.1 → 1.1.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/telco_automation/v1/telco_automation/client.rb +42 -37
- data/lib/google/cloud/telco_automation/v1/telco_automation/operations.rb +12 -15
- data/lib/google/cloud/telco_automation/v1/telco_automation/rest/client.rb +40 -37
- data/lib/google/cloud/telco_automation/v1/telco_automation/rest/operations.rb +43 -38
- data/lib/google/cloud/telco_automation/v1/telco_automation/rest/service_stub.rb +302 -218
- data/lib/google/cloud/telco_automation/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +56 -0
- data/proto_docs/google/longrunning/operations.rb +19 -14
- 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: 0f99d7fa53faf96b99627e93b1ea50f2dfd0758a6b4e6aa68c1a8771b0238a3a
|
4
|
+
data.tar.gz: 3a4e30234431d4c3b4bdb80b3d2d3c9b44253809d6f895e86906842162aced6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86879687ab49a075fdff47b47efc4c77e41268c2a61c2727cdc45deb37edb105f3270c06a49247f62a93f7ba63410b84d3e6deb4f8e7c359437d700de87875d7
|
7
|
+
data.tar.gz: a120bd38c6c942ba36066d42fcb50e49d8ecc573c7a2f908633099c0e4be242507d3c07de841c1e5ab217597ab3e30476e6d2c04615a2d269b7a5799371dd17c
|
data/README.md
CHANGED
@@ -42,33 +42,43 @@ for class and method documentation.
|
|
42
42
|
See also the [Product Documentation](https://cloud.google.com/telecom-network-automation)
|
43
43
|
for general usage information.
|
44
44
|
|
45
|
-
##
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
45
|
+
## Debug Logging
|
46
|
+
|
47
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
48
|
+
your application's integration with the API. When logging is activated, key
|
49
|
+
events such as requests and responses, along with data payloads and metadata
|
50
|
+
such as headers and client configuration, are logged to the standard error
|
51
|
+
stream.
|
52
|
+
|
53
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
54
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
55
|
+
customers, private keys, or other security data that could be compromising if
|
56
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
57
|
+
the principle of least access. Google also recommends that Client Library Debug
|
58
|
+
Logging be enabled only temporarily during active debugging, and not used
|
59
|
+
permanently in production.
|
60
|
+
|
61
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
62
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
63
|
+
list of client library gem names. This will select the default logging behavior,
|
64
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
65
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
66
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
67
|
+
results in logs appearing alongside your application logs in the
|
68
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
69
|
+
|
70
|
+
You can customize logging by modifying the `logger` configuration when
|
71
|
+
constructing a client object. For example:
|
54
72
|
|
55
73
|
```ruby
|
74
|
+
require "google/cloud/telco_automation/v1"
|
56
75
|
require "logger"
|
57
76
|
|
58
|
-
|
59
|
-
|
60
|
-
def logger
|
61
|
-
LOGGER
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
66
|
-
module GRPC
|
67
|
-
extend MyLogger
|
77
|
+
client = ::Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new do |config|
|
78
|
+
config.logger = Logger.new "my-app.log"
|
68
79
|
end
|
69
80
|
```
|
70
81
|
|
71
|
-
|
72
82
|
## Google Cloud Samples
|
73
83
|
|
74
84
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
@@ -169,14 +169,26 @@ module Google
|
|
169
169
|
universe_domain: @config.universe_domain,
|
170
170
|
channel_args: @config.channel_args,
|
171
171
|
interceptors: @config.interceptors,
|
172
|
-
channel_pool_config: @config.channel_pool
|
172
|
+
channel_pool_config: @config.channel_pool,
|
173
|
+
logger: @config.logger
|
173
174
|
)
|
174
175
|
|
176
|
+
@telco_automation_stub.stub_logger&.info do |entry|
|
177
|
+
entry.set_system_name
|
178
|
+
entry.set_service
|
179
|
+
entry.message = "Created client for #{entry.service}"
|
180
|
+
entry.set_credentials_fields credentials
|
181
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
182
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
183
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
184
|
+
end
|
185
|
+
|
175
186
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
176
187
|
config.credentials = credentials
|
177
188
|
config.quota_project = @quota_project_id
|
178
189
|
config.endpoint = @telco_automation_stub.endpoint
|
179
190
|
config.universe_domain = @telco_automation_stub.universe_domain
|
191
|
+
config.logger = @telco_automation_stub.logger if config.respond_to? :logger=
|
180
192
|
end
|
181
193
|
end
|
182
194
|
|
@@ -194,6 +206,15 @@ module Google
|
|
194
206
|
#
|
195
207
|
attr_reader :location_client
|
196
208
|
|
209
|
+
##
|
210
|
+
# The logger used for request/response debug logging.
|
211
|
+
#
|
212
|
+
# @return [Logger]
|
213
|
+
#
|
214
|
+
def logger
|
215
|
+
@telco_automation_stub.logger
|
216
|
+
end
|
217
|
+
|
197
218
|
# Service calls
|
198
219
|
|
199
220
|
##
|
@@ -290,7 +311,7 @@ module Google
|
|
290
311
|
@telco_automation_stub.call_rpc :list_orchestration_clusters, request, options: options do |response, operation|
|
291
312
|
response = ::Gapic::PagedEnumerable.new @telco_automation_stub, :list_orchestration_clusters, request, response, operation, options
|
292
313
|
yield response, operation if block_given?
|
293
|
-
|
314
|
+
throw :response, response
|
294
315
|
end
|
295
316
|
rescue ::GRPC::BadStatus => e
|
296
317
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -376,7 +397,6 @@ module Google
|
|
376
397
|
|
377
398
|
@telco_automation_stub.call_rpc :get_orchestration_cluster, request, options: options do |response, operation|
|
378
399
|
yield response, operation if block_given?
|
379
|
-
return response
|
380
400
|
end
|
381
401
|
rescue ::GRPC::BadStatus => e
|
382
402
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -490,7 +510,7 @@ module Google
|
|
490
510
|
@telco_automation_stub.call_rpc :create_orchestration_cluster, request, options: options do |response, operation|
|
491
511
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
492
512
|
yield response, operation if block_given?
|
493
|
-
|
513
|
+
throw :response, response
|
494
514
|
end
|
495
515
|
rescue ::GRPC::BadStatus => e
|
496
516
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -598,7 +618,7 @@ module Google
|
|
598
618
|
@telco_automation_stub.call_rpc :delete_orchestration_cluster, request, options: options do |response, operation|
|
599
619
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
600
620
|
yield response, operation if block_given?
|
601
|
-
|
621
|
+
throw :response, response
|
602
622
|
end
|
603
623
|
rescue ::GRPC::BadStatus => e
|
604
624
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -698,7 +718,7 @@ module Google
|
|
698
718
|
@telco_automation_stub.call_rpc :list_edge_slms, request, options: options do |response, operation|
|
699
719
|
response = ::Gapic::PagedEnumerable.new @telco_automation_stub, :list_edge_slms, request, response, operation, options
|
700
720
|
yield response, operation if block_given?
|
701
|
-
|
721
|
+
throw :response, response
|
702
722
|
end
|
703
723
|
rescue ::GRPC::BadStatus => e
|
704
724
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -784,7 +804,6 @@ module Google
|
|
784
804
|
|
785
805
|
@telco_automation_stub.call_rpc :get_edge_slm, request, options: options do |response, operation|
|
786
806
|
yield response, operation if block_given?
|
787
|
-
return response
|
788
807
|
end
|
789
808
|
rescue ::GRPC::BadStatus => e
|
790
809
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -898,7 +917,7 @@ module Google
|
|
898
917
|
@telco_automation_stub.call_rpc :create_edge_slm, request, options: options do |response, operation|
|
899
918
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
900
919
|
yield response, operation if block_given?
|
901
|
-
|
920
|
+
throw :response, response
|
902
921
|
end
|
903
922
|
rescue ::GRPC::BadStatus => e
|
904
923
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1006,7 +1025,7 @@ module Google
|
|
1006
1025
|
@telco_automation_stub.call_rpc :delete_edge_slm, request, options: options do |response, operation|
|
1007
1026
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1008
1027
|
yield response, operation if block_given?
|
1009
|
-
|
1028
|
+
throw :response, response
|
1010
1029
|
end
|
1011
1030
|
rescue ::GRPC::BadStatus => e
|
1012
1031
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1098,7 +1117,6 @@ module Google
|
|
1098
1117
|
|
1099
1118
|
@telco_automation_stub.call_rpc :create_blueprint, request, options: options do |response, operation|
|
1100
1119
|
yield response, operation if block_given?
|
1101
|
-
return response
|
1102
1120
|
end
|
1103
1121
|
rescue ::GRPC::BadStatus => e
|
1104
1122
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1187,7 +1205,6 @@ module Google
|
|
1187
1205
|
|
1188
1206
|
@telco_automation_stub.call_rpc :update_blueprint, request, options: options do |response, operation|
|
1189
1207
|
yield response, operation if block_given?
|
1190
|
-
return response
|
1191
1208
|
end
|
1192
1209
|
rescue ::GRPC::BadStatus => e
|
1193
1210
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1280,7 +1297,6 @@ module Google
|
|
1280
1297
|
|
1281
1298
|
@telco_automation_stub.call_rpc :get_blueprint, request, options: options do |response, operation|
|
1282
1299
|
yield response, operation if block_given?
|
1283
|
-
return response
|
1284
1300
|
end
|
1285
1301
|
rescue ::GRPC::BadStatus => e
|
1286
1302
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1369,7 +1385,6 @@ module Google
|
|
1369
1385
|
|
1370
1386
|
@telco_automation_stub.call_rpc :delete_blueprint, request, options: options do |response, operation|
|
1371
1387
|
yield response, operation if block_given?
|
1372
|
-
return response
|
1373
1388
|
end
|
1374
1389
|
rescue ::GRPC::BadStatus => e
|
1375
1390
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1471,7 +1486,7 @@ module Google
|
|
1471
1486
|
@telco_automation_stub.call_rpc :list_blueprints, request, options: options do |response, operation|
|
1472
1487
|
response = ::Gapic::PagedEnumerable.new @telco_automation_stub, :list_blueprints, request, response, operation, options
|
1473
1488
|
yield response, operation if block_given?
|
1474
|
-
|
1489
|
+
throw :response, response
|
1475
1490
|
end
|
1476
1491
|
rescue ::GRPC::BadStatus => e
|
1477
1492
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1558,7 +1573,6 @@ module Google
|
|
1558
1573
|
|
1559
1574
|
@telco_automation_stub.call_rpc :approve_blueprint, request, options: options do |response, operation|
|
1560
1575
|
yield response, operation if block_given?
|
1561
|
-
return response
|
1562
1576
|
end
|
1563
1577
|
rescue ::GRPC::BadStatus => e
|
1564
1578
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1644,7 +1658,6 @@ module Google
|
|
1644
1658
|
|
1645
1659
|
@telco_automation_stub.call_rpc :propose_blueprint, request, options: options do |response, operation|
|
1646
1660
|
yield response, operation if block_given?
|
1647
|
-
return response
|
1648
1661
|
end
|
1649
1662
|
rescue ::GRPC::BadStatus => e
|
1650
1663
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1730,7 +1743,6 @@ module Google
|
|
1730
1743
|
|
1731
1744
|
@telco_automation_stub.call_rpc :reject_blueprint, request, options: options do |response, operation|
|
1732
1745
|
yield response, operation if block_given?
|
1733
|
-
return response
|
1734
1746
|
end
|
1735
1747
|
rescue ::GRPC::BadStatus => e
|
1736
1748
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1826,7 +1838,7 @@ module Google
|
|
1826
1838
|
@telco_automation_stub.call_rpc :list_blueprint_revisions, request, options: options do |response, operation|
|
1827
1839
|
response = ::Gapic::PagedEnumerable.new @telco_automation_stub, :list_blueprint_revisions, request, response, operation, options
|
1828
1840
|
yield response, operation if block_given?
|
1829
|
-
|
1841
|
+
throw :response, response
|
1830
1842
|
end
|
1831
1843
|
rescue ::GRPC::BadStatus => e
|
1832
1844
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1933,7 +1945,7 @@ module Google
|
|
1933
1945
|
@telco_automation_stub.call_rpc :search_blueprint_revisions, request, options: options do |response, operation|
|
1934
1946
|
response = ::Gapic::PagedEnumerable.new @telco_automation_stub, :search_blueprint_revisions, request, response, operation, options
|
1935
1947
|
yield response, operation if block_given?
|
1936
|
-
|
1948
|
+
throw :response, response
|
1937
1949
|
end
|
1938
1950
|
rescue ::GRPC::BadStatus => e
|
1939
1951
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2041,7 +2053,7 @@ module Google
|
|
2041
2053
|
@telco_automation_stub.call_rpc :search_deployment_revisions, request, options: options do |response, operation|
|
2042
2054
|
response = ::Gapic::PagedEnumerable.new @telco_automation_stub, :search_deployment_revisions, request, response, operation, options
|
2043
2055
|
yield response, operation if block_given?
|
2044
|
-
|
2056
|
+
throw :response, response
|
2045
2057
|
end
|
2046
2058
|
rescue ::GRPC::BadStatus => e
|
2047
2059
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2129,7 +2141,6 @@ module Google
|
|
2129
2141
|
|
2130
2142
|
@telco_automation_stub.call_rpc :discard_blueprint_changes, request, options: options do |response, operation|
|
2131
2143
|
yield response, operation if block_given?
|
2132
|
-
return response
|
2133
2144
|
end
|
2134
2145
|
rescue ::GRPC::BadStatus => e
|
2135
2146
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2228,7 +2239,7 @@ module Google
|
|
2228
2239
|
@telco_automation_stub.call_rpc :list_public_blueprints, request, options: options do |response, operation|
|
2229
2240
|
response = ::Gapic::PagedEnumerable.new @telco_automation_stub, :list_public_blueprints, request, response, operation, options
|
2230
2241
|
yield response, operation if block_given?
|
2231
|
-
|
2242
|
+
throw :response, response
|
2232
2243
|
end
|
2233
2244
|
rescue ::GRPC::BadStatus => e
|
2234
2245
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2314,7 +2325,6 @@ module Google
|
|
2314
2325
|
|
2315
2326
|
@telco_automation_stub.call_rpc :get_public_blueprint, request, options: options do |response, operation|
|
2316
2327
|
yield response, operation if block_given?
|
2317
|
-
return response
|
2318
2328
|
end
|
2319
2329
|
rescue ::GRPC::BadStatus => e
|
2320
2330
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2406,7 +2416,6 @@ module Google
|
|
2406
2416
|
|
2407
2417
|
@telco_automation_stub.call_rpc :create_deployment, request, options: options do |response, operation|
|
2408
2418
|
yield response, operation if block_given?
|
2409
|
-
return response
|
2410
2419
|
end
|
2411
2420
|
rescue ::GRPC::BadStatus => e
|
2412
2421
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2495,7 +2504,6 @@ module Google
|
|
2495
2504
|
|
2496
2505
|
@telco_automation_stub.call_rpc :update_deployment, request, options: options do |response, operation|
|
2497
2506
|
yield response, operation if block_given?
|
2498
|
-
return response
|
2499
2507
|
end
|
2500
2508
|
rescue ::GRPC::BadStatus => e
|
2501
2509
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2589,7 +2597,6 @@ module Google
|
|
2589
2597
|
|
2590
2598
|
@telco_automation_stub.call_rpc :get_deployment, request, options: options do |response, operation|
|
2591
2599
|
yield response, operation if block_given?
|
2592
|
-
return response
|
2593
2600
|
end
|
2594
2601
|
rescue ::GRPC::BadStatus => e
|
2595
2602
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2676,7 +2683,6 @@ module Google
|
|
2676
2683
|
|
2677
2684
|
@telco_automation_stub.call_rpc :remove_deployment, request, options: options do |response, operation|
|
2678
2685
|
yield response, operation if block_given?
|
2679
|
-
return response
|
2680
2686
|
end
|
2681
2687
|
rescue ::GRPC::BadStatus => e
|
2682
2688
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2778,7 +2784,7 @@ module Google
|
|
2778
2784
|
@telco_automation_stub.call_rpc :list_deployments, request, options: options do |response, operation|
|
2779
2785
|
response = ::Gapic::PagedEnumerable.new @telco_automation_stub, :list_deployments, request, response, operation, options
|
2780
2786
|
yield response, operation if block_given?
|
2781
|
-
|
2787
|
+
throw :response, response
|
2782
2788
|
end
|
2783
2789
|
rescue ::GRPC::BadStatus => e
|
2784
2790
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2874,7 +2880,7 @@ module Google
|
|
2874
2880
|
@telco_automation_stub.call_rpc :list_deployment_revisions, request, options: options do |response, operation|
|
2875
2881
|
response = ::Gapic::PagedEnumerable.new @telco_automation_stub, :list_deployment_revisions, request, response, operation, options
|
2876
2882
|
yield response, operation if block_given?
|
2877
|
-
|
2883
|
+
throw :response, response
|
2878
2884
|
end
|
2879
2885
|
rescue ::GRPC::BadStatus => e
|
2880
2886
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2962,7 +2968,6 @@ module Google
|
|
2962
2968
|
|
2963
2969
|
@telco_automation_stub.call_rpc :discard_deployment_changes, request, options: options do |response, operation|
|
2964
2970
|
yield response, operation if block_given?
|
2965
|
-
return response
|
2966
2971
|
end
|
2967
2972
|
rescue ::GRPC::BadStatus => e
|
2968
2973
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3048,7 +3053,6 @@ module Google
|
|
3048
3053
|
|
3049
3054
|
@telco_automation_stub.call_rpc :apply_deployment, request, options: options do |response, operation|
|
3050
3055
|
yield response, operation if block_given?
|
3051
|
-
return response
|
3052
3056
|
end
|
3053
3057
|
rescue ::GRPC::BadStatus => e
|
3054
3058
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3134,7 +3138,6 @@ module Google
|
|
3134
3138
|
|
3135
3139
|
@telco_automation_stub.call_rpc :compute_deployment_status, request, options: options do |response, operation|
|
3136
3140
|
yield response, operation if block_given?
|
3137
|
-
return response
|
3138
3141
|
end
|
3139
3142
|
rescue ::GRPC::BadStatus => e
|
3140
3143
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3223,7 +3226,6 @@ module Google
|
|
3223
3226
|
|
3224
3227
|
@telco_automation_stub.call_rpc :rollback_deployment, request, options: options do |response, operation|
|
3225
3228
|
yield response, operation if block_given?
|
3226
|
-
return response
|
3227
3229
|
end
|
3228
3230
|
rescue ::GRPC::BadStatus => e
|
3229
3231
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3309,7 +3311,6 @@ module Google
|
|
3309
3311
|
|
3310
3312
|
@telco_automation_stub.call_rpc :get_hydrated_deployment, request, options: options do |response, operation|
|
3311
3313
|
yield response, operation if block_given?
|
3312
|
-
return response
|
3313
3314
|
end
|
3314
3315
|
rescue ::GRPC::BadStatus => e
|
3315
3316
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3408,7 +3409,7 @@ module Google
|
|
3408
3409
|
@telco_automation_stub.call_rpc :list_hydrated_deployments, request, options: options do |response, operation|
|
3409
3410
|
response = ::Gapic::PagedEnumerable.new @telco_automation_stub, :list_hydrated_deployments, request, response, operation, options
|
3410
3411
|
yield response, operation if block_given?
|
3411
|
-
|
3412
|
+
throw :response, response
|
3412
3413
|
end
|
3413
3414
|
rescue ::GRPC::BadStatus => e
|
3414
3415
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3497,7 +3498,6 @@ module Google
|
|
3497
3498
|
|
3498
3499
|
@telco_automation_stub.call_rpc :update_hydrated_deployment, request, options: options do |response, operation|
|
3499
3500
|
yield response, operation if block_given?
|
3500
|
-
return response
|
3501
3501
|
end
|
3502
3502
|
rescue ::GRPC::BadStatus => e
|
3503
3503
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3583,7 +3583,6 @@ module Google
|
|
3583
3583
|
|
3584
3584
|
@telco_automation_stub.call_rpc :apply_hydrated_deployment, request, options: options do |response, operation|
|
3585
3585
|
yield response, operation if block_given?
|
3586
|
-
return response
|
3587
3586
|
end
|
3588
3587
|
rescue ::GRPC::BadStatus => e
|
3589
3588
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3672,6 +3671,11 @@ module Google
|
|
3672
3671
|
# default endpoint URL. The default value of nil uses the environment
|
3673
3672
|
# universe (usually the default "googleapis.com" universe).
|
3674
3673
|
# @return [::String,nil]
|
3674
|
+
# @!attribute [rw] logger
|
3675
|
+
# A custom logger to use for request/response debug logging, or the value
|
3676
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
3677
|
+
# explicitly disable logging.
|
3678
|
+
# @return [::Logger,:default,nil]
|
3675
3679
|
#
|
3676
3680
|
class Configuration
|
3677
3681
|
extend ::Gapic::Config
|
@@ -3696,6 +3700,7 @@ module Google
|
|
3696
3700
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
3697
3701
|
config_attr :quota_project, nil, ::String, nil
|
3698
3702
|
config_attr :universe_domain, nil, ::String, nil
|
3703
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
3699
3704
|
|
3700
3705
|
# @private
|
3701
3706
|
def initialize parent_config = nil
|
@@ -124,14 +124,6 @@ module Google
|
|
124
124
|
# Lists operations that match the specified filter in the request. If the
|
125
125
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
126
126
|
#
|
127
|
-
# NOTE: the `name` binding allows API services to override the binding
|
128
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
129
|
-
# override the binding, API services can add a binding such as
|
130
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
131
|
-
# For backwards compatibility, the default name includes the operations
|
132
|
-
# collection id, however overriding users must ensure the name binding
|
133
|
-
# is the parent resource, without the operations collection id.
|
134
|
-
#
|
135
127
|
# @overload list_operations(request, options = nil)
|
136
128
|
# Pass arguments to `list_operations` via a request object, either of type
|
137
129
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -221,7 +213,7 @@ module Google
|
|
221
213
|
wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
|
222
214
|
response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
|
223
215
|
yield response, operation if block_given?
|
224
|
-
|
216
|
+
throw :response, response
|
225
217
|
end
|
226
218
|
rescue ::GRPC::BadStatus => e
|
227
219
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -317,7 +309,7 @@ module Google
|
|
317
309
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
318
310
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
319
311
|
yield response, operation if block_given?
|
320
|
-
|
312
|
+
throw :response, response
|
321
313
|
end
|
322
314
|
rescue ::GRPC::BadStatus => e
|
323
315
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -406,7 +398,6 @@ module Google
|
|
406
398
|
|
407
399
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
408
400
|
yield response, operation if block_given?
|
409
|
-
return response
|
410
401
|
end
|
411
402
|
rescue ::GRPC::BadStatus => e
|
412
403
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -421,8 +412,9 @@ module Google
|
|
421
412
|
# other methods to check whether the cancellation succeeded or whether the
|
422
413
|
# operation completed despite cancellation. On successful cancellation,
|
423
414
|
# the operation is not deleted; instead, it becomes an operation with
|
424
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
425
|
-
# corresponding to
|
415
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
416
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
417
|
+
# `Code.CANCELLED`.
|
426
418
|
#
|
427
419
|
# @overload cancel_operation(request, options = nil)
|
428
420
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
@@ -501,7 +493,6 @@ module Google
|
|
501
493
|
|
502
494
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
503
495
|
yield response, operation if block_given?
|
504
|
-
return response
|
505
496
|
end
|
506
497
|
rescue ::GRPC::BadStatus => e
|
507
498
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -599,7 +590,7 @@ module Google
|
|
599
590
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
600
591
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
601
592
|
yield response, operation if block_given?
|
602
|
-
|
593
|
+
throw :response, response
|
603
594
|
end
|
604
595
|
rescue ::GRPC::BadStatus => e
|
605
596
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -688,6 +679,11 @@ module Google
|
|
688
679
|
# default endpoint URL. The default value of nil uses the environment
|
689
680
|
# universe (usually the default "googleapis.com" universe).
|
690
681
|
# @return [::String,nil]
|
682
|
+
# @!attribute [rw] logger
|
683
|
+
# A custom logger to use for request/response debug logging, or the value
|
684
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
685
|
+
# explicitly disable logging.
|
686
|
+
# @return [::Logger,:default,nil]
|
691
687
|
#
|
692
688
|
class Configuration
|
693
689
|
extend ::Gapic::Config
|
@@ -712,6 +708,7 @@ module Google
|
|
712
708
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
713
709
|
config_attr :quota_project, nil, ::String, nil
|
714
710
|
config_attr :universe_domain, nil, ::String, nil
|
711
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
715
712
|
|
716
713
|
# @private
|
717
714
|
def initialize parent_config = nil
|