google-cloud-container-v1beta1 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/v1beta1/cluster_manager.rb +1 -0
- data/lib/google/cloud/container/v1beta1/cluster_manager/client.rb +210 -100
- data/lib/google/cloud/container/v1beta1/cluster_manager/paths.rb +50 -0
- data/lib/google/cloud/container/v1beta1/version.rb +1 -1
- data/lib/google/container/v1beta1/cluster_service_pb.rb +264 -0
- data/lib/google/container/v1beta1/cluster_service_services_pb.rb +43 -35
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/container/v1beta1/cluster_service.rb +1114 -210
- data/proto_docs/google/protobuf/any.rb +138 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/rpc/code.rb +185 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0e65b1c7c128af283f3f345d2ffd607becbaf8e8e69c82e2b7f7a4873f98b5c
|
4
|
+
data.tar.gz: 6578f85e2becb5e86780fdceeec71736d5c33d3d0b77b5b7d05dea4de6384460
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ec1fb1c2270c578a868772bd214ef05008fc1d538e439c58bd0d5a06353b2e1b3bdcea0d10e639c927bc2251d041595c6cd8de2b111a1e47d7d8c708b256353
|
7
|
+
data.tar.gz: 57dc7089cee1256af92d99a7c38dcc971e7c38400fe850ebc5db7272fe124c0a891395f22fff13e25ce828f26f377178264d2b87769ce9a84522a4f089cf8fa7
|
@@ -23,6 +23,7 @@ require "gapic/config/method"
|
|
23
23
|
require "google/cloud/container/v1beta1/version"
|
24
24
|
|
25
25
|
require "google/cloud/container/v1beta1/cluster_manager/credentials"
|
26
|
+
require "google/cloud/container/v1beta1/cluster_manager/paths"
|
26
27
|
require "google/cloud/container/v1beta1/cluster_manager/client"
|
27
28
|
|
28
29
|
module Google
|
@@ -30,6 +30,8 @@ module Google
|
|
30
30
|
# Google Kubernetes Engine Cluster Manager v1beta1
|
31
31
|
#
|
32
32
|
class Client
|
33
|
+
include Paths
|
34
|
+
|
33
35
|
# @private
|
34
36
|
attr_reader :cluster_manager_stub
|
35
37
|
|
@@ -297,9 +299,9 @@ module Google
|
|
297
299
|
# This field has been deprecated and replaced by the parent field.
|
298
300
|
# @param zone [::String]
|
299
301
|
# Required. Deprecated. The name of the Google Compute Engine
|
300
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
301
|
-
# resides, or "-" for all zones.
|
302
|
-
#
|
302
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
303
|
+
# cluster resides, or "-" for all zones. This field has been deprecated and
|
304
|
+
# replaced by the parent field.
|
303
305
|
# @param parent [::String]
|
304
306
|
# The parent (project and location) where the clusters will be listed.
|
305
307
|
# Specified in the format `projects/*/locations/*`.
|
@@ -374,9 +376,9 @@ module Google
|
|
374
376
|
# This field has been deprecated and replaced by the name field.
|
375
377
|
# @param zone [::String]
|
376
378
|
# Required. Deprecated. The name of the Google Compute Engine
|
377
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
378
|
-
# resides.
|
379
|
-
#
|
379
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
380
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
381
|
+
# field.
|
380
382
|
# @param cluster_id [::String]
|
381
383
|
# Required. Deprecated. The name of the cluster to retrieve.
|
382
384
|
# This field has been deprecated and replaced by the name field.
|
@@ -434,7 +436,8 @@ module Google
|
|
434
436
|
# Compute Engine instances.
|
435
437
|
#
|
436
438
|
# By default, the cluster is created in the project's
|
437
|
-
# [default
|
439
|
+
# [default
|
440
|
+
# network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
|
438
441
|
#
|
439
442
|
# One firewall is added for the cluster. After cluster creation,
|
440
443
|
# the Kubelet creates routes for each node to allow the containers
|
@@ -465,12 +468,12 @@ module Google
|
|
465
468
|
# This field has been deprecated and replaced by the parent field.
|
466
469
|
# @param zone [::String]
|
467
470
|
# Required. Deprecated. The name of the Google Compute Engine
|
468
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
469
|
-
# resides.
|
470
|
-
#
|
471
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
472
|
+
# cluster resides. This field has been deprecated and replaced by the parent
|
473
|
+
# field.
|
471
474
|
# @param cluster [::Google::Cloud::Container::V1beta1::Cluster, ::Hash]
|
472
475
|
# Required. A [cluster
|
473
|
-
# resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.
|
476
|
+
# resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
|
474
477
|
# @param parent [::String]
|
475
478
|
# The parent (project and location) where the cluster will be created.
|
476
479
|
# Specified in the format `projects/*/locations/*`.
|
@@ -544,9 +547,9 @@ module Google
|
|
544
547
|
# This field has been deprecated and replaced by the name field.
|
545
548
|
# @param zone [::String]
|
546
549
|
# Required. Deprecated. The name of the Google Compute Engine
|
547
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
548
|
-
# resides.
|
549
|
-
#
|
550
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
551
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
552
|
+
# field.
|
550
553
|
# @param cluster_id [::String]
|
551
554
|
# Required. Deprecated. The name of the cluster to upgrade.
|
552
555
|
# This field has been deprecated and replaced by the name field.
|
@@ -614,7 +617,7 @@ module Google
|
|
614
617
|
# @param options [::Gapic::CallOptions, ::Hash]
|
615
618
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
616
619
|
#
|
617
|
-
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, workload_metadata_config: nil, name: nil)
|
620
|
+
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, locations: nil, workload_metadata_config: nil, name: nil, upgrade_settings: nil, linux_node_config: nil, kubelet_config: nil)
|
618
621
|
# Pass arguments to `update_node_pool` via keyword arguments. Note that at
|
619
622
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
620
623
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -625,9 +628,9 @@ module Google
|
|
625
628
|
# This field has been deprecated and replaced by the name field.
|
626
629
|
# @param zone [::String]
|
627
630
|
# Required. Deprecated. The name of the Google Compute Engine
|
628
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
629
|
-
# resides.
|
630
|
-
#
|
631
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
632
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
633
|
+
# field.
|
631
634
|
# @param cluster_id [::String]
|
632
635
|
# Required. Deprecated. The name of the cluster to upgrade.
|
633
636
|
# This field has been deprecated and replaced by the name field.
|
@@ -648,12 +651,24 @@ module Google
|
|
648
651
|
# - "-": picks the Kubernetes master version
|
649
652
|
# @param image_type [::String]
|
650
653
|
# Required. The desired image type for the node pool.
|
654
|
+
# @param locations [::Array<::String>]
|
655
|
+
# The desired list of Google Compute Engine
|
656
|
+
# [zones](https://cloud.google.com/compute/docs/zones#available) in which the
|
657
|
+
# node pool's nodes should be located. Changing the locations for a node pool
|
658
|
+
# will result in nodes being either created or removed from the node pool,
|
659
|
+
# depending on whether locations are being added or removed.
|
651
660
|
# @param workload_metadata_config [::Google::Cloud::Container::V1beta1::WorkloadMetadataConfig, ::Hash]
|
652
|
-
# The desired
|
661
|
+
# The desired workload metadata config for the node pool.
|
653
662
|
# @param name [::String]
|
654
663
|
# The name (project, location, cluster, node pool) of the node pool to
|
655
664
|
# update. Specified in the format
|
656
665
|
# `projects/*/locations/*/clusters/*/nodePools/*`.
|
666
|
+
# @param upgrade_settings [::Google::Cloud::Container::V1beta1::NodePool::UpgradeSettings, ::Hash]
|
667
|
+
# Upgrade settings control disruption and speed of the upgrade.
|
668
|
+
# @param linux_node_config [::Google::Cloud::Container::V1beta1::LinuxNodeConfig, ::Hash]
|
669
|
+
# Parameters that can be configured on Linux nodes.
|
670
|
+
# @param kubelet_config [::Google::Cloud::Container::V1beta1::NodeKubeletConfig, ::Hash]
|
671
|
+
# Node kubelet configs.
|
657
672
|
#
|
658
673
|
# @yield [response, operation] Access the result along with the RPC operation
|
659
674
|
# @yieldparam response [::Google::Cloud::Container::V1beta1::Operation]
|
@@ -724,9 +739,9 @@ module Google
|
|
724
739
|
# This field has been deprecated and replaced by the name field.
|
725
740
|
# @param zone [::String]
|
726
741
|
# Required. Deprecated. The name of the Google Compute Engine
|
727
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
728
|
-
# resides.
|
729
|
-
#
|
742
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
743
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
744
|
+
# field.
|
730
745
|
# @param cluster_id [::String]
|
731
746
|
# Required. Deprecated. The name of the cluster to upgrade.
|
732
747
|
# This field has been deprecated and replaced by the name field.
|
@@ -809,18 +824,24 @@ module Google
|
|
809
824
|
# This field has been deprecated and replaced by the name field.
|
810
825
|
# @param zone [::String]
|
811
826
|
# Required. Deprecated. The name of the Google Compute Engine
|
812
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
813
|
-
# resides.
|
814
|
-
#
|
827
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
828
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
829
|
+
# field.
|
815
830
|
# @param cluster_id [::String]
|
816
831
|
# Required. Deprecated. The name of the cluster to upgrade.
|
817
832
|
# This field has been deprecated and replaced by the name field.
|
818
833
|
# @param logging_service [::String]
|
819
|
-
# Required. The logging service the cluster should use to write
|
834
|
+
# Required. The logging service the cluster should use to write logs.
|
820
835
|
# Currently available options:
|
821
836
|
#
|
822
|
-
# *
|
823
|
-
#
|
837
|
+
# * `logging.googleapis.com/kubernetes` - The Cloud Logging
|
838
|
+
# service with a Kubernetes-native resource model
|
839
|
+
# * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
|
840
|
+
# available as of GKE 1.15).
|
841
|
+
# * `none` - no logs will be exported from the cluster.
|
842
|
+
#
|
843
|
+
# If left as an empty string,`logging.googleapis.com/kubernetes` will be
|
844
|
+
# used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
|
824
845
|
# @param name [::String]
|
825
846
|
# The name (project, location, cluster) of the cluster to set logging.
|
826
847
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
@@ -894,9 +915,9 @@ module Google
|
|
894
915
|
# This field has been deprecated and replaced by the name field.
|
895
916
|
# @param zone [::String]
|
896
917
|
# Required. Deprecated. The name of the Google Compute Engine
|
897
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
898
|
-
# resides.
|
899
|
-
#
|
918
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
919
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
920
|
+
# field.
|
900
921
|
# @param cluster_id [::String]
|
901
922
|
# Required. Deprecated. The name of the cluster to upgrade.
|
902
923
|
# This field has been deprecated and replaced by the name field.
|
@@ -904,8 +925,14 @@ module Google
|
|
904
925
|
# Required. The monitoring service the cluster should use to write metrics.
|
905
926
|
# Currently available options:
|
906
927
|
#
|
907
|
-
# * "monitoring.googleapis.com" -
|
908
|
-
#
|
928
|
+
# * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
|
929
|
+
# service with a Kubernetes-native resource model
|
930
|
+
# * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
|
931
|
+
# longer available as of GKE 1.15).
|
932
|
+
# * `none` - No metrics will be exported from the cluster.
|
933
|
+
#
|
934
|
+
# If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
|
935
|
+
# used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
|
909
936
|
# @param name [::String]
|
910
937
|
# The name (project, location, cluster) of the cluster to set monitoring.
|
911
938
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
@@ -979,9 +1006,9 @@ module Google
|
|
979
1006
|
# This field has been deprecated and replaced by the name field.
|
980
1007
|
# @param zone [::String]
|
981
1008
|
# Required. Deprecated. The name of the Google Compute Engine
|
982
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
983
|
-
# resides.
|
984
|
-
#
|
1009
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1010
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1011
|
+
# field.
|
985
1012
|
# @param cluster_id [::String]
|
986
1013
|
# Required. Deprecated. The name of the cluster to upgrade.
|
987
1014
|
# This field has been deprecated and replaced by the name field.
|
@@ -1039,6 +1066,9 @@ module Google
|
|
1039
1066
|
|
1040
1067
|
##
|
1041
1068
|
# Sets the locations for a specific cluster.
|
1069
|
+
# Deprecated. Use
|
1070
|
+
# [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
|
1071
|
+
# instead.
|
1042
1072
|
#
|
1043
1073
|
# @overload set_locations(request, options = nil)
|
1044
1074
|
# Pass arguments to `set_locations` via a request object, either of type
|
@@ -1061,18 +1091,18 @@ module Google
|
|
1061
1091
|
# This field has been deprecated and replaced by the name field.
|
1062
1092
|
# @param zone [::String]
|
1063
1093
|
# Required. Deprecated. The name of the Google Compute Engine
|
1064
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1065
|
-
# resides.
|
1066
|
-
#
|
1094
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1095
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1096
|
+
# field.
|
1067
1097
|
# @param cluster_id [::String]
|
1068
1098
|
# Required. Deprecated. The name of the cluster to upgrade.
|
1069
1099
|
# This field has been deprecated and replaced by the name field.
|
1070
1100
|
# @param locations [::Array<::String>]
|
1071
1101
|
# Required. The desired list of Google Compute Engine
|
1072
|
-
# [zones](https://cloud.google.com/compute/docs/zones#available) in which the
|
1073
|
-
# should be located. Changing the locations a cluster is in
|
1074
|
-
# in nodes being either created or removed from the cluster,
|
1075
|
-
# whether locations are being added or removed.
|
1102
|
+
# [zones](https://cloud.google.com/compute/docs/zones#available) in which the
|
1103
|
+
# cluster's nodes should be located. Changing the locations a cluster is in
|
1104
|
+
# will result in nodes being either created or removed from the cluster,
|
1105
|
+
# depending on whether locations are being added or removed.
|
1076
1106
|
#
|
1077
1107
|
# This list must always include the cluster's primary zone.
|
1078
1108
|
# @param name [::String]
|
@@ -1148,9 +1178,9 @@ module Google
|
|
1148
1178
|
# This field has been deprecated and replaced by the name field.
|
1149
1179
|
# @param zone [::String]
|
1150
1180
|
# Required. Deprecated. The name of the Google Compute Engine
|
1151
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1152
|
-
# resides.
|
1153
|
-
#
|
1181
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1182
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1183
|
+
# field.
|
1154
1184
|
# @param cluster_id [::String]
|
1155
1185
|
# Required. Deprecated. The name of the cluster to upgrade.
|
1156
1186
|
# This field has been deprecated and replaced by the name field.
|
@@ -1240,9 +1270,9 @@ module Google
|
|
1240
1270
|
# This field has been deprecated and replaced by the name field.
|
1241
1271
|
# @param zone [::String]
|
1242
1272
|
# Required. Deprecated. The name of the Google Compute Engine
|
1243
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1244
|
-
# resides.
|
1245
|
-
#
|
1273
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1274
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1275
|
+
# field.
|
1246
1276
|
# @param cluster_id [::String]
|
1247
1277
|
# Required. Deprecated. The name of the cluster to upgrade.
|
1248
1278
|
# This field has been deprecated and replaced by the name field.
|
@@ -1331,9 +1361,9 @@ module Google
|
|
1331
1361
|
# This field has been deprecated and replaced by the name field.
|
1332
1362
|
# @param zone [::String]
|
1333
1363
|
# Required. Deprecated. The name of the Google Compute Engine
|
1334
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1335
|
-
# resides.
|
1336
|
-
#
|
1364
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1365
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1366
|
+
# field.
|
1337
1367
|
# @param cluster_id [::String]
|
1338
1368
|
# Required. Deprecated. The name of the cluster to delete.
|
1339
1369
|
# This field has been deprecated and replaced by the name field.
|
@@ -1410,8 +1440,9 @@ module Google
|
|
1410
1440
|
# This field has been deprecated and replaced by the parent field.
|
1411
1441
|
# @param zone [::String]
|
1412
1442
|
# Required. Deprecated. The name of the Google Compute Engine
|
1413
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) to return
|
1414
|
-
# all zones. This field has been deprecated and
|
1443
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) to return
|
1444
|
+
# operations for, or `-` for all zones. This field has been deprecated and
|
1445
|
+
# replaced by the parent field.
|
1415
1446
|
# @param parent [::String]
|
1416
1447
|
# The parent (project and location) where the operations will be listed.
|
1417
1448
|
# Specified in the format `projects/*/locations/*`.
|
@@ -1486,9 +1517,9 @@ module Google
|
|
1486
1517
|
# This field has been deprecated and replaced by the name field.
|
1487
1518
|
# @param zone [::String]
|
1488
1519
|
# Required. Deprecated. The name of the Google Compute Engine
|
1489
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1490
|
-
# resides.
|
1491
|
-
#
|
1520
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1521
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1522
|
+
# field.
|
1492
1523
|
# @param operation_id [::String]
|
1493
1524
|
# Required. Deprecated. The server-assigned `name` of the operation.
|
1494
1525
|
# This field has been deprecated and replaced by the name field.
|
@@ -1565,8 +1596,9 @@ module Google
|
|
1565
1596
|
# This field has been deprecated and replaced by the name field.
|
1566
1597
|
# @param zone [::String]
|
1567
1598
|
# Required. Deprecated. The name of the Google Compute Engine
|
1568
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1569
|
-
# This field has been deprecated and replaced by the name
|
1599
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1600
|
+
# operation resides. This field has been deprecated and replaced by the name
|
1601
|
+
# field.
|
1570
1602
|
# @param operation_id [::String]
|
1571
1603
|
# Required. Deprecated. The server-assigned `name` of the operation.
|
1572
1604
|
# This field has been deprecated and replaced by the name field.
|
@@ -1643,8 +1675,9 @@ module Google
|
|
1643
1675
|
# This field has been deprecated and replaced by the name field.
|
1644
1676
|
# @param zone [::String]
|
1645
1677
|
# Required. Deprecated. The name of the Google Compute Engine
|
1646
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) to return
|
1647
|
-
# This field has been deprecated and replaced by the name
|
1678
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) to return
|
1679
|
+
# operations for. This field has been deprecated and replaced by the name
|
1680
|
+
# field.
|
1648
1681
|
# @param name [::String]
|
1649
1682
|
# The name (project and location) of the server config to get,
|
1650
1683
|
# specified in the format `projects/*/locations/*`.
|
@@ -1718,9 +1751,9 @@ module Google
|
|
1718
1751
|
# This field has been deprecated and replaced by the parent field.
|
1719
1752
|
# @param zone [::String]
|
1720
1753
|
# Required. Deprecated. The name of the Google Compute Engine
|
1721
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1722
|
-
# resides.
|
1723
|
-
#
|
1754
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1755
|
+
# cluster resides. This field has been deprecated and replaced by the parent
|
1756
|
+
# field.
|
1724
1757
|
# @param cluster_id [::String]
|
1725
1758
|
# Required. Deprecated. The name of the cluster.
|
1726
1759
|
# This field has been deprecated and replaced by the parent field.
|
@@ -1773,6 +1806,76 @@ module Google
|
|
1773
1806
|
raise ::Google::Cloud::Error.from_error(e)
|
1774
1807
|
end
|
1775
1808
|
|
1809
|
+
##
|
1810
|
+
# Gets the public component of the cluster signing keys in
|
1811
|
+
# JSON Web Key format.
|
1812
|
+
# This API is not yet intended for general use, and is not available for all
|
1813
|
+
# clusters.
|
1814
|
+
#
|
1815
|
+
# @overload get_json_web_keys(request, options = nil)
|
1816
|
+
# Pass arguments to `get_json_web_keys` via a request object, either of type
|
1817
|
+
# {::Google::Cloud::Container::V1beta1::GetJSONWebKeysRequest} or an equivalent Hash.
|
1818
|
+
#
|
1819
|
+
# @param request [::Google::Cloud::Container::V1beta1::GetJSONWebKeysRequest, ::Hash]
|
1820
|
+
# A request object representing the call parameters. Required. To specify no
|
1821
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1822
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1823
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1824
|
+
#
|
1825
|
+
# @overload get_json_web_keys(parent: nil)
|
1826
|
+
# Pass arguments to `get_json_web_keys` via keyword arguments. Note that at
|
1827
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1828
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1829
|
+
#
|
1830
|
+
# @param parent [::String]
|
1831
|
+
# The cluster (project, location, cluster id) to get keys for. Specified in
|
1832
|
+
# the format `projects/*/locations/*/clusters/*`.
|
1833
|
+
#
|
1834
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1835
|
+
# @yieldparam response [::Google::Cloud::Container::V1beta1::GetJSONWebKeysResponse]
|
1836
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1837
|
+
#
|
1838
|
+
# @return [::Google::Cloud::Container::V1beta1::GetJSONWebKeysResponse]
|
1839
|
+
#
|
1840
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1841
|
+
#
|
1842
|
+
def get_json_web_keys request, options = nil
|
1843
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1844
|
+
|
1845
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1beta1::GetJSONWebKeysRequest
|
1846
|
+
|
1847
|
+
# Converts hash and nil to an options object
|
1848
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1849
|
+
|
1850
|
+
# Customize the options with defaults
|
1851
|
+
metadata = @config.rpcs.get_json_web_keys.metadata.to_h
|
1852
|
+
|
1853
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1854
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1855
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1856
|
+
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1857
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1858
|
+
|
1859
|
+
header_params = {
|
1860
|
+
"parent" => request.parent
|
1861
|
+
}
|
1862
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1863
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1864
|
+
|
1865
|
+
options.apply_defaults timeout: @config.rpcs.get_json_web_keys.timeout,
|
1866
|
+
metadata: metadata,
|
1867
|
+
retry_policy: @config.rpcs.get_json_web_keys.retry_policy
|
1868
|
+
options.apply_defaults metadata: @config.metadata,
|
1869
|
+
retry_policy: @config.retry_policy
|
1870
|
+
|
1871
|
+
@cluster_manager_stub.call_rpc :get_json_web_keys, request, options: options do |response, operation|
|
1872
|
+
yield response, operation if block_given?
|
1873
|
+
return response
|
1874
|
+
end
|
1875
|
+
rescue ::GRPC::BadStatus => e
|
1876
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1877
|
+
end
|
1878
|
+
|
1776
1879
|
##
|
1777
1880
|
# Retrieves the requested node pool.
|
1778
1881
|
#
|
@@ -1797,9 +1900,9 @@ module Google
|
|
1797
1900
|
# This field has been deprecated and replaced by the name field.
|
1798
1901
|
# @param zone [::String]
|
1799
1902
|
# Required. Deprecated. The name of the Google Compute Engine
|
1800
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1801
|
-
# resides.
|
1802
|
-
#
|
1903
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1904
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1905
|
+
# field.
|
1803
1906
|
# @param cluster_id [::String]
|
1804
1907
|
# Required. Deprecated. The name of the cluster.
|
1805
1908
|
# This field has been deprecated and replaced by the name field.
|
@@ -1880,9 +1983,9 @@ module Google
|
|
1880
1983
|
# This field has been deprecated and replaced by the parent field.
|
1881
1984
|
# @param zone [::String]
|
1882
1985
|
# Required. Deprecated. The name of the Google Compute Engine
|
1883
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1884
|
-
# resides.
|
1885
|
-
#
|
1986
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1987
|
+
# cluster resides. This field has been deprecated and replaced by the parent
|
1988
|
+
# field.
|
1886
1989
|
# @param cluster_id [::String]
|
1887
1990
|
# Required. Deprecated. The name of the cluster.
|
1888
1991
|
# This field has been deprecated and replaced by the parent field.
|
@@ -1962,9 +2065,9 @@ module Google
|
|
1962
2065
|
# This field has been deprecated and replaced by the name field.
|
1963
2066
|
# @param zone [::String]
|
1964
2067
|
# Required. Deprecated. The name of the Google Compute Engine
|
1965
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1966
|
-
# resides.
|
1967
|
-
#
|
2068
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2069
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2070
|
+
# field.
|
1968
2071
|
# @param cluster_id [::String]
|
1969
2072
|
# Required. Deprecated. The name of the cluster.
|
1970
2073
|
# This field has been deprecated and replaced by the name field.
|
@@ -2046,9 +2149,9 @@ module Google
|
|
2046
2149
|
# This field has been deprecated and replaced by the name field.
|
2047
2150
|
# @param zone [::String]
|
2048
2151
|
# Required. Deprecated. The name of the Google Compute Engine
|
2049
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2050
|
-
# resides.
|
2051
|
-
#
|
2152
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2153
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2154
|
+
# field.
|
2052
2155
|
# @param cluster_id [::String]
|
2053
2156
|
# Required. Deprecated. The name of the cluster to rollback.
|
2054
2157
|
# This field has been deprecated and replaced by the name field.
|
@@ -2129,9 +2232,9 @@ module Google
|
|
2129
2232
|
# This field has been deprecated and replaced by the name field.
|
2130
2233
|
# @param zone [::String]
|
2131
2234
|
# Required. Deprecated. The name of the Google Compute Engine
|
2132
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2133
|
-
# resides.
|
2134
|
-
#
|
2235
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2236
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2237
|
+
# field.
|
2135
2238
|
# @param cluster_id [::String]
|
2136
2239
|
# Required. Deprecated. The name of the cluster to update.
|
2137
2240
|
# This field has been deprecated and replaced by the name field.
|
@@ -2214,9 +2317,9 @@ module Google
|
|
2214
2317
|
# This field has been deprecated and replaced by the name field.
|
2215
2318
|
# @param zone [::String]
|
2216
2319
|
# Required. Deprecated. The name of the Google Compute Engine
|
2217
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2218
|
-
# resides.
|
2219
|
-
#
|
2320
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2321
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2322
|
+
# field.
|
2220
2323
|
# @param cluster_id [::String]
|
2221
2324
|
# Required. Deprecated. The name of the cluster.
|
2222
2325
|
# This field has been deprecated and replaced by the name field.
|
@@ -2227,7 +2330,7 @@ module Google
|
|
2227
2330
|
# used to detect conflicts. The fingerprint is initially generated by
|
2228
2331
|
# Kubernetes Engine and changes after every request to modify or update
|
2229
2332
|
# labels. You must always provide an up-to-date fingerprint hash when
|
2230
|
-
# updating or changing labels. Make a
|
2333
|
+
# updating or changing labels. Make a `get()` request to the
|
2231
2334
|
# resource to get the latest fingerprint.
|
2232
2335
|
# @param name [::String]
|
2233
2336
|
# The name (project, location, cluster id) of the cluster to set labels.
|
@@ -2302,9 +2405,9 @@ module Google
|
|
2302
2405
|
# This field has been deprecated and replaced by the name field.
|
2303
2406
|
# @param zone [::String]
|
2304
2407
|
# Required. Deprecated. The name of the Google Compute Engine
|
2305
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2306
|
-
# resides.
|
2307
|
-
#
|
2408
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2409
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2410
|
+
# field.
|
2308
2411
|
# @param cluster_id [::String]
|
2309
2412
|
# Required. Deprecated. The name of the cluster to update.
|
2310
2413
|
# This field has been deprecated and replaced by the name field.
|
@@ -2383,9 +2486,9 @@ module Google
|
|
2383
2486
|
# This field has been deprecated and replaced by the name field.
|
2384
2487
|
# @param zone [::String]
|
2385
2488
|
# Required. Deprecated. The name of the Google Compute Engine
|
2386
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2387
|
-
# resides.
|
2388
|
-
#
|
2489
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2490
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2491
|
+
# field.
|
2389
2492
|
# @param cluster_id [::String]
|
2390
2493
|
# Required. Deprecated. The name of the cluster.
|
2391
2494
|
# This field has been deprecated and replaced by the name field.
|
@@ -2464,9 +2567,9 @@ module Google
|
|
2464
2567
|
# This field has been deprecated and replaced by the name field.
|
2465
2568
|
# @param zone [::String]
|
2466
2569
|
# Required. Deprecated. The name of the Google Compute Engine
|
2467
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2468
|
-
# resides.
|
2469
|
-
#
|
2570
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2571
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2572
|
+
# field.
|
2470
2573
|
# @param cluster_id [::String]
|
2471
2574
|
# Required. Deprecated. The name of the cluster.
|
2472
2575
|
# This field has been deprecated and replaced by the name field.
|
@@ -2543,9 +2646,9 @@ module Google
|
|
2543
2646
|
# This field has been deprecated and replaced by the name field.
|
2544
2647
|
# @param zone [::String]
|
2545
2648
|
# Required. Deprecated. The name of the Google Compute Engine
|
2546
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2547
|
-
# resides.
|
2548
|
-
#
|
2649
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2650
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2651
|
+
# field.
|
2549
2652
|
# @param cluster_id [::String]
|
2550
2653
|
# Required. Deprecated. The name of the cluster to update.
|
2551
2654
|
# This field has been deprecated and replaced by the name field.
|
@@ -2628,9 +2731,9 @@ module Google
|
|
2628
2731
|
# This field has been deprecated and replaced by the name field.
|
2629
2732
|
# @param zone [::String]
|
2630
2733
|
# Required. Deprecated. The name of the Google Compute Engine
|
2631
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2632
|
-
# resides.
|
2633
|
-
#
|
2734
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2735
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2736
|
+
# field.
|
2634
2737
|
# @param cluster_id [::String]
|
2635
2738
|
# Required. Deprecated. The name of the cluster.
|
2636
2739
|
# This field has been deprecated and replaced by the name field.
|
@@ -2708,8 +2811,8 @@ module Google
|
|
2708
2811
|
# number](https://support.google.com/cloud/answer/6158840).
|
2709
2812
|
# @param zone [::String]
|
2710
2813
|
# Required. The name of the Google Compute Engine
|
2711
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2712
|
-
# resides.
|
2814
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2815
|
+
# cluster resides.
|
2713
2816
|
# @param cluster_id [::String]
|
2714
2817
|
# Required. The name of the cluster to update.
|
2715
2818
|
# @param maintenance_policy [::Google::Cloud::Container::V1beta1::MaintenancePolicy, ::Hash]
|
@@ -3140,6 +3243,11 @@ module Google
|
|
3140
3243
|
#
|
3141
3244
|
attr_reader :list_node_pools
|
3142
3245
|
##
|
3246
|
+
# RPC-specific configuration for `get_json_web_keys`
|
3247
|
+
# @return [::Gapic::Config::Method]
|
3248
|
+
#
|
3249
|
+
attr_reader :get_json_web_keys
|
3250
|
+
##
|
3143
3251
|
# RPC-specific configuration for `get_node_pool`
|
3144
3252
|
# @return [::Gapic::Config::Method]
|
3145
3253
|
#
|
@@ -3248,6 +3356,8 @@ module Google
|
|
3248
3356
|
@get_server_config = ::Gapic::Config::Method.new get_server_config_config
|
3249
3357
|
list_node_pools_config = parent_rpcs&.list_node_pools if parent_rpcs&.respond_to? :list_node_pools
|
3250
3358
|
@list_node_pools = ::Gapic::Config::Method.new list_node_pools_config
|
3359
|
+
get_json_web_keys_config = parent_rpcs&.get_json_web_keys if parent_rpcs&.respond_to? :get_json_web_keys
|
3360
|
+
@get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config
|
3251
3361
|
get_node_pool_config = parent_rpcs&.get_node_pool if parent_rpcs&.respond_to? :get_node_pool
|
3252
3362
|
@get_node_pool = ::Gapic::Config::Method.new get_node_pool_config
|
3253
3363
|
create_node_pool_config = parent_rpcs&.create_node_pool if parent_rpcs&.respond_to? :create_node_pool
|