google-cloud-orchestration-airflow-service-v1 0.11.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 615d14fb9bc09e69c115b2b4afee26af683807df247350efdceca2a3ffcfed47
4
- data.tar.gz: 2953d5fd5e8d028590a4eab4c8ecbd7da51599686de7e57ce47e29a5cc5534ff
3
+ metadata.gz: d0539846d04a44231755ea47b90fd27053e7a01af16865cdcccf52f8355c69c4
4
+ data.tar.gz: cf022319145baa70d3d9cd0e1bd31c243e92d3a75fa485e5d7779964b7fbcb5e
5
5
  SHA512:
6
- metadata.gz: ed9408e42217e866dc082949b098168d55387a000a739c85320c3f88b6f307176949e0b2d139907a1d7881008d4ff5c0be48060533e06432c304d1f2c0ce725e
7
- data.tar.gz: fc6020ad77b86f125edcc2b59e4c1a056f84d65d225d85be06d240d60c7ec1679371affa36ed12f16eb667a1ceb628e1c7f2e96a8d43d8b34a493b0a0790642f
6
+ metadata.gz: 47bc9b0cff7e40cd4b95007b7998179b789ac72a900962f70316fa7c72c84f0152dc4c04694994a1b4b3427ac4582b6d929b56f41ab41f941ed9c1f8d7930697
7
+ data.tar.gz: f196b48888eddc28548113ab48a787eb9c8e51cfd66b50156cffaeadf72a7362f5307b822720787c7ed926f88c7a5581de6f8392848e8373f5ca9539d3eef1a1
@@ -32,6 +32,9 @@ module Google
32
32
  # Managed Apache Airflow Environments.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "composer.$UNIVERSE_DOMAIN$"
37
40
 
@@ -241,10 +244,11 @@ module Google
241
244
  # Customize the options with defaults
242
245
  metadata = @config.rpcs.create_environment.metadata.to_h
243
246
 
244
- # Set x-goog-api-client and x-goog-user-project headers
247
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
245
248
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
246
249
  lib_name: @config.lib_name, lib_version: @config.lib_version,
247
250
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
251
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
248
252
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
249
253
 
250
254
  header_params = {}
@@ -328,10 +332,11 @@ module Google
328
332
  # Customize the options with defaults
329
333
  metadata = @config.rpcs.get_environment.metadata.to_h
330
334
 
331
- # Set x-goog-api-client and x-goog-user-project headers
335
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
332
336
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
333
337
  lib_name: @config.lib_name, lib_version: @config.lib_version,
334
338
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
339
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
335
340
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
336
341
 
337
342
  header_params = {}
@@ -422,10 +427,11 @@ module Google
422
427
  # Customize the options with defaults
423
428
  metadata = @config.rpcs.list_environments.metadata.to_h
424
429
 
425
- # Set x-goog-api-client and x-goog-user-project headers
430
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
426
431
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
427
432
  lib_name: @config.lib_name, lib_version: @config.lib_version,
428
433
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
434
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
429
435
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
430
436
 
431
437
  header_params = {}
@@ -643,10 +649,11 @@ module Google
643
649
  # Customize the options with defaults
644
650
  metadata = @config.rpcs.update_environment.metadata.to_h
645
651
 
646
- # Set x-goog-api-client and x-goog-user-project headers
652
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
647
653
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
648
654
  lib_name: @config.lib_name, lib_version: @config.lib_version,
649
655
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
656
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
650
657
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
651
658
 
652
659
  header_params = {}
@@ -737,10 +744,11 @@ module Google
737
744
  # Customize the options with defaults
738
745
  metadata = @config.rpcs.delete_environment.metadata.to_h
739
746
 
740
- # Set x-goog-api-client and x-goog-user-project headers
747
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
741
748
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
742
749
  lib_name: @config.lib_name, lib_version: @config.lib_version,
743
750
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
751
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
744
752
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
745
753
 
746
754
  header_params = {}
@@ -833,10 +841,11 @@ module Google
833
841
  # Customize the options with defaults
834
842
  metadata = @config.rpcs.execute_airflow_command.metadata.to_h
835
843
 
836
- # Set x-goog-api-client and x-goog-user-project headers
844
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
837
845
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
838
846
  lib_name: @config.lib_name, lib_version: @config.lib_version,
839
847
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
848
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
840
849
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
841
850
 
842
851
  header_params = {}
@@ -928,10 +937,11 @@ module Google
928
937
  # Customize the options with defaults
929
938
  metadata = @config.rpcs.stop_airflow_command.metadata.to_h
930
939
 
931
- # Set x-goog-api-client and x-goog-user-project headers
940
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
932
941
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
933
942
  lib_name: @config.lib_name, lib_version: @config.lib_version,
934
943
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
944
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
935
945
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
936
946
 
937
947
  header_params = {}
@@ -1022,10 +1032,11 @@ module Google
1022
1032
  # Customize the options with defaults
1023
1033
  metadata = @config.rpcs.poll_airflow_command.metadata.to_h
1024
1034
 
1025
- # Set x-goog-api-client and x-goog-user-project headers
1035
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1026
1036
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1027
1037
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1028
1038
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
1039
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1029
1040
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1030
1041
 
1031
1042
  header_params = {}
@@ -1128,10 +1139,11 @@ module Google
1128
1139
  # Customize the options with defaults
1129
1140
  metadata = @config.rpcs.list_workloads.metadata.to_h
1130
1141
 
1131
- # Set x-goog-api-client and x-goog-user-project headers
1142
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1132
1143
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1133
1144
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1134
1145
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
1146
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1135
1147
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1136
1148
 
1137
1149
  header_params = {}
@@ -1220,10 +1232,11 @@ module Google
1220
1232
  # Customize the options with defaults
1221
1233
  metadata = @config.rpcs.create_user_workloads_secret.metadata.to_h
1222
1234
 
1223
- # Set x-goog-api-client and x-goog-user-project headers
1235
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1224
1236
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1225
1237
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1226
1238
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
1239
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1227
1240
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1228
1241
 
1229
1242
  header_params = {}
@@ -1310,10 +1323,11 @@ module Google
1310
1323
  # Customize the options with defaults
1311
1324
  metadata = @config.rpcs.get_user_workloads_secret.metadata.to_h
1312
1325
 
1313
- # Set x-goog-api-client and x-goog-user-project headers
1326
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1314
1327
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1315
1328
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1316
1329
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
1330
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1317
1331
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1318
1332
 
1319
1333
  header_params = {}
@@ -1408,10 +1422,11 @@ module Google
1408
1422
  # Customize the options with defaults
1409
1423
  metadata = @config.rpcs.list_user_workloads_secrets.metadata.to_h
1410
1424
 
1411
- # Set x-goog-api-client and x-goog-user-project headers
1425
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1412
1426
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1413
1427
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1414
1428
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
1429
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1415
1430
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1416
1431
 
1417
1432
  header_params = {}
@@ -1497,10 +1512,11 @@ module Google
1497
1512
  # Customize the options with defaults
1498
1513
  metadata = @config.rpcs.update_user_workloads_secret.metadata.to_h
1499
1514
 
1500
- # 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
1501
1516
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1502
1517
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1503
1518
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
1519
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1504
1520
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1505
1521
 
1506
1522
  header_params = {}
@@ -1586,10 +1602,11 @@ module Google
1586
1602
  # Customize the options with defaults
1587
1603
  metadata = @config.rpcs.delete_user_workloads_secret.metadata.to_h
1588
1604
 
1589
- # Set x-goog-api-client and x-goog-user-project headers
1605
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1590
1606
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1591
1607
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1592
1608
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
1609
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1593
1610
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1594
1611
 
1595
1612
  header_params = {}
@@ -1677,10 +1694,11 @@ module Google
1677
1694
  # Customize the options with defaults
1678
1695
  metadata = @config.rpcs.create_user_workloads_config_map.metadata.to_h
1679
1696
 
1680
- # Set x-goog-api-client and x-goog-user-project headers
1697
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1681
1698
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1682
1699
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1683
1700
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
1701
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1684
1702
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1685
1703
 
1686
1704
  header_params = {}
@@ -1766,10 +1784,11 @@ module Google
1766
1784
  # Customize the options with defaults
1767
1785
  metadata = @config.rpcs.get_user_workloads_config_map.metadata.to_h
1768
1786
 
1769
- # Set x-goog-api-client and x-goog-user-project headers
1787
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1770
1788
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1771
1789
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1772
1790
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
1791
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1773
1792
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1774
1793
 
1775
1794
  header_params = {}
@@ -1864,10 +1883,11 @@ module Google
1864
1883
  # Customize the options with defaults
1865
1884
  metadata = @config.rpcs.list_user_workloads_config_maps.metadata.to_h
1866
1885
 
1867
- # Set x-goog-api-client and x-goog-user-project headers
1886
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1868
1887
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1869
1888
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1870
1889
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
1890
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1871
1891
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1872
1892
 
1873
1893
  header_params = {}
@@ -1953,10 +1973,11 @@ module Google
1953
1973
  # Customize the options with defaults
1954
1974
  metadata = @config.rpcs.update_user_workloads_config_map.metadata.to_h
1955
1975
 
1956
- # Set x-goog-api-client and x-goog-user-project headers
1976
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1957
1977
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1958
1978
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1959
1979
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
1980
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1960
1981
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1961
1982
 
1962
1983
  header_params = {}
@@ -2042,10 +2063,11 @@ module Google
2042
2063
  # Customize the options with defaults
2043
2064
  metadata = @config.rpcs.delete_user_workloads_config_map.metadata.to_h
2044
2065
 
2045
- # Set x-goog-api-client and x-goog-user-project headers
2066
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2046
2067
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2047
2068
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2048
2069
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
2070
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2049
2071
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2050
2072
 
2051
2073
  header_params = {}
@@ -2141,10 +2163,11 @@ module Google
2141
2163
  # Customize the options with defaults
2142
2164
  metadata = @config.rpcs.save_snapshot.metadata.to_h
2143
2165
 
2144
- # Set x-goog-api-client and x-goog-user-project headers
2166
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2145
2167
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2146
2168
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2147
2169
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
2170
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2148
2171
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2149
2172
 
2150
2173
  header_params = {}
@@ -2253,10 +2276,11 @@ module Google
2253
2276
  # Customize the options with defaults
2254
2277
  metadata = @config.rpcs.load_snapshot.metadata.to_h
2255
2278
 
2256
- # Set x-goog-api-client and x-goog-user-project headers
2279
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2257
2280
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2258
2281
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2259
2282
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
2283
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2260
2284
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2261
2285
 
2262
2286
  header_params = {}
@@ -2347,10 +2371,11 @@ module Google
2347
2371
  # Customize the options with defaults
2348
2372
  metadata = @config.rpcs.database_failover.metadata.to_h
2349
2373
 
2350
- # Set x-goog-api-client and x-goog-user-project headers
2374
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2351
2375
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2352
2376
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2353
2377
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
2378
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2354
2379
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2355
2380
 
2356
2381
  header_params = {}
@@ -2434,10 +2459,11 @@ module Google
2434
2459
  # Customize the options with defaults
2435
2460
  metadata = @config.rpcs.fetch_database_properties.metadata.to_h
2436
2461
 
2437
- # Set x-goog-api-client and x-goog-user-project headers
2462
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2438
2463
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2439
2464
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2440
2465
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
2466
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2441
2467
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2442
2468
 
2443
2469
  header_params = {}
@@ -28,6 +28,9 @@ module Google
28
28
  module Environments
29
29
  # Service that implements Longrunning Operations API.
30
30
  class Operations
31
+ # @private
32
+ API_VERSION = ""
33
+
31
34
  # @private
32
35
  DEFAULT_ENDPOINT_TEMPLATE = "composer.$UNIVERSE_DOMAIN$"
33
36
 
@@ -193,10 +196,11 @@ module Google
193
196
  # Customize the options with defaults
194
197
  metadata = @config.rpcs.list_operations.metadata.to_h
195
198
 
196
- # Set x-goog-api-client and x-goog-user-project headers
199
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
197
200
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
198
201
  lib_name: @config.lib_name, lib_version: @config.lib_version,
199
202
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
203
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
200
204
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
201
205
 
202
206
  header_params = {}
@@ -289,10 +293,11 @@ module Google
289
293
  # Customize the options with defaults
290
294
  metadata = @config.rpcs.get_operation.metadata.to_h
291
295
 
292
- # Set x-goog-api-client and x-goog-user-project headers
296
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
293
297
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
294
298
  lib_name: @config.lib_name, lib_version: @config.lib_version,
295
299
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
300
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
296
301
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
297
302
 
298
303
  header_params = {}
@@ -378,10 +383,11 @@ module Google
378
383
  # Customize the options with defaults
379
384
  metadata = @config.rpcs.delete_operation.metadata.to_h
380
385
 
381
- # Set x-goog-api-client and x-goog-user-project headers
386
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
382
387
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
383
388
  lib_name: @config.lib_name, lib_version: @config.lib_version,
384
389
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
390
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
385
391
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
386
392
 
387
393
  header_params = {}
@@ -472,10 +478,11 @@ module Google
472
478
  # Customize the options with defaults
473
479
  metadata = @config.rpcs.cancel_operation.metadata.to_h
474
480
 
475
- # Set x-goog-api-client and x-goog-user-project headers
481
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
476
482
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
477
483
  lib_name: @config.lib_name, lib_version: @config.lib_version,
478
484
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
485
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
479
486
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
480
487
 
481
488
  header_params = {}
@@ -576,10 +583,11 @@ module Google
576
583
  # Customize the options with defaults
577
584
  metadata = @config.rpcs.wait_operation.metadata.to_h
578
585
 
579
- # Set x-goog-api-client and x-goog-user-project headers
586
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
580
587
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
581
588
  lib_name: @config.lib_name, lib_version: @config.lib_version,
582
589
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
590
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
583
591
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
584
592
 
585
593
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -34,6 +34,9 @@ module Google
34
34
  # Managed Apache Airflow Environments.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "composer.$UNIVERSE_DOMAIN$"
39
42
 
@@ -233,12 +236,13 @@ module Google
233
236
  # Customize the options with defaults
234
237
  call_metadata = @config.rpcs.create_environment.metadata.to_h
235
238
 
236
- # Set x-goog-api-client and x-goog-user-project headers
239
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
237
240
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
238
241
  lib_name: @config.lib_name, lib_version: @config.lib_version,
239
242
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
240
243
  transports_version_send: [:rest]
241
244
 
245
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
242
246
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
243
247
 
244
248
  options.apply_defaults timeout: @config.rpcs.create_environment.timeout,
@@ -313,12 +317,13 @@ module Google
313
317
  # Customize the options with defaults
314
318
  call_metadata = @config.rpcs.get_environment.metadata.to_h
315
319
 
316
- # Set x-goog-api-client and x-goog-user-project headers
320
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
317
321
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
318
322
  lib_name: @config.lib_name, lib_version: @config.lib_version,
319
323
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
320
324
  transports_version_send: [:rest]
321
325
 
326
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
322
327
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
323
328
 
324
329
  options.apply_defaults timeout: @config.rpcs.get_environment.timeout,
@@ -400,12 +405,13 @@ module Google
400
405
  # Customize the options with defaults
401
406
  call_metadata = @config.rpcs.list_environments.metadata.to_h
402
407
 
403
- # Set x-goog-api-client and x-goog-user-project headers
408
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
404
409
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
405
410
  lib_name: @config.lib_name, lib_version: @config.lib_version,
406
411
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
407
412
  transports_version_send: [:rest]
408
413
 
414
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
409
415
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
410
416
 
411
417
  options.apply_defaults timeout: @config.rpcs.list_environments.timeout,
@@ -614,12 +620,13 @@ module Google
614
620
  # Customize the options with defaults
615
621
  call_metadata = @config.rpcs.update_environment.metadata.to_h
616
622
 
617
- # Set x-goog-api-client and x-goog-user-project headers
623
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
618
624
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
619
625
  lib_name: @config.lib_name, lib_version: @config.lib_version,
620
626
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
621
627
  transports_version_send: [:rest]
622
628
 
629
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
623
630
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
624
631
 
625
632
  options.apply_defaults timeout: @config.rpcs.update_environment.timeout,
@@ -701,12 +708,13 @@ module Google
701
708
  # Customize the options with defaults
702
709
  call_metadata = @config.rpcs.delete_environment.metadata.to_h
703
710
 
704
- # Set x-goog-api-client and x-goog-user-project headers
711
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
705
712
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
706
713
  lib_name: @config.lib_name, lib_version: @config.lib_version,
707
714
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
708
715
  transports_version_send: [:rest]
709
716
 
717
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
710
718
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
711
719
 
712
720
  options.apply_defaults timeout: @config.rpcs.delete_environment.timeout,
@@ -790,12 +798,13 @@ module Google
790
798
  # Customize the options with defaults
791
799
  call_metadata = @config.rpcs.execute_airflow_command.metadata.to_h
792
800
 
793
- # Set x-goog-api-client and x-goog-user-project headers
801
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
794
802
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
795
803
  lib_name: @config.lib_name, lib_version: @config.lib_version,
796
804
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
797
805
  transports_version_send: [:rest]
798
806
 
807
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
799
808
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
800
809
 
801
810
  options.apply_defaults timeout: @config.rpcs.execute_airflow_command.timeout,
@@ -878,12 +887,13 @@ module Google
878
887
  # Customize the options with defaults
879
888
  call_metadata = @config.rpcs.stop_airflow_command.metadata.to_h
880
889
 
881
- # Set x-goog-api-client and x-goog-user-project headers
890
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
882
891
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
883
892
  lib_name: @config.lib_name, lib_version: @config.lib_version,
884
893
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
885
894
  transports_version_send: [:rest]
886
895
 
896
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
887
897
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
888
898
 
889
899
  options.apply_defaults timeout: @config.rpcs.stop_airflow_command.timeout,
@@ -965,12 +975,13 @@ module Google
965
975
  # Customize the options with defaults
966
976
  call_metadata = @config.rpcs.poll_airflow_command.metadata.to_h
967
977
 
968
- # Set x-goog-api-client and x-goog-user-project headers
978
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
969
979
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
970
980
  lib_name: @config.lib_name, lib_version: @config.lib_version,
971
981
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
972
982
  transports_version_send: [:rest]
973
983
 
984
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
974
985
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
975
986
 
976
987
  options.apply_defaults timeout: @config.rpcs.poll_airflow_command.timeout,
@@ -1064,12 +1075,13 @@ module Google
1064
1075
  # Customize the options with defaults
1065
1076
  call_metadata = @config.rpcs.list_workloads.metadata.to_h
1066
1077
 
1067
- # Set x-goog-api-client and x-goog-user-project headers
1078
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1068
1079
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1069
1080
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1070
1081
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
1071
1082
  transports_version_send: [:rest]
1072
1083
 
1084
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1073
1085
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1074
1086
 
1075
1087
  options.apply_defaults timeout: @config.rpcs.list_workloads.timeout,
@@ -1149,12 +1161,13 @@ module Google
1149
1161
  # Customize the options with defaults
1150
1162
  call_metadata = @config.rpcs.create_user_workloads_secret.metadata.to_h
1151
1163
 
1152
- # Set x-goog-api-client and x-goog-user-project headers
1164
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1153
1165
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1154
1166
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1155
1167
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
1156
1168
  transports_version_send: [:rest]
1157
1169
 
1170
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1158
1171
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1159
1172
 
1160
1173
  options.apply_defaults timeout: @config.rpcs.create_user_workloads_secret.timeout,
@@ -1232,12 +1245,13 @@ module Google
1232
1245
  # Customize the options with defaults
1233
1246
  call_metadata = @config.rpcs.get_user_workloads_secret.metadata.to_h
1234
1247
 
1235
- # Set x-goog-api-client and x-goog-user-project headers
1248
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1236
1249
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1237
1250
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1238
1251
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
1239
1252
  transports_version_send: [:rest]
1240
1253
 
1254
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1241
1255
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1242
1256
 
1243
1257
  options.apply_defaults timeout: @config.rpcs.get_user_workloads_secret.timeout,
@@ -1323,12 +1337,13 @@ module Google
1323
1337
  # Customize the options with defaults
1324
1338
  call_metadata = @config.rpcs.list_user_workloads_secrets.metadata.to_h
1325
1339
 
1326
- # Set x-goog-api-client and x-goog-user-project headers
1340
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1327
1341
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1328
1342
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1329
1343
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
1330
1344
  transports_version_send: [:rest]
1331
1345
 
1346
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1332
1347
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1333
1348
 
1334
1349
  options.apply_defaults timeout: @config.rpcs.list_user_workloads_secrets.timeout,
@@ -1405,12 +1420,13 @@ module Google
1405
1420
  # Customize the options with defaults
1406
1421
  call_metadata = @config.rpcs.update_user_workloads_secret.metadata.to_h
1407
1422
 
1408
- # Set x-goog-api-client and x-goog-user-project headers
1423
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1409
1424
  call_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::Orchestration::Airflow::Service::V1::VERSION,
1412
1427
  transports_version_send: [:rest]
1413
1428
 
1429
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1414
1430
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1415
1431
 
1416
1432
  options.apply_defaults timeout: @config.rpcs.update_user_workloads_secret.timeout,
@@ -1487,12 +1503,13 @@ module Google
1487
1503
  # Customize the options with defaults
1488
1504
  call_metadata = @config.rpcs.delete_user_workloads_secret.metadata.to_h
1489
1505
 
1490
- # Set x-goog-api-client and x-goog-user-project headers
1506
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1491
1507
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1492
1508
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1493
1509
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
1494
1510
  transports_version_send: [:rest]
1495
1511
 
1512
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1496
1513
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1497
1514
 
1498
1515
  options.apply_defaults timeout: @config.rpcs.delete_user_workloads_secret.timeout,
@@ -1571,12 +1588,13 @@ module Google
1571
1588
  # Customize the options with defaults
1572
1589
  call_metadata = @config.rpcs.create_user_workloads_config_map.metadata.to_h
1573
1590
 
1574
- # Set x-goog-api-client and x-goog-user-project headers
1591
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1575
1592
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1576
1593
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1577
1594
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
1578
1595
  transports_version_send: [:rest]
1579
1596
 
1597
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1580
1598
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1581
1599
 
1582
1600
  options.apply_defaults timeout: @config.rpcs.create_user_workloads_config_map.timeout,
@@ -1653,12 +1671,13 @@ module Google
1653
1671
  # Customize the options with defaults
1654
1672
  call_metadata = @config.rpcs.get_user_workloads_config_map.metadata.to_h
1655
1673
 
1656
- # Set x-goog-api-client and x-goog-user-project headers
1674
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1657
1675
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1658
1676
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1659
1677
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
1660
1678
  transports_version_send: [:rest]
1661
1679
 
1680
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1662
1681
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1663
1682
 
1664
1683
  options.apply_defaults timeout: @config.rpcs.get_user_workloads_config_map.timeout,
@@ -1744,12 +1763,13 @@ module Google
1744
1763
  # Customize the options with defaults
1745
1764
  call_metadata = @config.rpcs.list_user_workloads_config_maps.metadata.to_h
1746
1765
 
1747
- # Set x-goog-api-client and x-goog-user-project headers
1766
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1748
1767
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1749
1768
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1750
1769
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
1751
1770
  transports_version_send: [:rest]
1752
1771
 
1772
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1753
1773
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1754
1774
 
1755
1775
  options.apply_defaults timeout: @config.rpcs.list_user_workloads_config_maps.timeout,
@@ -1826,12 +1846,13 @@ module Google
1826
1846
  # Customize the options with defaults
1827
1847
  call_metadata = @config.rpcs.update_user_workloads_config_map.metadata.to_h
1828
1848
 
1829
- # Set x-goog-api-client and x-goog-user-project headers
1849
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1830
1850
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1831
1851
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1832
1852
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
1833
1853
  transports_version_send: [:rest]
1834
1854
 
1855
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1835
1856
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1836
1857
 
1837
1858
  options.apply_defaults timeout: @config.rpcs.update_user_workloads_config_map.timeout,
@@ -1908,12 +1929,13 @@ module Google
1908
1929
  # Customize the options with defaults
1909
1930
  call_metadata = @config.rpcs.delete_user_workloads_config_map.metadata.to_h
1910
1931
 
1911
- # Set x-goog-api-client and x-goog-user-project headers
1932
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1912
1933
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1913
1934
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1914
1935
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
1915
1936
  transports_version_send: [:rest]
1916
1937
 
1938
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1917
1939
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1918
1940
 
1919
1941
  options.apply_defaults timeout: @config.rpcs.delete_user_workloads_config_map.timeout,
@@ -2000,12 +2022,13 @@ module Google
2000
2022
  # Customize the options with defaults
2001
2023
  call_metadata = @config.rpcs.save_snapshot.metadata.to_h
2002
2024
 
2003
- # Set x-goog-api-client and x-goog-user-project headers
2025
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2004
2026
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2005
2027
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2006
2028
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
2007
2029
  transports_version_send: [:rest]
2008
2030
 
2031
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2009
2032
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2010
2033
 
2011
2034
  options.apply_defaults timeout: @config.rpcs.save_snapshot.timeout,
@@ -2105,12 +2128,13 @@ module Google
2105
2128
  # Customize the options with defaults
2106
2129
  call_metadata = @config.rpcs.load_snapshot.metadata.to_h
2107
2130
 
2108
- # Set x-goog-api-client and x-goog-user-project headers
2131
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2109
2132
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2110
2133
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2111
2134
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
2112
2135
  transports_version_send: [:rest]
2113
2136
 
2137
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2114
2138
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2115
2139
 
2116
2140
  options.apply_defaults timeout: @config.rpcs.load_snapshot.timeout,
@@ -2192,12 +2216,13 @@ module Google
2192
2216
  # Customize the options with defaults
2193
2217
  call_metadata = @config.rpcs.database_failover.metadata.to_h
2194
2218
 
2195
- # Set x-goog-api-client and x-goog-user-project headers
2219
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2196
2220
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2197
2221
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2198
2222
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
2199
2223
  transports_version_send: [:rest]
2200
2224
 
2225
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2201
2226
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2202
2227
 
2203
2228
  options.apply_defaults timeout: @config.rpcs.database_failover.timeout,
@@ -2272,12 +2297,13 @@ module Google
2272
2297
  # Customize the options with defaults
2273
2298
  call_metadata = @config.rpcs.fetch_database_properties.metadata.to_h
2274
2299
 
2275
- # Set x-goog-api-client and x-goog-user-project headers
2300
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2276
2301
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2277
2302
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2278
2303
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
2279
2304
  transports_version_send: [:rest]
2280
2305
 
2306
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2281
2307
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2282
2308
 
2283
2309
  options.apply_defaults timeout: @config.rpcs.fetch_database_properties.timeout,
@@ -28,6 +28,9 @@ module Google
28
28
  module Rest
29
29
  # Service that implements Longrunning Operations API.
30
30
  class Operations
31
+ # @private
32
+ API_VERSION = ""
33
+
31
34
  # @private
32
35
  DEFAULT_ENDPOINT_TEMPLATE = "composer.$UNIVERSE_DOMAIN$"
33
36
 
@@ -183,12 +186,13 @@ module Google
183
186
  # Customize the options with defaults
184
187
  call_metadata = @config.rpcs.list_operations.metadata.to_h
185
188
 
186
- # Set x-goog-api-client and x-goog-user-project headers
189
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
187
190
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
188
191
  lib_name: @config.lib_name, lib_version: @config.lib_version,
189
192
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
190
193
  transports_version_send: [:rest]
191
194
 
195
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
192
196
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
193
197
 
194
198
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -271,12 +275,13 @@ module Google
271
275
  # Customize the options with defaults
272
276
  call_metadata = @config.rpcs.get_operation.metadata.to_h
273
277
 
274
- # Set x-goog-api-client and x-goog-user-project headers
278
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
275
279
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
276
280
  lib_name: @config.lib_name, lib_version: @config.lib_version,
277
281
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
278
282
  transports_version_send: [:rest]
279
283
 
284
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
280
285
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
281
286
 
282
287
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -353,12 +358,13 @@ module Google
353
358
  # Customize the options with defaults
354
359
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
355
360
 
356
- # Set x-goog-api-client and x-goog-user-project headers
361
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
357
362
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
358
363
  lib_name: @config.lib_name, lib_version: @config.lib_version,
359
364
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
360
365
  transports_version_send: [:rest]
361
366
 
367
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
362
368
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
363
369
 
364
370
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -440,12 +446,13 @@ module Google
440
446
  # Customize the options with defaults
441
447
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
442
448
 
443
- # Set x-goog-api-client and x-goog-user-project headers
449
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
444
450
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
445
451
  lib_name: @config.lib_name, lib_version: @config.lib_version,
446
452
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
447
453
  transports_version_send: [:rest]
448
454
 
455
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
449
456
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
450
457
 
451
458
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # Readonly service to query available ImageVersions.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "composer.$UNIVERSE_DOMAIN$"
37
40
 
@@ -226,10 +229,11 @@ module Google
226
229
  # Customize the options with defaults
227
230
  metadata = @config.rpcs.list_image_versions.metadata.to_h
228
231
 
229
- # Set x-goog-api-client and x-goog-user-project headers
232
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
230
233
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
231
234
  lib_name: @config.lib_name, lib_version: @config.lib_version,
232
235
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
236
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
233
237
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
238
 
235
239
  header_params = {}
@@ -34,6 +34,9 @@ module Google
34
34
  # Readonly service to query available ImageVersions.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "composer.$UNIVERSE_DOMAIN$"
39
42
 
@@ -218,12 +221,13 @@ module Google
218
221
  # Customize the options with defaults
219
222
  call_metadata = @config.rpcs.list_image_versions.metadata.to_h
220
223
 
221
- # Set x-goog-api-client and x-goog-user-project headers
224
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
222
225
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
223
226
  lib_name: @config.lib_name, lib_version: @config.lib_version,
224
227
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
225
228
  transports_version_send: [:rest]
226
229
 
230
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
227
231
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
228
232
 
229
233
  options.apply_defaults timeout: @config.rpcs.list_image_versions.timeout,
@@ -23,7 +23,7 @@ module Google
23
23
  module Airflow
24
24
  module Service
25
25
  module V1
26
- VERSION = "0.11.0"
26
+ VERSION = "1.0.1"
27
27
  end
28
28
  end
29
29
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -192,9 +196,26 @@ module Google
192
196
  # @!attribute [rw] common
193
197
  # @return [::Google::Api::CommonLanguageSettings]
194
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
195
202
  class PythonSettings
196
203
  include ::Google::Protobuf::MessageExts
197
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
198
219
  end
199
220
 
200
221
  # Settings for Node client libraries.
@@ -286,6 +307,13 @@ module Google
286
307
  # @return [::String]
287
308
  # The fully qualified name of the method, for which the options below apply.
288
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
289
317
  # @!attribute [rw] long_running
290
318
  # @return [::Google::Api::MethodSettings::LongRunning]
291
319
  # Describes settings to use for long-running operations when generating
@@ -294,17 +322,14 @@ module Google
294
322
  #
295
323
  # Example of a YAML configuration::
296
324
  #
297
- # publishing:
298
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
299
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
328
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
303
330
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
308
333
  # @!attribute [rw] auto_populated_fields
309
334
  # @return [::Array<::String>]
310
335
  # List of top-level fields of the request message, that should be
@@ -313,8 +338,8 @@ module Google
313
338
  #
314
339
  # Example of a YAML configuration:
315
340
  #
316
- # publishing:
317
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
318
343
  # - selector: google.example.v1.ExampleService.CreateExample
319
344
  # auto_populated_fields:
320
345
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-orchestration-airflow-service-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common