google-cloud-dataform-v1beta1 0.7.0 → 0.8.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/dataform/v1beta1/dataform/client.rb +145 -103
- data/lib/google/cloud/dataform/v1beta1/dataform/rest/client.rb +139 -103
- data/lib/google/cloud/dataform/v1beta1/dataform/rest/service_stub.rb +422 -308
- data/lib/google/cloud/dataform/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +74 -10
- data/proto_docs/google/api/resource.rb +7 -2
- metadata +5 -5
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# tables in BigQuery.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -157,14 +160,26 @@ module Google
|
|
157
160
|
universe_domain: @config.universe_domain,
|
158
161
|
channel_args: @config.channel_args,
|
159
162
|
interceptors: @config.interceptors,
|
160
|
-
channel_pool_config: @config.channel_pool
|
163
|
+
channel_pool_config: @config.channel_pool,
|
164
|
+
logger: @config.logger
|
161
165
|
)
|
162
166
|
|
167
|
+
@dataform_stub.stub_logger&.info do |entry|
|
168
|
+
entry.set_system_name
|
169
|
+
entry.set_service
|
170
|
+
entry.message = "Created client for #{entry.service}"
|
171
|
+
entry.set_credentials_fields credentials
|
172
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
173
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
174
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
175
|
+
end
|
176
|
+
|
163
177
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
164
178
|
config.credentials = credentials
|
165
179
|
config.quota_project = @quota_project_id
|
166
180
|
config.endpoint = @dataform_stub.endpoint
|
167
181
|
config.universe_domain = @dataform_stub.universe_domain
|
182
|
+
config.logger = @dataform_stub.logger if config.respond_to? :logger=
|
168
183
|
end
|
169
184
|
|
170
185
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
@@ -172,6 +187,7 @@ module Google
|
|
172
187
|
config.quota_project = @quota_project_id
|
173
188
|
config.endpoint = @dataform_stub.endpoint
|
174
189
|
config.universe_domain = @dataform_stub.universe_domain
|
190
|
+
config.logger = @dataform_stub.logger if config.respond_to? :logger=
|
175
191
|
end
|
176
192
|
end
|
177
193
|
|
@@ -189,6 +205,15 @@ module Google
|
|
189
205
|
#
|
190
206
|
attr_reader :iam_policy_client
|
191
207
|
|
208
|
+
##
|
209
|
+
# The logger used for request/response debug logging.
|
210
|
+
#
|
211
|
+
# @return [Logger]
|
212
|
+
#
|
213
|
+
def logger
|
214
|
+
@dataform_stub.logger
|
215
|
+
end
|
216
|
+
|
192
217
|
# Service calls
|
193
218
|
|
194
219
|
##
|
@@ -267,10 +292,11 @@ module Google
|
|
267
292
|
# Customize the options with defaults
|
268
293
|
metadata = @config.rpcs.list_repositories.metadata.to_h
|
269
294
|
|
270
|
-
# Set x-goog-api-client
|
295
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
271
296
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
272
297
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
273
298
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
299
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
274
300
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
275
301
|
|
276
302
|
header_params = {}
|
@@ -292,7 +318,7 @@ module Google
|
|
292
318
|
@dataform_stub.call_rpc :list_repositories, request, options: options do |response, operation|
|
293
319
|
response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_repositories, request, response, operation, options
|
294
320
|
yield response, operation if block_given?
|
295
|
-
|
321
|
+
throw :response, response
|
296
322
|
end
|
297
323
|
rescue ::GRPC::BadStatus => e
|
298
324
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -353,10 +379,11 @@ module Google
|
|
353
379
|
# Customize the options with defaults
|
354
380
|
metadata = @config.rpcs.get_repository.metadata.to_h
|
355
381
|
|
356
|
-
# Set x-goog-api-client
|
382
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
357
383
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
358
384
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
359
385
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
386
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
360
387
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
388
|
|
362
389
|
header_params = {}
|
@@ -377,7 +404,6 @@ module Google
|
|
377
404
|
|
378
405
|
@dataform_stub.call_rpc :get_repository, request, options: options do |response, operation|
|
379
406
|
yield response, operation if block_given?
|
380
|
-
return response
|
381
407
|
end
|
382
408
|
rescue ::GRPC::BadStatus => e
|
383
409
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -444,10 +470,11 @@ module Google
|
|
444
470
|
# Customize the options with defaults
|
445
471
|
metadata = @config.rpcs.create_repository.metadata.to_h
|
446
472
|
|
447
|
-
# Set x-goog-api-client
|
473
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
448
474
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
449
475
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
450
476
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
477
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
451
478
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
452
479
|
|
453
480
|
header_params = {}
|
@@ -468,7 +495,6 @@ module Google
|
|
468
495
|
|
469
496
|
@dataform_stub.call_rpc :create_repository, request, options: options do |response, operation|
|
470
497
|
yield response, operation if block_given?
|
471
|
-
return response
|
472
498
|
end
|
473
499
|
rescue ::GRPC::BadStatus => e
|
474
500
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -532,10 +558,11 @@ module Google
|
|
532
558
|
# Customize the options with defaults
|
533
559
|
metadata = @config.rpcs.update_repository.metadata.to_h
|
534
560
|
|
535
|
-
# Set x-goog-api-client
|
561
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
536
562
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
537
563
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
538
564
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
565
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
539
566
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
540
567
|
|
541
568
|
header_params = {}
|
@@ -556,7 +583,6 @@ module Google
|
|
556
583
|
|
557
584
|
@dataform_stub.call_rpc :update_repository, request, options: options do |response, operation|
|
558
585
|
yield response, operation if block_given?
|
559
|
-
return response
|
560
586
|
end
|
561
587
|
rescue ::GRPC::BadStatus => e
|
562
588
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -621,10 +647,11 @@ module Google
|
|
621
647
|
# Customize the options with defaults
|
622
648
|
metadata = @config.rpcs.delete_repository.metadata.to_h
|
623
649
|
|
624
|
-
# Set x-goog-api-client
|
650
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
625
651
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
626
652
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
627
653
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
654
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
628
655
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
629
656
|
|
630
657
|
header_params = {}
|
@@ -645,7 +672,6 @@ module Google
|
|
645
672
|
|
646
673
|
@dataform_stub.call_rpc :delete_repository, request, options: options do |response, operation|
|
647
674
|
yield response, operation if block_given?
|
648
|
-
return response
|
649
675
|
end
|
650
676
|
rescue ::GRPC::BadStatus => e
|
651
677
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -716,10 +742,11 @@ module Google
|
|
716
742
|
# Customize the options with defaults
|
717
743
|
metadata = @config.rpcs.commit_repository_changes.metadata.to_h
|
718
744
|
|
719
|
-
# Set x-goog-api-client
|
745
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
720
746
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
721
747
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
722
748
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
749
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
723
750
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
724
751
|
|
725
752
|
header_params = {}
|
@@ -740,7 +767,6 @@ module Google
|
|
740
767
|
|
741
768
|
@dataform_stub.call_rpc :commit_repository_changes, request, options: options do |response, operation|
|
742
769
|
yield response, operation if block_given?
|
743
|
-
return response
|
744
770
|
end
|
745
771
|
rescue ::GRPC::BadStatus => e
|
746
772
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -807,10 +833,11 @@ module Google
|
|
807
833
|
# Customize the options with defaults
|
808
834
|
metadata = @config.rpcs.read_repository_file.metadata.to_h
|
809
835
|
|
810
|
-
# Set x-goog-api-client
|
836
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
811
837
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
812
838
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
813
839
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
840
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
814
841
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
815
842
|
|
816
843
|
header_params = {}
|
@@ -831,7 +858,6 @@ module Google
|
|
831
858
|
|
832
859
|
@dataform_stub.call_rpc :read_repository_file, request, options: options do |response, operation|
|
833
860
|
yield response, operation if block_given?
|
834
|
-
return response
|
835
861
|
end
|
836
862
|
rescue ::GRPC::BadStatus => e
|
837
863
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -915,10 +941,11 @@ module Google
|
|
915
941
|
# Customize the options with defaults
|
916
942
|
metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h
|
917
943
|
|
918
|
-
# Set x-goog-api-client
|
944
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
919
945
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
920
946
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
921
947
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
948
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
922
949
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
923
950
|
|
924
951
|
header_params = {}
|
@@ -940,7 +967,7 @@ module Google
|
|
940
967
|
@dataform_stub.call_rpc :query_repository_directory_contents, request, options: options do |response, operation|
|
941
968
|
response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, request, response, operation, options
|
942
969
|
yield response, operation if block_given?
|
943
|
-
|
970
|
+
throw :response, response
|
944
971
|
end
|
945
972
|
rescue ::GRPC::BadStatus => e
|
946
973
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1016,10 +1043,11 @@ module Google
|
|
1016
1043
|
# Customize the options with defaults
|
1017
1044
|
metadata = @config.rpcs.fetch_repository_history.metadata.to_h
|
1018
1045
|
|
1019
|
-
# Set x-goog-api-client
|
1046
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1020
1047
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1021
1048
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1022
1049
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
1050
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1023
1051
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1024
1052
|
|
1025
1053
|
header_params = {}
|
@@ -1041,7 +1069,7 @@ module Google
|
|
1041
1069
|
@dataform_stub.call_rpc :fetch_repository_history, request, options: options do |response, operation|
|
1042
1070
|
response = ::Gapic::PagedEnumerable.new @dataform_stub, :fetch_repository_history, request, response, operation, options
|
1043
1071
|
yield response, operation if block_given?
|
1044
|
-
|
1072
|
+
throw :response, response
|
1045
1073
|
end
|
1046
1074
|
rescue ::GRPC::BadStatus => e
|
1047
1075
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1102,10 +1130,11 @@ module Google
|
|
1102
1130
|
# Customize the options with defaults
|
1103
1131
|
metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h
|
1104
1132
|
|
1105
|
-
# Set x-goog-api-client
|
1133
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1106
1134
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1107
1135
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1108
1136
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
1137
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1109
1138
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1110
1139
|
|
1111
1140
|
header_params = {}
|
@@ -1126,7 +1155,6 @@ module Google
|
|
1126
1155
|
|
1127
1156
|
@dataform_stub.call_rpc :compute_repository_access_token_status, request, options: options do |response, operation|
|
1128
1157
|
yield response, operation if block_given?
|
1129
|
-
return response
|
1130
1158
|
end
|
1131
1159
|
rescue ::GRPC::BadStatus => e
|
1132
1160
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1187,10 +1215,11 @@ module Google
|
|
1187
1215
|
# Customize the options with defaults
|
1188
1216
|
metadata = @config.rpcs.fetch_remote_branches.metadata.to_h
|
1189
1217
|
|
1190
|
-
# Set x-goog-api-client
|
1218
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1191
1219
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1192
1220
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1193
1221
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
1222
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1194
1223
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1195
1224
|
|
1196
1225
|
header_params = {}
|
@@ -1211,7 +1240,6 @@ module Google
|
|
1211
1240
|
|
1212
1241
|
@dataform_stub.call_rpc :fetch_remote_branches, request, options: options do |response, operation|
|
1213
1242
|
yield response, operation if block_given?
|
1214
|
-
return response
|
1215
1243
|
end
|
1216
1244
|
rescue ::GRPC::BadStatus => e
|
1217
1245
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1293,10 +1321,11 @@ module Google
|
|
1293
1321
|
# Customize the options with defaults
|
1294
1322
|
metadata = @config.rpcs.list_workspaces.metadata.to_h
|
1295
1323
|
|
1296
|
-
# Set x-goog-api-client
|
1324
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1297
1325
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1298
1326
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1299
1327
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
1328
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1300
1329
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1301
1330
|
|
1302
1331
|
header_params = {}
|
@@ -1318,7 +1347,7 @@ module Google
|
|
1318
1347
|
@dataform_stub.call_rpc :list_workspaces, request, options: options do |response, operation|
|
1319
1348
|
response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workspaces, request, response, operation, options
|
1320
1349
|
yield response, operation if block_given?
|
1321
|
-
|
1350
|
+
throw :response, response
|
1322
1351
|
end
|
1323
1352
|
rescue ::GRPC::BadStatus => e
|
1324
1353
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1379,10 +1408,11 @@ module Google
|
|
1379
1408
|
# Customize the options with defaults
|
1380
1409
|
metadata = @config.rpcs.get_workspace.metadata.to_h
|
1381
1410
|
|
1382
|
-
# Set x-goog-api-client
|
1411
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1383
1412
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1384
1413
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1385
1414
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
1415
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1386
1416
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1387
1417
|
|
1388
1418
|
header_params = {}
|
@@ -1403,7 +1433,6 @@ module Google
|
|
1403
1433
|
|
1404
1434
|
@dataform_stub.call_rpc :get_workspace, request, options: options do |response, operation|
|
1405
1435
|
yield response, operation if block_given?
|
1406
|
-
return response
|
1407
1436
|
end
|
1408
1437
|
rescue ::GRPC::BadStatus => e
|
1409
1438
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1470,10 +1499,11 @@ module Google
|
|
1470
1499
|
# Customize the options with defaults
|
1471
1500
|
metadata = @config.rpcs.create_workspace.metadata.to_h
|
1472
1501
|
|
1473
|
-
# Set x-goog-api-client
|
1502
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1474
1503
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1475
1504
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1476
1505
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
1506
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1477
1507
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1478
1508
|
|
1479
1509
|
header_params = {}
|
@@ -1494,7 +1524,6 @@ module Google
|
|
1494
1524
|
|
1495
1525
|
@dataform_stub.call_rpc :create_workspace, request, options: options do |response, operation|
|
1496
1526
|
yield response, operation if block_given?
|
1497
|
-
return response
|
1498
1527
|
end
|
1499
1528
|
rescue ::GRPC::BadStatus => e
|
1500
1529
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1555,10 +1584,11 @@ module Google
|
|
1555
1584
|
# Customize the options with defaults
|
1556
1585
|
metadata = @config.rpcs.delete_workspace.metadata.to_h
|
1557
1586
|
|
1558
|
-
# Set x-goog-api-client
|
1587
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1559
1588
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1560
1589
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1561
1590
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
1591
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1562
1592
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1563
1593
|
|
1564
1594
|
header_params = {}
|
@@ -1579,7 +1609,6 @@ module Google
|
|
1579
1609
|
|
1580
1610
|
@dataform_stub.call_rpc :delete_workspace, request, options: options do |response, operation|
|
1581
1611
|
yield response, operation if block_given?
|
1582
|
-
return response
|
1583
1612
|
end
|
1584
1613
|
rescue ::GRPC::BadStatus => e
|
1585
1614
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1640,10 +1669,11 @@ module Google
|
|
1640
1669
|
# Customize the options with defaults
|
1641
1670
|
metadata = @config.rpcs.install_npm_packages.metadata.to_h
|
1642
1671
|
|
1643
|
-
# Set x-goog-api-client
|
1672
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1644
1673
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1645
1674
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1646
1675
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
1676
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1647
1677
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1648
1678
|
|
1649
1679
|
header_params = {}
|
@@ -1664,7 +1694,6 @@ module Google
|
|
1664
1694
|
|
1665
1695
|
@dataform_stub.call_rpc :install_npm_packages, request, options: options do |response, operation|
|
1666
1696
|
yield response, operation if block_given?
|
1667
|
-
return response
|
1668
1697
|
end
|
1669
1698
|
rescue ::GRPC::BadStatus => e
|
1670
1699
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1731,10 +1760,11 @@ module Google
|
|
1731
1760
|
# Customize the options with defaults
|
1732
1761
|
metadata = @config.rpcs.pull_git_commits.metadata.to_h
|
1733
1762
|
|
1734
|
-
# Set x-goog-api-client
|
1763
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1735
1764
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1736
1765
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1737
1766
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
1767
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1738
1768
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1739
1769
|
|
1740
1770
|
header_params = {}
|
@@ -1755,7 +1785,6 @@ module Google
|
|
1755
1785
|
|
1756
1786
|
@dataform_stub.call_rpc :pull_git_commits, request, options: options do |response, operation|
|
1757
1787
|
yield response, operation if block_given?
|
1758
|
-
return response
|
1759
1788
|
end
|
1760
1789
|
rescue ::GRPC::BadStatus => e
|
1761
1790
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1820,10 +1849,11 @@ module Google
|
|
1820
1849
|
# Customize the options with defaults
|
1821
1850
|
metadata = @config.rpcs.push_git_commits.metadata.to_h
|
1822
1851
|
|
1823
|
-
# Set x-goog-api-client
|
1852
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1824
1853
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1825
1854
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1826
1855
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
1856
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1827
1857
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1828
1858
|
|
1829
1859
|
header_params = {}
|
@@ -1844,7 +1874,6 @@ module Google
|
|
1844
1874
|
|
1845
1875
|
@dataform_stub.call_rpc :push_git_commits, request, options: options do |response, operation|
|
1846
1876
|
yield response, operation if block_given?
|
1847
|
-
return response
|
1848
1877
|
end
|
1849
1878
|
rescue ::GRPC::BadStatus => e
|
1850
1879
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1905,10 +1934,11 @@ module Google
|
|
1905
1934
|
# Customize the options with defaults
|
1906
1935
|
metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h
|
1907
1936
|
|
1908
|
-
# Set x-goog-api-client
|
1937
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1909
1938
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1910
1939
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1911
1940
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
1941
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1912
1942
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1913
1943
|
|
1914
1944
|
header_params = {}
|
@@ -1929,7 +1959,6 @@ module Google
|
|
1929
1959
|
|
1930
1960
|
@dataform_stub.call_rpc :fetch_file_git_statuses, request, options: options do |response, operation|
|
1931
1961
|
yield response, operation if block_given?
|
1932
|
-
return response
|
1933
1962
|
end
|
1934
1963
|
rescue ::GRPC::BadStatus => e
|
1935
1964
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1994,10 +2023,11 @@ module Google
|
|
1994
2023
|
# Customize the options with defaults
|
1995
2024
|
metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h
|
1996
2025
|
|
1997
|
-
# Set x-goog-api-client
|
2026
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1998
2027
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1999
2028
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2000
2029
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
2030
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2001
2031
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2002
2032
|
|
2003
2033
|
header_params = {}
|
@@ -2018,7 +2048,6 @@ module Google
|
|
2018
2048
|
|
2019
2049
|
@dataform_stub.call_rpc :fetch_git_ahead_behind, request, options: options do |response, operation|
|
2020
2050
|
yield response, operation if block_given?
|
2021
|
-
return response
|
2022
2051
|
end
|
2023
2052
|
rescue ::GRPC::BadStatus => e
|
2024
2053
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2086,10 +2115,11 @@ module Google
|
|
2086
2115
|
# Customize the options with defaults
|
2087
2116
|
metadata = @config.rpcs.commit_workspace_changes.metadata.to_h
|
2088
2117
|
|
2089
|
-
# Set x-goog-api-client
|
2118
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2090
2119
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2091
2120
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2092
2121
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
2122
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2093
2123
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2094
2124
|
|
2095
2125
|
header_params = {}
|
@@ -2110,7 +2140,6 @@ module Google
|
|
2110
2140
|
|
2111
2141
|
@dataform_stub.call_rpc :commit_workspace_changes, request, options: options do |response, operation|
|
2112
2142
|
yield response, operation if block_given?
|
2113
|
-
return response
|
2114
2143
|
end
|
2115
2144
|
rescue ::GRPC::BadStatus => e
|
2116
2145
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2176,10 +2205,11 @@ module Google
|
|
2176
2205
|
# Customize the options with defaults
|
2177
2206
|
metadata = @config.rpcs.reset_workspace_changes.metadata.to_h
|
2178
2207
|
|
2179
|
-
# Set x-goog-api-client
|
2208
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2180
2209
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2181
2210
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2182
2211
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
2212
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2183
2213
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2184
2214
|
|
2185
2215
|
header_params = {}
|
@@ -2200,7 +2230,6 @@ module Google
|
|
2200
2230
|
|
2201
2231
|
@dataform_stub.call_rpc :reset_workspace_changes, request, options: options do |response, operation|
|
2202
2232
|
yield response, operation if block_given?
|
2203
|
-
return response
|
2204
2233
|
end
|
2205
2234
|
rescue ::GRPC::BadStatus => e
|
2206
2235
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2264,10 +2293,11 @@ module Google
|
|
2264
2293
|
# Customize the options with defaults
|
2265
2294
|
metadata = @config.rpcs.fetch_file_diff.metadata.to_h
|
2266
2295
|
|
2267
|
-
# Set x-goog-api-client
|
2296
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2268
2297
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2269
2298
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2270
2299
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
2300
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2271
2301
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2272
2302
|
|
2273
2303
|
header_params = {}
|
@@ -2288,7 +2318,6 @@ module Google
|
|
2288
2318
|
|
2289
2319
|
@dataform_stub.call_rpc :fetch_file_diff, request, options: options do |response, operation|
|
2290
2320
|
yield response, operation if block_given?
|
2291
|
-
return response
|
2292
2321
|
end
|
2293
2322
|
rescue ::GRPC::BadStatus => e
|
2294
2323
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2367,10 +2396,11 @@ module Google
|
|
2367
2396
|
# Customize the options with defaults
|
2368
2397
|
metadata = @config.rpcs.query_directory_contents.metadata.to_h
|
2369
2398
|
|
2370
|
-
# Set x-goog-api-client
|
2399
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2371
2400
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2372
2401
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2373
2402
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
2403
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2374
2404
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2375
2405
|
|
2376
2406
|
header_params = {}
|
@@ -2392,7 +2422,7 @@ module Google
|
|
2392
2422
|
@dataform_stub.call_rpc :query_directory_contents, request, options: options do |response, operation|
|
2393
2423
|
response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_directory_contents, request, response, operation, options
|
2394
2424
|
yield response, operation if block_given?
|
2395
|
-
|
2425
|
+
throw :response, response
|
2396
2426
|
end
|
2397
2427
|
rescue ::GRPC::BadStatus => e
|
2398
2428
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2456,10 +2486,11 @@ module Google
|
|
2456
2486
|
# Customize the options with defaults
|
2457
2487
|
metadata = @config.rpcs.make_directory.metadata.to_h
|
2458
2488
|
|
2459
|
-
# Set x-goog-api-client
|
2489
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2460
2490
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2461
2491
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2462
2492
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
2493
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2463
2494
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2464
2495
|
|
2465
2496
|
header_params = {}
|
@@ -2480,7 +2511,6 @@ module Google
|
|
2480
2511
|
|
2481
2512
|
@dataform_stub.call_rpc :make_directory, request, options: options do |response, operation|
|
2482
2513
|
yield response, operation if block_given?
|
2483
|
-
return response
|
2484
2514
|
end
|
2485
2515
|
rescue ::GRPC::BadStatus => e
|
2486
2516
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2544,10 +2574,11 @@ module Google
|
|
2544
2574
|
# Customize the options with defaults
|
2545
2575
|
metadata = @config.rpcs.remove_directory.metadata.to_h
|
2546
2576
|
|
2547
|
-
# Set x-goog-api-client
|
2577
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2548
2578
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2549
2579
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2550
2580
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
2581
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2551
2582
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2552
2583
|
|
2553
2584
|
header_params = {}
|
@@ -2568,7 +2599,6 @@ module Google
|
|
2568
2599
|
|
2569
2600
|
@dataform_stub.call_rpc :remove_directory, request, options: options do |response, operation|
|
2570
2601
|
yield response, operation if block_given?
|
2571
|
-
return response
|
2572
2602
|
end
|
2573
2603
|
rescue ::GRPC::BadStatus => e
|
2574
2604
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2636,10 +2666,11 @@ module Google
|
|
2636
2666
|
# Customize the options with defaults
|
2637
2667
|
metadata = @config.rpcs.move_directory.metadata.to_h
|
2638
2668
|
|
2639
|
-
# Set x-goog-api-client
|
2669
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2640
2670
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2641
2671
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2642
2672
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
2673
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2643
2674
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2644
2675
|
|
2645
2676
|
header_params = {}
|
@@ -2660,7 +2691,6 @@ module Google
|
|
2660
2691
|
|
2661
2692
|
@dataform_stub.call_rpc :move_directory, request, options: options do |response, operation|
|
2662
2693
|
yield response, operation if block_given?
|
2663
|
-
return response
|
2664
2694
|
end
|
2665
2695
|
rescue ::GRPC::BadStatus => e
|
2666
2696
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2724,10 +2754,11 @@ module Google
|
|
2724
2754
|
# Customize the options with defaults
|
2725
2755
|
metadata = @config.rpcs.read_file.metadata.to_h
|
2726
2756
|
|
2727
|
-
# Set x-goog-api-client
|
2757
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2728
2758
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2729
2759
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2730
2760
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
2761
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2731
2762
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2732
2763
|
|
2733
2764
|
header_params = {}
|
@@ -2748,7 +2779,6 @@ module Google
|
|
2748
2779
|
|
2749
2780
|
@dataform_stub.call_rpc :read_file, request, options: options do |response, operation|
|
2750
2781
|
yield response, operation if block_given?
|
2751
|
-
return response
|
2752
2782
|
end
|
2753
2783
|
rescue ::GRPC::BadStatus => e
|
2754
2784
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2812,10 +2842,11 @@ module Google
|
|
2812
2842
|
# Customize the options with defaults
|
2813
2843
|
metadata = @config.rpcs.remove_file.metadata.to_h
|
2814
2844
|
|
2815
|
-
# Set x-goog-api-client
|
2845
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2816
2846
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2817
2847
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2818
2848
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
2849
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2819
2850
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2820
2851
|
|
2821
2852
|
header_params = {}
|
@@ -2836,7 +2867,6 @@ module Google
|
|
2836
2867
|
|
2837
2868
|
@dataform_stub.call_rpc :remove_file, request, options: options do |response, operation|
|
2838
2869
|
yield response, operation if block_given?
|
2839
|
-
return response
|
2840
2870
|
end
|
2841
2871
|
rescue ::GRPC::BadStatus => e
|
2842
2872
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2903,10 +2933,11 @@ module Google
|
|
2903
2933
|
# Customize the options with defaults
|
2904
2934
|
metadata = @config.rpcs.move_file.metadata.to_h
|
2905
2935
|
|
2906
|
-
# Set x-goog-api-client
|
2936
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2907
2937
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2908
2938
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2909
2939
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
2940
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2910
2941
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2911
2942
|
|
2912
2943
|
header_params = {}
|
@@ -2927,7 +2958,6 @@ module Google
|
|
2927
2958
|
|
2928
2959
|
@dataform_stub.call_rpc :move_file, request, options: options do |response, operation|
|
2929
2960
|
yield response, operation if block_given?
|
2930
|
-
return response
|
2931
2961
|
end
|
2932
2962
|
rescue ::GRPC::BadStatus => e
|
2933
2963
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2992,10 +3022,11 @@ module Google
|
|
2992
3022
|
# Customize the options with defaults
|
2993
3023
|
metadata = @config.rpcs.write_file.metadata.to_h
|
2994
3024
|
|
2995
|
-
# Set x-goog-api-client
|
3025
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2996
3026
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2997
3027
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2998
3028
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
3029
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2999
3030
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3000
3031
|
|
3001
3032
|
header_params = {}
|
@@ -3016,7 +3047,6 @@ module Google
|
|
3016
3047
|
|
3017
3048
|
@dataform_stub.call_rpc :write_file, request, options: options do |response, operation|
|
3018
3049
|
yield response, operation if block_given?
|
3019
|
-
return response
|
3020
3050
|
end
|
3021
3051
|
rescue ::GRPC::BadStatus => e
|
3022
3052
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3092,10 +3122,11 @@ module Google
|
|
3092
3122
|
# Customize the options with defaults
|
3093
3123
|
metadata = @config.rpcs.list_release_configs.metadata.to_h
|
3094
3124
|
|
3095
|
-
# Set x-goog-api-client
|
3125
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3096
3126
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3097
3127
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3098
3128
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
3129
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3099
3130
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3100
3131
|
|
3101
3132
|
header_params = {}
|
@@ -3117,7 +3148,7 @@ module Google
|
|
3117
3148
|
@dataform_stub.call_rpc :list_release_configs, request, options: options do |response, operation|
|
3118
3149
|
response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_release_configs, request, response, operation, options
|
3119
3150
|
yield response, operation if block_given?
|
3120
|
-
|
3151
|
+
throw :response, response
|
3121
3152
|
end
|
3122
3153
|
rescue ::GRPC::BadStatus => e
|
3123
3154
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3178,10 +3209,11 @@ module Google
|
|
3178
3209
|
# Customize the options with defaults
|
3179
3210
|
metadata = @config.rpcs.get_release_config.metadata.to_h
|
3180
3211
|
|
3181
|
-
# Set x-goog-api-client
|
3212
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3182
3213
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3183
3214
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3184
3215
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
3216
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3185
3217
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3186
3218
|
|
3187
3219
|
header_params = {}
|
@@ -3202,7 +3234,6 @@ module Google
|
|
3202
3234
|
|
3203
3235
|
@dataform_stub.call_rpc :get_release_config, request, options: options do |response, operation|
|
3204
3236
|
yield response, operation if block_given?
|
3205
|
-
return response
|
3206
3237
|
end
|
3207
3238
|
rescue ::GRPC::BadStatus => e
|
3208
3239
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3269,10 +3300,11 @@ module Google
|
|
3269
3300
|
# Customize the options with defaults
|
3270
3301
|
metadata = @config.rpcs.create_release_config.metadata.to_h
|
3271
3302
|
|
3272
|
-
# Set x-goog-api-client
|
3303
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3273
3304
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3274
3305
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3275
3306
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
3307
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3276
3308
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3277
3309
|
|
3278
3310
|
header_params = {}
|
@@ -3293,7 +3325,6 @@ module Google
|
|
3293
3325
|
|
3294
3326
|
@dataform_stub.call_rpc :create_release_config, request, options: options do |response, operation|
|
3295
3327
|
yield response, operation if block_given?
|
3296
|
-
return response
|
3297
3328
|
end
|
3298
3329
|
rescue ::GRPC::BadStatus => e
|
3299
3330
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3357,10 +3388,11 @@ module Google
|
|
3357
3388
|
# Customize the options with defaults
|
3358
3389
|
metadata = @config.rpcs.update_release_config.metadata.to_h
|
3359
3390
|
|
3360
|
-
# Set x-goog-api-client
|
3391
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3361
3392
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3362
3393
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3363
3394
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
3395
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3364
3396
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3365
3397
|
|
3366
3398
|
header_params = {}
|
@@ -3381,7 +3413,6 @@ module Google
|
|
3381
3413
|
|
3382
3414
|
@dataform_stub.call_rpc :update_release_config, request, options: options do |response, operation|
|
3383
3415
|
yield response, operation if block_given?
|
3384
|
-
return response
|
3385
3416
|
end
|
3386
3417
|
rescue ::GRPC::BadStatus => e
|
3387
3418
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3442,10 +3473,11 @@ module Google
|
|
3442
3473
|
# Customize the options with defaults
|
3443
3474
|
metadata = @config.rpcs.delete_release_config.metadata.to_h
|
3444
3475
|
|
3445
|
-
# Set x-goog-api-client
|
3476
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3446
3477
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3447
3478
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3448
3479
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
3480
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3449
3481
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3450
3482
|
|
3451
3483
|
header_params = {}
|
@@ -3466,7 +3498,6 @@ module Google
|
|
3466
3498
|
|
3467
3499
|
@dataform_stub.call_rpc :delete_release_config, request, options: options do |response, operation|
|
3468
3500
|
yield response, operation if block_given?
|
3469
|
-
return response
|
3470
3501
|
end
|
3471
3502
|
rescue ::GRPC::BadStatus => e
|
3472
3503
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3542,10 +3573,11 @@ module Google
|
|
3542
3573
|
# Customize the options with defaults
|
3543
3574
|
metadata = @config.rpcs.list_compilation_results.metadata.to_h
|
3544
3575
|
|
3545
|
-
# Set x-goog-api-client
|
3576
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3546
3577
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3547
3578
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3548
3579
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
3580
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3549
3581
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3550
3582
|
|
3551
3583
|
header_params = {}
|
@@ -3567,7 +3599,7 @@ module Google
|
|
3567
3599
|
@dataform_stub.call_rpc :list_compilation_results, request, options: options do |response, operation|
|
3568
3600
|
response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_compilation_results, request, response, operation, options
|
3569
3601
|
yield response, operation if block_given?
|
3570
|
-
|
3602
|
+
throw :response, response
|
3571
3603
|
end
|
3572
3604
|
rescue ::GRPC::BadStatus => e
|
3573
3605
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3628,10 +3660,11 @@ module Google
|
|
3628
3660
|
# Customize the options with defaults
|
3629
3661
|
metadata = @config.rpcs.get_compilation_result.metadata.to_h
|
3630
3662
|
|
3631
|
-
# Set x-goog-api-client
|
3663
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3632
3664
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3633
3665
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3634
3666
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
3667
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3635
3668
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3636
3669
|
|
3637
3670
|
header_params = {}
|
@@ -3652,7 +3685,6 @@ module Google
|
|
3652
3685
|
|
3653
3686
|
@dataform_stub.call_rpc :get_compilation_result, request, options: options do |response, operation|
|
3654
3687
|
yield response, operation if block_given?
|
3655
|
-
return response
|
3656
3688
|
end
|
3657
3689
|
rescue ::GRPC::BadStatus => e
|
3658
3690
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3716,10 +3748,11 @@ module Google
|
|
3716
3748
|
# Customize the options with defaults
|
3717
3749
|
metadata = @config.rpcs.create_compilation_result.metadata.to_h
|
3718
3750
|
|
3719
|
-
# Set x-goog-api-client
|
3751
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3720
3752
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3721
3753
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3722
3754
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
3755
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3723
3756
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3724
3757
|
|
3725
3758
|
header_params = {}
|
@@ -3740,7 +3773,6 @@ module Google
|
|
3740
3773
|
|
3741
3774
|
@dataform_stub.call_rpc :create_compilation_result, request, options: options do |response, operation|
|
3742
3775
|
yield response, operation if block_given?
|
3743
|
-
return response
|
3744
3776
|
end
|
3745
3777
|
rescue ::GRPC::BadStatus => e
|
3746
3778
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3820,10 +3852,11 @@ module Google
|
|
3820
3852
|
# Customize the options with defaults
|
3821
3853
|
metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h
|
3822
3854
|
|
3823
|
-
# Set x-goog-api-client
|
3855
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3824
3856
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3825
3857
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3826
3858
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
3859
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3827
3860
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3828
3861
|
|
3829
3862
|
header_params = {}
|
@@ -3845,7 +3878,7 @@ module Google
|
|
3845
3878
|
@dataform_stub.call_rpc :query_compilation_result_actions, request, options: options do |response, operation|
|
3846
3879
|
response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, request, response, operation, options
|
3847
3880
|
yield response, operation if block_given?
|
3848
|
-
|
3881
|
+
throw :response, response
|
3849
3882
|
end
|
3850
3883
|
rescue ::GRPC::BadStatus => e
|
3851
3884
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3921,10 +3954,11 @@ module Google
|
|
3921
3954
|
# Customize the options with defaults
|
3922
3955
|
metadata = @config.rpcs.list_workflow_configs.metadata.to_h
|
3923
3956
|
|
3924
|
-
# Set x-goog-api-client
|
3957
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3925
3958
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3926
3959
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3927
3960
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
3961
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3928
3962
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3929
3963
|
|
3930
3964
|
header_params = {}
|
@@ -3946,7 +3980,7 @@ module Google
|
|
3946
3980
|
@dataform_stub.call_rpc :list_workflow_configs, request, options: options do |response, operation|
|
3947
3981
|
response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_configs, request, response, operation, options
|
3948
3982
|
yield response, operation if block_given?
|
3949
|
-
|
3983
|
+
throw :response, response
|
3950
3984
|
end
|
3951
3985
|
rescue ::GRPC::BadStatus => e
|
3952
3986
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4007,10 +4041,11 @@ module Google
|
|
4007
4041
|
# Customize the options with defaults
|
4008
4042
|
metadata = @config.rpcs.get_workflow_config.metadata.to_h
|
4009
4043
|
|
4010
|
-
# Set x-goog-api-client
|
4044
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4011
4045
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4012
4046
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4013
4047
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
4048
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4014
4049
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4015
4050
|
|
4016
4051
|
header_params = {}
|
@@ -4031,7 +4066,6 @@ module Google
|
|
4031
4066
|
|
4032
4067
|
@dataform_stub.call_rpc :get_workflow_config, request, options: options do |response, operation|
|
4033
4068
|
yield response, operation if block_given?
|
4034
|
-
return response
|
4035
4069
|
end
|
4036
4070
|
rescue ::GRPC::BadStatus => e
|
4037
4071
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4098,10 +4132,11 @@ module Google
|
|
4098
4132
|
# Customize the options with defaults
|
4099
4133
|
metadata = @config.rpcs.create_workflow_config.metadata.to_h
|
4100
4134
|
|
4101
|
-
# Set x-goog-api-client
|
4135
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4102
4136
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4103
4137
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4104
4138
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
4139
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4105
4140
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4106
4141
|
|
4107
4142
|
header_params = {}
|
@@ -4122,7 +4157,6 @@ module Google
|
|
4122
4157
|
|
4123
4158
|
@dataform_stub.call_rpc :create_workflow_config, request, options: options do |response, operation|
|
4124
4159
|
yield response, operation if block_given?
|
4125
|
-
return response
|
4126
4160
|
end
|
4127
4161
|
rescue ::GRPC::BadStatus => e
|
4128
4162
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4186,10 +4220,11 @@ module Google
|
|
4186
4220
|
# Customize the options with defaults
|
4187
4221
|
metadata = @config.rpcs.update_workflow_config.metadata.to_h
|
4188
4222
|
|
4189
|
-
# Set x-goog-api-client
|
4223
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4190
4224
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4191
4225
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4192
4226
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
4227
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4193
4228
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4194
4229
|
|
4195
4230
|
header_params = {}
|
@@ -4210,7 +4245,6 @@ module Google
|
|
4210
4245
|
|
4211
4246
|
@dataform_stub.call_rpc :update_workflow_config, request, options: options do |response, operation|
|
4212
4247
|
yield response, operation if block_given?
|
4213
|
-
return response
|
4214
4248
|
end
|
4215
4249
|
rescue ::GRPC::BadStatus => e
|
4216
4250
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4271,10 +4305,11 @@ module Google
|
|
4271
4305
|
# Customize the options with defaults
|
4272
4306
|
metadata = @config.rpcs.delete_workflow_config.metadata.to_h
|
4273
4307
|
|
4274
|
-
# Set x-goog-api-client
|
4308
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4275
4309
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4276
4310
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4277
4311
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
4312
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4278
4313
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4279
4314
|
|
4280
4315
|
header_params = {}
|
@@ -4295,7 +4330,6 @@ module Google
|
|
4295
4330
|
|
4296
4331
|
@dataform_stub.call_rpc :delete_workflow_config, request, options: options do |response, operation|
|
4297
4332
|
yield response, operation if block_given?
|
4298
|
-
return response
|
4299
4333
|
end
|
4300
4334
|
rescue ::GRPC::BadStatus => e
|
4301
4335
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4377,10 +4411,11 @@ module Google
|
|
4377
4411
|
# Customize the options with defaults
|
4378
4412
|
metadata = @config.rpcs.list_workflow_invocations.metadata.to_h
|
4379
4413
|
|
4380
|
-
# Set x-goog-api-client
|
4414
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4381
4415
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4382
4416
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4383
4417
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
4418
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4384
4419
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4385
4420
|
|
4386
4421
|
header_params = {}
|
@@ -4402,7 +4437,7 @@ module Google
|
|
4402
4437
|
@dataform_stub.call_rpc :list_workflow_invocations, request, options: options do |response, operation|
|
4403
4438
|
response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_invocations, request, response, operation, options
|
4404
4439
|
yield response, operation if block_given?
|
4405
|
-
|
4440
|
+
throw :response, response
|
4406
4441
|
end
|
4407
4442
|
rescue ::GRPC::BadStatus => e
|
4408
4443
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4463,10 +4498,11 @@ module Google
|
|
4463
4498
|
# Customize the options with defaults
|
4464
4499
|
metadata = @config.rpcs.get_workflow_invocation.metadata.to_h
|
4465
4500
|
|
4466
|
-
# Set x-goog-api-client
|
4501
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4467
4502
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4468
4503
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4469
4504
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
4505
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4470
4506
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4471
4507
|
|
4472
4508
|
header_params = {}
|
@@ -4487,7 +4523,6 @@ module Google
|
|
4487
4523
|
|
4488
4524
|
@dataform_stub.call_rpc :get_workflow_invocation, request, options: options do |response, operation|
|
4489
4525
|
yield response, operation if block_given?
|
4490
|
-
return response
|
4491
4526
|
end
|
4492
4527
|
rescue ::GRPC::BadStatus => e
|
4493
4528
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4551,10 +4586,11 @@ module Google
|
|
4551
4586
|
# Customize the options with defaults
|
4552
4587
|
metadata = @config.rpcs.create_workflow_invocation.metadata.to_h
|
4553
4588
|
|
4554
|
-
# Set x-goog-api-client
|
4589
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4555
4590
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4556
4591
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4557
4592
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
4593
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4558
4594
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4559
4595
|
|
4560
4596
|
header_params = {}
|
@@ -4575,7 +4611,6 @@ module Google
|
|
4575
4611
|
|
4576
4612
|
@dataform_stub.call_rpc :create_workflow_invocation, request, options: options do |response, operation|
|
4577
4613
|
yield response, operation if block_given?
|
4578
|
-
return response
|
4579
4614
|
end
|
4580
4615
|
rescue ::GRPC::BadStatus => e
|
4581
4616
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4636,10 +4671,11 @@ module Google
|
|
4636
4671
|
# Customize the options with defaults
|
4637
4672
|
metadata = @config.rpcs.delete_workflow_invocation.metadata.to_h
|
4638
4673
|
|
4639
|
-
# Set x-goog-api-client
|
4674
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4640
4675
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4641
4676
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4642
4677
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
4678
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4643
4679
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4644
4680
|
|
4645
4681
|
header_params = {}
|
@@ -4660,7 +4696,6 @@ module Google
|
|
4660
4696
|
|
4661
4697
|
@dataform_stub.call_rpc :delete_workflow_invocation, request, options: options do |response, operation|
|
4662
4698
|
yield response, operation if block_given?
|
4663
|
-
return response
|
4664
4699
|
end
|
4665
4700
|
rescue ::GRPC::BadStatus => e
|
4666
4701
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4721,10 +4756,11 @@ module Google
|
|
4721
4756
|
# Customize the options with defaults
|
4722
4757
|
metadata = @config.rpcs.cancel_workflow_invocation.metadata.to_h
|
4723
4758
|
|
4724
|
-
# Set x-goog-api-client
|
4759
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4725
4760
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4726
4761
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4727
4762
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
4763
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4728
4764
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4729
4765
|
|
4730
4766
|
header_params = {}
|
@@ -4745,7 +4781,6 @@ module Google
|
|
4745
4781
|
|
4746
4782
|
@dataform_stub.call_rpc :cancel_workflow_invocation, request, options: options do |response, operation|
|
4747
4783
|
yield response, operation if block_given?
|
4748
|
-
return response
|
4749
4784
|
end
|
4750
4785
|
rescue ::GRPC::BadStatus => e
|
4751
4786
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4822,10 +4857,11 @@ module Google
|
|
4822
4857
|
# Customize the options with defaults
|
4823
4858
|
metadata = @config.rpcs.query_workflow_invocation_actions.metadata.to_h
|
4824
4859
|
|
4825
|
-
# Set x-goog-api-client
|
4860
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4826
4861
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4827
4862
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4828
4863
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
4864
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4829
4865
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4830
4866
|
|
4831
4867
|
header_params = {}
|
@@ -4847,7 +4883,7 @@ module Google
|
|
4847
4883
|
@dataform_stub.call_rpc :query_workflow_invocation_actions, request, options: options do |response, operation|
|
4848
4884
|
response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, request, response, operation, options
|
4849
4885
|
yield response, operation if block_given?
|
4850
|
-
|
4886
|
+
throw :response, response
|
4851
4887
|
end
|
4852
4888
|
rescue ::GRPC::BadStatus => e
|
4853
4889
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4936,6 +4972,11 @@ module Google
|
|
4936
4972
|
# default endpoint URL. The default value of nil uses the environment
|
4937
4973
|
# universe (usually the default "googleapis.com" universe).
|
4938
4974
|
# @return [::String,nil]
|
4975
|
+
# @!attribute [rw] logger
|
4976
|
+
# A custom logger to use for request/response debug logging, or the value
|
4977
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
4978
|
+
# explicitly disable logging.
|
4979
|
+
# @return [::Logger,:default,nil]
|
4939
4980
|
#
|
4940
4981
|
class Configuration
|
4941
4982
|
extend ::Gapic::Config
|
@@ -4960,6 +5001,7 @@ module Google
|
|
4960
5001
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
4961
5002
|
config_attr :quota_project, nil, ::String, nil
|
4962
5003
|
config_attr :universe_domain, nil, ::String, nil
|
5004
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
4963
5005
|
|
4964
5006
|
# @private
|
4965
5007
|
def initialize parent_config = nil
|