google-cloud-container-v1 0.2.5 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/container/v1/cluster_manager/client.rb +205 -101
- data/lib/google/cloud/container/v1/version.rb +1 -1
- data/lib/google/container/v1/cluster_service_pb.rb +168 -0
- data/lib/google/container/v1/cluster_service_services_pb.rb +42 -34
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/container/v1/cluster_service.rb +800 -207
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95196c303eb05a5e0b5cd9b8c8f0bc67a33931080207d7c3044d4a665ed3ca60
|
4
|
+
data.tar.gz: f39cef34cbba4064ab545670d34097be6c48b57eed8af442bcbf9db4a7bfad57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1854352c144b3b6073f1bffab54789612cd862532357e0388e8dd8d7e005cfa44ce288f0065418cfaf428489ddcb948d3e9697b882c8c8e3e52ab76cc3edf6aa
|
7
|
+
data.tar.gz: 82f82bc65ed09817e983482576db954c8f4871df31e2535f585f7d6289f85e9d8c3dd203fafee2a3ee5d80c0126f66980eca6da6a74405b31420aa7f191e06d3
|
@@ -281,9 +281,9 @@ module Google
|
|
281
281
|
# This field has been deprecated and replaced by the parent field.
|
282
282
|
# @param zone [::String]
|
283
283
|
# Deprecated. The name of the Google Compute Engine
|
284
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
285
|
-
# resides, or "-" for all zones.
|
286
|
-
#
|
284
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
285
|
+
# cluster resides, or "-" for all zones. This field has been deprecated and
|
286
|
+
# replaced by the parent field.
|
287
287
|
# @param parent [::String]
|
288
288
|
# The parent (project and location) where the clusters will be listed.
|
289
289
|
# Specified in the format `projects/*/locations/*`.
|
@@ -358,9 +358,9 @@ module Google
|
|
358
358
|
# This field has been deprecated and replaced by the name field.
|
359
359
|
# @param zone [::String]
|
360
360
|
# Deprecated. The name of the Google Compute Engine
|
361
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
362
|
-
# resides.
|
363
|
-
#
|
361
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
362
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
363
|
+
# field.
|
364
364
|
# @param cluster_id [::String]
|
365
365
|
# Deprecated. The name of the cluster to retrieve.
|
366
366
|
# This field has been deprecated and replaced by the name field.
|
@@ -418,7 +418,8 @@ module Google
|
|
418
418
|
# Compute Engine instances.
|
419
419
|
#
|
420
420
|
# By default, the cluster is created in the project's
|
421
|
-
# [default
|
421
|
+
# [default
|
422
|
+
# network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
|
422
423
|
#
|
423
424
|
# One firewall is added for the cluster. After cluster creation,
|
424
425
|
# the Kubelet creates routes for each node to allow the containers
|
@@ -449,12 +450,12 @@ module Google
|
|
449
450
|
# This field has been deprecated and replaced by the parent field.
|
450
451
|
# @param zone [::String]
|
451
452
|
# Deprecated. The name of the Google Compute Engine
|
452
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
453
|
-
# resides.
|
454
|
-
#
|
453
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
454
|
+
# cluster resides. This field has been deprecated and replaced by the parent
|
455
|
+
# field.
|
455
456
|
# @param cluster [::Google::Cloud::Container::V1::Cluster, ::Hash]
|
456
457
|
# Required. A [cluster
|
457
|
-
# resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.
|
458
|
+
# resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
|
458
459
|
# @param parent [::String]
|
459
460
|
# The parent (project and location) where the cluster will be created.
|
460
461
|
# Specified in the format `projects/*/locations/*`.
|
@@ -528,9 +529,9 @@ module Google
|
|
528
529
|
# This field has been deprecated and replaced by the name field.
|
529
530
|
# @param zone [::String]
|
530
531
|
# Deprecated. The name of the Google Compute Engine
|
531
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
532
|
-
# resides.
|
533
|
-
#
|
532
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
533
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
534
|
+
# field.
|
534
535
|
# @param cluster_id [::String]
|
535
536
|
# Deprecated. The name of the cluster to upgrade.
|
536
537
|
# This field has been deprecated and replaced by the name field.
|
@@ -598,7 +599,7 @@ module Google
|
|
598
599
|
# @param options [::Gapic::CallOptions, ::Hash]
|
599
600
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
600
601
|
#
|
601
|
-
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil)
|
602
|
+
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil, locations: nil, workload_metadata_config: nil, upgrade_settings: nil)
|
602
603
|
# Pass arguments to `update_node_pool` via keyword arguments. Note that at
|
603
604
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
604
605
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -609,9 +610,9 @@ module Google
|
|
609
610
|
# This field has been deprecated and replaced by the name field.
|
610
611
|
# @param zone [::String]
|
611
612
|
# Deprecated. The name of the Google Compute Engine
|
612
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
613
|
-
# resides.
|
614
|
-
#
|
613
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
614
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
615
|
+
# field.
|
615
616
|
# @param cluster_id [::String]
|
616
617
|
# Deprecated. The name of the cluster to upgrade.
|
617
618
|
# This field has been deprecated and replaced by the name field.
|
@@ -636,6 +637,16 @@ module Google
|
|
636
637
|
# The name (project, location, cluster, node pool) of the node pool to
|
637
638
|
# update. Specified in the format
|
638
639
|
# `projects/*/locations/*/clusters/*/nodePools/*`.
|
640
|
+
# @param locations [::Array<::String>]
|
641
|
+
# The desired list of Google Compute Engine
|
642
|
+
# [zones](https://cloud.google.com/compute/docs/zones#available) in which the
|
643
|
+
# node pool's nodes should be located. Changing the locations for a node pool
|
644
|
+
# will result in nodes being either created or removed from the node pool,
|
645
|
+
# depending on whether locations are being added or removed.
|
646
|
+
# @param workload_metadata_config [::Google::Cloud::Container::V1::WorkloadMetadataConfig, ::Hash]
|
647
|
+
# The desired workload metadata config for the node pool.
|
648
|
+
# @param upgrade_settings [::Google::Cloud::Container::V1::NodePool::UpgradeSettings, ::Hash]
|
649
|
+
# Upgrade settings control disruption and speed of the upgrade.
|
639
650
|
#
|
640
651
|
# @yield [response, operation] Access the result along with the RPC operation
|
641
652
|
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
@@ -706,9 +717,9 @@ module Google
|
|
706
717
|
# This field has been deprecated and replaced by the name field.
|
707
718
|
# @param zone [::String]
|
708
719
|
# Deprecated. The name of the Google Compute Engine
|
709
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
710
|
-
# resides.
|
711
|
-
#
|
720
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
721
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
722
|
+
# field.
|
712
723
|
# @param cluster_id [::String]
|
713
724
|
# Deprecated. The name of the cluster to upgrade.
|
714
725
|
# This field has been deprecated and replaced by the name field.
|
@@ -791,18 +802,24 @@ module Google
|
|
791
802
|
# This field has been deprecated and replaced by the name field.
|
792
803
|
# @param zone [::String]
|
793
804
|
# Deprecated. The name of the Google Compute Engine
|
794
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
795
|
-
# resides.
|
796
|
-
#
|
805
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
806
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
807
|
+
# field.
|
797
808
|
# @param cluster_id [::String]
|
798
809
|
# Deprecated. The name of the cluster to upgrade.
|
799
810
|
# This field has been deprecated and replaced by the name field.
|
800
811
|
# @param logging_service [::String]
|
801
|
-
# Required. The logging service the cluster should use to write
|
812
|
+
# Required. The logging service the cluster should use to write logs.
|
802
813
|
# Currently available options:
|
803
814
|
#
|
804
|
-
# *
|
805
|
-
#
|
815
|
+
# * `logging.googleapis.com/kubernetes` - The Cloud Logging
|
816
|
+
# service with a Kubernetes-native resource model
|
817
|
+
# * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
|
818
|
+
# available as of GKE 1.15).
|
819
|
+
# * `none` - no logs will be exported from the cluster.
|
820
|
+
#
|
821
|
+
# If left as an empty string,`logging.googleapis.com/kubernetes` will be
|
822
|
+
# used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
|
806
823
|
# @param name [::String]
|
807
824
|
# The name (project, location, cluster) of the cluster to set logging.
|
808
825
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
@@ -876,9 +893,9 @@ module Google
|
|
876
893
|
# This field has been deprecated and replaced by the name field.
|
877
894
|
# @param zone [::String]
|
878
895
|
# Deprecated. The name of the Google Compute Engine
|
879
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
880
|
-
# resides.
|
881
|
-
#
|
896
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
897
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
898
|
+
# field.
|
882
899
|
# @param cluster_id [::String]
|
883
900
|
# Deprecated. The name of the cluster to upgrade.
|
884
901
|
# This field has been deprecated and replaced by the name field.
|
@@ -886,10 +903,14 @@ module Google
|
|
886
903
|
# Required. The monitoring service the cluster should use to write metrics.
|
887
904
|
# Currently available options:
|
888
905
|
#
|
889
|
-
# * "monitoring.googleapis.com/kubernetes" -
|
890
|
-
# service with Kubernetes-native resource model
|
891
|
-
# *
|
892
|
-
#
|
906
|
+
# * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
|
907
|
+
# service with a Kubernetes-native resource model
|
908
|
+
# * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
|
909
|
+
# longer available as of GKE 1.15).
|
910
|
+
# * `none` - No metrics will be exported from the cluster.
|
911
|
+
#
|
912
|
+
# If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
|
913
|
+
# used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
|
893
914
|
# @param name [::String]
|
894
915
|
# The name (project, location, cluster) of the cluster to set monitoring.
|
895
916
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
@@ -963,9 +984,9 @@ module Google
|
|
963
984
|
# This field has been deprecated and replaced by the name field.
|
964
985
|
# @param zone [::String]
|
965
986
|
# Deprecated. The name of the Google Compute Engine
|
966
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
967
|
-
# resides.
|
968
|
-
#
|
987
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
988
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
989
|
+
# field.
|
969
990
|
# @param cluster_id [::String]
|
970
991
|
# Deprecated. The name of the cluster to upgrade.
|
971
992
|
# This field has been deprecated and replaced by the name field.
|
@@ -1023,6 +1044,9 @@ module Google
|
|
1023
1044
|
|
1024
1045
|
##
|
1025
1046
|
# Sets the locations for a specific cluster.
|
1047
|
+
# Deprecated. Use
|
1048
|
+
# [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
|
1049
|
+
# instead.
|
1026
1050
|
#
|
1027
1051
|
# @overload set_locations(request, options = nil)
|
1028
1052
|
# Pass arguments to `set_locations` via a request object, either of type
|
@@ -1045,18 +1069,18 @@ module Google
|
|
1045
1069
|
# This field has been deprecated and replaced by the name field.
|
1046
1070
|
# @param zone [::String]
|
1047
1071
|
# Deprecated. The name of the Google Compute Engine
|
1048
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1049
|
-
# resides.
|
1050
|
-
#
|
1072
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1073
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1074
|
+
# field.
|
1051
1075
|
# @param cluster_id [::String]
|
1052
1076
|
# Deprecated. The name of the cluster to upgrade.
|
1053
1077
|
# This field has been deprecated and replaced by the name field.
|
1054
1078
|
# @param locations [::Array<::String>]
|
1055
1079
|
# Required. The desired list of Google Compute Engine
|
1056
|
-
# [zones](https://cloud.google.com/compute/docs/zones#available) in which the
|
1057
|
-
# should be located. Changing the locations a cluster is in
|
1058
|
-
# in nodes being either created or removed from the cluster,
|
1059
|
-
# whether locations are being added or removed.
|
1080
|
+
# [zones](https://cloud.google.com/compute/docs/zones#available) in which the
|
1081
|
+
# cluster's nodes should be located. Changing the locations a cluster is in
|
1082
|
+
# will result in nodes being either created or removed from the cluster,
|
1083
|
+
# depending on whether locations are being added or removed.
|
1060
1084
|
#
|
1061
1085
|
# This list must always include the cluster's primary zone.
|
1062
1086
|
# @param name [::String]
|
@@ -1132,9 +1156,9 @@ module Google
|
|
1132
1156
|
# This field has been deprecated and replaced by the name field.
|
1133
1157
|
# @param zone [::String]
|
1134
1158
|
# Deprecated. The name of the Google Compute Engine
|
1135
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1136
|
-
# resides.
|
1137
|
-
#
|
1159
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1160
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1161
|
+
# field.
|
1138
1162
|
# @param cluster_id [::String]
|
1139
1163
|
# Deprecated. The name of the cluster to upgrade.
|
1140
1164
|
# This field has been deprecated and replaced by the name field.
|
@@ -1224,9 +1248,9 @@ module Google
|
|
1224
1248
|
# This field has been deprecated and replaced by the name field.
|
1225
1249
|
# @param zone [::String]
|
1226
1250
|
# Deprecated. The name of the Google Compute Engine
|
1227
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1228
|
-
# resides.
|
1229
|
-
#
|
1251
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1252
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1253
|
+
# field.
|
1230
1254
|
# @param cluster_id [::String]
|
1231
1255
|
# Deprecated. The name of the cluster to upgrade.
|
1232
1256
|
# This field has been deprecated and replaced by the name field.
|
@@ -1315,9 +1339,9 @@ module Google
|
|
1315
1339
|
# This field has been deprecated and replaced by the name field.
|
1316
1340
|
# @param zone [::String]
|
1317
1341
|
# Deprecated. The name of the Google Compute Engine
|
1318
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1319
|
-
# resides.
|
1320
|
-
#
|
1342
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1343
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1344
|
+
# field.
|
1321
1345
|
# @param cluster_id [::String]
|
1322
1346
|
# Deprecated. The name of the cluster to delete.
|
1323
1347
|
# This field has been deprecated and replaced by the name field.
|
@@ -1394,8 +1418,9 @@ module Google
|
|
1394
1418
|
# This field has been deprecated and replaced by the parent field.
|
1395
1419
|
# @param zone [::String]
|
1396
1420
|
# Deprecated. The name of the Google Compute Engine
|
1397
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) to return
|
1398
|
-
# all zones. This field has been deprecated and
|
1421
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) to return
|
1422
|
+
# operations for, or `-` for all zones. This field has been deprecated and
|
1423
|
+
# replaced by the parent field.
|
1399
1424
|
# @param parent [::String]
|
1400
1425
|
# The parent (project and location) where the operations will be listed.
|
1401
1426
|
# Specified in the format `projects/*/locations/*`.
|
@@ -1470,9 +1495,9 @@ module Google
|
|
1470
1495
|
# This field has been deprecated and replaced by the name field.
|
1471
1496
|
# @param zone [::String]
|
1472
1497
|
# Deprecated. The name of the Google Compute Engine
|
1473
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1474
|
-
# resides.
|
1475
|
-
#
|
1498
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1499
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1500
|
+
# field.
|
1476
1501
|
# @param operation_id [::String]
|
1477
1502
|
# Deprecated. The server-assigned `name` of the operation.
|
1478
1503
|
# This field has been deprecated and replaced by the name field.
|
@@ -1549,8 +1574,9 @@ module Google
|
|
1549
1574
|
# This field has been deprecated and replaced by the name field.
|
1550
1575
|
# @param zone [::String]
|
1551
1576
|
# Deprecated. The name of the Google Compute Engine
|
1552
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1553
|
-
# This field has been deprecated and replaced by the name
|
1577
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1578
|
+
# operation resides. This field has been deprecated and replaced by the name
|
1579
|
+
# field.
|
1554
1580
|
# @param operation_id [::String]
|
1555
1581
|
# Deprecated. The server-assigned `name` of the operation.
|
1556
1582
|
# This field has been deprecated and replaced by the name field.
|
@@ -1627,8 +1653,9 @@ module Google
|
|
1627
1653
|
# This field has been deprecated and replaced by the name field.
|
1628
1654
|
# @param zone [::String]
|
1629
1655
|
# Deprecated. The name of the Google Compute Engine
|
1630
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) to return
|
1631
|
-
# This field has been deprecated and replaced by the name
|
1656
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) to return
|
1657
|
+
# operations for. This field has been deprecated and replaced by the name
|
1658
|
+
# field.
|
1632
1659
|
# @param name [::String]
|
1633
1660
|
# The name (project and location) of the server config to get,
|
1634
1661
|
# specified in the format `projects/*/locations/*`.
|
@@ -1678,6 +1705,76 @@ module Google
|
|
1678
1705
|
raise ::Google::Cloud::Error.from_error(e)
|
1679
1706
|
end
|
1680
1707
|
|
1708
|
+
##
|
1709
|
+
# Gets the public component of the cluster signing keys in
|
1710
|
+
# JSON Web Key format.
|
1711
|
+
# This API is not yet intended for general use, and is not available for all
|
1712
|
+
# clusters.
|
1713
|
+
#
|
1714
|
+
# @overload get_json_web_keys(request, options = nil)
|
1715
|
+
# Pass arguments to `get_json_web_keys` via a request object, either of type
|
1716
|
+
# {::Google::Cloud::Container::V1::GetJSONWebKeysRequest} or an equivalent Hash.
|
1717
|
+
#
|
1718
|
+
# @param request [::Google::Cloud::Container::V1::GetJSONWebKeysRequest, ::Hash]
|
1719
|
+
# A request object representing the call parameters. Required. To specify no
|
1720
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1721
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1722
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1723
|
+
#
|
1724
|
+
# @overload get_json_web_keys(parent: nil)
|
1725
|
+
# Pass arguments to `get_json_web_keys` via keyword arguments. Note that at
|
1726
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1727
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1728
|
+
#
|
1729
|
+
# @param parent [::String]
|
1730
|
+
# The cluster (project, location, cluster id) to get keys for. Specified in
|
1731
|
+
# the format `projects/*/locations/*/clusters/*`.
|
1732
|
+
#
|
1733
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1734
|
+
# @yieldparam response [::Google::Cloud::Container::V1::GetJSONWebKeysResponse]
|
1735
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1736
|
+
#
|
1737
|
+
# @return [::Google::Cloud::Container::V1::GetJSONWebKeysResponse]
|
1738
|
+
#
|
1739
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1740
|
+
#
|
1741
|
+
def get_json_web_keys request, options = nil
|
1742
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1743
|
+
|
1744
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::GetJSONWebKeysRequest
|
1745
|
+
|
1746
|
+
# Converts hash and nil to an options object
|
1747
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1748
|
+
|
1749
|
+
# Customize the options with defaults
|
1750
|
+
metadata = @config.rpcs.get_json_web_keys.metadata.to_h
|
1751
|
+
|
1752
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1753
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1754
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1755
|
+
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1756
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1757
|
+
|
1758
|
+
header_params = {
|
1759
|
+
"parent" => request.parent
|
1760
|
+
}
|
1761
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1762
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1763
|
+
|
1764
|
+
options.apply_defaults timeout: @config.rpcs.get_json_web_keys.timeout,
|
1765
|
+
metadata: metadata,
|
1766
|
+
retry_policy: @config.rpcs.get_json_web_keys.retry_policy
|
1767
|
+
options.apply_defaults metadata: @config.metadata,
|
1768
|
+
retry_policy: @config.retry_policy
|
1769
|
+
|
1770
|
+
@cluster_manager_stub.call_rpc :get_json_web_keys, request, options: options do |response, operation|
|
1771
|
+
yield response, operation if block_given?
|
1772
|
+
return response
|
1773
|
+
end
|
1774
|
+
rescue ::GRPC::BadStatus => e
|
1775
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1776
|
+
end
|
1777
|
+
|
1681
1778
|
##
|
1682
1779
|
# Lists the node pools for a cluster.
|
1683
1780
|
#
|
@@ -1702,9 +1799,9 @@ module Google
|
|
1702
1799
|
# This field has been deprecated and replaced by the parent field.
|
1703
1800
|
# @param zone [::String]
|
1704
1801
|
# Deprecated. The name of the Google Compute Engine
|
1705
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1706
|
-
# resides.
|
1707
|
-
#
|
1802
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1803
|
+
# cluster resides. This field has been deprecated and replaced by the parent
|
1804
|
+
# field.
|
1708
1805
|
# @param cluster_id [::String]
|
1709
1806
|
# Deprecated. The name of the cluster.
|
1710
1807
|
# This field has been deprecated and replaced by the parent field.
|
@@ -1781,9 +1878,9 @@ module Google
|
|
1781
1878
|
# This field has been deprecated and replaced by the name field.
|
1782
1879
|
# @param zone [::String]
|
1783
1880
|
# Deprecated. The name of the Google Compute Engine
|
1784
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1785
|
-
# resides.
|
1786
|
-
#
|
1881
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1882
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1883
|
+
# field.
|
1787
1884
|
# @param cluster_id [::String]
|
1788
1885
|
# Deprecated. The name of the cluster.
|
1789
1886
|
# This field has been deprecated and replaced by the name field.
|
@@ -1864,9 +1961,9 @@ module Google
|
|
1864
1961
|
# This field has been deprecated and replaced by the parent field.
|
1865
1962
|
# @param zone [::String]
|
1866
1963
|
# Deprecated. The name of the Google Compute Engine
|
1867
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1868
|
-
# resides.
|
1869
|
-
#
|
1964
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1965
|
+
# cluster resides. This field has been deprecated and replaced by the parent
|
1966
|
+
# field.
|
1870
1967
|
# @param cluster_id [::String]
|
1871
1968
|
# Deprecated. The name of the cluster.
|
1872
1969
|
# This field has been deprecated and replaced by the parent field.
|
@@ -1946,9 +2043,9 @@ module Google
|
|
1946
2043
|
# This field has been deprecated and replaced by the name field.
|
1947
2044
|
# @param zone [::String]
|
1948
2045
|
# Deprecated. The name of the Google Compute Engine
|
1949
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1950
|
-
# resides.
|
1951
|
-
#
|
2046
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2047
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2048
|
+
# field.
|
1952
2049
|
# @param cluster_id [::String]
|
1953
2050
|
# Deprecated. The name of the cluster.
|
1954
2051
|
# This field has been deprecated and replaced by the name field.
|
@@ -2030,9 +2127,9 @@ module Google
|
|
2030
2127
|
# This field has been deprecated and replaced by the name field.
|
2031
2128
|
# @param zone [::String]
|
2032
2129
|
# Deprecated. The name of the Google Compute Engine
|
2033
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2034
|
-
# resides.
|
2035
|
-
#
|
2130
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2131
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2132
|
+
# field.
|
2036
2133
|
# @param cluster_id [::String]
|
2037
2134
|
# Deprecated. The name of the cluster to rollback.
|
2038
2135
|
# This field has been deprecated and replaced by the name field.
|
@@ -2113,9 +2210,9 @@ module Google
|
|
2113
2210
|
# This field has been deprecated and replaced by the name field.
|
2114
2211
|
# @param zone [::String]
|
2115
2212
|
# Deprecated. The name of the Google Compute Engine
|
2116
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2117
|
-
# resides.
|
2118
|
-
#
|
2213
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2214
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2215
|
+
# field.
|
2119
2216
|
# @param cluster_id [::String]
|
2120
2217
|
# Deprecated. The name of the cluster to update.
|
2121
2218
|
# This field has been deprecated and replaced by the name field.
|
@@ -2198,9 +2295,9 @@ module Google
|
|
2198
2295
|
# This field has been deprecated and replaced by the name field.
|
2199
2296
|
# @param zone [::String]
|
2200
2297
|
# Deprecated. The name of the Google Compute Engine
|
2201
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2202
|
-
# resides.
|
2203
|
-
#
|
2298
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2299
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2300
|
+
# field.
|
2204
2301
|
# @param cluster_id [::String]
|
2205
2302
|
# Deprecated. The name of the cluster.
|
2206
2303
|
# This field has been deprecated and replaced by the name field.
|
@@ -2211,7 +2308,7 @@ module Google
|
|
2211
2308
|
# used to detect conflicts. The fingerprint is initially generated by
|
2212
2309
|
# Kubernetes Engine and changes after every request to modify or update
|
2213
2310
|
# labels. You must always provide an up-to-date fingerprint hash when
|
2214
|
-
# updating or changing labels. Make a
|
2311
|
+
# updating or changing labels. Make a `get()` request to the
|
2215
2312
|
# resource to get the latest fingerprint.
|
2216
2313
|
# @param name [::String]
|
2217
2314
|
# The name (project, location, cluster id) of the cluster to set labels.
|
@@ -2286,9 +2383,9 @@ module Google
|
|
2286
2383
|
# This field has been deprecated and replaced by the name field.
|
2287
2384
|
# @param zone [::String]
|
2288
2385
|
# Deprecated. The name of the Google Compute Engine
|
2289
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2290
|
-
# resides.
|
2291
|
-
#
|
2386
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2387
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2388
|
+
# field.
|
2292
2389
|
# @param cluster_id [::String]
|
2293
2390
|
# Deprecated. The name of the cluster to update.
|
2294
2391
|
# This field has been deprecated and replaced by the name field.
|
@@ -2367,9 +2464,9 @@ module Google
|
|
2367
2464
|
# This field has been deprecated and replaced by the name field.
|
2368
2465
|
# @param zone [::String]
|
2369
2466
|
# Deprecated. The name of the Google Compute Engine
|
2370
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2371
|
-
# resides.
|
2372
|
-
#
|
2467
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2468
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2469
|
+
# field.
|
2373
2470
|
# @param cluster_id [::String]
|
2374
2471
|
# Deprecated. The name of the cluster.
|
2375
2472
|
# This field has been deprecated and replaced by the name field.
|
@@ -2448,9 +2545,9 @@ module Google
|
|
2448
2545
|
# This field has been deprecated and replaced by the name field.
|
2449
2546
|
# @param zone [::String]
|
2450
2547
|
# Deprecated. The name of the Google Compute Engine
|
2451
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2452
|
-
# resides.
|
2453
|
-
#
|
2548
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2549
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2550
|
+
# field.
|
2454
2551
|
# @param cluster_id [::String]
|
2455
2552
|
# Deprecated. The name of the cluster.
|
2456
2553
|
# This field has been deprecated and replaced by the name field.
|
@@ -2527,9 +2624,9 @@ module Google
|
|
2527
2624
|
# This field has been deprecated and replaced by the name field.
|
2528
2625
|
# @param zone [::String]
|
2529
2626
|
# Deprecated. The name of the Google Compute Engine
|
2530
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2531
|
-
# resides.
|
2532
|
-
#
|
2627
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2628
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2629
|
+
# field.
|
2533
2630
|
# @param cluster_id [::String]
|
2534
2631
|
# Deprecated. The name of the cluster to update.
|
2535
2632
|
# This field has been deprecated and replaced by the name field.
|
@@ -2612,9 +2709,9 @@ module Google
|
|
2612
2709
|
# This field has been deprecated and replaced by the name field.
|
2613
2710
|
# @param zone [::String]
|
2614
2711
|
# Deprecated. The name of the Google Compute Engine
|
2615
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2616
|
-
# resides.
|
2617
|
-
#
|
2712
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2713
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2714
|
+
# field.
|
2618
2715
|
# @param cluster_id [::String]
|
2619
2716
|
# Deprecated. The name of the cluster.
|
2620
2717
|
# This field has been deprecated and replaced by the name field.
|
@@ -2692,8 +2789,8 @@ module Google
|
|
2692
2789
|
# number](https://support.google.com/cloud/answer/6158840).
|
2693
2790
|
# @param zone [::String]
|
2694
2791
|
# Required. The name of the Google Compute Engine
|
2695
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2696
|
-
# resides.
|
2792
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2793
|
+
# cluster resides.
|
2697
2794
|
# @param cluster_id [::String]
|
2698
2795
|
# Required. The name of the cluster to update.
|
2699
2796
|
# @param maintenance_policy [::Google::Cloud::Container::V1::MaintenancePolicy, ::Hash]
|
@@ -3052,6 +3149,11 @@ module Google
|
|
3052
3149
|
#
|
3053
3150
|
attr_reader :get_server_config
|
3054
3151
|
##
|
3152
|
+
# RPC-specific configuration for `get_json_web_keys`
|
3153
|
+
# @return [::Gapic::Config::Method]
|
3154
|
+
#
|
3155
|
+
attr_reader :get_json_web_keys
|
3156
|
+
##
|
3055
3157
|
# RPC-specific configuration for `list_node_pools`
|
3056
3158
|
# @return [::Gapic::Config::Method]
|
3057
3159
|
#
|
@@ -3158,6 +3260,8 @@ module Google
|
|
3158
3260
|
@cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
|
3159
3261
|
get_server_config_config = parent_rpcs&.get_server_config if parent_rpcs&.respond_to? :get_server_config
|
3160
3262
|
@get_server_config = ::Gapic::Config::Method.new get_server_config_config
|
3263
|
+
get_json_web_keys_config = parent_rpcs&.get_json_web_keys if parent_rpcs&.respond_to? :get_json_web_keys
|
3264
|
+
@get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config
|
3161
3265
|
list_node_pools_config = parent_rpcs&.list_node_pools if parent_rpcs&.respond_to? :list_node_pools
|
3162
3266
|
@list_node_pools = ::Gapic::Config::Method.new list_node_pools_config
|
3163
3267
|
get_node_pool_config = parent_rpcs&.get_node_pool if parent_rpcs&.respond_to? :get_node_pool
|