google-cloud-gke_hub-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db96b8b08604afbb38a5d1950c552e2fd872b651780b4bbb05faa7d6e1a5810f
4
- data.tar.gz: 5aafad4d9aa51c511005288e69c3c82db70ed8e72002d9c490e51d3e2d6588cb
3
+ metadata.gz: f6ef92369aa99ac147f67ad9113b32bd75235d910bdb197a2d8040c87fb15135
4
+ data.tar.gz: 8a8766140af23a6f6c1d95fceaf867b346613d0f72bc619f5bcc139402a641e0
5
5
  SHA512:
6
- metadata.gz: dd07d48882aa8a5f24ea313d37bdc98938ca608dc6fec9e4d2b460261c4253ce9f67c2b77ad27f23c2521bcbebca8b905188af305ae67de713a9b2c727c0b292
7
- data.tar.gz: 46f5323d781faaafe10c957a93119055cd2612f493f09beb4545ead0de703d8de457c7d509d92af6635de0d866d638a997736745a91923e79eff83bfa95aa3dc
6
+ metadata.gz: f9e2ebab15b6c401e657f6ca408ef8c3564c9a92e809cfa352a5be4c2c5fdbafe7a70b2db1955c2b431df2eea5874d482529f6a6d5e20fa84dfd78554a8f4a4d
7
+ data.tar.gz: 8a262bc8cfa3d8ef5252e314e61a78cb9820b0c49ff7f971d17078685a0dda89c13af404158e6b3f6ba63fcb9422dd17246fefd9b9159c572e3c17d749c282aa
@@ -46,6 +46,9 @@ module Google
46
46
  # with Membership resources.
47
47
  #
48
48
  class Client
49
+ # @private
50
+ API_VERSION = ""
51
+
49
52
  # @private
50
53
  DEFAULT_ENDPOINT_TEMPLATE = "gkehub.$UNIVERSE_DOMAIN$"
51
54
 
@@ -288,10 +291,11 @@ module Google
288
291
  # Customize the options with defaults
289
292
  metadata = @config.rpcs.list_memberships.metadata.to_h
290
293
 
291
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
292
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
293
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
294
297
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
295
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
296
300
 
297
301
  header_params = {}
@@ -407,10 +411,11 @@ module Google
407
411
  # Customize the options with defaults
408
412
  metadata = @config.rpcs.list_features.metadata.to_h
409
413
 
410
- # Set x-goog-api-client and x-goog-user-project headers
414
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
411
415
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
412
416
  lib_name: @config.lib_name, lib_version: @config.lib_version,
413
417
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
418
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
414
419
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
415
420
 
416
421
  header_params = {}
@@ -494,10 +499,11 @@ module Google
494
499
  # Customize the options with defaults
495
500
  metadata = @config.rpcs.get_membership.metadata.to_h
496
501
 
497
- # Set x-goog-api-client and x-goog-user-project headers
502
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
498
503
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
499
504
  lib_name: @config.lib_name, lib_version: @config.lib_version,
500
505
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
506
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
501
507
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
502
508
 
503
509
  header_params = {}
@@ -580,10 +586,11 @@ module Google
580
586
  # Customize the options with defaults
581
587
  metadata = @config.rpcs.get_feature.metadata.to_h
582
588
 
583
- # Set x-goog-api-client and x-goog-user-project headers
589
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
584
590
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
585
591
  lib_name: @config.lib_name, lib_version: @config.lib_version,
586
592
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
593
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
587
594
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
588
595
 
589
596
  header_params = {}
@@ -703,10 +710,11 @@ module Google
703
710
  # Customize the options with defaults
704
711
  metadata = @config.rpcs.create_membership.metadata.to_h
705
712
 
706
- # Set x-goog-api-client and x-goog-user-project headers
713
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
707
714
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
708
715
  lib_name: @config.lib_name, lib_version: @config.lib_version,
709
716
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
717
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
710
718
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
711
719
 
712
720
  header_params = {}
@@ -815,10 +823,11 @@ module Google
815
823
  # Customize the options with defaults
816
824
  metadata = @config.rpcs.create_feature.metadata.to_h
817
825
 
818
- # Set x-goog-api-client and x-goog-user-project headers
826
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
819
827
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
820
828
  lib_name: @config.lib_name, lib_version: @config.lib_version,
821
829
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
830
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
822
831
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
823
832
 
824
833
  header_params = {}
@@ -931,10 +940,11 @@ module Google
931
940
  # Customize the options with defaults
932
941
  metadata = @config.rpcs.delete_membership.metadata.to_h
933
942
 
934
- # Set x-goog-api-client and x-goog-user-project headers
943
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
935
944
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
936
945
  lib_name: @config.lib_name, lib_version: @config.lib_version,
937
946
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
947
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
938
948
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
939
949
 
940
950
  header_params = {}
@@ -1043,10 +1053,11 @@ module Google
1043
1053
  # Customize the options with defaults
1044
1054
  metadata = @config.rpcs.delete_feature.metadata.to_h
1045
1055
 
1046
- # Set x-goog-api-client and x-goog-user-project headers
1056
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1047
1057
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1048
1058
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1049
1059
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
1060
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1050
1061
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1051
1062
 
1052
1063
  header_params = {}
@@ -1162,10 +1173,11 @@ module Google
1162
1173
  # Customize the options with defaults
1163
1174
  metadata = @config.rpcs.update_membership.metadata.to_h
1164
1175
 
1165
- # Set x-goog-api-client and x-goog-user-project headers
1176
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1166
1177
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1167
1178
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1168
1179
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
1180
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1169
1181
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1170
1182
 
1171
1183
  header_params = {}
@@ -1281,10 +1293,11 @@ module Google
1281
1293
  # Customize the options with defaults
1282
1294
  metadata = @config.rpcs.update_feature.metadata.to_h
1283
1295
 
1284
- # Set x-goog-api-client and x-goog-user-project headers
1296
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1285
1297
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1286
1298
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1287
1299
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
1300
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1288
1301
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1289
1302
 
1290
1303
  header_params = {}
@@ -1395,10 +1408,11 @@ module Google
1395
1408
  # Customize the options with defaults
1396
1409
  metadata = @config.rpcs.generate_connect_manifest.metadata.to_h
1397
1410
 
1398
- # Set x-goog-api-client and x-goog-user-project headers
1411
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1399
1412
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1400
1413
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1401
1414
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
1415
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1402
1416
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1403
1417
 
1404
1418
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module GkeHub
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 = "gkehub.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -48,6 +48,9 @@ module Google
48
48
  # with Membership resources.
49
49
  #
50
50
  class Client
51
+ # @private
52
+ API_VERSION = ""
53
+
51
54
  # @private
52
55
  DEFAULT_ENDPOINT_TEMPLATE = "gkehub.$UNIVERSE_DOMAIN$"
53
56
 
@@ -280,12 +283,13 @@ module Google
280
283
  # Customize the options with defaults
281
284
  call_metadata = @config.rpcs.list_memberships.metadata.to_h
282
285
 
283
- # Set x-goog-api-client and x-goog-user-project headers
286
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
284
287
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
285
288
  lib_name: @config.lib_name, lib_version: @config.lib_version,
286
289
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION,
287
290
  transports_version_send: [:rest]
288
291
 
292
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
289
293
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
290
294
 
291
295
  options.apply_defaults timeout: @config.rpcs.list_memberships.timeout,
@@ -391,12 +395,13 @@ module Google
391
395
  # Customize the options with defaults
392
396
  call_metadata = @config.rpcs.list_features.metadata.to_h
393
397
 
394
- # Set x-goog-api-client and x-goog-user-project headers
398
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
395
399
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
396
400
  lib_name: @config.lib_name, lib_version: @config.lib_version,
397
401
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION,
398
402
  transports_version_send: [:rest]
399
403
 
404
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
400
405
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
401
406
 
402
407
  options.apply_defaults timeout: @config.rpcs.list_features.timeout,
@@ -471,12 +476,13 @@ module Google
471
476
  # Customize the options with defaults
472
477
  call_metadata = @config.rpcs.get_membership.metadata.to_h
473
478
 
474
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
475
480
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
476
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
477
482
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION,
478
483
  transports_version_send: [:rest]
479
484
 
485
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
480
486
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
481
487
 
482
488
  options.apply_defaults timeout: @config.rpcs.get_membership.timeout,
@@ -550,12 +556,13 @@ module Google
550
556
  # Customize the options with defaults
551
557
  call_metadata = @config.rpcs.get_feature.metadata.to_h
552
558
 
553
- # Set x-goog-api-client and x-goog-user-project headers
559
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
554
560
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
555
561
  lib_name: @config.lib_name, lib_version: @config.lib_version,
556
562
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION,
557
563
  transports_version_send: [:rest]
558
564
 
565
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
559
566
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
560
567
 
561
568
  options.apply_defaults timeout: @config.rpcs.get_feature.timeout,
@@ -666,12 +673,13 @@ module Google
666
673
  # Customize the options with defaults
667
674
  call_metadata = @config.rpcs.create_membership.metadata.to_h
668
675
 
669
- # Set x-goog-api-client and x-goog-user-project headers
676
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
670
677
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
671
678
  lib_name: @config.lib_name, lib_version: @config.lib_version,
672
679
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION,
673
680
  transports_version_send: [:rest]
674
681
 
682
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
675
683
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
676
684
 
677
685
  options.apply_defaults timeout: @config.rpcs.create_membership.timeout,
@@ -771,12 +779,13 @@ module Google
771
779
  # Customize the options with defaults
772
780
  call_metadata = @config.rpcs.create_feature.metadata.to_h
773
781
 
774
- # Set x-goog-api-client and x-goog-user-project headers
782
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
775
783
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
776
784
  lib_name: @config.lib_name, lib_version: @config.lib_version,
777
785
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION,
778
786
  transports_version_send: [:rest]
779
787
 
788
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
780
789
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
781
790
 
782
791
  options.apply_defaults timeout: @config.rpcs.create_feature.timeout,
@@ -880,12 +889,13 @@ module Google
880
889
  # Customize the options with defaults
881
890
  call_metadata = @config.rpcs.delete_membership.metadata.to_h
882
891
 
883
- # Set x-goog-api-client and x-goog-user-project headers
892
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
884
893
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
885
894
  lib_name: @config.lib_name, lib_version: @config.lib_version,
886
895
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION,
887
896
  transports_version_send: [:rest]
888
897
 
898
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
889
899
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
890
900
 
891
901
  options.apply_defaults timeout: @config.rpcs.delete_membership.timeout,
@@ -985,12 +995,13 @@ module Google
985
995
  # Customize the options with defaults
986
996
  call_metadata = @config.rpcs.delete_feature.metadata.to_h
987
997
 
988
- # Set x-goog-api-client and x-goog-user-project headers
998
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
989
999
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
990
1000
  lib_name: @config.lib_name, lib_version: @config.lib_version,
991
1001
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION,
992
1002
  transports_version_send: [:rest]
993
1003
 
1004
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
994
1005
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
995
1006
 
996
1007
  options.apply_defaults timeout: @config.rpcs.delete_feature.timeout,
@@ -1097,12 +1108,13 @@ module Google
1097
1108
  # Customize the options with defaults
1098
1109
  call_metadata = @config.rpcs.update_membership.metadata.to_h
1099
1110
 
1100
- # Set x-goog-api-client and x-goog-user-project headers
1111
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1101
1112
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1102
1113
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1103
1114
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION,
1104
1115
  transports_version_send: [:rest]
1105
1116
 
1117
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1106
1118
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1107
1119
 
1108
1120
  options.apply_defaults timeout: @config.rpcs.update_membership.timeout,
@@ -1209,12 +1221,13 @@ module Google
1209
1221
  # Customize the options with defaults
1210
1222
  call_metadata = @config.rpcs.update_feature.metadata.to_h
1211
1223
 
1212
- # Set x-goog-api-client and x-goog-user-project headers
1224
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1213
1225
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1214
1226
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1215
1227
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION,
1216
1228
  transports_version_send: [:rest]
1217
1229
 
1230
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1218
1231
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1219
1232
 
1220
1233
  options.apply_defaults timeout: @config.rpcs.update_feature.timeout,
@@ -1316,12 +1329,13 @@ module Google
1316
1329
  # Customize the options with defaults
1317
1330
  call_metadata = @config.rpcs.generate_connect_manifest.metadata.to_h
1318
1331
 
1319
- # Set x-goog-api-client and x-goog-user-project headers
1332
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1320
1333
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1321
1334
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1322
1335
  gapic_version: ::Google::Cloud::GkeHub::V1::VERSION,
1323
1336
  transports_version_send: [:rest]
1324
1337
 
1338
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1325
1339
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1326
1340
 
1327
1341
  options.apply_defaults timeout: @config.rpcs.generate_connect_manifest.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 = "gkehub.$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::GkeHub::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::GkeHub::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::GkeHub::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::GkeHub::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 GkeHub
23
23
  module V1
24
- VERSION = "0.9.0"
24
+ VERSION = "0.10.0"
25
25
  end
26
26
  end
27
27
  end
@@ -7,7 +7,7 @@ require 'google/protobuf'
7
7
  require 'google/protobuf/timestamp_pb'
8
8
 
9
9
 
10
- descriptor_data = "\n>google/cloud/gkehub/v1/configmanagement/configmanagement.proto\x12\'google.cloud.gkehub.configmanagement.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe6\x03\n\x0fMembershipState\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t\x12P\n\x0fmembership_spec\x18\x02 \x01(\x0b\x32\x37.google.cloud.gkehub.configmanagement.v1.MembershipSpec\x12N\n\x0eoperator_state\x18\x03 \x01(\x0b\x32\x36.google.cloud.gkehub.configmanagement.v1.OperatorState\x12S\n\x11\x63onfig_sync_state\x18\x04 \x01(\x0b\x32\x38.google.cloud.gkehub.configmanagement.v1.ConfigSyncState\x12_\n\x17policy_controller_state\x18\x05 \x01(\x0b\x32>.google.cloud.gkehub.configmanagement.v1.PolicyControllerState\x12\x65\n\x1ahierarchy_controller_state\x18\x07 \x01(\x0b\x32\x41.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState\"\xa3\x02\n\x0eMembershipSpec\x12H\n\x0b\x63onfig_sync\x18\x01 \x01(\x0b\x32\x33.google.cloud.gkehub.configmanagement.v1.ConfigSync\x12T\n\x11policy_controller\x18\x02 \x01(\x0b\x32\x39.google.cloud.gkehub.configmanagement.v1.PolicyController\x12`\n\x14hierarchy_controller\x18\x04 \x01(\x0b\x32\x42.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig\x12\x0f\n\x07version\x18\n \x01(\t\"d\n\nConfigSync\x12?\n\x03git\x18\x07 \x01(\x0b\x32\x32.google.cloud.gkehub.configmanagement.v1.GitConfig\x12\x15\n\rsource_format\x18\x08 \x01(\t\"\xbe\x01\n\tGitConfig\x12\x11\n\tsync_repo\x18\x01 \x01(\t\x12\x13\n\x0bsync_branch\x18\x02 \x01(\t\x12\x12\n\npolicy_dir\x18\x03 \x01(\t\x12\x16\n\x0esync_wait_secs\x18\x04 \x01(\x03\x12\x10\n\x08sync_rev\x18\x05 \x01(\t\x12\x13\n\x0bsecret_type\x18\x06 \x01(\t\x12\x13\n\x0bhttps_proxy\x18\x07 \x01(\t\x12!\n\x19gcp_service_account_email\x18\x08 \x01(\t\"\x89\x02\n\x10PolicyController\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\'\n\x1atemplate_library_installed\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12#\n\x16\x61udit_interval_seconds\x18\x03 \x01(\x03H\x01\x88\x01\x01\x12\x1d\n\x15\x65xemptable_namespaces\x18\x04 \x03(\t\x12!\n\x19referential_rules_enabled\x18\x05 \x01(\x08\x12\x1a\n\x12log_denies_enabled\x18\x06 \x01(\x08\x42\x1d\n\x1b_template_library_installedB\x19\n\x17_audit_interval_seconds\"x\n\x19HierarchyControllerConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x1e\n\x16\x65nable_pod_tree_labels\x18\x02 \x01(\x08\x12*\n\"enable_hierarchical_resource_quota\x18\x03 \x01(\x08\"\xb8\x01\n\"HierarchyControllerDeploymentState\x12\x45\n\x03hnc\x18\x01 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12K\n\textension\x18\x02 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\"<\n\x1aHierarchyControllerVersion\x12\x0b\n\x03hnc\x18\x01 \x01(\t\x12\x11\n\textension\x18\x02 \x01(\t\"\xcc\x01\n\x18HierarchyControllerState\x12T\n\x07version\x18\x01 \x01(\x0b\x32\x43.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion\x12Z\n\x05state\x18\x02 \x01(\x0b\x32K.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState\"\xbb\x01\n\rOperatorState\x12\x0f\n\x07version\x18\x01 \x01(\t\x12R\n\x10\x64\x65ployment_state\x18\x02 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12\x45\n\x06\x65rrors\x18\x03 \x03(\x0b\x32\x35.google.cloud.gkehub.configmanagement.v1.InstallError\"%\n\x0cInstallError\x12\x15\n\rerror_message\x18\x01 \x01(\t\"\x84\x02\n\x0f\x43onfigSyncState\x12K\n\x07version\x18\x01 \x01(\x0b\x32:.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion\x12\\\n\x10\x64\x65ployment_state\x18\x02 \x01(\x0b\x32\x42.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState\x12\x46\n\nsync_state\x18\x03 \x01(\x0b\x32\x32.google.cloud.gkehub.configmanagement.v1.SyncState\"\x8d\x01\n\x11\x43onfigSyncVersion\x12\x10\n\x08importer\x18\x01 \x01(\t\x12\x0e\n\x06syncer\x18\x02 \x01(\t\x12\x10\n\x08git_sync\x18\x03 \x01(\t\x12\x0f\n\x07monitor\x18\x04 \x01(\t\x12\x1a\n\x12reconciler_manager\x18\x05 \x01(\t\x12\x17\n\x0froot_reconciler\x18\x06 \x01(\t\"\xf1\x03\n\x19\x43onfigSyncDeploymentState\x12J\n\x08importer\x18\x01 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12H\n\x06syncer\x18\x02 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12J\n\x08git_sync\x18\x03 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12I\n\x07monitor\x18\x04 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12T\n\x12reconciler_manager\x18\x05 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12Q\n\x0froot_reconciler\x18\x06 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\"\xbb\x03\n\tSyncState\x12\x14\n\x0csource_token\x18\x01 \x01(\t\x12\x14\n\x0cimport_token\x18\x02 \x01(\t\x12\x12\n\nsync_token\x18\x03 \x01(\t\x12\x15\n\tlast_sync\x18\x04 \x01(\tB\x02\x18\x01\x12\x32\n\x0elast_sync_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12I\n\x04\x63ode\x18\x05 \x01(\x0e\x32;.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode\x12\x42\n\x06\x65rrors\x18\x06 \x03(\x0b\x32\x32.google.cloud.gkehub.configmanagement.v1.SyncError\"\x93\x01\n\x08SyncCode\x12\x19\n\x15SYNC_CODE_UNSPECIFIED\x10\x00\x12\n\n\x06SYNCED\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\x12\n\x0eNOT_CONFIGURED\x10\x04\x12\x11\n\rNOT_INSTALLED\x10\x05\x12\x10\n\x0cUNAUTHORIZED\x10\x06\x12\x0f\n\x0bUNREACHABLE\x10\x07\"\x81\x01\n\tSyncError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12\x15\n\rerror_message\x18\x02 \x01(\t\x12O\n\x0f\x65rror_resources\x18\x03 \x03(\x0b\x32\x36.google.cloud.gkehub.configmanagement.v1.ErrorResource\"\xa8\x01\n\rErrorResource\x12\x13\n\x0bsource_path\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x1a\n\x12resource_namespace\x18\x03 \x01(\t\x12O\n\x0cresource_gvk\x18\x04 \x01(\x0b\x32\x39.google.cloud.gkehub.configmanagement.v1.GroupVersionKind\"@\n\x10GroupVersionKind\x12\r\n\x05group\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x0c\n\x04kind\x18\x03 \x01(\t\"\xc8\x01\n\x15PolicyControllerState\x12Q\n\x07version\x18\x01 \x01(\x0b\x32@.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion\x12\\\n\x10\x64\x65ployment_state\x18\x02 \x01(\x0b\x32\x42.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState\"*\n\x17PolicyControllerVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\"\xd6\x01\n\x19GatekeeperDeploymentState\x12\x65\n#gatekeeper_controller_manager_state\x18\x01 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12R\n\x10gatekeeper_audit\x18\x02 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState*`\n\x0f\x44\x65ploymentState\x12 \n\x1c\x44\x45PLOYMENT_STATE_UNSPECIFIED\x10\x00\x12\x11\n\rNOT_INSTALLED\x10\x01\x12\r\n\tINSTALLED\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x42\xa1\x02\n+com.google.cloud.gkehub.configmanagement.v1B\x15\x43onfigManagementProtoP\x01ZWcloud.google.com/go/gkehub/configmanagement/apiv1/configmanagementpb;configmanagementpb\xaa\x02\'Google.Cloud.GkeHub.ConfigManagement.V1\xca\x02\'Google\\Cloud\\GkeHub\\ConfigManagement\\V1\xea\x02+Google::Cloud::GkeHub::ConfigManagement::V1b\x06proto3"
10
+ descriptor_data = "\n>google/cloud/gkehub/v1/configmanagement/configmanagement.proto\x12\'google.cloud.gkehub.configmanagement.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe6\x03\n\x0fMembershipState\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t\x12P\n\x0fmembership_spec\x18\x02 \x01(\x0b\x32\x37.google.cloud.gkehub.configmanagement.v1.MembershipSpec\x12N\n\x0eoperator_state\x18\x03 \x01(\x0b\x32\x36.google.cloud.gkehub.configmanagement.v1.OperatorState\x12S\n\x11\x63onfig_sync_state\x18\x04 \x01(\x0b\x32\x38.google.cloud.gkehub.configmanagement.v1.ConfigSyncState\x12_\n\x17policy_controller_state\x18\x05 \x01(\x0b\x32>.google.cloud.gkehub.configmanagement.v1.PolicyControllerState\x12\x65\n\x1ahierarchy_controller_state\x18\x07 \x01(\x0b\x32\x41.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState\"\xe7\x03\n\x0eMembershipSpec\x12H\n\x0b\x63onfig_sync\x18\x01 \x01(\x0b\x32\x33.google.cloud.gkehub.configmanagement.v1.ConfigSync\x12T\n\x11policy_controller\x18\x02 \x01(\x0b\x32\x39.google.cloud.gkehub.configmanagement.v1.PolicyController\x12`\n\x14hierarchy_controller\x18\x04 \x01(\x0b\x32\x42.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig\x12\x0f\n\x07version\x18\n \x01(\t\x12\x0f\n\x07\x63luster\x18\x0b \x01(\t\x12V\n\nmanagement\x18\x0c \x01(\x0e\x32\x42.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management\"Y\n\nManagement\x12\x1a\n\x16MANAGEMENT_UNSPECIFIED\x10\x00\x12\x18\n\x14MANAGEMENT_AUTOMATIC\x10\x01\x12\x15\n\x11MANAGEMENT_MANUAL\x10\x02\"\x89\x02\n\nConfigSync\x12?\n\x03git\x18\x07 \x01(\x0b\x32\x32.google.cloud.gkehub.configmanagement.v1.GitConfig\x12\x15\n\rsource_format\x18\x08 \x01(\t\x12\x14\n\x07\x65nabled\x18\n \x01(\x08H\x00\x88\x01\x01\x12\x15\n\rprevent_drift\x18\x0b \x01(\x08\x12?\n\x03oci\x18\x0c \x01(\x0b\x32\x32.google.cloud.gkehub.configmanagement.v1.OciConfig\x12)\n!metrics_gcp_service_account_email\x18\x0f \x01(\tB\n\n\x08_enabled\"\xbe\x01\n\tGitConfig\x12\x11\n\tsync_repo\x18\x01 \x01(\t\x12\x13\n\x0bsync_branch\x18\x02 \x01(\t\x12\x12\n\npolicy_dir\x18\x03 \x01(\t\x12\x16\n\x0esync_wait_secs\x18\x04 \x01(\x03\x12\x10\n\x08sync_rev\x18\x05 \x01(\t\x12\x13\n\x0bsecret_type\x18\x06 \x01(\t\x12\x13\n\x0bhttps_proxy\x18\x07 \x01(\t\x12!\n\x19gcp_service_account_email\x18\x08 \x01(\t\"\x82\x01\n\tOciConfig\x12\x11\n\tsync_repo\x18\x01 \x01(\t\x12\x12\n\npolicy_dir\x18\x02 \x01(\t\x12\x16\n\x0esync_wait_secs\x18\x03 \x01(\x03\x12\x13\n\x0bsecret_type\x18\x04 \x01(\t\x12!\n\x19gcp_service_account_email\x18\x05 \x01(\t\"\x89\x02\n\x10PolicyController\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\'\n\x1atemplate_library_installed\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12#\n\x16\x61udit_interval_seconds\x18\x03 \x01(\x03H\x01\x88\x01\x01\x12\x1d\n\x15\x65xemptable_namespaces\x18\x04 \x03(\t\x12!\n\x19referential_rules_enabled\x18\x05 \x01(\x08\x12\x1a\n\x12log_denies_enabled\x18\x06 \x01(\x08\x42\x1d\n\x1b_template_library_installedB\x19\n\x17_audit_interval_seconds\"x\n\x19HierarchyControllerConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x1e\n\x16\x65nable_pod_tree_labels\x18\x02 \x01(\x08\x12*\n\"enable_hierarchical_resource_quota\x18\x03 \x01(\x08\"\xb8\x01\n\"HierarchyControllerDeploymentState\x12\x45\n\x03hnc\x18\x01 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12K\n\textension\x18\x02 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\"<\n\x1aHierarchyControllerVersion\x12\x0b\n\x03hnc\x18\x01 \x01(\t\x12\x11\n\textension\x18\x02 \x01(\t\"\xcc\x01\n\x18HierarchyControllerState\x12T\n\x07version\x18\x01 \x01(\x0b\x32\x43.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion\x12Z\n\x05state\x18\x02 \x01(\x0b\x32K.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState\"\xbb\x01\n\rOperatorState\x12\x0f\n\x07version\x18\x01 \x01(\t\x12R\n\x10\x64\x65ployment_state\x18\x02 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12\x45\n\x06\x65rrors\x18\x03 \x03(\x0b\x32\x35.google.cloud.gkehub.configmanagement.v1.InstallError\"%\n\x0cInstallError\x12\x15\n\rerror_message\x18\x01 \x01(\t\"\xc4\x06\n\x0f\x43onfigSyncState\x12K\n\x07version\x18\x01 \x01(\x0b\x32:.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion\x12\\\n\x10\x64\x65ployment_state\x18\x02 \x01(\x0b\x32\x42.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState\x12\x46\n\nsync_state\x18\x03 \x01(\x0b\x32\x32.google.cloud.gkehub.configmanagement.v1.SyncState\x12H\n\x06\x65rrors\x18\x04 \x03(\x0b\x32\x38.google.cloud.gkehub.configmanagement.v1.ConfigSyncError\x12W\n\x0crootsync_crd\x18\x05 \x01(\x0e\x32\x41.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState\x12W\n\x0creposync_crd\x18\x06 \x01(\x0e\x32\x41.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState\x12M\n\x05state\x18\x07 \x01(\x0e\x32>.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State\"h\n\x08\x43RDState\x12\x19\n\x15\x43RD_STATE_UNSPECIFIED\x10\x00\x12\x11\n\rNOT_INSTALLED\x10\x01\x12\r\n\tINSTALLED\x10\x02\x12\x0f\n\x0bTERMINATING\x10\x03\x12\x0e\n\nINSTALLING\x10\x04\"\x88\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x43ONFIG_SYNC_NOT_INSTALLED\x10\x01\x12\x19\n\x15\x43ONFIG_SYNC_INSTALLED\x10\x02\x12\x15\n\x11\x43ONFIG_SYNC_ERROR\x10\x03\x12\x17\n\x13\x43ONFIG_SYNC_PENDING\x10\x04\"(\n\x0f\x43onfigSyncError\x12\x15\n\rerror_message\x18\x01 \x01(\t\"\xa8\x01\n\x11\x43onfigSyncVersion\x12\x10\n\x08importer\x18\x01 \x01(\t\x12\x0e\n\x06syncer\x18\x02 \x01(\t\x12\x10\n\x08git_sync\x18\x03 \x01(\t\x12\x0f\n\x07monitor\x18\x04 \x01(\t\x12\x1a\n\x12reconciler_manager\x18\x05 \x01(\t\x12\x17\n\x0froot_reconciler\x18\x06 \x01(\t\x12\x19\n\x11\x61\x64mission_webhook\x18\x07 \x01(\t\"\xc6\x04\n\x19\x43onfigSyncDeploymentState\x12J\n\x08importer\x18\x01 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12H\n\x06syncer\x18\x02 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12J\n\x08git_sync\x18\x03 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12I\n\x07monitor\x18\x04 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12T\n\x12reconciler_manager\x18\x05 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12Q\n\x0froot_reconciler\x18\x06 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12S\n\x11\x61\x64mission_webhook\x18\x07 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\"\xbb\x03\n\tSyncState\x12\x14\n\x0csource_token\x18\x01 \x01(\t\x12\x14\n\x0cimport_token\x18\x02 \x01(\t\x12\x12\n\nsync_token\x18\x03 \x01(\t\x12\x15\n\tlast_sync\x18\x04 \x01(\tB\x02\x18\x01\x12\x32\n\x0elast_sync_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12I\n\x04\x63ode\x18\x05 \x01(\x0e\x32;.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode\x12\x42\n\x06\x65rrors\x18\x06 \x03(\x0b\x32\x32.google.cloud.gkehub.configmanagement.v1.SyncError\"\x93\x01\n\x08SyncCode\x12\x19\n\x15SYNC_CODE_UNSPECIFIED\x10\x00\x12\n\n\x06SYNCED\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\x12\n\x0eNOT_CONFIGURED\x10\x04\x12\x11\n\rNOT_INSTALLED\x10\x05\x12\x10\n\x0cUNAUTHORIZED\x10\x06\x12\x0f\n\x0bUNREACHABLE\x10\x07\"\x81\x01\n\tSyncError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12\x15\n\rerror_message\x18\x02 \x01(\t\x12O\n\x0f\x65rror_resources\x18\x03 \x03(\x0b\x32\x36.google.cloud.gkehub.configmanagement.v1.ErrorResource\"\xa8\x01\n\rErrorResource\x12\x13\n\x0bsource_path\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x1a\n\x12resource_namespace\x18\x03 \x01(\t\x12O\n\x0cresource_gvk\x18\x04 \x01(\x0b\x32\x39.google.cloud.gkehub.configmanagement.v1.GroupVersionKind\"@\n\x10GroupVersionKind\x12\r\n\x05group\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x0c\n\x04kind\x18\x03 \x01(\t\"\xc8\x01\n\x15PolicyControllerState\x12Q\n\x07version\x18\x01 \x01(\x0b\x32@.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion\x12\\\n\x10\x64\x65ployment_state\x18\x02 \x01(\x0b\x32\x42.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState\"*\n\x17PolicyControllerVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\"\xd6\x01\n\x19GatekeeperDeploymentState\x12\x65\n#gatekeeper_controller_manager_state\x18\x01 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState\x12R\n\x10gatekeeper_audit\x18\x02 \x01(\x0e\x32\x38.google.cloud.gkehub.configmanagement.v1.DeploymentState*m\n\x0f\x44\x65ploymentState\x12 \n\x1c\x44\x45PLOYMENT_STATE_UNSPECIFIED\x10\x00\x12\x11\n\rNOT_INSTALLED\x10\x01\x12\r\n\tINSTALLED\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\x0b\n\x07PENDING\x10\x04\x42\xa1\x02\n+com.google.cloud.gkehub.configmanagement.v1B\x15\x43onfigManagementProtoP\x01ZWcloud.google.com/go/gkehub/configmanagement/apiv1/configmanagementpb;configmanagementpb\xaa\x02\'Google.Cloud.GkeHub.ConfigManagement.V1\xca\x02\'Google\\Cloud\\GkeHub\\ConfigManagement\\V1\xea\x02+Google::Cloud::GkeHub::ConfigManagement::V1b\x06proto3"
11
11
 
12
12
  pool = Google::Protobuf::DescriptorPool.generated_pool
13
13
 
@@ -41,8 +41,10 @@ module Google
41
41
  module V1
42
42
  MembershipState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.MembershipState").msgclass
43
43
  MembershipSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.MembershipSpec").msgclass
44
+ MembershipSpec::Management = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management").enummodule
44
45
  ConfigSync = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.ConfigSync").msgclass
45
46
  GitConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.GitConfig").msgclass
47
+ OciConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.OciConfig").msgclass
46
48
  PolicyController = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.PolicyController").msgclass
47
49
  HierarchyControllerConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig").msgclass
48
50
  HierarchyControllerDeploymentState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState").msgclass
@@ -51,6 +53,9 @@ module Google
51
53
  OperatorState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.OperatorState").msgclass
52
54
  InstallError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.InstallError").msgclass
53
55
  ConfigSyncState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.ConfigSyncState").msgclass
56
+ ConfigSyncState::CRDState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState").enummodule
57
+ ConfigSyncState::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State").enummodule
58
+ ConfigSyncError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.ConfigSyncError").msgclass
54
59
  ConfigSyncVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion").msgclass
55
60
  ConfigSyncDeploymentState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState").msgclass
56
61
  SyncState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.configmanagement.v1.SyncState").msgclass
@@ -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
@@ -25,11 +25,8 @@ module Google
25
25
  # **Anthos Config Management**: State for a single cluster.
26
26
  # @!attribute [rw] cluster_name
27
27
  # @return [::String]
28
- # The user-defined name for the cluster used by ClusterSelectors to group
29
- # clusters together. This should match Membership's membership_name,
30
- # unless the user installed ACM on the cluster manually prior to enabling
31
- # the ACM hub feature.
32
- # Unique within a Anthos Config Management installation.
28
+ # This field is set to the `cluster_name` field of the Membership Spec if it
29
+ # is not empty. Otherwise, it is set to the cluster's fleet membership name.
33
30
  # @!attribute [rw] membership_spec
34
31
  # @return [::Google::Cloud::GkeHub::ConfigManagement::V1::MembershipSpec]
35
32
  # Membership configuration in the cluster. This represents the actual state
@@ -66,9 +63,33 @@ module Google
66
63
  # @!attribute [rw] version
67
64
  # @return [::String]
68
65
  # Version of ACM installed.
66
+ # @!attribute [rw] cluster
67
+ # @return [::String]
68
+ # The user-specified cluster name used by Config Sync cluster-name-selector
69
+ # annotation or ClusterSelector, for applying configs to only a subset
70
+ # of clusters.
71
+ # Omit this field if the cluster's fleet membership name is used by Config
72
+ # Sync cluster-name-selector annotation or ClusterSelector.
73
+ # Set this field if a name different from the cluster's fleet membership name
74
+ # is used by Config Sync cluster-name-selector annotation or ClusterSelector.
75
+ # @!attribute [rw] management
76
+ # @return [::Google::Cloud::GkeHub::ConfigManagement::V1::MembershipSpec::Management]
77
+ # Enables automatic Feature management.
69
78
  class MembershipSpec
70
79
  include ::Google::Protobuf::MessageExts
71
80
  extend ::Google::Protobuf::MessageExts::ClassMethods
81
+
82
+ # Whether to automatically manage the Feature.
83
+ module Management
84
+ # Unspecified
85
+ MANAGEMENT_UNSPECIFIED = 0
86
+
87
+ # Google will manage the Feature for the cluster.
88
+ MANAGEMENT_AUTOMATIC = 1
89
+
90
+ # User will manually manage the Feature for the cluster.
91
+ MANAGEMENT_MANUAL = 2
92
+ end
72
93
  end
73
94
 
74
95
  # Configuration for Config Sync
@@ -78,7 +99,32 @@ module Google
78
99
  # @!attribute [rw] source_format
79
100
  # @return [::String]
80
101
  # Specifies whether the Config Sync Repo is
81
- # in hierarchical or unstructured mode.
102
+ # in "hierarchical" or "unstructured" mode.
103
+ # @!attribute [rw] enabled
104
+ # @return [::Boolean]
105
+ # Enables the installation of ConfigSync.
106
+ # If set to true, ConfigSync resources will be created and the other
107
+ # ConfigSync fields will be applied if exist.
108
+ # If set to false, all other ConfigSync fields will be ignored, ConfigSync
109
+ # resources will be deleted.
110
+ # If omitted, ConfigSync resources will be managed depends on the presence
111
+ # of the git or oci field.
112
+ # @!attribute [rw] prevent_drift
113
+ # @return [::Boolean]
114
+ # Set to true to enable the Config Sync admission webhook to prevent drifts.
115
+ # If set to `false`, disables the Config Sync admission webhook and does not
116
+ # prevent drifts.
117
+ # @!attribute [rw] oci
118
+ # @return [::Google::Cloud::GkeHub::ConfigManagement::V1::OciConfig]
119
+ # OCI repo configuration for the cluster
120
+ # @!attribute [rw] metrics_gcp_service_account_email
121
+ # @return [::String]
122
+ # The Email of the Google Cloud Service Account (GSA) used for exporting
123
+ # Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.
124
+ # The GSA should have the Monitoring Metric Writer
125
+ # (roles/monitoring.metricWriter) IAM role.
126
+ # The Kubernetes ServiceAccount `default` in the namespace
127
+ # `config-management-monitoring` should be bound to the GSA.
82
128
  class ConfigSync
83
129
  include ::Google::Protobuf::MessageExts
84
130
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -103,19 +149,45 @@ module Google
103
149
  # Git revision (tag or hash) to check out. Default HEAD.
104
150
  # @!attribute [rw] secret_type
105
151
  # @return [::String]
106
- # Type of secret configured for access to the Git repo.
152
+ # Type of secret configured for access to the Git repo. Must be one of ssh,
153
+ # cookiefile, gcenode, token, gcpserviceaccount or none. The
154
+ # validation of this is case-sensitive. Required.
107
155
  # @!attribute [rw] https_proxy
108
156
  # @return [::String]
109
157
  # URL for the HTTPS proxy to be used when communicating with the Git repo.
110
158
  # @!attribute [rw] gcp_service_account_email
111
159
  # @return [::String]
112
- # The GCP Service Account Email used for auth when secret_type is
160
+ # The Google Cloud Service Account Email used for auth when secret_type is
113
161
  # gcpServiceAccount.
114
162
  class GitConfig
115
163
  include ::Google::Protobuf::MessageExts
116
164
  extend ::Google::Protobuf::MessageExts::ClassMethods
117
165
  end
118
166
 
167
+ # OCI repo configuration for a single cluster
168
+ # @!attribute [rw] sync_repo
169
+ # @return [::String]
170
+ # The OCI image repository URL for the package to sync from.
171
+ # e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
172
+ # @!attribute [rw] policy_dir
173
+ # @return [::String]
174
+ # The absolute path of the directory that contains
175
+ # the local resources. Default: the root directory of the image.
176
+ # @!attribute [rw] sync_wait_secs
177
+ # @return [::Integer]
178
+ # Period in seconds between consecutive syncs. Default: 15.
179
+ # @!attribute [rw] secret_type
180
+ # @return [::String]
181
+ # Type of secret configured for access to the Git repo.
182
+ # @!attribute [rw] gcp_service_account_email
183
+ # @return [::String]
184
+ # The Google Cloud Service Account Email used for auth when secret_type is
185
+ # gcpServiceAccount.
186
+ class OciConfig
187
+ include ::Google::Protobuf::MessageExts
188
+ extend ::Google::Protobuf::MessageExts::ClassMethods
189
+ end
190
+
119
191
  # Configuration for Policy Controller
120
192
  # @!attribute [rw] enabled
121
193
  # @return [::Boolean]
@@ -231,9 +303,66 @@ module Google
231
303
  # @!attribute [rw] sync_state
232
304
  # @return [::Google::Cloud::GkeHub::ConfigManagement::V1::SyncState]
233
305
  # The state of ConfigSync's process to sync configs to a cluster
306
+ # @!attribute [rw] errors
307
+ # @return [::Array<::Google::Cloud::GkeHub::ConfigManagement::V1::ConfigSyncError>]
308
+ # Errors pertaining to the installation of Config Sync.
309
+ # @!attribute [rw] rootsync_crd
310
+ # @return [::Google::Cloud::GkeHub::ConfigManagement::V1::ConfigSyncState::CRDState]
311
+ # The state of the RootSync CRD
312
+ # @!attribute [rw] reposync_crd
313
+ # @return [::Google::Cloud::GkeHub::ConfigManagement::V1::ConfigSyncState::CRDState]
314
+ # The state of the Reposync CRD
315
+ # @!attribute [rw] state
316
+ # @return [::Google::Cloud::GkeHub::ConfigManagement::V1::ConfigSyncState::State]
317
+ # The state of CS
318
+ # This field summarizes the other fields in this message.
234
319
  class ConfigSyncState
235
320
  include ::Google::Protobuf::MessageExts
236
321
  extend ::Google::Protobuf::MessageExts::ClassMethods
322
+
323
+ # CRDState representing the state of a CRD
324
+ module CRDState
325
+ # CRD's state cannot be determined
326
+ CRD_STATE_UNSPECIFIED = 0
327
+
328
+ # CRD is not installed
329
+ NOT_INSTALLED = 1
330
+
331
+ # CRD is installed
332
+ INSTALLED = 2
333
+
334
+ # CRD is terminating (i.e., it has been deleted and is cleaning up)
335
+ TERMINATING = 3
336
+
337
+ # CRD is installing
338
+ INSTALLING = 4
339
+ end
340
+
341
+ module State
342
+ # CS's state cannot be determined.
343
+ STATE_UNSPECIFIED = 0
344
+
345
+ # CS is not installed.
346
+ CONFIG_SYNC_NOT_INSTALLED = 1
347
+
348
+ # The expected CS version is installed successfully.
349
+ CONFIG_SYNC_INSTALLED = 2
350
+
351
+ # CS encounters errors.
352
+ CONFIG_SYNC_ERROR = 3
353
+
354
+ # CS is installing or terminating.
355
+ CONFIG_SYNC_PENDING = 4
356
+ end
357
+ end
358
+
359
+ # Errors pertaining to the installation of Config Sync
360
+ # @!attribute [rw] error_message
361
+ # @return [::String]
362
+ # A string representing the user facing error message
363
+ class ConfigSyncError
364
+ include ::Google::Protobuf::MessageExts
365
+ extend ::Google::Protobuf::MessageExts::ClassMethods
237
366
  end
238
367
 
239
368
  # Specific versioning information pertaining to ConfigSync's Pods
@@ -255,6 +384,9 @@ module Google
255
384
  # @!attribute [rw] root_reconciler
256
385
  # @return [::String]
257
386
  # Version of the deployed reconciler container in root-reconciler pod
387
+ # @!attribute [rw] admission_webhook
388
+ # @return [::String]
389
+ # Version of the deployed admission_webhook pod
258
390
  class ConfigSyncVersion
259
391
  include ::Google::Protobuf::MessageExts
260
392
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -279,6 +411,9 @@ module Google
279
411
  # @!attribute [rw] root_reconciler
280
412
  # @return [::Google::Cloud::GkeHub::ConfigManagement::V1::DeploymentState]
281
413
  # Deployment state of root-reconciler
414
+ # @!attribute [rw] admission_webhook
415
+ # @return [::Google::Cloud::GkeHub::ConfigManagement::V1::DeploymentState]
416
+ # Deployment state of admission-webhook
282
417
  class ConfigSyncDeploymentState
283
418
  include ::Google::Protobuf::MessageExts
284
419
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -315,25 +450,24 @@ module Google
315
450
  include ::Google::Protobuf::MessageExts
316
451
  extend ::Google::Protobuf::MessageExts::ClassMethods
317
452
 
318
- # An enum representing an ACM's status syncing configs to a cluster
453
+ # An enum representing Config Sync's status of syncing configs to a cluster.
319
454
  module SyncCode
320
- # ACM cannot determine a sync code
455
+ # Config Sync cannot determine a sync code
321
456
  SYNC_CODE_UNSPECIFIED = 0
322
457
 
323
- # ACM successfully synced the git Repo with the cluster
458
+ # Config Sync successfully synced the git Repo with the cluster
324
459
  SYNCED = 1
325
460
 
326
- # ACM is in the progress of syncing a new change
461
+ # Config Sync is in the progress of syncing a new change
327
462
  PENDING = 2
328
463
 
329
- # Indicates an error configuring ACM, and user action is required
464
+ # Indicates an error configuring Config Sync, and user action is required
330
465
  ERROR = 3
331
466
 
332
- # ACM has been installed (operator manifest deployed),
333
- # but not configured.
467
+ # Config Sync has been installed but not configured
334
468
  NOT_CONFIGURED = 4
335
469
 
336
- # ACM has not been installed (no operator pod found)
470
+ # Config Sync has not been installed
337
471
  NOT_INSTALLED = 5
338
472
 
339
473
  # Error authorizing with the cluster
@@ -439,6 +573,9 @@ module Google
439
573
 
440
574
  # Deployment was attempted to be installed, but has errors
441
575
  ERROR = 3
576
+
577
+ # Deployment is installing or terminating
578
+ PENDING = 4
442
579
  end
443
580
  end
444
581
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-gke_hub-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
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-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common