google-cloud-orchestration-airflow-service-v1 1.1.0 → 1.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/README.md +31 -21
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/client.rb +46 -26
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/operations.rb +19 -15
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest/client.rb +46 -26
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest/operations.rb +50 -38
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest/service_stub.rb +206 -146
- data/lib/google/cloud/orchestration/airflow/service/v1/environments_pb.rb +1 -1
- data/lib/google/cloud/orchestration/airflow/service/v1/environments_services_pb.rb +1 -1
- data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/client.rb +35 -2
- data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/rest/client.rb +35 -2
- data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/rest/service_stub.rb +22 -8
- data/lib/google/cloud/orchestration/airflow/service/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/cloud/orchestration/airflow/service/v1/environments.rb +29 -6
- data/proto_docs/google/longrunning/operations.rb +23 -14
- metadata +6 -9
@@ -32,7 +32,8 @@ module Google
|
|
32
32
|
# including transcoding, making the REST call, and deserialing the response.
|
33
33
|
#
|
34
34
|
class ServiceStub
|
35
|
-
|
35
|
+
# @private
|
36
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
36
37
|
# These require statements are intentionally placed here to initialize
|
37
38
|
# the REST modules only when it's required.
|
38
39
|
require "gapic/rest"
|
@@ -42,7 +43,9 @@ module Google
|
|
42
43
|
universe_domain: universe_domain,
|
43
44
|
credentials: credentials,
|
44
45
|
numeric_enums: true,
|
45
|
-
|
46
|
+
service_name: self.class,
|
47
|
+
raise_faraday_errors: false,
|
48
|
+
logger: logger
|
46
49
|
end
|
47
50
|
|
48
51
|
##
|
@@ -63,6 +66,15 @@ module Google
|
|
63
66
|
@client_stub.endpoint
|
64
67
|
end
|
65
68
|
|
69
|
+
##
|
70
|
+
# The logger used for request/response debug logging.
|
71
|
+
#
|
72
|
+
# @return [Logger]
|
73
|
+
#
|
74
|
+
def logger stub: false
|
75
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
76
|
+
end
|
77
|
+
|
66
78
|
##
|
67
79
|
# Baseline implementation for the create_environment REST call
|
68
80
|
#
|
@@ -89,16 +101,18 @@ module Google
|
|
89
101
|
|
90
102
|
response = @client_stub.make_http_request(
|
91
103
|
verb,
|
92
|
-
uri:
|
93
|
-
body:
|
94
|
-
params:
|
104
|
+
uri: uri,
|
105
|
+
body: body || "",
|
106
|
+
params: query_string_params,
|
107
|
+
method_name: "create_environment",
|
95
108
|
options: options
|
96
109
|
)
|
97
110
|
operation = ::Gapic::Rest::TransportOperation.new response
|
98
111
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
99
|
-
|
100
|
-
|
101
|
-
|
112
|
+
catch :response do
|
113
|
+
yield result, operation if block_given?
|
114
|
+
result
|
115
|
+
end
|
102
116
|
end
|
103
117
|
|
104
118
|
##
|
@@ -127,16 +141,18 @@ module Google
|
|
127
141
|
|
128
142
|
response = @client_stub.make_http_request(
|
129
143
|
verb,
|
130
|
-
uri:
|
131
|
-
body:
|
132
|
-
params:
|
144
|
+
uri: uri,
|
145
|
+
body: body || "",
|
146
|
+
params: query_string_params,
|
147
|
+
method_name: "get_environment",
|
133
148
|
options: options
|
134
149
|
)
|
135
150
|
operation = ::Gapic::Rest::TransportOperation.new response
|
136
151
|
result = ::Google::Cloud::Orchestration::Airflow::Service::V1::Environment.decode_json response.body, ignore_unknown_fields: true
|
137
|
-
|
138
|
-
|
139
|
-
|
152
|
+
catch :response do
|
153
|
+
yield result, operation if block_given?
|
154
|
+
result
|
155
|
+
end
|
140
156
|
end
|
141
157
|
|
142
158
|
##
|
@@ -165,16 +181,18 @@ module Google
|
|
165
181
|
|
166
182
|
response = @client_stub.make_http_request(
|
167
183
|
verb,
|
168
|
-
uri:
|
169
|
-
body:
|
170
|
-
params:
|
184
|
+
uri: uri,
|
185
|
+
body: body || "",
|
186
|
+
params: query_string_params,
|
187
|
+
method_name: "list_environments",
|
171
188
|
options: options
|
172
189
|
)
|
173
190
|
operation = ::Gapic::Rest::TransportOperation.new response
|
174
191
|
result = ::Google::Cloud::Orchestration::Airflow::Service::V1::ListEnvironmentsResponse.decode_json response.body, ignore_unknown_fields: true
|
175
|
-
|
176
|
-
|
177
|
-
|
192
|
+
catch :response do
|
193
|
+
yield result, operation if block_given?
|
194
|
+
result
|
195
|
+
end
|
178
196
|
end
|
179
197
|
|
180
198
|
##
|
@@ -203,16 +221,18 @@ module Google
|
|
203
221
|
|
204
222
|
response = @client_stub.make_http_request(
|
205
223
|
verb,
|
206
|
-
uri:
|
207
|
-
body:
|
208
|
-
params:
|
224
|
+
uri: uri,
|
225
|
+
body: body || "",
|
226
|
+
params: query_string_params,
|
227
|
+
method_name: "update_environment",
|
209
228
|
options: options
|
210
229
|
)
|
211
230
|
operation = ::Gapic::Rest::TransportOperation.new response
|
212
231
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
213
|
-
|
214
|
-
|
215
|
-
|
232
|
+
catch :response do
|
233
|
+
yield result, operation if block_given?
|
234
|
+
result
|
235
|
+
end
|
216
236
|
end
|
217
237
|
|
218
238
|
##
|
@@ -241,16 +261,18 @@ module Google
|
|
241
261
|
|
242
262
|
response = @client_stub.make_http_request(
|
243
263
|
verb,
|
244
|
-
uri:
|
245
|
-
body:
|
246
|
-
params:
|
264
|
+
uri: uri,
|
265
|
+
body: body || "",
|
266
|
+
params: query_string_params,
|
267
|
+
method_name: "delete_environment",
|
247
268
|
options: options
|
248
269
|
)
|
249
270
|
operation = ::Gapic::Rest::TransportOperation.new response
|
250
271
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
251
|
-
|
252
|
-
|
253
|
-
|
272
|
+
catch :response do
|
273
|
+
yield result, operation if block_given?
|
274
|
+
result
|
275
|
+
end
|
254
276
|
end
|
255
277
|
|
256
278
|
##
|
@@ -279,16 +301,18 @@ module Google
|
|
279
301
|
|
280
302
|
response = @client_stub.make_http_request(
|
281
303
|
verb,
|
282
|
-
uri:
|
283
|
-
body:
|
284
|
-
params:
|
304
|
+
uri: uri,
|
305
|
+
body: body || "",
|
306
|
+
params: query_string_params,
|
307
|
+
method_name: "execute_airflow_command",
|
285
308
|
options: options
|
286
309
|
)
|
287
310
|
operation = ::Gapic::Rest::TransportOperation.new response
|
288
311
|
result = ::Google::Cloud::Orchestration::Airflow::Service::V1::ExecuteAirflowCommandResponse.decode_json response.body, ignore_unknown_fields: true
|
289
|
-
|
290
|
-
|
291
|
-
|
312
|
+
catch :response do
|
313
|
+
yield result, operation if block_given?
|
314
|
+
result
|
315
|
+
end
|
292
316
|
end
|
293
317
|
|
294
318
|
##
|
@@ -317,16 +341,18 @@ module Google
|
|
317
341
|
|
318
342
|
response = @client_stub.make_http_request(
|
319
343
|
verb,
|
320
|
-
uri:
|
321
|
-
body:
|
322
|
-
params:
|
344
|
+
uri: uri,
|
345
|
+
body: body || "",
|
346
|
+
params: query_string_params,
|
347
|
+
method_name: "stop_airflow_command",
|
323
348
|
options: options
|
324
349
|
)
|
325
350
|
operation = ::Gapic::Rest::TransportOperation.new response
|
326
351
|
result = ::Google::Cloud::Orchestration::Airflow::Service::V1::StopAirflowCommandResponse.decode_json response.body, ignore_unknown_fields: true
|
327
|
-
|
328
|
-
|
329
|
-
|
352
|
+
catch :response do
|
353
|
+
yield result, operation if block_given?
|
354
|
+
result
|
355
|
+
end
|
330
356
|
end
|
331
357
|
|
332
358
|
##
|
@@ -355,16 +381,18 @@ module Google
|
|
355
381
|
|
356
382
|
response = @client_stub.make_http_request(
|
357
383
|
verb,
|
358
|
-
uri:
|
359
|
-
body:
|
360
|
-
params:
|
384
|
+
uri: uri,
|
385
|
+
body: body || "",
|
386
|
+
params: query_string_params,
|
387
|
+
method_name: "poll_airflow_command",
|
361
388
|
options: options
|
362
389
|
)
|
363
390
|
operation = ::Gapic::Rest::TransportOperation.new response
|
364
391
|
result = ::Google::Cloud::Orchestration::Airflow::Service::V1::PollAirflowCommandResponse.decode_json response.body, ignore_unknown_fields: true
|
365
|
-
|
366
|
-
|
367
|
-
|
392
|
+
catch :response do
|
393
|
+
yield result, operation if block_given?
|
394
|
+
result
|
395
|
+
end
|
368
396
|
end
|
369
397
|
|
370
398
|
##
|
@@ -393,16 +421,18 @@ module Google
|
|
393
421
|
|
394
422
|
response = @client_stub.make_http_request(
|
395
423
|
verb,
|
396
|
-
uri:
|
397
|
-
body:
|
398
|
-
params:
|
424
|
+
uri: uri,
|
425
|
+
body: body || "",
|
426
|
+
params: query_string_params,
|
427
|
+
method_name: "list_workloads",
|
399
428
|
options: options
|
400
429
|
)
|
401
430
|
operation = ::Gapic::Rest::TransportOperation.new response
|
402
431
|
result = ::Google::Cloud::Orchestration::Airflow::Service::V1::ListWorkloadsResponse.decode_json response.body, ignore_unknown_fields: true
|
403
|
-
|
404
|
-
|
405
|
-
|
432
|
+
catch :response do
|
433
|
+
yield result, operation if block_given?
|
434
|
+
result
|
435
|
+
end
|
406
436
|
end
|
407
437
|
|
408
438
|
##
|
@@ -431,16 +461,18 @@ module Google
|
|
431
461
|
|
432
462
|
response = @client_stub.make_http_request(
|
433
463
|
verb,
|
434
|
-
uri:
|
435
|
-
body:
|
436
|
-
params:
|
464
|
+
uri: uri,
|
465
|
+
body: body || "",
|
466
|
+
params: query_string_params,
|
467
|
+
method_name: "check_upgrade",
|
437
468
|
options: options
|
438
469
|
)
|
439
470
|
operation = ::Gapic::Rest::TransportOperation.new response
|
440
471
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
441
|
-
|
442
|
-
|
443
|
-
|
472
|
+
catch :response do
|
473
|
+
yield result, operation if block_given?
|
474
|
+
result
|
475
|
+
end
|
444
476
|
end
|
445
477
|
|
446
478
|
##
|
@@ -469,16 +501,18 @@ module Google
|
|
469
501
|
|
470
502
|
response = @client_stub.make_http_request(
|
471
503
|
verb,
|
472
|
-
uri:
|
473
|
-
body:
|
474
|
-
params:
|
504
|
+
uri: uri,
|
505
|
+
body: body || "",
|
506
|
+
params: query_string_params,
|
507
|
+
method_name: "create_user_workloads_secret",
|
475
508
|
options: options
|
476
509
|
)
|
477
510
|
operation = ::Gapic::Rest::TransportOperation.new response
|
478
511
|
result = ::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsSecret.decode_json response.body, ignore_unknown_fields: true
|
479
|
-
|
480
|
-
|
481
|
-
|
512
|
+
catch :response do
|
513
|
+
yield result, operation if block_given?
|
514
|
+
result
|
515
|
+
end
|
482
516
|
end
|
483
517
|
|
484
518
|
##
|
@@ -507,16 +541,18 @@ module Google
|
|
507
541
|
|
508
542
|
response = @client_stub.make_http_request(
|
509
543
|
verb,
|
510
|
-
uri:
|
511
|
-
body:
|
512
|
-
params:
|
544
|
+
uri: uri,
|
545
|
+
body: body || "",
|
546
|
+
params: query_string_params,
|
547
|
+
method_name: "get_user_workloads_secret",
|
513
548
|
options: options
|
514
549
|
)
|
515
550
|
operation = ::Gapic::Rest::TransportOperation.new response
|
516
551
|
result = ::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsSecret.decode_json response.body, ignore_unknown_fields: true
|
517
|
-
|
518
|
-
|
519
|
-
|
552
|
+
catch :response do
|
553
|
+
yield result, operation if block_given?
|
554
|
+
result
|
555
|
+
end
|
520
556
|
end
|
521
557
|
|
522
558
|
##
|
@@ -545,16 +581,18 @@ module Google
|
|
545
581
|
|
546
582
|
response = @client_stub.make_http_request(
|
547
583
|
verb,
|
548
|
-
uri:
|
549
|
-
body:
|
550
|
-
params:
|
584
|
+
uri: uri,
|
585
|
+
body: body || "",
|
586
|
+
params: query_string_params,
|
587
|
+
method_name: "list_user_workloads_secrets",
|
551
588
|
options: options
|
552
589
|
)
|
553
590
|
operation = ::Gapic::Rest::TransportOperation.new response
|
554
591
|
result = ::Google::Cloud::Orchestration::Airflow::Service::V1::ListUserWorkloadsSecretsResponse.decode_json response.body, ignore_unknown_fields: true
|
555
|
-
|
556
|
-
|
557
|
-
|
592
|
+
catch :response do
|
593
|
+
yield result, operation if block_given?
|
594
|
+
result
|
595
|
+
end
|
558
596
|
end
|
559
597
|
|
560
598
|
##
|
@@ -583,16 +621,18 @@ module Google
|
|
583
621
|
|
584
622
|
response = @client_stub.make_http_request(
|
585
623
|
verb,
|
586
|
-
uri:
|
587
|
-
body:
|
588
|
-
params:
|
624
|
+
uri: uri,
|
625
|
+
body: body || "",
|
626
|
+
params: query_string_params,
|
627
|
+
method_name: "update_user_workloads_secret",
|
589
628
|
options: options
|
590
629
|
)
|
591
630
|
operation = ::Gapic::Rest::TransportOperation.new response
|
592
631
|
result = ::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsSecret.decode_json response.body, ignore_unknown_fields: true
|
593
|
-
|
594
|
-
|
595
|
-
|
632
|
+
catch :response do
|
633
|
+
yield result, operation if block_given?
|
634
|
+
result
|
635
|
+
end
|
596
636
|
end
|
597
637
|
|
598
638
|
##
|
@@ -621,16 +661,18 @@ module Google
|
|
621
661
|
|
622
662
|
response = @client_stub.make_http_request(
|
623
663
|
verb,
|
624
|
-
uri:
|
625
|
-
body:
|
626
|
-
params:
|
664
|
+
uri: uri,
|
665
|
+
body: body || "",
|
666
|
+
params: query_string_params,
|
667
|
+
method_name: "delete_user_workloads_secret",
|
627
668
|
options: options
|
628
669
|
)
|
629
670
|
operation = ::Gapic::Rest::TransportOperation.new response
|
630
671
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
631
|
-
|
632
|
-
|
633
|
-
|
672
|
+
catch :response do
|
673
|
+
yield result, operation if block_given?
|
674
|
+
result
|
675
|
+
end
|
634
676
|
end
|
635
677
|
|
636
678
|
##
|
@@ -659,16 +701,18 @@ module Google
|
|
659
701
|
|
660
702
|
response = @client_stub.make_http_request(
|
661
703
|
verb,
|
662
|
-
uri:
|
663
|
-
body:
|
664
|
-
params:
|
704
|
+
uri: uri,
|
705
|
+
body: body || "",
|
706
|
+
params: query_string_params,
|
707
|
+
method_name: "create_user_workloads_config_map",
|
665
708
|
options: options
|
666
709
|
)
|
667
710
|
operation = ::Gapic::Rest::TransportOperation.new response
|
668
711
|
result = ::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsConfigMap.decode_json response.body, ignore_unknown_fields: true
|
669
|
-
|
670
|
-
|
671
|
-
|
712
|
+
catch :response do
|
713
|
+
yield result, operation if block_given?
|
714
|
+
result
|
715
|
+
end
|
672
716
|
end
|
673
717
|
|
674
718
|
##
|
@@ -697,16 +741,18 @@ module Google
|
|
697
741
|
|
698
742
|
response = @client_stub.make_http_request(
|
699
743
|
verb,
|
700
|
-
uri:
|
701
|
-
body:
|
702
|
-
params:
|
744
|
+
uri: uri,
|
745
|
+
body: body || "",
|
746
|
+
params: query_string_params,
|
747
|
+
method_name: "get_user_workloads_config_map",
|
703
748
|
options: options
|
704
749
|
)
|
705
750
|
operation = ::Gapic::Rest::TransportOperation.new response
|
706
751
|
result = ::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsConfigMap.decode_json response.body, ignore_unknown_fields: true
|
707
|
-
|
708
|
-
|
709
|
-
|
752
|
+
catch :response do
|
753
|
+
yield result, operation if block_given?
|
754
|
+
result
|
755
|
+
end
|
710
756
|
end
|
711
757
|
|
712
758
|
##
|
@@ -735,16 +781,18 @@ module Google
|
|
735
781
|
|
736
782
|
response = @client_stub.make_http_request(
|
737
783
|
verb,
|
738
|
-
uri:
|
739
|
-
body:
|
740
|
-
params:
|
784
|
+
uri: uri,
|
785
|
+
body: body || "",
|
786
|
+
params: query_string_params,
|
787
|
+
method_name: "list_user_workloads_config_maps",
|
741
788
|
options: options
|
742
789
|
)
|
743
790
|
operation = ::Gapic::Rest::TransportOperation.new response
|
744
791
|
result = ::Google::Cloud::Orchestration::Airflow::Service::V1::ListUserWorkloadsConfigMapsResponse.decode_json response.body, ignore_unknown_fields: true
|
745
|
-
|
746
|
-
|
747
|
-
|
792
|
+
catch :response do
|
793
|
+
yield result, operation if block_given?
|
794
|
+
result
|
795
|
+
end
|
748
796
|
end
|
749
797
|
|
750
798
|
##
|
@@ -773,16 +821,18 @@ module Google
|
|
773
821
|
|
774
822
|
response = @client_stub.make_http_request(
|
775
823
|
verb,
|
776
|
-
uri:
|
777
|
-
body:
|
778
|
-
params:
|
824
|
+
uri: uri,
|
825
|
+
body: body || "",
|
826
|
+
params: query_string_params,
|
827
|
+
method_name: "update_user_workloads_config_map",
|
779
828
|
options: options
|
780
829
|
)
|
781
830
|
operation = ::Gapic::Rest::TransportOperation.new response
|
782
831
|
result = ::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsConfigMap.decode_json response.body, ignore_unknown_fields: true
|
783
|
-
|
784
|
-
|
785
|
-
|
832
|
+
catch :response do
|
833
|
+
yield result, operation if block_given?
|
834
|
+
result
|
835
|
+
end
|
786
836
|
end
|
787
837
|
|
788
838
|
##
|
@@ -811,16 +861,18 @@ module Google
|
|
811
861
|
|
812
862
|
response = @client_stub.make_http_request(
|
813
863
|
verb,
|
814
|
-
uri:
|
815
|
-
body:
|
816
|
-
params:
|
864
|
+
uri: uri,
|
865
|
+
body: body || "",
|
866
|
+
params: query_string_params,
|
867
|
+
method_name: "delete_user_workloads_config_map",
|
817
868
|
options: options
|
818
869
|
)
|
819
870
|
operation = ::Gapic::Rest::TransportOperation.new response
|
820
871
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
821
|
-
|
822
|
-
|
823
|
-
|
872
|
+
catch :response do
|
873
|
+
yield result, operation if block_given?
|
874
|
+
result
|
875
|
+
end
|
824
876
|
end
|
825
877
|
|
826
878
|
##
|
@@ -849,16 +901,18 @@ module Google
|
|
849
901
|
|
850
902
|
response = @client_stub.make_http_request(
|
851
903
|
verb,
|
852
|
-
uri:
|
853
|
-
body:
|
854
|
-
params:
|
904
|
+
uri: uri,
|
905
|
+
body: body || "",
|
906
|
+
params: query_string_params,
|
907
|
+
method_name: "save_snapshot",
|
855
908
|
options: options
|
856
909
|
)
|
857
910
|
operation = ::Gapic::Rest::TransportOperation.new response
|
858
911
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
859
|
-
|
860
|
-
|
861
|
-
|
912
|
+
catch :response do
|
913
|
+
yield result, operation if block_given?
|
914
|
+
result
|
915
|
+
end
|
862
916
|
end
|
863
917
|
|
864
918
|
##
|
@@ -887,16 +941,18 @@ module Google
|
|
887
941
|
|
888
942
|
response = @client_stub.make_http_request(
|
889
943
|
verb,
|
890
|
-
uri:
|
891
|
-
body:
|
892
|
-
params:
|
944
|
+
uri: uri,
|
945
|
+
body: body || "",
|
946
|
+
params: query_string_params,
|
947
|
+
method_name: "load_snapshot",
|
893
948
|
options: options
|
894
949
|
)
|
895
950
|
operation = ::Gapic::Rest::TransportOperation.new response
|
896
951
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
897
|
-
|
898
|
-
|
899
|
-
|
952
|
+
catch :response do
|
953
|
+
yield result, operation if block_given?
|
954
|
+
result
|
955
|
+
end
|
900
956
|
end
|
901
957
|
|
902
958
|
##
|
@@ -925,16 +981,18 @@ module Google
|
|
925
981
|
|
926
982
|
response = @client_stub.make_http_request(
|
927
983
|
verb,
|
928
|
-
uri:
|
929
|
-
body:
|
930
|
-
params:
|
984
|
+
uri: uri,
|
985
|
+
body: body || "",
|
986
|
+
params: query_string_params,
|
987
|
+
method_name: "database_failover",
|
931
988
|
options: options
|
932
989
|
)
|
933
990
|
operation = ::Gapic::Rest::TransportOperation.new response
|
934
991
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
935
|
-
|
936
|
-
|
937
|
-
|
992
|
+
catch :response do
|
993
|
+
yield result, operation if block_given?
|
994
|
+
result
|
995
|
+
end
|
938
996
|
end
|
939
997
|
|
940
998
|
##
|
@@ -963,16 +1021,18 @@ module Google
|
|
963
1021
|
|
964
1022
|
response = @client_stub.make_http_request(
|
965
1023
|
verb,
|
966
|
-
uri:
|
967
|
-
body:
|
968
|
-
params:
|
1024
|
+
uri: uri,
|
1025
|
+
body: body || "",
|
1026
|
+
params: query_string_params,
|
1027
|
+
method_name: "fetch_database_properties",
|
969
1028
|
options: options
|
970
1029
|
)
|
971
1030
|
operation = ::Gapic::Rest::TransportOperation.new response
|
972
1031
|
result = ::Google::Cloud::Orchestration::Airflow::Service::V1::FetchDatabasePropertiesResponse.decode_json response.body, ignore_unknown_fields: true
|
973
|
-
|
974
|
-
|
975
|
-
|
1032
|
+
catch :response do
|
1033
|
+
yield result, operation if block_given?
|
1034
|
+
result
|
1035
|
+
end
|
976
1036
|
end
|
977
1037
|
|
978
1038
|
##
|