google-cloud-video-stitcher-v1 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/video/stitcher/v1/cdn_keys_pb.rb +2 -1
- data/lib/google/cloud/video/stitcher/v1/fetch_options_pb.rb +44 -0
- data/lib/google/cloud/video/stitcher/v1/live_configs_pb.rb +3 -1
- data/lib/google/cloud/video/stitcher/v1/sessions_pb.rb +1 -1
- data/lib/google/cloud/video/stitcher/v1/version.rb +1 -1
- data/lib/google/cloud/video/stitcher/v1/video_stitcher_service/client.rb +695 -24
- data/lib/google/cloud/video/stitcher/v1/video_stitcher_service/operations.rb +13 -5
- data/lib/google/cloud/video/stitcher/v1/video_stitcher_service/paths.rb +19 -0
- data/lib/google/cloud/video/stitcher/v1/video_stitcher_service_pb.rb +10 -1
- data/lib/google/cloud/video/stitcher/v1/video_stitcher_service_services_pb.rb +17 -0
- data/lib/google/cloud/video/stitcher/v1/vod_configs_pb.rb +51 -0
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/video/stitcher/v1/ad_tag_details.rb +3 -1
- data/proto_docs/google/cloud/video/stitcher/v1/cdn_keys.rb +20 -0
- data/proto_docs/google/cloud/video/stitcher/v1/fetch_options.rb +49 -0
- data/proto_docs/google/cloud/video/stitcher/v1/live_configs.rb +4 -3
- data/proto_docs/google/cloud/video/stitcher/v1/sessions.rb +44 -16
- data/proto_docs/google/cloud/video/stitcher/v1/stitch_details.rb +3 -3
- data/proto_docs/google/cloud/video/stitcher/v1/video_stitcher_service.rb +122 -0
- data/proto_docs/google/cloud/video/stitcher/v1/vod_configs.rb +77 -0
- metadata +6 -2
@@ -35,6 +35,9 @@ module Google
|
|
35
35
|
# content with any standard VMAP compliant ad server.
|
36
36
|
#
|
37
37
|
class Client
|
38
|
+
# @private
|
39
|
+
API_VERSION = ""
|
40
|
+
|
38
41
|
# @private
|
39
42
|
DEFAULT_ENDPOINT_TEMPLATE = "videostitcher.$UNIVERSE_DOMAIN$"
|
40
43
|
|
@@ -304,10 +307,11 @@ module Google
|
|
304
307
|
# Customize the options with defaults
|
305
308
|
metadata = @config.rpcs.create_cdn_key.metadata.to_h
|
306
309
|
|
307
|
-
# Set x-goog-api-client
|
310
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
308
311
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
309
312
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
310
313
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
314
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
311
315
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
312
316
|
|
313
317
|
header_params = {}
|
@@ -404,10 +408,11 @@ module Google
|
|
404
408
|
# Customize the options with defaults
|
405
409
|
metadata = @config.rpcs.list_cdn_keys.metadata.to_h
|
406
410
|
|
407
|
-
# Set x-goog-api-client
|
411
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
408
412
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
409
413
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
410
414
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
415
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
411
416
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
412
417
|
|
413
418
|
header_params = {}
|
@@ -491,10 +496,11 @@ module Google
|
|
491
496
|
# Customize the options with defaults
|
492
497
|
metadata = @config.rpcs.get_cdn_key.metadata.to_h
|
493
498
|
|
494
|
-
# Set x-goog-api-client
|
499
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
495
500
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
496
501
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
497
502
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
503
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
498
504
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
499
505
|
|
500
506
|
header_params = {}
|
@@ -584,10 +590,11 @@ module Google
|
|
584
590
|
# Customize the options with defaults
|
585
591
|
metadata = @config.rpcs.delete_cdn_key.metadata.to_h
|
586
592
|
|
587
|
-
# Set x-goog-api-client
|
593
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
588
594
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
589
595
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
590
596
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
597
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
591
598
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
592
599
|
|
593
600
|
header_params = {}
|
@@ -682,10 +689,11 @@ module Google
|
|
682
689
|
# Customize the options with defaults
|
683
690
|
metadata = @config.rpcs.update_cdn_key.metadata.to_h
|
684
691
|
|
685
|
-
# Set x-goog-api-client
|
692
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
686
693
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
687
694
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
688
695
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
696
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
689
697
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
690
698
|
|
691
699
|
header_params = {}
|
@@ -772,10 +780,11 @@ module Google
|
|
772
780
|
# Customize the options with defaults
|
773
781
|
metadata = @config.rpcs.create_vod_session.metadata.to_h
|
774
782
|
|
775
|
-
# Set x-goog-api-client
|
783
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
776
784
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
777
785
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
778
786
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
787
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
779
788
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
780
789
|
|
781
790
|
header_params = {}
|
@@ -859,10 +868,11 @@ module Google
|
|
859
868
|
# Customize the options with defaults
|
860
869
|
metadata = @config.rpcs.get_vod_session.metadata.to_h
|
861
870
|
|
862
|
-
# Set x-goog-api-client
|
871
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
863
872
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
864
873
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
865
874
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
875
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
866
876
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
867
877
|
|
868
878
|
header_params = {}
|
@@ -954,10 +964,11 @@ module Google
|
|
954
964
|
# Customize the options with defaults
|
955
965
|
metadata = @config.rpcs.list_vod_stitch_details.metadata.to_h
|
956
966
|
|
957
|
-
# Set x-goog-api-client
|
967
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
958
968
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
959
969
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
960
970
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
971
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
961
972
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
962
973
|
|
963
974
|
header_params = {}
|
@@ -1042,10 +1053,11 @@ module Google
|
|
1042
1053
|
# Customize the options with defaults
|
1043
1054
|
metadata = @config.rpcs.get_vod_stitch_detail.metadata.to_h
|
1044
1055
|
|
1045
|
-
# Set x-goog-api-client
|
1056
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1046
1057
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1047
1058
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1048
1059
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
1060
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1049
1061
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1050
1062
|
|
1051
1063
|
header_params = {}
|
@@ -1136,10 +1148,11 @@ module Google
|
|
1136
1148
|
# Customize the options with defaults
|
1137
1149
|
metadata = @config.rpcs.list_vod_ad_tag_details.metadata.to_h
|
1138
1150
|
|
1139
|
-
# Set x-goog-api-client
|
1151
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1140
1152
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1141
1153
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1142
1154
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
1155
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1143
1156
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1144
1157
|
|
1145
1158
|
header_params = {}
|
@@ -1224,10 +1237,11 @@ module Google
|
|
1224
1237
|
# Customize the options with defaults
|
1225
1238
|
metadata = @config.rpcs.get_vod_ad_tag_detail.metadata.to_h
|
1226
1239
|
|
1227
|
-
# Set x-goog-api-client
|
1240
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1228
1241
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1229
1242
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1230
1243
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
1244
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1231
1245
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1232
1246
|
|
1233
1247
|
header_params = {}
|
@@ -1318,10 +1332,11 @@ module Google
|
|
1318
1332
|
# Customize the options with defaults
|
1319
1333
|
metadata = @config.rpcs.list_live_ad_tag_details.metadata.to_h
|
1320
1334
|
|
1321
|
-
# Set x-goog-api-client
|
1335
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1322
1336
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1323
1337
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1324
1338
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
1339
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1325
1340
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1326
1341
|
|
1327
1342
|
header_params = {}
|
@@ -1405,10 +1420,11 @@ module Google
|
|
1405
1420
|
# Customize the options with defaults
|
1406
1421
|
metadata = @config.rpcs.get_live_ad_tag_detail.metadata.to_h
|
1407
1422
|
|
1408
|
-
# Set x-goog-api-client
|
1423
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1409
1424
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1410
1425
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1411
1426
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
1427
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1412
1428
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1413
1429
|
|
1414
1430
|
header_params = {}
|
@@ -1519,10 +1535,11 @@ module Google
|
|
1519
1535
|
# Customize the options with defaults
|
1520
1536
|
metadata = @config.rpcs.create_slate.metadata.to_h
|
1521
1537
|
|
1522
|
-
# Set x-goog-api-client
|
1538
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1523
1539
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1524
1540
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1525
1541
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
1542
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1526
1543
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1527
1544
|
|
1528
1545
|
header_params = {}
|
@@ -1619,10 +1636,11 @@ module Google
|
|
1619
1636
|
# Customize the options with defaults
|
1620
1637
|
metadata = @config.rpcs.list_slates.metadata.to_h
|
1621
1638
|
|
1622
|
-
# Set x-goog-api-client
|
1639
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1623
1640
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1624
1641
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1625
1642
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
1643
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1626
1644
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1627
1645
|
|
1628
1646
|
header_params = {}
|
@@ -1706,10 +1724,11 @@ module Google
|
|
1706
1724
|
# Customize the options with defaults
|
1707
1725
|
metadata = @config.rpcs.get_slate.metadata.to_h
|
1708
1726
|
|
1709
|
-
# Set x-goog-api-client
|
1727
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1710
1728
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1711
1729
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1712
1730
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
1731
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1713
1732
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1714
1733
|
|
1715
1734
|
header_params = {}
|
@@ -1800,10 +1819,11 @@ module Google
|
|
1800
1819
|
# Customize the options with defaults
|
1801
1820
|
metadata = @config.rpcs.update_slate.metadata.to_h
|
1802
1821
|
|
1803
|
-
# Set x-goog-api-client
|
1822
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1804
1823
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1805
1824
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1806
1825
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
1826
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1807
1827
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1808
1828
|
|
1809
1829
|
header_params = {}
|
@@ -1894,10 +1914,11 @@ module Google
|
|
1894
1914
|
# Customize the options with defaults
|
1895
1915
|
metadata = @config.rpcs.delete_slate.metadata.to_h
|
1896
1916
|
|
1897
|
-
# Set x-goog-api-client
|
1917
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1898
1918
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1899
1919
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1900
1920
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
1921
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1901
1922
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1902
1923
|
|
1903
1924
|
header_params = {}
|
@@ -1983,10 +2004,11 @@ module Google
|
|
1983
2004
|
# Customize the options with defaults
|
1984
2005
|
metadata = @config.rpcs.create_live_session.metadata.to_h
|
1985
2006
|
|
1986
|
-
# Set x-goog-api-client
|
2007
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1987
2008
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1988
2009
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1989
2010
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
2011
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1990
2012
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1991
2013
|
|
1992
2014
|
header_params = {}
|
@@ -2069,10 +2091,11 @@ module Google
|
|
2069
2091
|
# Customize the options with defaults
|
2070
2092
|
metadata = @config.rpcs.get_live_session.metadata.to_h
|
2071
2093
|
|
2072
|
-
# Set x-goog-api-client
|
2094
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2073
2095
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2074
2096
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2075
2097
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
2098
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2076
2099
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2077
2100
|
|
2078
2101
|
header_params = {}
|
@@ -2181,10 +2204,11 @@ module Google
|
|
2181
2204
|
# Customize the options with defaults
|
2182
2205
|
metadata = @config.rpcs.create_live_config.metadata.to_h
|
2183
2206
|
|
2184
|
-
# Set x-goog-api-client
|
2207
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2185
2208
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2186
2209
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2187
2210
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
2211
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2188
2212
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2189
2213
|
|
2190
2214
|
header_params = {}
|
@@ -2284,10 +2308,11 @@ module Google
|
|
2284
2308
|
# Customize the options with defaults
|
2285
2309
|
metadata = @config.rpcs.list_live_configs.metadata.to_h
|
2286
2310
|
|
2287
|
-
# Set x-goog-api-client
|
2311
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2288
2312
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2289
2313
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2290
2314
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
2315
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2291
2316
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2292
2317
|
|
2293
2318
|
header_params = {}
|
@@ -2373,10 +2398,11 @@ module Google
|
|
2373
2398
|
# Customize the options with defaults
|
2374
2399
|
metadata = @config.rpcs.get_live_config.metadata.to_h
|
2375
2400
|
|
2376
|
-
# Set x-goog-api-client
|
2401
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2377
2402
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2378
2403
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2379
2404
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
2405
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2380
2406
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2381
2407
|
|
2382
2408
|
header_params = {}
|
@@ -2466,10 +2492,11 @@ module Google
|
|
2466
2492
|
# Customize the options with defaults
|
2467
2493
|
metadata = @config.rpcs.delete_live_config.metadata.to_h
|
2468
2494
|
|
2469
|
-
# Set x-goog-api-client
|
2495
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2470
2496
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2471
2497
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2472
2498
|
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
2499
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2473
2500
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2474
2501
|
|
2475
2502
|
header_params = {}
|
@@ -2497,6 +2524,608 @@ module Google
|
|
2497
2524
|
raise ::Google::Cloud::Error.from_error(e)
|
2498
2525
|
end
|
2499
2526
|
|
2527
|
+
##
|
2528
|
+
# Updates the specified LiveConfig. Only update fields specified
|
2529
|
+
# in the call method body.
|
2530
|
+
#
|
2531
|
+
# @overload update_live_config(request, options = nil)
|
2532
|
+
# Pass arguments to `update_live_config` via a request object, either of type
|
2533
|
+
# {::Google::Cloud::Video::Stitcher::V1::UpdateLiveConfigRequest} or an equivalent Hash.
|
2534
|
+
#
|
2535
|
+
# @param request [::Google::Cloud::Video::Stitcher::V1::UpdateLiveConfigRequest, ::Hash]
|
2536
|
+
# A request object representing the call parameters. Required. To specify no
|
2537
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2538
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2539
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2540
|
+
#
|
2541
|
+
# @overload update_live_config(live_config: nil, update_mask: nil)
|
2542
|
+
# Pass arguments to `update_live_config` via keyword arguments. Note that at
|
2543
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2544
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2545
|
+
#
|
2546
|
+
# @param live_config [::Google::Cloud::Video::Stitcher::V1::LiveConfig, ::Hash]
|
2547
|
+
# Required. The LiveConfig resource which replaces the resource on the
|
2548
|
+
# server.
|
2549
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2550
|
+
# Required. The update mask applies to the resource.
|
2551
|
+
# For the `FieldMask` definition, see
|
2552
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
|
2553
|
+
#
|
2554
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2555
|
+
# @yieldparam response [::Gapic::Operation]
|
2556
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2557
|
+
#
|
2558
|
+
# @return [::Gapic::Operation]
|
2559
|
+
#
|
2560
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2561
|
+
#
|
2562
|
+
# @example Basic example
|
2563
|
+
# require "google/cloud/video/stitcher/v1"
|
2564
|
+
#
|
2565
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2566
|
+
# client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new
|
2567
|
+
#
|
2568
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2569
|
+
# request = Google::Cloud::Video::Stitcher::V1::UpdateLiveConfigRequest.new
|
2570
|
+
#
|
2571
|
+
# # Call the update_live_config method.
|
2572
|
+
# result = client.update_live_config request
|
2573
|
+
#
|
2574
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2575
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2576
|
+
# # Here is how to wait for a response.
|
2577
|
+
# result.wait_until_done! timeout: 60
|
2578
|
+
# if result.response?
|
2579
|
+
# p result.response
|
2580
|
+
# else
|
2581
|
+
# puts "No response received."
|
2582
|
+
# end
|
2583
|
+
#
|
2584
|
+
def update_live_config request, options = nil
|
2585
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2586
|
+
|
2587
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Video::Stitcher::V1::UpdateLiveConfigRequest
|
2588
|
+
|
2589
|
+
# Converts hash and nil to an options object
|
2590
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2591
|
+
|
2592
|
+
# Customize the options with defaults
|
2593
|
+
metadata = @config.rpcs.update_live_config.metadata.to_h
|
2594
|
+
|
2595
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2596
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2597
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2598
|
+
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
2599
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2600
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2601
|
+
|
2602
|
+
header_params = {}
|
2603
|
+
if request.live_config&.name
|
2604
|
+
header_params["live_config.name"] = request.live_config.name
|
2605
|
+
end
|
2606
|
+
|
2607
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2608
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2609
|
+
|
2610
|
+
options.apply_defaults timeout: @config.rpcs.update_live_config.timeout,
|
2611
|
+
metadata: metadata,
|
2612
|
+
retry_policy: @config.rpcs.update_live_config.retry_policy
|
2613
|
+
|
2614
|
+
options.apply_defaults timeout: @config.timeout,
|
2615
|
+
metadata: @config.metadata,
|
2616
|
+
retry_policy: @config.retry_policy
|
2617
|
+
|
2618
|
+
@video_stitcher_service_stub.call_rpc :update_live_config, request, options: options do |response, operation|
|
2619
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2620
|
+
yield response, operation if block_given?
|
2621
|
+
return response
|
2622
|
+
end
|
2623
|
+
rescue ::GRPC::BadStatus => e
|
2624
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2625
|
+
end
|
2626
|
+
|
2627
|
+
##
|
2628
|
+
# Registers the VOD config with the provided unique ID in
|
2629
|
+
# the specified region.
|
2630
|
+
#
|
2631
|
+
# @overload create_vod_config(request, options = nil)
|
2632
|
+
# Pass arguments to `create_vod_config` via a request object, either of type
|
2633
|
+
# {::Google::Cloud::Video::Stitcher::V1::CreateVodConfigRequest} or an equivalent Hash.
|
2634
|
+
#
|
2635
|
+
# @param request [::Google::Cloud::Video::Stitcher::V1::CreateVodConfigRequest, ::Hash]
|
2636
|
+
# A request object representing the call parameters. Required. To specify no
|
2637
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2638
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2639
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2640
|
+
#
|
2641
|
+
# @overload create_vod_config(parent: nil, vod_config_id: nil, vod_config: nil, request_id: nil)
|
2642
|
+
# Pass arguments to `create_vod_config` via keyword arguments. Note that at
|
2643
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2644
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2645
|
+
#
|
2646
|
+
# @param parent [::String]
|
2647
|
+
# Required. The project in which the VOD config should be created, in
|
2648
|
+
# the form of `projects/{project_number}/locations/{location}`.
|
2649
|
+
# @param vod_config_id [::String]
|
2650
|
+
# Required. The unique identifier ID to use for the VOD config.
|
2651
|
+
# @param vod_config [::Google::Cloud::Video::Stitcher::V1::VodConfig, ::Hash]
|
2652
|
+
# Required. The VOD config resource to create.
|
2653
|
+
# @param request_id [::String]
|
2654
|
+
# Optional. A request ID to identify requests. Specify a unique request ID
|
2655
|
+
# so that if you must retry your request, the server will know to ignore
|
2656
|
+
# the request if it has already been completed. The server will guarantee
|
2657
|
+
# that for at least 60 minutes since the first request.
|
2658
|
+
#
|
2659
|
+
# For example, consider a situation where you make an initial request and the
|
2660
|
+
# request times out. If you make the request again with the same request ID,
|
2661
|
+
# the server can check if original operation with the same request ID was
|
2662
|
+
# received, and if so, will ignore the second request. This prevents clients
|
2663
|
+
# from accidentally creating duplicate commitments.
|
2664
|
+
#
|
2665
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
2666
|
+
# not supported `(00000000-0000-0000-0000-000000000000)`.
|
2667
|
+
#
|
2668
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2669
|
+
# @yieldparam response [::Gapic::Operation]
|
2670
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2671
|
+
#
|
2672
|
+
# @return [::Gapic::Operation]
|
2673
|
+
#
|
2674
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2675
|
+
#
|
2676
|
+
# @example Basic example
|
2677
|
+
# require "google/cloud/video/stitcher/v1"
|
2678
|
+
#
|
2679
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2680
|
+
# client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new
|
2681
|
+
#
|
2682
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2683
|
+
# request = Google::Cloud::Video::Stitcher::V1::CreateVodConfigRequest.new
|
2684
|
+
#
|
2685
|
+
# # Call the create_vod_config method.
|
2686
|
+
# result = client.create_vod_config request
|
2687
|
+
#
|
2688
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2689
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2690
|
+
# # Here is how to wait for a response.
|
2691
|
+
# result.wait_until_done! timeout: 60
|
2692
|
+
# if result.response?
|
2693
|
+
# p result.response
|
2694
|
+
# else
|
2695
|
+
# puts "No response received."
|
2696
|
+
# end
|
2697
|
+
#
|
2698
|
+
def create_vod_config request, options = nil
|
2699
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2700
|
+
|
2701
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Video::Stitcher::V1::CreateVodConfigRequest
|
2702
|
+
|
2703
|
+
# Converts hash and nil to an options object
|
2704
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2705
|
+
|
2706
|
+
# Customize the options with defaults
|
2707
|
+
metadata = @config.rpcs.create_vod_config.metadata.to_h
|
2708
|
+
|
2709
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2710
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2711
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2712
|
+
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
2713
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2714
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2715
|
+
|
2716
|
+
header_params = {}
|
2717
|
+
if request.parent
|
2718
|
+
header_params["parent"] = request.parent
|
2719
|
+
end
|
2720
|
+
|
2721
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2722
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2723
|
+
|
2724
|
+
options.apply_defaults timeout: @config.rpcs.create_vod_config.timeout,
|
2725
|
+
metadata: metadata,
|
2726
|
+
retry_policy: @config.rpcs.create_vod_config.retry_policy
|
2727
|
+
|
2728
|
+
options.apply_defaults timeout: @config.timeout,
|
2729
|
+
metadata: @config.metadata,
|
2730
|
+
retry_policy: @config.retry_policy
|
2731
|
+
|
2732
|
+
@video_stitcher_service_stub.call_rpc :create_vod_config, request, options: options do |response, operation|
|
2733
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2734
|
+
yield response, operation if block_given?
|
2735
|
+
return response
|
2736
|
+
end
|
2737
|
+
rescue ::GRPC::BadStatus => e
|
2738
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2739
|
+
end
|
2740
|
+
|
2741
|
+
##
|
2742
|
+
# Lists all VOD configs managed by the Video Stitcher API that
|
2743
|
+
# belong to the specified project and region.
|
2744
|
+
#
|
2745
|
+
# @overload list_vod_configs(request, options = nil)
|
2746
|
+
# Pass arguments to `list_vod_configs` via a request object, either of type
|
2747
|
+
# {::Google::Cloud::Video::Stitcher::V1::ListVodConfigsRequest} or an equivalent Hash.
|
2748
|
+
#
|
2749
|
+
# @param request [::Google::Cloud::Video::Stitcher::V1::ListVodConfigsRequest, ::Hash]
|
2750
|
+
# A request object representing the call parameters. Required. To specify no
|
2751
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2752
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2753
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2754
|
+
#
|
2755
|
+
# @overload list_vod_configs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
2756
|
+
# Pass arguments to `list_vod_configs` via keyword arguments. Note that at
|
2757
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2758
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2759
|
+
#
|
2760
|
+
# @param parent [::String]
|
2761
|
+
# Required. The project that contains the list of VOD configs, in the
|
2762
|
+
# form of `projects/{project_number}/locations/{location}`.
|
2763
|
+
# @param page_size [::Integer]
|
2764
|
+
# Optional. The maximum number of items to return.
|
2765
|
+
# @param page_token [::String]
|
2766
|
+
# Optional. The next_page_token value returned from a previous List request,
|
2767
|
+
# if any.
|
2768
|
+
# @param filter [::String]
|
2769
|
+
# Optional. The filter to apply to list results (see
|
2770
|
+
# [Filtering](https://google.aip.dev/160)).
|
2771
|
+
# @param order_by [::String]
|
2772
|
+
# Optional. Specifies the ordering of results following
|
2773
|
+
# [Cloud API
|
2774
|
+
# syntax](https://cloud.google.com/apis/design/design_patterns#sorting_order).
|
2775
|
+
#
|
2776
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2777
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::VodConfig>]
|
2778
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2779
|
+
#
|
2780
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::VodConfig>]
|
2781
|
+
#
|
2782
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2783
|
+
#
|
2784
|
+
# @example Basic example
|
2785
|
+
# require "google/cloud/video/stitcher/v1"
|
2786
|
+
#
|
2787
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2788
|
+
# client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new
|
2789
|
+
#
|
2790
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2791
|
+
# request = Google::Cloud::Video::Stitcher::V1::ListVodConfigsRequest.new
|
2792
|
+
#
|
2793
|
+
# # Call the list_vod_configs method.
|
2794
|
+
# result = client.list_vod_configs request
|
2795
|
+
#
|
2796
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2797
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2798
|
+
# result.each do |item|
|
2799
|
+
# # Each element is of type ::Google::Cloud::Video::Stitcher::V1::VodConfig.
|
2800
|
+
# p item
|
2801
|
+
# end
|
2802
|
+
#
|
2803
|
+
def list_vod_configs request, options = nil
|
2804
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2805
|
+
|
2806
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Video::Stitcher::V1::ListVodConfigsRequest
|
2807
|
+
|
2808
|
+
# Converts hash and nil to an options object
|
2809
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2810
|
+
|
2811
|
+
# Customize the options with defaults
|
2812
|
+
metadata = @config.rpcs.list_vod_configs.metadata.to_h
|
2813
|
+
|
2814
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2815
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2816
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2817
|
+
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
2818
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2819
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2820
|
+
|
2821
|
+
header_params = {}
|
2822
|
+
if request.parent
|
2823
|
+
header_params["parent"] = request.parent
|
2824
|
+
end
|
2825
|
+
|
2826
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2827
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2828
|
+
|
2829
|
+
options.apply_defaults timeout: @config.rpcs.list_vod_configs.timeout,
|
2830
|
+
metadata: metadata,
|
2831
|
+
retry_policy: @config.rpcs.list_vod_configs.retry_policy
|
2832
|
+
|
2833
|
+
options.apply_defaults timeout: @config.timeout,
|
2834
|
+
metadata: @config.metadata,
|
2835
|
+
retry_policy: @config.retry_policy
|
2836
|
+
|
2837
|
+
@video_stitcher_service_stub.call_rpc :list_vod_configs, request, options: options do |response, operation|
|
2838
|
+
response = ::Gapic::PagedEnumerable.new @video_stitcher_service_stub, :list_vod_configs, request, response, operation, options
|
2839
|
+
yield response, operation if block_given?
|
2840
|
+
return response
|
2841
|
+
end
|
2842
|
+
rescue ::GRPC::BadStatus => e
|
2843
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2844
|
+
end
|
2845
|
+
|
2846
|
+
##
|
2847
|
+
# Returns the specified VOD config managed by the Video
|
2848
|
+
# Stitcher API service.
|
2849
|
+
#
|
2850
|
+
# @overload get_vod_config(request, options = nil)
|
2851
|
+
# Pass arguments to `get_vod_config` via a request object, either of type
|
2852
|
+
# {::Google::Cloud::Video::Stitcher::V1::GetVodConfigRequest} or an equivalent Hash.
|
2853
|
+
#
|
2854
|
+
# @param request [::Google::Cloud::Video::Stitcher::V1::GetVodConfigRequest, ::Hash]
|
2855
|
+
# A request object representing the call parameters. Required. To specify no
|
2856
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2857
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2858
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2859
|
+
#
|
2860
|
+
# @overload get_vod_config(name: nil)
|
2861
|
+
# Pass arguments to `get_vod_config` via keyword arguments. Note that at
|
2862
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2863
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2864
|
+
#
|
2865
|
+
# @param name [::String]
|
2866
|
+
# Required. The name of the VOD config to be retrieved, in the form
|
2867
|
+
# of `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
|
2868
|
+
#
|
2869
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2870
|
+
# @yieldparam response [::Google::Cloud::Video::Stitcher::V1::VodConfig]
|
2871
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2872
|
+
#
|
2873
|
+
# @return [::Google::Cloud::Video::Stitcher::V1::VodConfig]
|
2874
|
+
#
|
2875
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2876
|
+
#
|
2877
|
+
# @example Basic example
|
2878
|
+
# require "google/cloud/video/stitcher/v1"
|
2879
|
+
#
|
2880
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2881
|
+
# client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new
|
2882
|
+
#
|
2883
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2884
|
+
# request = Google::Cloud::Video::Stitcher::V1::GetVodConfigRequest.new
|
2885
|
+
#
|
2886
|
+
# # Call the get_vod_config method.
|
2887
|
+
# result = client.get_vod_config request
|
2888
|
+
#
|
2889
|
+
# # The returned object is of type Google::Cloud::Video::Stitcher::V1::VodConfig.
|
2890
|
+
# p result
|
2891
|
+
#
|
2892
|
+
def get_vod_config request, options = nil
|
2893
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2894
|
+
|
2895
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Video::Stitcher::V1::GetVodConfigRequest
|
2896
|
+
|
2897
|
+
# Converts hash and nil to an options object
|
2898
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2899
|
+
|
2900
|
+
# Customize the options with defaults
|
2901
|
+
metadata = @config.rpcs.get_vod_config.metadata.to_h
|
2902
|
+
|
2903
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2904
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2905
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2906
|
+
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
2907
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2908
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2909
|
+
|
2910
|
+
header_params = {}
|
2911
|
+
if request.name
|
2912
|
+
header_params["name"] = request.name
|
2913
|
+
end
|
2914
|
+
|
2915
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2916
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2917
|
+
|
2918
|
+
options.apply_defaults timeout: @config.rpcs.get_vod_config.timeout,
|
2919
|
+
metadata: metadata,
|
2920
|
+
retry_policy: @config.rpcs.get_vod_config.retry_policy
|
2921
|
+
|
2922
|
+
options.apply_defaults timeout: @config.timeout,
|
2923
|
+
metadata: @config.metadata,
|
2924
|
+
retry_policy: @config.retry_policy
|
2925
|
+
|
2926
|
+
@video_stitcher_service_stub.call_rpc :get_vod_config, request, options: options do |response, operation|
|
2927
|
+
yield response, operation if block_given?
|
2928
|
+
return response
|
2929
|
+
end
|
2930
|
+
rescue ::GRPC::BadStatus => e
|
2931
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2932
|
+
end
|
2933
|
+
|
2934
|
+
##
|
2935
|
+
# Deletes the specified VOD config.
|
2936
|
+
#
|
2937
|
+
# @overload delete_vod_config(request, options = nil)
|
2938
|
+
# Pass arguments to `delete_vod_config` via a request object, either of type
|
2939
|
+
# {::Google::Cloud::Video::Stitcher::V1::DeleteVodConfigRequest} or an equivalent Hash.
|
2940
|
+
#
|
2941
|
+
# @param request [::Google::Cloud::Video::Stitcher::V1::DeleteVodConfigRequest, ::Hash]
|
2942
|
+
# A request object representing the call parameters. Required. To specify no
|
2943
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2944
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2945
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2946
|
+
#
|
2947
|
+
# @overload delete_vod_config(name: nil)
|
2948
|
+
# Pass arguments to `delete_vod_config` via keyword arguments. Note that at
|
2949
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2950
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2951
|
+
#
|
2952
|
+
# @param name [::String]
|
2953
|
+
# Required. The name of the VOD config to be deleted, in the form of
|
2954
|
+
# `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
|
2955
|
+
#
|
2956
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2957
|
+
# @yieldparam response [::Gapic::Operation]
|
2958
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2959
|
+
#
|
2960
|
+
# @return [::Gapic::Operation]
|
2961
|
+
#
|
2962
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2963
|
+
#
|
2964
|
+
# @example Basic example
|
2965
|
+
# require "google/cloud/video/stitcher/v1"
|
2966
|
+
#
|
2967
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2968
|
+
# client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new
|
2969
|
+
#
|
2970
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2971
|
+
# request = Google::Cloud::Video::Stitcher::V1::DeleteVodConfigRequest.new
|
2972
|
+
#
|
2973
|
+
# # Call the delete_vod_config method.
|
2974
|
+
# result = client.delete_vod_config request
|
2975
|
+
#
|
2976
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2977
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2978
|
+
# # Here is how to wait for a response.
|
2979
|
+
# result.wait_until_done! timeout: 60
|
2980
|
+
# if result.response?
|
2981
|
+
# p result.response
|
2982
|
+
# else
|
2983
|
+
# puts "No response received."
|
2984
|
+
# end
|
2985
|
+
#
|
2986
|
+
def delete_vod_config request, options = nil
|
2987
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2988
|
+
|
2989
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Video::Stitcher::V1::DeleteVodConfigRequest
|
2990
|
+
|
2991
|
+
# Converts hash and nil to an options object
|
2992
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2993
|
+
|
2994
|
+
# Customize the options with defaults
|
2995
|
+
metadata = @config.rpcs.delete_vod_config.metadata.to_h
|
2996
|
+
|
2997
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2998
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2999
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3000
|
+
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
3001
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3002
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3003
|
+
|
3004
|
+
header_params = {}
|
3005
|
+
if request.name
|
3006
|
+
header_params["name"] = request.name
|
3007
|
+
end
|
3008
|
+
|
3009
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3010
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3011
|
+
|
3012
|
+
options.apply_defaults timeout: @config.rpcs.delete_vod_config.timeout,
|
3013
|
+
metadata: metadata,
|
3014
|
+
retry_policy: @config.rpcs.delete_vod_config.retry_policy
|
3015
|
+
|
3016
|
+
options.apply_defaults timeout: @config.timeout,
|
3017
|
+
metadata: @config.metadata,
|
3018
|
+
retry_policy: @config.retry_policy
|
3019
|
+
|
3020
|
+
@video_stitcher_service_stub.call_rpc :delete_vod_config, request, options: options do |response, operation|
|
3021
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3022
|
+
yield response, operation if block_given?
|
3023
|
+
return response
|
3024
|
+
end
|
3025
|
+
rescue ::GRPC::BadStatus => e
|
3026
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3027
|
+
end
|
3028
|
+
|
3029
|
+
##
|
3030
|
+
# Updates the specified VOD config. Only update fields specified
|
3031
|
+
# in the call method body.
|
3032
|
+
#
|
3033
|
+
# @overload update_vod_config(request, options = nil)
|
3034
|
+
# Pass arguments to `update_vod_config` via a request object, either of type
|
3035
|
+
# {::Google::Cloud::Video::Stitcher::V1::UpdateVodConfigRequest} or an equivalent Hash.
|
3036
|
+
#
|
3037
|
+
# @param request [::Google::Cloud::Video::Stitcher::V1::UpdateVodConfigRequest, ::Hash]
|
3038
|
+
# A request object representing the call parameters. Required. To specify no
|
3039
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3040
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3041
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3042
|
+
#
|
3043
|
+
# @overload update_vod_config(vod_config: nil, update_mask: nil)
|
3044
|
+
# Pass arguments to `update_vod_config` via keyword arguments. Note that at
|
3045
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3046
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3047
|
+
#
|
3048
|
+
# @param vod_config [::Google::Cloud::Video::Stitcher::V1::VodConfig, ::Hash]
|
3049
|
+
# Required. The VOD config resource which replaces the resource on the
|
3050
|
+
# server.
|
3051
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
3052
|
+
# Required. The update mask applies to the resource.
|
3053
|
+
# For the `FieldMask` definition, see
|
3054
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
|
3055
|
+
#
|
3056
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3057
|
+
# @yieldparam response [::Gapic::Operation]
|
3058
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3059
|
+
#
|
3060
|
+
# @return [::Gapic::Operation]
|
3061
|
+
#
|
3062
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3063
|
+
#
|
3064
|
+
# @example Basic example
|
3065
|
+
# require "google/cloud/video/stitcher/v1"
|
3066
|
+
#
|
3067
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3068
|
+
# client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new
|
3069
|
+
#
|
3070
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3071
|
+
# request = Google::Cloud::Video::Stitcher::V1::UpdateVodConfigRequest.new
|
3072
|
+
#
|
3073
|
+
# # Call the update_vod_config method.
|
3074
|
+
# result = client.update_vod_config request
|
3075
|
+
#
|
3076
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3077
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3078
|
+
# # Here is how to wait for a response.
|
3079
|
+
# result.wait_until_done! timeout: 60
|
3080
|
+
# if result.response?
|
3081
|
+
# p result.response
|
3082
|
+
# else
|
3083
|
+
# puts "No response received."
|
3084
|
+
# end
|
3085
|
+
#
|
3086
|
+
def update_vod_config request, options = nil
|
3087
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3088
|
+
|
3089
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Video::Stitcher::V1::UpdateVodConfigRequest
|
3090
|
+
|
3091
|
+
# Converts hash and nil to an options object
|
3092
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3093
|
+
|
3094
|
+
# Customize the options with defaults
|
3095
|
+
metadata = @config.rpcs.update_vod_config.metadata.to_h
|
3096
|
+
|
3097
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3098
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3099
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3100
|
+
gapic_version: ::Google::Cloud::Video::Stitcher::V1::VERSION
|
3101
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3102
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3103
|
+
|
3104
|
+
header_params = {}
|
3105
|
+
if request.vod_config&.name
|
3106
|
+
header_params["vod_config.name"] = request.vod_config.name
|
3107
|
+
end
|
3108
|
+
|
3109
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3110
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3111
|
+
|
3112
|
+
options.apply_defaults timeout: @config.rpcs.update_vod_config.timeout,
|
3113
|
+
metadata: metadata,
|
3114
|
+
retry_policy: @config.rpcs.update_vod_config.retry_policy
|
3115
|
+
|
3116
|
+
options.apply_defaults timeout: @config.timeout,
|
3117
|
+
metadata: @config.metadata,
|
3118
|
+
retry_policy: @config.retry_policy
|
3119
|
+
|
3120
|
+
@video_stitcher_service_stub.call_rpc :update_vod_config, request, options: options do |response, operation|
|
3121
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3122
|
+
yield response, operation if block_given?
|
3123
|
+
return response
|
3124
|
+
end
|
3125
|
+
rescue ::GRPC::BadStatus => e
|
3126
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3127
|
+
end
|
3128
|
+
|
2500
3129
|
##
|
2501
3130
|
# Configuration class for the VideoStitcherService API.
|
2502
3131
|
#
|
@@ -2770,6 +3399,36 @@ module Google
|
|
2770
3399
|
# @return [::Gapic::Config::Method]
|
2771
3400
|
#
|
2772
3401
|
attr_reader :delete_live_config
|
3402
|
+
##
|
3403
|
+
# RPC-specific configuration for `update_live_config`
|
3404
|
+
# @return [::Gapic::Config::Method]
|
3405
|
+
#
|
3406
|
+
attr_reader :update_live_config
|
3407
|
+
##
|
3408
|
+
# RPC-specific configuration for `create_vod_config`
|
3409
|
+
# @return [::Gapic::Config::Method]
|
3410
|
+
#
|
3411
|
+
attr_reader :create_vod_config
|
3412
|
+
##
|
3413
|
+
# RPC-specific configuration for `list_vod_configs`
|
3414
|
+
# @return [::Gapic::Config::Method]
|
3415
|
+
#
|
3416
|
+
attr_reader :list_vod_configs
|
3417
|
+
##
|
3418
|
+
# RPC-specific configuration for `get_vod_config`
|
3419
|
+
# @return [::Gapic::Config::Method]
|
3420
|
+
#
|
3421
|
+
attr_reader :get_vod_config
|
3422
|
+
##
|
3423
|
+
# RPC-specific configuration for `delete_vod_config`
|
3424
|
+
# @return [::Gapic::Config::Method]
|
3425
|
+
#
|
3426
|
+
attr_reader :delete_vod_config
|
3427
|
+
##
|
3428
|
+
# RPC-specific configuration for `update_vod_config`
|
3429
|
+
# @return [::Gapic::Config::Method]
|
3430
|
+
#
|
3431
|
+
attr_reader :update_vod_config
|
2773
3432
|
|
2774
3433
|
# @private
|
2775
3434
|
def initialize parent_rpcs = nil
|
@@ -2821,6 +3480,18 @@ module Google
|
|
2821
3480
|
@get_live_config = ::Gapic::Config::Method.new get_live_config_config
|
2822
3481
|
delete_live_config_config = parent_rpcs.delete_live_config if parent_rpcs.respond_to? :delete_live_config
|
2823
3482
|
@delete_live_config = ::Gapic::Config::Method.new delete_live_config_config
|
3483
|
+
update_live_config_config = parent_rpcs.update_live_config if parent_rpcs.respond_to? :update_live_config
|
3484
|
+
@update_live_config = ::Gapic::Config::Method.new update_live_config_config
|
3485
|
+
create_vod_config_config = parent_rpcs.create_vod_config if parent_rpcs.respond_to? :create_vod_config
|
3486
|
+
@create_vod_config = ::Gapic::Config::Method.new create_vod_config_config
|
3487
|
+
list_vod_configs_config = parent_rpcs.list_vod_configs if parent_rpcs.respond_to? :list_vod_configs
|
3488
|
+
@list_vod_configs = ::Gapic::Config::Method.new list_vod_configs_config
|
3489
|
+
get_vod_config_config = parent_rpcs.get_vod_config if parent_rpcs.respond_to? :get_vod_config
|
3490
|
+
@get_vod_config = ::Gapic::Config::Method.new get_vod_config_config
|
3491
|
+
delete_vod_config_config = parent_rpcs.delete_vod_config if parent_rpcs.respond_to? :delete_vod_config
|
3492
|
+
@delete_vod_config = ::Gapic::Config::Method.new delete_vod_config_config
|
3493
|
+
update_vod_config_config = parent_rpcs.update_vod_config if parent_rpcs.respond_to? :update_vod_config
|
3494
|
+
@update_vod_config = ::Gapic::Config::Method.new update_vod_config_config
|
2824
3495
|
|
2825
3496
|
yield self if block_given?
|
2826
3497
|
end
|