google-cloud-container-v1 1.7.0 → 1.9.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.
@@ -288,9 +288,9 @@ module Google
288
288
  # This field has been deprecated and replaced by the parent field.
289
289
  # @param zone [::String]
290
290
  # Deprecated. The name of the Google Compute Engine
291
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
292
- # cluster resides, or "-" for all zones. This field has been deprecated and
293
- # replaced by the parent field.
291
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
292
+ # in which the cluster resides, or "-" for all zones. This field has been
293
+ # deprecated and replaced by the parent field.
294
294
  # @param parent [::String]
295
295
  # The parent (project and location) where the clusters will be listed.
296
296
  # Specified in the format `projects/*/locations/*`.
@@ -377,9 +377,9 @@ module Google
377
377
  # This field has been deprecated and replaced by the name field.
378
378
  # @param zone [::String]
379
379
  # Deprecated. The name of the Google Compute Engine
380
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
381
- # cluster resides. This field has been deprecated and replaced by the name
382
- # field.
380
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
381
+ # in which the cluster resides. This field has been deprecated and replaced
382
+ # by the name field.
383
383
  # @param cluster_id [::String]
384
384
  # Deprecated. The name of the cluster to retrieve.
385
385
  # This field has been deprecated and replaced by the name field.
@@ -481,9 +481,9 @@ module Google
481
481
  # This field has been deprecated and replaced by the parent field.
482
482
  # @param zone [::String]
483
483
  # Deprecated. The name of the Google Compute Engine
484
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
485
- # cluster resides. This field has been deprecated and replaced by the parent
486
- # field.
484
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
485
+ # in which the cluster resides. This field has been deprecated and replaced
486
+ # by the parent field.
487
487
  # @param cluster [::Google::Cloud::Container::V1::Cluster, ::Hash]
488
488
  # Required. A [cluster
489
489
  # resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
@@ -572,9 +572,9 @@ module Google
572
572
  # This field has been deprecated and replaced by the name field.
573
573
  # @param zone [::String]
574
574
  # Deprecated. The name of the Google Compute Engine
575
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
576
- # cluster resides. This field has been deprecated and replaced by the name
577
- # field.
575
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
576
+ # in which the cluster resides. This field has been deprecated and replaced
577
+ # by the name field.
578
578
  # @param cluster_id [::String]
579
579
  # Deprecated. The name of the cluster to upgrade.
580
580
  # This field has been deprecated and replaced by the name field.
@@ -654,7 +654,7 @@ module Google
654
654
  # @param options [::Gapic::CallOptions, ::Hash]
655
655
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
656
656
  #
657
- # @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, tags: nil, taints: nil, labels: nil, linux_node_config: nil, kubelet_config: nil, node_network_config: nil, gcfs_config: nil, confidential_nodes: nil, gvnic: nil, etag: nil, fast_socket: nil, logging_config: nil, resource_labels: nil, windows_node_config: nil, accelerators: nil, machine_type: nil, disk_type: nil, disk_size_gb: nil, resource_manager_tags: nil, containerd_config: nil, queued_provisioning: nil, storage_pools: nil)
657
+ # @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, tags: nil, taints: nil, labels: nil, linux_node_config: nil, kubelet_config: nil, node_network_config: nil, gcfs_config: nil, confidential_nodes: nil, gvnic: nil, etag: nil, fast_socket: nil, logging_config: nil, resource_labels: nil, windows_node_config: nil, accelerators: nil, machine_type: nil, disk_type: nil, disk_size_gb: nil, resource_manager_tags: nil, containerd_config: nil, queued_provisioning: nil, storage_pools: nil, max_run_duration: nil, flex_start: nil, boot_disk: nil)
658
658
  # Pass arguments to `update_node_pool` via keyword arguments. Note that at
659
659
  # least one keyword argument is required. To specify no parameters, or to keep all
660
660
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -665,9 +665,9 @@ module Google
665
665
  # This field has been deprecated and replaced by the name field.
666
666
  # @param zone [::String]
667
667
  # Deprecated. The name of the Google Compute Engine
668
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
669
- # cluster resides. This field has been deprecated and replaced by the name
670
- # field.
668
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
669
+ # in which the cluster resides. This field has been deprecated and replaced
670
+ # by the name field.
671
671
  # @param cluster_id [::String]
672
672
  # Deprecated. The name of the cluster to upgrade.
673
673
  # This field has been deprecated and replaced by the name field.
@@ -688,18 +688,18 @@ module Google
688
688
  # - "-": picks the Kubernetes master version
689
689
  # @param image_type [::String]
690
690
  # Required. The desired image type for the node pool. Please see
691
- # https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
692
- # available image types.
691
+ # https://cloud.google.com/kubernetes-engine/docs/concepts/node-images
692
+ # for available image types.
693
693
  # @param name [::String]
694
694
  # The name (project, location, cluster, node pool) of the node pool to
695
695
  # update. Specified in the format
696
696
  # `projects/*/locations/*/clusters/*/nodePools/*`.
697
697
  # @param locations [::Array<::String>]
698
698
  # The desired list of Google Compute Engine
699
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
700
- # node pool's nodes should be located. Changing the locations for a node pool
701
- # will result in nodes being either created or removed from the node pool,
702
- # depending on whether locations are being added or removed.
699
+ # [zones](https://cloud.google.com/compute/docs/zones#available)
700
+ # in which the node pool's nodes should be located. Changing the locations
701
+ # for a node pool will result in nodes being either created or removed from
702
+ # the node pool, depending on whether locations are being added or removed.
703
703
  # @param workload_metadata_config [::Google::Cloud::Container::V1::WorkloadMetadataConfig, ::Hash]
704
704
  # The desired workload metadata config for the node pool.
705
705
  # @param upgrade_settings [::Google::Cloud::Container::V1::NodePool::UpgradeSettings, ::Hash]
@@ -744,13 +744,14 @@ module Google
744
744
  # Parameters that can be configured on Windows nodes.
745
745
  # @param accelerators [::Array<::Google::Cloud::Container::V1::AcceleratorConfig, ::Hash>]
746
746
  # A list of hardware accelerators to be attached to each node.
747
- # See https://cloud.google.com/compute/docs/gpus for more information about
748
- # support for GPUs.
747
+ # See
748
+ # https://cloud.google.com/compute/docs/gpus
749
+ # for more information about support for GPUs.
749
750
  # @param machine_type [::String]
750
751
  # Optional. The desired [Google Compute Engine machine
751
- # type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
752
- # node pool. Initiates an upgrade operation that migrates the nodes in the
753
- # node pool to the specified machine type.
752
+ # type](https://cloud.google.com/compute/docs/machine-types)
753
+ # for nodes in the node pool. Initiates an upgrade operation that migrates
754
+ # the nodes in the node pool to the specified machine type.
754
755
  # @param disk_type [::String]
755
756
  # Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
756
757
  # 'pd-balanced') for nodes in the node pool.
@@ -774,6 +775,15 @@ module Google
774
775
  # @param storage_pools [::Array<::String>]
775
776
  # List of Storage Pools where boot disks are provisioned.
776
777
  # Existing Storage Pools will be replaced with storage-pools.
778
+ # @param max_run_duration [::Google::Protobuf::Duration, ::Hash]
779
+ # The maximum duration for the nodes to exist.
780
+ # If unspecified, the nodes can exist indefinitely.
781
+ # @param flex_start [::Boolean]
782
+ # Flex Start flag for enabling Flex Start VM.
783
+ # @param boot_disk [::Google::Cloud::Container::V1::BootDisk, ::Hash]
784
+ # The desired boot disk config for nodes in the node pool.
785
+ # Initiates an upgrade operation that migrates the nodes in the
786
+ # node pool to the specified boot disk config.
777
787
  # @yield [result, operation] Access the result along with the TransportOperation object
778
788
  # @yieldparam result [::Google::Cloud::Container::V1::Operation]
779
789
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -856,9 +866,9 @@ module Google
856
866
  # This field has been deprecated and replaced by the name field.
857
867
  # @param zone [::String]
858
868
  # Deprecated. The name of the Google Compute Engine
859
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
860
- # cluster resides. This field has been deprecated and replaced by the name
861
- # field.
869
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
870
+ # in which the cluster resides. This field has been deprecated and replaced
871
+ # by the name field.
862
872
  # @param cluster_id [::String]
863
873
  # Deprecated. The name of the cluster to upgrade.
864
874
  # This field has been deprecated and replaced by the name field.
@@ -953,9 +963,9 @@ module Google
953
963
  # This field has been deprecated and replaced by the name field.
954
964
  # @param zone [::String]
955
965
  # Deprecated. The name of the Google Compute Engine
956
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
957
- # cluster resides. This field has been deprecated and replaced by the name
958
- # field.
966
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
967
+ # in which the cluster resides. This field has been deprecated and replaced
968
+ # by the name field.
959
969
  # @param cluster_id [::String]
960
970
  # Deprecated. The name of the cluster to upgrade.
961
971
  # This field has been deprecated and replaced by the name field.
@@ -1056,9 +1066,9 @@ module Google
1056
1066
  # This field has been deprecated and replaced by the name field.
1057
1067
  # @param zone [::String]
1058
1068
  # Deprecated. The name of the Google Compute Engine
1059
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1060
- # cluster resides. This field has been deprecated and replaced by the name
1061
- # field.
1069
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1070
+ # in which the cluster resides. This field has been deprecated and replaced
1071
+ # by the name field.
1062
1072
  # @param cluster_id [::String]
1063
1073
  # Deprecated. The name of the cluster to upgrade.
1064
1074
  # This field has been deprecated and replaced by the name field.
@@ -1066,7 +1076,7 @@ module Google
1066
1076
  # Required. The monitoring service the cluster should use to write metrics.
1067
1077
  # Currently available options:
1068
1078
  #
1069
- # * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
1079
+ # * `monitoring.googleapis.com/kubernetes` - The Cloud Monitoring
1070
1080
  # service with a Kubernetes-native resource model
1071
1081
  # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
1072
1082
  # longer available as of GKE 1.15).
@@ -1159,9 +1169,9 @@ module Google
1159
1169
  # This field has been deprecated and replaced by the name field.
1160
1170
  # @param zone [::String]
1161
1171
  # Deprecated. The name of the Google Compute Engine
1162
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1163
- # cluster resides. This field has been deprecated and replaced by the name
1164
- # field.
1172
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1173
+ # in which the cluster resides. This field has been deprecated and replaced
1174
+ # by the name field.
1165
1175
  # @param cluster_id [::String]
1166
1176
  # Deprecated. The name of the cluster to upgrade.
1167
1177
  # This field has been deprecated and replaced by the name field.
@@ -1256,18 +1266,18 @@ module Google
1256
1266
  # This field has been deprecated and replaced by the name field.
1257
1267
  # @param zone [::String]
1258
1268
  # Deprecated. The name of the Google Compute Engine
1259
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1260
- # cluster resides. This field has been deprecated and replaced by the name
1261
- # field.
1269
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1270
+ # in which the cluster resides. This field has been deprecated and replaced
1271
+ # by the name field.
1262
1272
  # @param cluster_id [::String]
1263
1273
  # Deprecated. The name of the cluster to upgrade.
1264
1274
  # This field has been deprecated and replaced by the name field.
1265
1275
  # @param locations [::Array<::String>]
1266
1276
  # Required. The desired list of Google Compute Engine
1267
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1268
- # cluster's nodes should be located. Changing the locations a cluster is in
1269
- # will result in nodes being either created or removed from the cluster,
1270
- # depending on whether locations are being added or removed.
1277
+ # [zones](https://cloud.google.com/compute/docs/zones#available)
1278
+ # in which the cluster's nodes should be located. Changing the locations a
1279
+ # cluster is in will result in nodes being either created or removed from the
1280
+ # cluster, depending on whether locations are being added or removed.
1271
1281
  #
1272
1282
  # This list must always include the cluster's primary zone.
1273
1283
  # @param name [::String]
@@ -1355,9 +1365,9 @@ module Google
1355
1365
  # This field has been deprecated and replaced by the name field.
1356
1366
  # @param zone [::String]
1357
1367
  # Deprecated. The name of the Google Compute Engine
1358
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1359
- # cluster resides. This field has been deprecated and replaced by the name
1360
- # field.
1368
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1369
+ # in which the cluster resides. This field has been deprecated and replaced
1370
+ # by the name field.
1361
1371
  # @param cluster_id [::String]
1362
1372
  # Deprecated. The name of the cluster to upgrade.
1363
1373
  # This field has been deprecated and replaced by the name field.
@@ -1459,9 +1469,9 @@ module Google
1459
1469
  # This field has been deprecated and replaced by the name field.
1460
1470
  # @param zone [::String]
1461
1471
  # Deprecated. The name of the Google Compute Engine
1462
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1463
- # cluster resides. This field has been deprecated and replaced by the name
1464
- # field.
1472
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1473
+ # in which the cluster resides. This field has been deprecated and replaced
1474
+ # by the name field.
1465
1475
  # @param cluster_id [::String]
1466
1476
  # Deprecated. The name of the cluster to upgrade.
1467
1477
  # This field has been deprecated and replaced by the name field.
@@ -1562,9 +1572,9 @@ module Google
1562
1572
  # This field has been deprecated and replaced by the name field.
1563
1573
  # @param zone [::String]
1564
1574
  # Deprecated. The name of the Google Compute Engine
1565
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1566
- # cluster resides. This field has been deprecated and replaced by the name
1567
- # field.
1575
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1576
+ # in which the cluster resides. This field has been deprecated and replaced
1577
+ # by the name field.
1568
1578
  # @param cluster_id [::String]
1569
1579
  # Deprecated. The name of the cluster to delete.
1570
1580
  # This field has been deprecated and replaced by the name field.
@@ -1653,9 +1663,9 @@ module Google
1653
1663
  # This field has been deprecated and replaced by the parent field.
1654
1664
  # @param zone [::String]
1655
1665
  # Deprecated. The name of the Google Compute Engine
1656
- # [zone](https://cloud.google.com/compute/docs/zones#available) to return
1657
- # operations for, or `-` for all zones. This field has been deprecated and
1658
- # replaced by the parent field.
1666
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1667
+ # to return operations for, or `-` for all zones. This field has been
1668
+ # deprecated and replaced by the parent field.
1659
1669
  # @param parent [::String]
1660
1670
  # The parent (project and location) where the operations will be listed.
1661
1671
  # Specified in the format `projects/*/locations/*`.
@@ -1742,9 +1752,9 @@ module Google
1742
1752
  # This field has been deprecated and replaced by the name field.
1743
1753
  # @param zone [::String]
1744
1754
  # Deprecated. The name of the Google Compute Engine
1745
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1746
- # cluster resides. This field has been deprecated and replaced by the name
1747
- # field.
1755
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1756
+ # in which the cluster resides. This field has been deprecated and replaced
1757
+ # by the name field.
1748
1758
  # @param operation_id [::String]
1749
1759
  # Deprecated. The server-assigned `name` of the operation.
1750
1760
  # This field has been deprecated and replaced by the name field.
@@ -1833,9 +1843,9 @@ module Google
1833
1843
  # This field has been deprecated and replaced by the name field.
1834
1844
  # @param zone [::String]
1835
1845
  # Deprecated. The name of the Google Compute Engine
1836
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1837
- # operation resides. This field has been deprecated and replaced by the name
1838
- # field.
1846
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1847
+ # in which the operation resides. This field has been deprecated and replaced
1848
+ # by the name field.
1839
1849
  # @param operation_id [::String]
1840
1850
  # Deprecated. The server-assigned `name` of the operation.
1841
1851
  # This field has been deprecated and replaced by the name field.
@@ -1924,9 +1934,9 @@ module Google
1924
1934
  # This field has been deprecated and replaced by the name field.
1925
1935
  # @param zone [::String]
1926
1936
  # Deprecated. The name of the Google Compute Engine
1927
- # [zone](https://cloud.google.com/compute/docs/zones#available) to return
1928
- # operations for. This field has been deprecated and replaced by the name
1929
- # field.
1937
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1938
+ # to return operations for. This field has been deprecated and replaced by
1939
+ # the name field.
1930
1940
  # @param name [::String]
1931
1941
  # The name (project and location) of the server config to get,
1932
1942
  # specified in the format `projects/*/locations/*`.
@@ -2092,9 +2102,9 @@ module Google
2092
2102
  # This field has been deprecated and replaced by the parent field.
2093
2103
  # @param zone [::String]
2094
2104
  # Deprecated. The name of the Google Compute Engine
2095
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2096
- # cluster resides. This field has been deprecated and replaced by the parent
2097
- # field.
2105
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2106
+ # in which the cluster resides. This field has been deprecated and replaced
2107
+ # by the parent field.
2098
2108
  # @param cluster_id [::String]
2099
2109
  # Deprecated. The name of the cluster.
2100
2110
  # This field has been deprecated and replaced by the parent field.
@@ -2183,9 +2193,9 @@ module Google
2183
2193
  # This field has been deprecated and replaced by the name field.
2184
2194
  # @param zone [::String]
2185
2195
  # Deprecated. The name of the Google Compute Engine
2186
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2187
- # cluster resides. This field has been deprecated and replaced by the name
2188
- # field.
2196
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2197
+ # in which the cluster resides. This field has been deprecated and replaced
2198
+ # by the name field.
2189
2199
  # @param cluster_id [::String]
2190
2200
  # Deprecated. The name of the cluster.
2191
2201
  # This field has been deprecated and replaced by the name field.
@@ -2278,9 +2288,9 @@ module Google
2278
2288
  # This field has been deprecated and replaced by the parent field.
2279
2289
  # @param zone [::String]
2280
2290
  # Deprecated. The name of the Google Compute Engine
2281
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2282
- # cluster resides. This field has been deprecated and replaced by the parent
2283
- # field.
2291
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2292
+ # in which the cluster resides. This field has been deprecated and replaced
2293
+ # by the parent field.
2284
2294
  # @param cluster_id [::String]
2285
2295
  # Deprecated. The name of the cluster.
2286
2296
  # This field has been deprecated and replaced by the parent field.
@@ -2372,9 +2382,9 @@ module Google
2372
2382
  # This field has been deprecated and replaced by the name field.
2373
2383
  # @param zone [::String]
2374
2384
  # Deprecated. The name of the Google Compute Engine
2375
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2376
- # cluster resides. This field has been deprecated and replaced by the name
2377
- # field.
2385
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2386
+ # in which the cluster resides. This field has been deprecated and replaced
2387
+ # by the name field.
2378
2388
  # @param cluster_id [::String]
2379
2389
  # Deprecated. The name of the cluster.
2380
2390
  # This field has been deprecated and replaced by the name field.
@@ -2549,9 +2559,9 @@ module Google
2549
2559
  # This field has been deprecated and replaced by the name field.
2550
2560
  # @param zone [::String]
2551
2561
  # Deprecated. The name of the Google Compute Engine
2552
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2553
- # cluster resides. This field has been deprecated and replaced by the name
2554
- # field.
2562
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2563
+ # in which the cluster resides. This field has been deprecated and replaced
2564
+ # by the name field.
2555
2565
  # @param cluster_id [::String]
2556
2566
  # Deprecated. The name of the cluster to rollback.
2557
2567
  # This field has been deprecated and replaced by the name field.
@@ -2647,9 +2657,9 @@ module Google
2647
2657
  # This field has been deprecated and replaced by the name field.
2648
2658
  # @param zone [::String]
2649
2659
  # Deprecated. The name of the Google Compute Engine
2650
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2651
- # cluster resides. This field has been deprecated and replaced by the name
2652
- # field.
2660
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2661
+ # in which the cluster resides. This field has been deprecated and replaced
2662
+ # by the name field.
2653
2663
  # @param cluster_id [::String]
2654
2664
  # Deprecated. The name of the cluster to update.
2655
2665
  # This field has been deprecated and replaced by the name field.
@@ -2744,9 +2754,9 @@ module Google
2744
2754
  # This field has been deprecated and replaced by the name field.
2745
2755
  # @param zone [::String]
2746
2756
  # Deprecated. The name of the Google Compute Engine
2747
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2748
- # cluster resides. This field has been deprecated and replaced by the name
2749
- # field.
2757
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2758
+ # in which the cluster resides. This field has been deprecated and replaced
2759
+ # by the name field.
2750
2760
  # @param cluster_id [::String]
2751
2761
  # Deprecated. The name of the cluster.
2752
2762
  # This field has been deprecated and replaced by the name field.
@@ -2844,9 +2854,9 @@ module Google
2844
2854
  # This field has been deprecated and replaced by the name field.
2845
2855
  # @param zone [::String]
2846
2856
  # Deprecated. The name of the Google Compute Engine
2847
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2848
- # cluster resides. This field has been deprecated and replaced by the name
2849
- # field.
2857
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2858
+ # in which the cluster resides. This field has been deprecated and replaced
2859
+ # by the name field.
2850
2860
  # @param cluster_id [::String]
2851
2861
  # Deprecated. The name of the cluster to update.
2852
2862
  # This field has been deprecated and replaced by the name field.
@@ -2937,9 +2947,9 @@ module Google
2937
2947
  # This field has been deprecated and replaced by the name field.
2938
2948
  # @param zone [::String]
2939
2949
  # Deprecated. The name of the Google Compute Engine
2940
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2941
- # cluster resides. This field has been deprecated and replaced by the name
2942
- # field.
2950
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2951
+ # in which the cluster resides. This field has been deprecated and replaced
2952
+ # by the name field.
2943
2953
  # @param cluster_id [::String]
2944
2954
  # Deprecated. The name of the cluster.
2945
2955
  # This field has been deprecated and replaced by the name field.
@@ -3030,9 +3040,9 @@ module Google
3030
3040
  # This field has been deprecated and replaced by the name field.
3031
3041
  # @param zone [::String]
3032
3042
  # Deprecated. The name of the Google Compute Engine
3033
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3034
- # cluster resides. This field has been deprecated and replaced by the name
3035
- # field.
3043
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
3044
+ # in which the cluster resides. This field has been deprecated and replaced
3045
+ # by the name field.
3036
3046
  # @param cluster_id [::String]
3037
3047
  # Deprecated. The name of the cluster.
3038
3048
  # This field has been deprecated and replaced by the name field.
@@ -3123,9 +3133,9 @@ module Google
3123
3133
  # This field has been deprecated and replaced by the name field.
3124
3134
  # @param zone [::String]
3125
3135
  # Deprecated. The name of the Google Compute Engine
3126
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3127
- # cluster resides. This field has been deprecated and replaced by the name
3128
- # field.
3136
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
3137
+ # in which the cluster resides. This field has been deprecated and replaced
3138
+ # by the name field.
3129
3139
  # @param cluster_id [::String]
3130
3140
  # Deprecated. The name of the cluster to update.
3131
3141
  # This field has been deprecated and replaced by the name field.
@@ -3220,9 +3230,9 @@ module Google
3220
3230
  # This field has been deprecated and replaced by the name field.
3221
3231
  # @param zone [::String]
3222
3232
  # Deprecated. The name of the Google Compute Engine
3223
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3224
- # cluster resides. This field has been deprecated and replaced by the name
3225
- # field.
3233
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
3234
+ # in which the cluster resides. This field has been deprecated and replaced
3235
+ # by the name field.
3226
3236
  # @param cluster_id [::String]
3227
3237
  # Deprecated. The name of the cluster.
3228
3238
  # This field has been deprecated and replaced by the name field.
@@ -3312,8 +3322,8 @@ module Google
3312
3322
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
3313
3323
  # @param zone [::String]
3314
3324
  # Required. The name of the Google Compute Engine
3315
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3316
- # cluster resides.
3325
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
3326
+ # in which the cluster resides.
3317
3327
  # @param cluster_id [::String]
3318
3328
  # Required. The name of the cluster to update.
3319
3329
  # @param maintenance_policy [::Google::Cloud::Container::V1::MaintenancePolicy, ::Hash]
@@ -3559,6 +3569,171 @@ module Google
3559
3569
  raise ::Google::Cloud::Error.from_error(e)
3560
3570
  end
3561
3571
 
3572
+ ##
3573
+ # Fetch upgrade information of a specific cluster.
3574
+ #
3575
+ # @overload fetch_cluster_upgrade_info(request, options = nil)
3576
+ # Pass arguments to `fetch_cluster_upgrade_info` via a request object, either of type
3577
+ # {::Google::Cloud::Container::V1::FetchClusterUpgradeInfoRequest} or an equivalent Hash.
3578
+ #
3579
+ # @param request [::Google::Cloud::Container::V1::FetchClusterUpgradeInfoRequest, ::Hash]
3580
+ # A request object representing the call parameters. Required. To specify no
3581
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3582
+ # @param options [::Gapic::CallOptions, ::Hash]
3583
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3584
+ #
3585
+ # @overload fetch_cluster_upgrade_info(name: nil, version: nil)
3586
+ # Pass arguments to `fetch_cluster_upgrade_info` via keyword arguments. Note that at
3587
+ # least one keyword argument is required. To specify no parameters, or to keep all
3588
+ # the default parameter values, pass an empty Hash as a request object (see above).
3589
+ #
3590
+ # @param name [::String]
3591
+ # Required. The name (project, location, cluster) of the cluster to get.
3592
+ # Specified in the format `projects/*/locations/*/clusters/*` or
3593
+ # `projects/*/zones/*/clusters/*`.
3594
+ # @param version [::String]
3595
+ # API request version that initiates this operation.
3596
+ # @yield [result, operation] Access the result along with the TransportOperation object
3597
+ # @yieldparam result [::Google::Cloud::Container::V1::ClusterUpgradeInfo]
3598
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3599
+ #
3600
+ # @return [::Google::Cloud::Container::V1::ClusterUpgradeInfo]
3601
+ #
3602
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3603
+ #
3604
+ # @example Basic example
3605
+ # require "google/cloud/container/v1"
3606
+ #
3607
+ # # Create a client object. The client can be reused for multiple calls.
3608
+ # client = Google::Cloud::Container::V1::ClusterManager::Rest::Client.new
3609
+ #
3610
+ # # Create a request. To set request fields, pass in keyword arguments.
3611
+ # request = Google::Cloud::Container::V1::FetchClusterUpgradeInfoRequest.new
3612
+ #
3613
+ # # Call the fetch_cluster_upgrade_info method.
3614
+ # result = client.fetch_cluster_upgrade_info request
3615
+ #
3616
+ # # The returned object is of type Google::Cloud::Container::V1::ClusterUpgradeInfo.
3617
+ # p result
3618
+ #
3619
+ def fetch_cluster_upgrade_info request, options = nil
3620
+ raise ::ArgumentError, "request must be provided" if request.nil?
3621
+
3622
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::FetchClusterUpgradeInfoRequest
3623
+
3624
+ # Converts hash and nil to an options object
3625
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3626
+
3627
+ # Customize the options with defaults
3628
+ call_metadata = @config.rpcs.fetch_cluster_upgrade_info.metadata.to_h
3629
+
3630
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3631
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3632
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3633
+ gapic_version: ::Google::Cloud::Container::V1::VERSION,
3634
+ transports_version_send: [:rest]
3635
+
3636
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3637
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3638
+
3639
+ options.apply_defaults timeout: @config.rpcs.fetch_cluster_upgrade_info.timeout,
3640
+ metadata: call_metadata,
3641
+ retry_policy: @config.rpcs.fetch_cluster_upgrade_info.retry_policy
3642
+
3643
+ options.apply_defaults timeout: @config.timeout,
3644
+ metadata: @config.metadata,
3645
+ retry_policy: @config.retry_policy
3646
+
3647
+ @cluster_manager_stub.fetch_cluster_upgrade_info request, options do |result, operation|
3648
+ yield result, operation if block_given?
3649
+ end
3650
+ rescue ::Gapic::Rest::Error => e
3651
+ raise ::Google::Cloud::Error.from_error(e)
3652
+ end
3653
+
3654
+ ##
3655
+ # Fetch upgrade information of a specific nodepool.
3656
+ #
3657
+ # @overload fetch_node_pool_upgrade_info(request, options = nil)
3658
+ # Pass arguments to `fetch_node_pool_upgrade_info` via a request object, either of type
3659
+ # {::Google::Cloud::Container::V1::FetchNodePoolUpgradeInfoRequest} or an equivalent Hash.
3660
+ #
3661
+ # @param request [::Google::Cloud::Container::V1::FetchNodePoolUpgradeInfoRequest, ::Hash]
3662
+ # A request object representing the call parameters. Required. To specify no
3663
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3664
+ # @param options [::Gapic::CallOptions, ::Hash]
3665
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3666
+ #
3667
+ # @overload fetch_node_pool_upgrade_info(name: nil, version: nil)
3668
+ # Pass arguments to `fetch_node_pool_upgrade_info` via keyword arguments. Note that at
3669
+ # least one keyword argument is required. To specify no parameters, or to keep all
3670
+ # the default parameter values, pass an empty Hash as a request object (see above).
3671
+ #
3672
+ # @param name [::String]
3673
+ # Required. The name (project, location, cluster, nodepool) of the nodepool
3674
+ # to get. Specified in the format
3675
+ # `projects/*/locations/*/clusters/*/nodePools/*` or
3676
+ # `projects/*/zones/*/clusters/*/nodePools/*`.
3677
+ # @param version [::String]
3678
+ # API request version that initiates this operation.
3679
+ # @yield [result, operation] Access the result along with the TransportOperation object
3680
+ # @yieldparam result [::Google::Cloud::Container::V1::NodePoolUpgradeInfo]
3681
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3682
+ #
3683
+ # @return [::Google::Cloud::Container::V1::NodePoolUpgradeInfo]
3684
+ #
3685
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3686
+ #
3687
+ # @example Basic example
3688
+ # require "google/cloud/container/v1"
3689
+ #
3690
+ # # Create a client object. The client can be reused for multiple calls.
3691
+ # client = Google::Cloud::Container::V1::ClusterManager::Rest::Client.new
3692
+ #
3693
+ # # Create a request. To set request fields, pass in keyword arguments.
3694
+ # request = Google::Cloud::Container::V1::FetchNodePoolUpgradeInfoRequest.new
3695
+ #
3696
+ # # Call the fetch_node_pool_upgrade_info method.
3697
+ # result = client.fetch_node_pool_upgrade_info request
3698
+ #
3699
+ # # The returned object is of type Google::Cloud::Container::V1::NodePoolUpgradeInfo.
3700
+ # p result
3701
+ #
3702
+ def fetch_node_pool_upgrade_info request, options = nil
3703
+ raise ::ArgumentError, "request must be provided" if request.nil?
3704
+
3705
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::FetchNodePoolUpgradeInfoRequest
3706
+
3707
+ # Converts hash and nil to an options object
3708
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3709
+
3710
+ # Customize the options with defaults
3711
+ call_metadata = @config.rpcs.fetch_node_pool_upgrade_info.metadata.to_h
3712
+
3713
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3714
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3715
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3716
+ gapic_version: ::Google::Cloud::Container::V1::VERSION,
3717
+ transports_version_send: [:rest]
3718
+
3719
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3720
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3721
+
3722
+ options.apply_defaults timeout: @config.rpcs.fetch_node_pool_upgrade_info.timeout,
3723
+ metadata: call_metadata,
3724
+ retry_policy: @config.rpcs.fetch_node_pool_upgrade_info.retry_policy
3725
+
3726
+ options.apply_defaults timeout: @config.timeout,
3727
+ metadata: @config.metadata,
3728
+ retry_policy: @config.retry_policy
3729
+
3730
+ @cluster_manager_stub.fetch_node_pool_upgrade_info request, options do |result, operation|
3731
+ yield result, operation if block_given?
3732
+ end
3733
+ rescue ::Gapic::Rest::Error => e
3734
+ raise ::Google::Cloud::Error.from_error(e)
3735
+ end
3736
+
3562
3737
  ##
3563
3738
  # Configuration class for the ClusterManager REST API.
3564
3739
  #
@@ -3875,6 +4050,16 @@ module Google
3875
4050
  # @return [::Gapic::Config::Method]
3876
4051
  #
3877
4052
  attr_reader :check_autopilot_compatibility
4053
+ ##
4054
+ # RPC-specific configuration for `fetch_cluster_upgrade_info`
4055
+ # @return [::Gapic::Config::Method]
4056
+ #
4057
+ attr_reader :fetch_cluster_upgrade_info
4058
+ ##
4059
+ # RPC-specific configuration for `fetch_node_pool_upgrade_info`
4060
+ # @return [::Gapic::Config::Method]
4061
+ #
4062
+ attr_reader :fetch_node_pool_upgrade_info
3878
4063
 
3879
4064
  # @private
3880
4065
  def initialize parent_rpcs = nil
@@ -3946,6 +4131,10 @@ module Google
3946
4131
  @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
3947
4132
  check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility
3948
4133
  @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config
4134
+ fetch_cluster_upgrade_info_config = parent_rpcs.fetch_cluster_upgrade_info if parent_rpcs.respond_to? :fetch_cluster_upgrade_info
4135
+ @fetch_cluster_upgrade_info = ::Gapic::Config::Method.new fetch_cluster_upgrade_info_config
4136
+ fetch_node_pool_upgrade_info_config = parent_rpcs.fetch_node_pool_upgrade_info if parent_rpcs.respond_to? :fetch_node_pool_upgrade_info
4137
+ @fetch_node_pool_upgrade_info = ::Gapic::Config::Method.new fetch_node_pool_upgrade_info_config
3949
4138
 
3950
4139
  yield self if block_given?
3951
4140
  end