google-cloud-telco_automation-v1 0.3.0 → 1.0.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.
@@ -37,6 +37,9 @@ module Google
37
37
  # functions.
38
38
  #
39
39
  class Client
40
+ # @private
41
+ API_VERSION = ""
42
+
40
43
  # @private
41
44
  DEFAULT_ENDPOINT_TEMPLATE = "telcoautomation.$UNIVERSE_DOMAIN$"
42
45
 
@@ -254,12 +257,13 @@ module Google
254
257
  # Customize the options with defaults
255
258
  call_metadata = @config.rpcs.list_orchestration_clusters.metadata.to_h
256
259
 
257
- # Set x-goog-api-client and x-goog-user-project headers
260
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
258
261
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
259
262
  lib_name: @config.lib_name, lib_version: @config.lib_version,
260
263
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
261
264
  transports_version_send: [:rest]
262
265
 
266
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
263
267
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
264
268
 
265
269
  options.apply_defaults timeout: @config.rpcs.list_orchestration_clusters.timeout,
@@ -332,12 +336,13 @@ module Google
332
336
  # Customize the options with defaults
333
337
  call_metadata = @config.rpcs.get_orchestration_cluster.metadata.to_h
334
338
 
335
- # Set x-goog-api-client and x-goog-user-project headers
339
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
336
340
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
337
341
  lib_name: @config.lib_name, lib_version: @config.lib_version,
338
342
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
339
343
  transports_version_send: [:rest]
340
344
 
345
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
341
346
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
342
347
 
343
348
  options.apply_defaults timeout: @config.rpcs.get_orchestration_cluster.timeout,
@@ -437,12 +442,13 @@ module Google
437
442
  # Customize the options with defaults
438
443
  call_metadata = @config.rpcs.create_orchestration_cluster.metadata.to_h
439
444
 
440
- # Set x-goog-api-client and x-goog-user-project headers
445
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
441
446
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
442
447
  lib_name: @config.lib_name, lib_version: @config.lib_version,
443
448
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
444
449
  transports_version_send: [:rest]
445
450
 
451
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
446
452
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
447
453
 
448
454
  options.apply_defaults timeout: @config.rpcs.create_orchestration_cluster.timeout,
@@ -537,12 +543,13 @@ module Google
537
543
  # Customize the options with defaults
538
544
  call_metadata = @config.rpcs.delete_orchestration_cluster.metadata.to_h
539
545
 
540
- # Set x-goog-api-client and x-goog-user-project headers
546
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
541
547
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
542
548
  lib_name: @config.lib_name, lib_version: @config.lib_version,
543
549
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
544
550
  transports_version_send: [:rest]
545
551
 
552
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
546
553
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
547
554
 
548
555
  options.apply_defaults timeout: @config.rpcs.delete_orchestration_cluster.timeout,
@@ -629,12 +636,13 @@ module Google
629
636
  # Customize the options with defaults
630
637
  call_metadata = @config.rpcs.list_edge_slms.metadata.to_h
631
638
 
632
- # Set x-goog-api-client and x-goog-user-project headers
639
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
633
640
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
634
641
  lib_name: @config.lib_name, lib_version: @config.lib_version,
635
642
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
636
643
  transports_version_send: [:rest]
637
644
 
645
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
638
646
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
639
647
 
640
648
  options.apply_defaults timeout: @config.rpcs.list_edge_slms.timeout,
@@ -707,12 +715,13 @@ module Google
707
715
  # Customize the options with defaults
708
716
  call_metadata = @config.rpcs.get_edge_slm.metadata.to_h
709
717
 
710
- # Set x-goog-api-client and x-goog-user-project headers
718
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
711
719
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
712
720
  lib_name: @config.lib_name, lib_version: @config.lib_version,
713
721
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
714
722
  transports_version_send: [:rest]
715
723
 
724
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
716
725
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
717
726
 
718
727
  options.apply_defaults timeout: @config.rpcs.get_edge_slm.timeout,
@@ -812,12 +821,13 @@ module Google
812
821
  # Customize the options with defaults
813
822
  call_metadata = @config.rpcs.create_edge_slm.metadata.to_h
814
823
 
815
- # Set x-goog-api-client and x-goog-user-project headers
824
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
816
825
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
817
826
  lib_name: @config.lib_name, lib_version: @config.lib_version,
818
827
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
819
828
  transports_version_send: [:rest]
820
829
 
830
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
821
831
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
822
832
 
823
833
  options.apply_defaults timeout: @config.rpcs.create_edge_slm.timeout,
@@ -912,12 +922,13 @@ module Google
912
922
  # Customize the options with defaults
913
923
  call_metadata = @config.rpcs.delete_edge_slm.metadata.to_h
914
924
 
915
- # Set x-goog-api-client and x-goog-user-project headers
925
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
916
926
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
917
927
  lib_name: @config.lib_name, lib_version: @config.lib_version,
918
928
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
919
929
  transports_version_send: [:rest]
920
930
 
931
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
921
932
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
922
933
 
923
934
  options.apply_defaults timeout: @config.rpcs.delete_edge_slm.timeout,
@@ -997,12 +1008,13 @@ module Google
997
1008
  # Customize the options with defaults
998
1009
  call_metadata = @config.rpcs.create_blueprint.metadata.to_h
999
1010
 
1000
- # Set x-goog-api-client and x-goog-user-project headers
1011
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1001
1012
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1002
1013
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1003
1014
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1004
1015
  transports_version_send: [:rest]
1005
1016
 
1017
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1006
1018
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1007
1019
 
1008
1020
  options.apply_defaults timeout: @config.rpcs.create_blueprint.timeout,
@@ -1078,12 +1090,13 @@ module Google
1078
1090
  # Customize the options with defaults
1079
1091
  call_metadata = @config.rpcs.update_blueprint.metadata.to_h
1080
1092
 
1081
- # Set x-goog-api-client and x-goog-user-project headers
1093
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1082
1094
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1083
1095
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1084
1096
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1085
1097
  transports_version_send: [:rest]
1086
1098
 
1099
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1087
1100
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1088
1101
 
1089
1102
  options.apply_defaults timeout: @config.rpcs.update_blueprint.timeout,
@@ -1163,12 +1176,13 @@ module Google
1163
1176
  # Customize the options with defaults
1164
1177
  call_metadata = @config.rpcs.get_blueprint.metadata.to_h
1165
1178
 
1166
- # Set x-goog-api-client and x-goog-user-project headers
1179
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1167
1180
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1168
1181
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1169
1182
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1170
1183
  transports_version_send: [:rest]
1171
1184
 
1185
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1172
1186
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1173
1187
 
1174
1188
  options.apply_defaults timeout: @config.rpcs.get_blueprint.timeout,
@@ -1244,12 +1258,13 @@ module Google
1244
1258
  # Customize the options with defaults
1245
1259
  call_metadata = @config.rpcs.delete_blueprint.metadata.to_h
1246
1260
 
1247
- # Set x-goog-api-client and x-goog-user-project headers
1261
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1248
1262
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1249
1263
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1250
1264
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1251
1265
  transports_version_send: [:rest]
1252
1266
 
1267
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1253
1268
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1254
1269
 
1255
1270
  options.apply_defaults timeout: @config.rpcs.delete_blueprint.timeout,
@@ -1337,12 +1352,13 @@ module Google
1337
1352
  # Customize the options with defaults
1338
1353
  call_metadata = @config.rpcs.list_blueprints.metadata.to_h
1339
1354
 
1340
- # Set x-goog-api-client and x-goog-user-project headers
1355
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1341
1356
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1342
1357
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1343
1358
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1344
1359
  transports_version_send: [:rest]
1345
1360
 
1361
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1346
1362
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1347
1363
 
1348
1364
  options.apply_defaults timeout: @config.rpcs.list_blueprints.timeout,
@@ -1417,12 +1433,13 @@ module Google
1417
1433
  # Customize the options with defaults
1418
1434
  call_metadata = @config.rpcs.approve_blueprint.metadata.to_h
1419
1435
 
1420
- # Set x-goog-api-client and x-goog-user-project headers
1436
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1421
1437
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1422
1438
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1423
1439
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1424
1440
  transports_version_send: [:rest]
1425
1441
 
1442
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1426
1443
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1427
1444
 
1428
1445
  options.apply_defaults timeout: @config.rpcs.approve_blueprint.timeout,
@@ -1495,12 +1512,13 @@ module Google
1495
1512
  # Customize the options with defaults
1496
1513
  call_metadata = @config.rpcs.propose_blueprint.metadata.to_h
1497
1514
 
1498
- # Set x-goog-api-client and x-goog-user-project headers
1515
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1499
1516
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1500
1517
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1501
1518
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1502
1519
  transports_version_send: [:rest]
1503
1520
 
1521
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1504
1522
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1505
1523
 
1506
1524
  options.apply_defaults timeout: @config.rpcs.propose_blueprint.timeout,
@@ -1573,12 +1591,13 @@ module Google
1573
1591
  # Customize the options with defaults
1574
1592
  call_metadata = @config.rpcs.reject_blueprint.metadata.to_h
1575
1593
 
1576
- # Set x-goog-api-client and x-goog-user-project headers
1594
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1577
1595
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1578
1596
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1579
1597
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1580
1598
  transports_version_send: [:rest]
1581
1599
 
1600
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1582
1601
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1583
1602
 
1584
1603
  options.apply_defaults timeout: @config.rpcs.reject_blueprint.timeout,
@@ -1660,12 +1679,13 @@ module Google
1660
1679
  # Customize the options with defaults
1661
1680
  call_metadata = @config.rpcs.list_blueprint_revisions.metadata.to_h
1662
1681
 
1663
- # Set x-goog-api-client and x-goog-user-project headers
1682
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1664
1683
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1665
1684
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1666
1685
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1667
1686
  transports_version_send: [:rest]
1668
1687
 
1688
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1669
1689
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1670
1690
 
1671
1691
  options.apply_defaults timeout: @config.rpcs.list_blueprint_revisions.timeout,
@@ -1759,12 +1779,13 @@ module Google
1759
1779
  # Customize the options with defaults
1760
1780
  call_metadata = @config.rpcs.search_blueprint_revisions.metadata.to_h
1761
1781
 
1762
- # Set x-goog-api-client and x-goog-user-project headers
1782
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1763
1783
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1764
1784
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1765
1785
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1766
1786
  transports_version_send: [:rest]
1767
1787
 
1788
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1768
1789
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1769
1790
 
1770
1791
  options.apply_defaults timeout: @config.rpcs.search_blueprint_revisions.timeout,
@@ -1859,12 +1880,13 @@ module Google
1859
1880
  # Customize the options with defaults
1860
1881
  call_metadata = @config.rpcs.search_deployment_revisions.metadata.to_h
1861
1882
 
1862
- # Set x-goog-api-client and x-goog-user-project headers
1883
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1863
1884
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1864
1885
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1865
1886
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1866
1887
  transports_version_send: [:rest]
1867
1888
 
1889
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1868
1890
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1869
1891
 
1870
1892
  options.apply_defaults timeout: @config.rpcs.search_deployment_revisions.timeout,
@@ -1940,12 +1962,13 @@ module Google
1940
1962
  # Customize the options with defaults
1941
1963
  call_metadata = @config.rpcs.discard_blueprint_changes.metadata.to_h
1942
1964
 
1943
- # Set x-goog-api-client and x-goog-user-project headers
1965
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1944
1966
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1945
1967
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1946
1968
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1947
1969
  transports_version_send: [:rest]
1948
1970
 
1971
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1949
1972
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1950
1973
 
1951
1974
  options.apply_defaults timeout: @config.rpcs.discard_blueprint_changes.timeout,
@@ -2030,12 +2053,13 @@ module Google
2030
2053
  # Customize the options with defaults
2031
2054
  call_metadata = @config.rpcs.list_public_blueprints.metadata.to_h
2032
2055
 
2033
- # Set x-goog-api-client and x-goog-user-project headers
2056
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2034
2057
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2035
2058
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2036
2059
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2037
2060
  transports_version_send: [:rest]
2038
2061
 
2062
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2039
2063
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2040
2064
 
2041
2065
  options.apply_defaults timeout: @config.rpcs.list_public_blueprints.timeout,
@@ -2109,12 +2133,13 @@ module Google
2109
2133
  # Customize the options with defaults
2110
2134
  call_metadata = @config.rpcs.get_public_blueprint.metadata.to_h
2111
2135
 
2112
- # Set x-goog-api-client and x-goog-user-project headers
2136
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2113
2137
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2114
2138
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2115
2139
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2116
2140
  transports_version_send: [:rest]
2117
2141
 
2142
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2118
2143
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2119
2144
 
2120
2145
  options.apply_defaults timeout: @config.rpcs.get_public_blueprint.timeout,
@@ -2193,12 +2218,13 @@ module Google
2193
2218
  # Customize the options with defaults
2194
2219
  call_metadata = @config.rpcs.create_deployment.metadata.to_h
2195
2220
 
2196
- # Set x-goog-api-client and x-goog-user-project headers
2221
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2197
2222
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2198
2223
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2199
2224
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2200
2225
  transports_version_send: [:rest]
2201
2226
 
2227
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2202
2228
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2203
2229
 
2204
2230
  options.apply_defaults timeout: @config.rpcs.create_deployment.timeout,
@@ -2274,12 +2300,13 @@ module Google
2274
2300
  # Customize the options with defaults
2275
2301
  call_metadata = @config.rpcs.update_deployment.metadata.to_h
2276
2302
 
2277
- # Set x-goog-api-client and x-goog-user-project headers
2303
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2278
2304
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2279
2305
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2280
2306
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2281
2307
  transports_version_send: [:rest]
2282
2308
 
2309
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2283
2310
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2284
2311
 
2285
2312
  options.apply_defaults timeout: @config.rpcs.update_deployment.timeout,
@@ -2360,12 +2387,13 @@ module Google
2360
2387
  # Customize the options with defaults
2361
2388
  call_metadata = @config.rpcs.get_deployment.metadata.to_h
2362
2389
 
2363
- # Set x-goog-api-client and x-goog-user-project headers
2390
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2364
2391
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2365
2392
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2366
2393
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2367
2394
  transports_version_send: [:rest]
2368
2395
 
2396
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2369
2397
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2370
2398
 
2371
2399
  options.apply_defaults timeout: @config.rpcs.get_deployment.timeout,
@@ -2439,12 +2467,13 @@ module Google
2439
2467
  # Customize the options with defaults
2440
2468
  call_metadata = @config.rpcs.remove_deployment.metadata.to_h
2441
2469
 
2442
- # Set x-goog-api-client and x-goog-user-project headers
2470
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2443
2471
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2444
2472
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2445
2473
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2446
2474
  transports_version_send: [:rest]
2447
2475
 
2476
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2448
2477
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2449
2478
 
2450
2479
  options.apply_defaults timeout: @config.rpcs.remove_deployment.timeout,
@@ -2532,12 +2561,13 @@ module Google
2532
2561
  # Customize the options with defaults
2533
2562
  call_metadata = @config.rpcs.list_deployments.metadata.to_h
2534
2563
 
2535
- # Set x-goog-api-client and x-goog-user-project headers
2564
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2536
2565
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2537
2566
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2538
2567
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2539
2568
  transports_version_send: [:rest]
2540
2569
 
2570
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2541
2571
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2542
2572
 
2543
2573
  options.apply_defaults timeout: @config.rpcs.list_deployments.timeout,
@@ -2620,12 +2650,13 @@ module Google
2620
2650
  # Customize the options with defaults
2621
2651
  call_metadata = @config.rpcs.list_deployment_revisions.metadata.to_h
2622
2652
 
2623
- # Set x-goog-api-client and x-goog-user-project headers
2653
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2624
2654
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2625
2655
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2626
2656
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2627
2657
  transports_version_send: [:rest]
2628
2658
 
2659
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2629
2660
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2630
2661
 
2631
2662
  options.apply_defaults timeout: @config.rpcs.list_deployment_revisions.timeout,
@@ -2701,12 +2732,13 @@ module Google
2701
2732
  # Customize the options with defaults
2702
2733
  call_metadata = @config.rpcs.discard_deployment_changes.metadata.to_h
2703
2734
 
2704
- # Set x-goog-api-client and x-goog-user-project headers
2735
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2705
2736
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2706
2737
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2707
2738
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2708
2739
  transports_version_send: [:rest]
2709
2740
 
2741
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2710
2742
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2711
2743
 
2712
2744
  options.apply_defaults timeout: @config.rpcs.discard_deployment_changes.timeout,
@@ -2779,12 +2811,13 @@ module Google
2779
2811
  # Customize the options with defaults
2780
2812
  call_metadata = @config.rpcs.apply_deployment.metadata.to_h
2781
2813
 
2782
- # Set x-goog-api-client and x-goog-user-project headers
2814
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2783
2815
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2784
2816
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2785
2817
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2786
2818
  transports_version_send: [:rest]
2787
2819
 
2820
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2788
2821
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2789
2822
 
2790
2823
  options.apply_defaults timeout: @config.rpcs.apply_deployment.timeout,
@@ -2857,12 +2890,13 @@ module Google
2857
2890
  # Customize the options with defaults
2858
2891
  call_metadata = @config.rpcs.compute_deployment_status.metadata.to_h
2859
2892
 
2860
- # Set x-goog-api-client and x-goog-user-project headers
2893
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2861
2894
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2862
2895
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2863
2896
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2864
2897
  transports_version_send: [:rest]
2865
2898
 
2899
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2866
2900
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2867
2901
 
2868
2902
  options.apply_defaults timeout: @config.rpcs.compute_deployment_status.timeout,
@@ -2938,12 +2972,13 @@ module Google
2938
2972
  # Customize the options with defaults
2939
2973
  call_metadata = @config.rpcs.rollback_deployment.metadata.to_h
2940
2974
 
2941
- # Set x-goog-api-client and x-goog-user-project headers
2975
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2942
2976
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2943
2977
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2944
2978
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2945
2979
  transports_version_send: [:rest]
2946
2980
 
2981
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2947
2982
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2948
2983
 
2949
2984
  options.apply_defaults timeout: @config.rpcs.rollback_deployment.timeout,
@@ -3016,12 +3051,13 @@ module Google
3016
3051
  # Customize the options with defaults
3017
3052
  call_metadata = @config.rpcs.get_hydrated_deployment.metadata.to_h
3018
3053
 
3019
- # Set x-goog-api-client and x-goog-user-project headers
3054
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3020
3055
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3021
3056
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3022
3057
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
3023
3058
  transports_version_send: [:rest]
3024
3059
 
3060
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3025
3061
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3026
3062
 
3027
3063
  options.apply_defaults timeout: @config.rpcs.get_hydrated_deployment.timeout,
@@ -3106,12 +3142,13 @@ module Google
3106
3142
  # Customize the options with defaults
3107
3143
  call_metadata = @config.rpcs.list_hydrated_deployments.metadata.to_h
3108
3144
 
3109
- # Set x-goog-api-client and x-goog-user-project headers
3145
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3110
3146
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3111
3147
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3112
3148
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
3113
3149
  transports_version_send: [:rest]
3114
3150
 
3151
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3115
3152
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3116
3153
 
3117
3154
  options.apply_defaults timeout: @config.rpcs.list_hydrated_deployments.timeout,
@@ -3188,12 +3225,13 @@ module Google
3188
3225
  # Customize the options with defaults
3189
3226
  call_metadata = @config.rpcs.update_hydrated_deployment.metadata.to_h
3190
3227
 
3191
- # Set x-goog-api-client and x-goog-user-project headers
3228
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3192
3229
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3193
3230
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3194
3231
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
3195
3232
  transports_version_send: [:rest]
3196
3233
 
3234
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3197
3235
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3198
3236
 
3199
3237
  options.apply_defaults timeout: @config.rpcs.update_hydrated_deployment.timeout,
@@ -3266,12 +3304,13 @@ module Google
3266
3304
  # Customize the options with defaults
3267
3305
  call_metadata = @config.rpcs.apply_hydrated_deployment.metadata.to_h
3268
3306
 
3269
- # Set x-goog-api-client and x-goog-user-project headers
3307
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3270
3308
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3271
3309
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3272
3310
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
3273
3311
  transports_version_send: [:rest]
3274
3312
 
3313
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3275
3314
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3276
3315
 
3277
3316
  options.apply_defaults timeout: @config.rpcs.apply_hydrated_deployment.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "telcoautomation.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module TelcoAutomation
23
23
  module V1
24
- VERSION = "0.3.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end