google-cloud-container-v1beta1 0.46.0 → 0.48.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.
@@ -300,14 +300,14 @@ module Google
300
300
  # the default parameter values, pass an empty Hash as a request object (see above).
301
301
  #
302
302
  # @param project_id [::String]
303
- # Required. Deprecated. The Google Developers Console [project ID or project
303
+ # Deprecated. The Google Developers Console [project ID or project
304
304
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
305
305
  # This field has been deprecated and replaced by the parent field.
306
306
  # @param zone [::String]
307
- # Required. Deprecated. The name of the Google Compute Engine
308
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
309
- # cluster resides, or "-" for all zones. This field has been deprecated and
310
- # replaced by the parent field.
307
+ # Deprecated. The name of the Google Compute Engine
308
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
309
+ # in which the cluster resides, or "-" for all zones. This field has been
310
+ # deprecated and replaced by the parent field.
311
311
  # @param parent [::String]
312
312
  # The parent (project and location) where the clusters will be listed.
313
313
  # Specified in the format `projects/*/locations/*`.
@@ -396,16 +396,16 @@ module Google
396
396
  # the default parameter values, pass an empty Hash as a request object (see above).
397
397
  #
398
398
  # @param project_id [::String]
399
- # Required. Deprecated. The Google Developers Console [project ID or project
399
+ # Deprecated. The Google Developers Console [project ID or project
400
400
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
401
401
  # This field has been deprecated and replaced by the name field.
402
402
  # @param zone [::String]
403
- # Required. Deprecated. The name of the Google Compute Engine
404
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
405
- # cluster resides. This field has been deprecated and replaced by the name
406
- # field.
403
+ # Deprecated. The name of the Google Compute Engine
404
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
405
+ # in which the cluster resides. This field has been deprecated and replaced
406
+ # by the name field.
407
407
  # @param cluster_id [::String]
408
- # Required. Deprecated. The name of the cluster to retrieve.
408
+ # Deprecated. The name of the cluster to retrieve.
409
409
  # This field has been deprecated and replaced by the name field.
410
410
  # @param name [::String]
411
411
  # The name (project, location, cluster) of the cluster to retrieve.
@@ -507,14 +507,14 @@ module Google
507
507
  # the default parameter values, pass an empty Hash as a request object (see above).
508
508
  #
509
509
  # @param project_id [::String]
510
- # Required. Deprecated. The Google Developers Console [project ID or project
510
+ # Deprecated. The Google Developers Console [project ID or project
511
511
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
512
512
  # This field has been deprecated and replaced by the parent field.
513
513
  # @param zone [::String]
514
- # Required. Deprecated. The name of the Google Compute Engine
515
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
516
- # cluster resides. This field has been deprecated and replaced by the parent
517
- # field.
514
+ # Deprecated. The name of the Google Compute Engine
515
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
516
+ # in which the cluster resides. This field has been deprecated and replaced
517
+ # by the parent field.
518
518
  # @param cluster [::Google::Cloud::Container::V1beta1::Cluster, ::Hash]
519
519
  # Required. A [cluster
520
520
  # resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
@@ -605,16 +605,16 @@ module Google
605
605
  # the default parameter values, pass an empty Hash as a request object (see above).
606
606
  #
607
607
  # @param project_id [::String]
608
- # Required. Deprecated. The Google Developers Console [project ID or project
608
+ # Deprecated. The Google Developers Console [project ID or project
609
609
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
610
610
  # This field has been deprecated and replaced by the name field.
611
611
  # @param zone [::String]
612
- # Required. Deprecated. The name of the Google Compute Engine
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.
612
+ # Deprecated. The name of the Google Compute Engine
613
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
614
+ # in which the cluster resides. This field has been deprecated and replaced
615
+ # by the name field.
616
616
  # @param cluster_id [::String]
617
- # Required. Deprecated. The name of the cluster to upgrade.
617
+ # Deprecated. The name of the cluster to upgrade.
618
618
  # This field has been deprecated and replaced by the name field.
619
619
  # @param update [::Google::Cloud::Container::V1beta1::ClusterUpdate, ::Hash]
620
620
  # Required. A description of the update.
@@ -699,25 +699,25 @@ module Google
699
699
  # @param options [::Gapic::CallOptions, ::Hash]
700
700
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
701
701
  #
702
- # @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, 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)
702
+ # @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, 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)
703
703
  # Pass arguments to `update_node_pool` via keyword arguments. Note that at
704
704
  # least one keyword argument is required. To specify no parameters, or to keep all
705
705
  # the default parameter values, pass an empty Hash as a request object (see above).
706
706
  #
707
707
  # @param project_id [::String]
708
- # Required. Deprecated. The Google Developers Console [project ID or project
708
+ # Deprecated. The Google Developers Console [project ID or project
709
709
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
710
710
  # This field has been deprecated and replaced by the name field.
711
711
  # @param zone [::String]
712
- # Required. Deprecated. The name of the Google Compute Engine
713
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
714
- # cluster resides. This field has been deprecated and replaced by the name
715
- # field.
712
+ # Deprecated. The name of the Google Compute Engine
713
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
714
+ # in which the cluster resides. This field has been deprecated and replaced
715
+ # by the name field.
716
716
  # @param cluster_id [::String]
717
- # Required. Deprecated. The name of the cluster to upgrade.
717
+ # Deprecated. The name of the cluster to upgrade.
718
718
  # This field has been deprecated and replaced by the name field.
719
719
  # @param node_pool_id [::String]
720
- # Required. Deprecated. The name of the node pool to upgrade.
720
+ # Deprecated. The name of the node pool to upgrade.
721
721
  # This field has been deprecated and replaced by the name field.
722
722
  # @param node_version [::String]
723
723
  # Required. The Kubernetes version to change the nodes to (typically an
@@ -733,14 +733,14 @@ module Google
733
733
  # - "-": picks the Kubernetes master version
734
734
  # @param image_type [::String]
735
735
  # Required. The desired image type for the node pool. Please see
736
- # https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
737
- # available image types.
736
+ # https://cloud.google.com/kubernetes-engine/docs/concepts/node-images
737
+ # for available image types.
738
738
  # @param locations [::Array<::String>]
739
739
  # The desired list of Google Compute Engine
740
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
741
- # node pool's nodes should be located. Changing the locations for a node pool
742
- # will result in nodes being either created or removed from the node pool,
743
- # depending on whether locations are being added or removed.
740
+ # [zones](https://cloud.google.com/compute/docs/zones#available)
741
+ # in which the node pool's nodes should be located. Changing the locations
742
+ # for a node pool will result in nodes being either created or removed from
743
+ # the node pool, depending on whether locations are being added or removed.
744
744
  # @param workload_metadata_config [::Google::Cloud::Container::V1beta1::WorkloadMetadataConfig, ::Hash]
745
745
  # The desired workload metadata config for the node pool.
746
746
  # @param name [::String]
@@ -789,8 +789,9 @@ module Google
789
789
  # Parameters that can be configured on Windows nodes.
790
790
  # @param accelerators [::Array<::Google::Cloud::Container::V1beta1::AcceleratorConfig, ::Hash>]
791
791
  # A list of hardware accelerators to be attached to each node.
792
- # See https://cloud.google.com/compute/docs/gpus for more information about
793
- # support for GPUs.
792
+ # See
793
+ # https://cloud.google.com/compute/docs/gpus
794
+ # for more information about support for GPUs.
794
795
  # @param machine_type [::String]
795
796
  # Optional. The desired machine type for nodes in the node pool.
796
797
  # Initiates an upgrade operation that migrates the nodes in the
@@ -813,6 +814,18 @@ module Google
813
814
  # config.
814
815
  # @param queued_provisioning [::Google::Cloud::Container::V1beta1::NodePool::QueuedProvisioning, ::Hash]
815
816
  # Specifies the configuration of queued provisioning.
817
+ # @param storage_pools [::Array<::String>]
818
+ # List of Storage Pools where boot disks are provisioned.
819
+ # Existing Storage Pools will be replaced with storage-pools.
820
+ # @param max_run_duration [::Google::Protobuf::Duration, ::Hash]
821
+ # The maximum duration for the nodes to exist.
822
+ # If unspecified, the nodes can exist indefinitely.
823
+ # @param flex_start [::Boolean]
824
+ # Flex Start flag for enabling Flex Start VM.
825
+ # @param boot_disk [::Google::Cloud::Container::V1beta1::BootDisk, ::Hash]
826
+ # The desired boot disk config for nodes in the node pool.
827
+ # Initiates an upgrade operation that migrates the nodes in the
828
+ # node pool to the specified boot disk config.
816
829
  #
817
830
  # @yield [response, operation] Access the result along with the RPC operation
818
831
  # @yieldparam response [::Google::Cloud::Container::V1beta1::Operation]
@@ -897,19 +910,19 @@ module Google
897
910
  # the default parameter values, pass an empty Hash as a request object (see above).
898
911
  #
899
912
  # @param project_id [::String]
900
- # Required. Deprecated. The Google Developers Console [project ID or project
913
+ # Deprecated. The Google Developers Console [project ID or project
901
914
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
902
915
  # This field has been deprecated and replaced by the name field.
903
916
  # @param zone [::String]
904
- # Required. Deprecated. The name of the Google Compute Engine
905
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
906
- # cluster resides. This field has been deprecated and replaced by the name
907
- # field.
917
+ # Deprecated. The name of the Google Compute Engine
918
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
919
+ # in which the cluster resides. This field has been deprecated and replaced
920
+ # by the name field.
908
921
  # @param cluster_id [::String]
909
- # Required. Deprecated. The name of the cluster to upgrade.
922
+ # Deprecated. The name of the cluster to upgrade.
910
923
  # This field has been deprecated and replaced by the name field.
911
924
  # @param node_pool_id [::String]
912
- # Required. Deprecated. The name of the node pool to upgrade.
925
+ # Deprecated. The name of the node pool to upgrade.
913
926
  # This field has been deprecated and replaced by the name field.
914
927
  # @param autoscaling [::Google::Cloud::Container::V1beta1::NodePoolAutoscaling, ::Hash]
915
928
  # Required. Autoscaling configuration for the node pool.
@@ -1001,16 +1014,16 @@ module Google
1001
1014
  # the default parameter values, pass an empty Hash as a request object (see above).
1002
1015
  #
1003
1016
  # @param project_id [::String]
1004
- # Required. Deprecated. The Google Developers Console [project ID or project
1017
+ # Deprecated. The Google Developers Console [project ID or project
1005
1018
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1006
1019
  # This field has been deprecated and replaced by the name field.
1007
1020
  # @param zone [::String]
1008
- # Required. Deprecated. The name of the Google Compute Engine
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.
1021
+ # Deprecated. The name of the Google Compute Engine
1022
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1023
+ # in which the cluster resides. This field has been deprecated and replaced
1024
+ # by the name field.
1012
1025
  # @param cluster_id [::String]
1013
- # Required. Deprecated. The name of the cluster to upgrade.
1026
+ # Deprecated. The name of the cluster to upgrade.
1014
1027
  # This field has been deprecated and replaced by the name field.
1015
1028
  # @param logging_service [::String]
1016
1029
  # Required. The logging service the cluster should use to write logs.
@@ -1111,22 +1124,22 @@ module Google
1111
1124
  # the default parameter values, pass an empty Hash as a request object (see above).
1112
1125
  #
1113
1126
  # @param project_id [::String]
1114
- # Required. Deprecated. The Google Developers Console [project ID or project
1127
+ # Deprecated. The Google Developers Console [project ID or project
1115
1128
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1116
1129
  # This field has been deprecated and replaced by the name field.
1117
1130
  # @param zone [::String]
1118
- # Required. Deprecated. The name of the Google Compute Engine
1119
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1120
- # cluster resides. This field has been deprecated and replaced by the name
1121
- # field.
1131
+ # Deprecated. The name of the Google Compute Engine
1132
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1133
+ # in which the cluster resides. This field has been deprecated and replaced
1134
+ # by the name field.
1122
1135
  # @param cluster_id [::String]
1123
- # Required. Deprecated. The name of the cluster to upgrade.
1136
+ # Deprecated. The name of the cluster to upgrade.
1124
1137
  # This field has been deprecated and replaced by the name field.
1125
1138
  # @param monitoring_service [::String]
1126
1139
  # Required. The monitoring service the cluster should use to write metrics.
1127
1140
  # Currently available options:
1128
1141
  #
1129
- # * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
1142
+ # * `monitoring.googleapis.com/kubernetes` - The Cloud Monitoring
1130
1143
  # service with a Kubernetes-native resource model
1131
1144
  # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
1132
1145
  # longer available as of GKE 1.15).
@@ -1221,16 +1234,16 @@ module Google
1221
1234
  # the default parameter values, pass an empty Hash as a request object (see above).
1222
1235
  #
1223
1236
  # @param project_id [::String]
1224
- # Required. Deprecated. The Google Developers Console [project ID or project
1237
+ # Deprecated. The Google Developers Console [project ID or project
1225
1238
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1226
1239
  # This field has been deprecated and replaced by the name field.
1227
1240
  # @param zone [::String]
1228
- # Required. Deprecated. The name of the Google Compute Engine
1229
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1230
- # cluster resides. This field has been deprecated and replaced by the name
1231
- # field.
1241
+ # Deprecated. The name of the Google Compute Engine
1242
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1243
+ # in which the cluster resides. This field has been deprecated and replaced
1244
+ # by the name field.
1232
1245
  # @param cluster_id [::String]
1233
- # Required. Deprecated. The name of the cluster to upgrade.
1246
+ # Deprecated. The name of the cluster to upgrade.
1234
1247
  # This field has been deprecated and replaced by the name field.
1235
1248
  # @param addons_config [::Google::Cloud::Container::V1beta1::AddonsConfig, ::Hash]
1236
1249
  # Required. The desired configurations for the various addons available to
@@ -1327,23 +1340,23 @@ module Google
1327
1340
  # the default parameter values, pass an empty Hash as a request object (see above).
1328
1341
  #
1329
1342
  # @param project_id [::String]
1330
- # Required. Deprecated. The Google Developers Console [project ID or project
1343
+ # Deprecated. The Google Developers Console [project ID or project
1331
1344
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1332
1345
  # This field has been deprecated and replaced by the name field.
1333
1346
  # @param zone [::String]
1334
- # Required. Deprecated. The name of the Google Compute Engine
1335
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1336
- # cluster resides. This field has been deprecated and replaced by the name
1337
- # field.
1347
+ # Deprecated. The name of the Google Compute Engine
1348
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1349
+ # in which the cluster resides. This field has been deprecated and replaced
1350
+ # by the name field.
1338
1351
  # @param cluster_id [::String]
1339
- # Required. Deprecated. The name of the cluster to upgrade.
1352
+ # Deprecated. The name of the cluster to upgrade.
1340
1353
  # This field has been deprecated and replaced by the name field.
1341
1354
  # @param locations [::Array<::String>]
1342
1355
  # Required. The desired list of Google Compute Engine
1343
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1344
- # cluster's nodes should be located. Changing the locations a cluster is in
1345
- # will result in nodes being either created or removed from the cluster,
1346
- # depending on whether locations are being added or removed.
1356
+ # [zones](https://cloud.google.com/compute/docs/zones#available)
1357
+ # in which the cluster's nodes should be located. Changing the locations a
1358
+ # cluster is in will result in nodes being either created or removed from the
1359
+ # cluster, depending on whether locations are being added or removed.
1347
1360
  #
1348
1361
  # This list must always include the cluster's primary zone.
1349
1362
  # @param name [::String]
@@ -1433,16 +1446,16 @@ module Google
1433
1446
  # the default parameter values, pass an empty Hash as a request object (see above).
1434
1447
  #
1435
1448
  # @param project_id [::String]
1436
- # Required. Deprecated. The Google Developers Console [project ID or project
1449
+ # Deprecated. The Google Developers Console [project ID or project
1437
1450
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1438
1451
  # This field has been deprecated and replaced by the name field.
1439
1452
  # @param zone [::String]
1440
- # Required. Deprecated. The name of the Google Compute Engine
1441
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1442
- # cluster resides. This field has been deprecated and replaced by the name
1443
- # field.
1453
+ # Deprecated. The name of the Google Compute Engine
1454
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1455
+ # in which the cluster resides. This field has been deprecated and replaced
1456
+ # by the name field.
1444
1457
  # @param cluster_id [::String]
1445
- # Required. Deprecated. The name of the cluster to upgrade.
1458
+ # Deprecated. The name of the cluster to upgrade.
1446
1459
  # This field has been deprecated and replaced by the name field.
1447
1460
  # @param master_version [::String]
1448
1461
  # Required. The Kubernetes version to change the master to.
@@ -1544,16 +1557,16 @@ module Google
1544
1557
  # the default parameter values, pass an empty Hash as a request object (see above).
1545
1558
  #
1546
1559
  # @param project_id [::String]
1547
- # Required. Deprecated. The Google Developers Console [project ID or project
1560
+ # Deprecated. The Google Developers Console [project ID or project
1548
1561
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1549
1562
  # This field has been deprecated and replaced by the name field.
1550
1563
  # @param zone [::String]
1551
- # Required. Deprecated. The name of the Google Compute Engine
1552
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1553
- # cluster resides. This field has been deprecated and replaced by the name
1554
- # field.
1564
+ # Deprecated. The name of the Google Compute Engine
1565
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1566
+ # in which the cluster resides. This field has been deprecated and replaced
1567
+ # by the name field.
1555
1568
  # @param cluster_id [::String]
1556
- # Required. Deprecated. The name of the cluster to upgrade.
1569
+ # Deprecated. The name of the cluster to upgrade.
1557
1570
  # This field has been deprecated and replaced by the name field.
1558
1571
  # @param action [::Google::Cloud::Container::V1beta1::SetMasterAuthRequest::Action]
1559
1572
  # Required. The exact form of action to be taken on the master auth.
@@ -1654,16 +1667,16 @@ module Google
1654
1667
  # the default parameter values, pass an empty Hash as a request object (see above).
1655
1668
  #
1656
1669
  # @param project_id [::String]
1657
- # Required. Deprecated. The Google Developers Console [project ID or project
1670
+ # Deprecated. The Google Developers Console [project ID or project
1658
1671
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1659
1672
  # This field has been deprecated and replaced by the name field.
1660
1673
  # @param zone [::String]
1661
- # Required. Deprecated. The name of the Google Compute Engine
1662
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1663
- # cluster resides. This field has been deprecated and replaced by the name
1664
- # field.
1674
+ # Deprecated. The name of the Google Compute Engine
1675
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1676
+ # in which the cluster resides. This field has been deprecated and replaced
1677
+ # by the name field.
1665
1678
  # @param cluster_id [::String]
1666
- # Required. Deprecated. The name of the cluster to delete.
1679
+ # Deprecated. The name of the cluster to delete.
1667
1680
  # This field has been deprecated and replaced by the name field.
1668
1681
  # @param name [::String]
1669
1682
  # The name (project, location, cluster) of the cluster to delete.
@@ -1752,14 +1765,14 @@ module Google
1752
1765
  # the default parameter values, pass an empty Hash as a request object (see above).
1753
1766
  #
1754
1767
  # @param project_id [::String]
1755
- # Required. Deprecated. The Google Developers Console [project ID or project
1768
+ # Deprecated. The Google Developers Console [project ID or project
1756
1769
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1757
1770
  # This field has been deprecated and replaced by the parent field.
1758
1771
  # @param zone [::String]
1759
- # Required. Deprecated. The name of the Google Compute Engine
1760
- # [zone](https://cloud.google.com/compute/docs/zones#available) to return
1761
- # operations for, or `-` for all zones. This field has been deprecated and
1762
- # replaced by the parent field.
1772
+ # Deprecated. The name of the Google Compute Engine
1773
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1774
+ # to return operations for, or `-` for all zones. This field has been
1775
+ # deprecated and replaced by the parent field.
1763
1776
  # @param parent [::String]
1764
1777
  # The parent (project and location) where the operations will be listed.
1765
1778
  # Specified in the format `projects/*/locations/*`.
@@ -1848,16 +1861,16 @@ module Google
1848
1861
  # the default parameter values, pass an empty Hash as a request object (see above).
1849
1862
  #
1850
1863
  # @param project_id [::String]
1851
- # Required. Deprecated. The Google Developers Console [project ID or project
1864
+ # Deprecated. The Google Developers Console [project ID or project
1852
1865
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1853
1866
  # This field has been deprecated and replaced by the name field.
1854
1867
  # @param zone [::String]
1855
- # Required. Deprecated. The name of the Google Compute Engine
1856
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1857
- # cluster resides. This field has been deprecated and replaced by the name
1858
- # field.
1868
+ # Deprecated. The name of the Google Compute Engine
1869
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1870
+ # in which the cluster resides. This field has been deprecated and replaced
1871
+ # by the name field.
1859
1872
  # @param operation_id [::String]
1860
- # Required. Deprecated. The server-assigned `name` of the operation.
1873
+ # Deprecated. The server-assigned `name` of the operation.
1861
1874
  # This field has been deprecated and replaced by the name field.
1862
1875
  # @param name [::String]
1863
1876
  # The name (project, location, operation id) of the operation to get.
@@ -1946,16 +1959,16 @@ module Google
1946
1959
  # the default parameter values, pass an empty Hash as a request object (see above).
1947
1960
  #
1948
1961
  # @param project_id [::String]
1949
- # Required. Deprecated. The Google Developers Console [project ID or project
1962
+ # Deprecated. The Google Developers Console [project ID or project
1950
1963
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1951
1964
  # This field has been deprecated and replaced by the name field.
1952
1965
  # @param zone [::String]
1953
- # Required. Deprecated. The name of the Google Compute Engine
1954
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1955
- # operation resides. This field has been deprecated and replaced by the name
1956
- # field.
1966
+ # Deprecated. The name of the Google Compute Engine
1967
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1968
+ # in which the operation resides. This field has been deprecated and replaced
1969
+ # by the name field.
1957
1970
  # @param operation_id [::String]
1958
- # Required. Deprecated. The server-assigned `name` of the operation.
1971
+ # Deprecated. The server-assigned `name` of the operation.
1959
1972
  # This field has been deprecated and replaced by the name field.
1960
1973
  # @param name [::String]
1961
1974
  # The name (project, location, operation id) of the operation to cancel.
@@ -2044,14 +2057,14 @@ module Google
2044
2057
  # the default parameter values, pass an empty Hash as a request object (see above).
2045
2058
  #
2046
2059
  # @param project_id [::String]
2047
- # Required. Deprecated. The Google Developers Console [project ID or project
2060
+ # Deprecated. The Google Developers Console [project ID or project
2048
2061
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2049
2062
  # This field has been deprecated and replaced by the name field.
2050
2063
  # @param zone [::String]
2051
- # Required. Deprecated. The name of the Google Compute Engine
2052
- # [zone](https://cloud.google.com/compute/docs/zones#available) to return
2053
- # operations for. This field has been deprecated and replaced by the name
2054
- # field.
2064
+ # Deprecated. The name of the Google Compute Engine
2065
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2066
+ # to return operations for. This field has been deprecated and replaced by
2067
+ # the name field.
2055
2068
  # @param name [::String]
2056
2069
  # The name (project and location) of the server config to get,
2057
2070
  # specified in the format `projects/*/locations/*`.
@@ -2226,16 +2239,16 @@ module Google
2226
2239
  # the default parameter values, pass an empty Hash as a request object (see above).
2227
2240
  #
2228
2241
  # @param project_id [::String]
2229
- # Required. Deprecated. The Google Developers Console [project ID or project
2242
+ # Deprecated. The Google Developers Console [project ID or project
2230
2243
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2231
2244
  # This field has been deprecated and replaced by the parent field.
2232
2245
  # @param zone [::String]
2233
- # Required. Deprecated. The name of the Google Compute Engine
2234
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2235
- # cluster resides. This field has been deprecated and replaced by the parent
2236
- # field.
2246
+ # Deprecated. The name of the Google Compute Engine
2247
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2248
+ # in which the cluster resides. This field has been deprecated and replaced
2249
+ # by the parent field.
2237
2250
  # @param cluster_id [::String]
2238
- # Required. Deprecated. The name of the cluster.
2251
+ # Deprecated. The name of the cluster.
2239
2252
  # This field has been deprecated and replaced by the parent field.
2240
2253
  # @param parent [::String]
2241
2254
  # The parent (project, location, cluster name) where the node pools will be
@@ -2324,19 +2337,19 @@ module Google
2324
2337
  # the default parameter values, pass an empty Hash as a request object (see above).
2325
2338
  #
2326
2339
  # @param project_id [::String]
2327
- # Required. Deprecated. The Google Developers Console [project ID or project
2340
+ # Deprecated. The Google Developers Console [project ID or project
2328
2341
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2329
2342
  # This field has been deprecated and replaced by the name field.
2330
2343
  # @param zone [::String]
2331
- # Required. Deprecated. The name of the Google Compute Engine
2332
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2333
- # cluster resides. This field has been deprecated and replaced by the name
2334
- # field.
2344
+ # Deprecated. The name of the Google Compute Engine
2345
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2346
+ # in which the cluster resides. This field has been deprecated and replaced
2347
+ # by the name field.
2335
2348
  # @param cluster_id [::String]
2336
- # Required. Deprecated. The name of the cluster.
2349
+ # Deprecated. The name of the cluster.
2337
2350
  # This field has been deprecated and replaced by the name field.
2338
2351
  # @param node_pool_id [::String]
2339
- # Required. Deprecated. The name of the node pool.
2352
+ # Deprecated. The name of the node pool.
2340
2353
  # This field has been deprecated and replaced by the name field.
2341
2354
  # @param name [::String]
2342
2355
  # The name (project, location, cluster, node pool id) of the node pool to
@@ -2426,16 +2439,16 @@ module Google
2426
2439
  # the default parameter values, pass an empty Hash as a request object (see above).
2427
2440
  #
2428
2441
  # @param project_id [::String]
2429
- # Required. Deprecated. The Google Developers Console [project ID or project
2442
+ # Deprecated. The Google Developers Console [project ID or project
2430
2443
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2431
2444
  # This field has been deprecated and replaced by the parent field.
2432
2445
  # @param zone [::String]
2433
- # Required. Deprecated. The name of the Google Compute Engine
2434
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2435
- # cluster resides. This field has been deprecated and replaced by the parent
2436
- # field.
2446
+ # Deprecated. The name of the Google Compute Engine
2447
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2448
+ # in which the cluster resides. This field has been deprecated and replaced
2449
+ # by the parent field.
2437
2450
  # @param cluster_id [::String]
2438
- # Required. Deprecated. The name of the cluster.
2451
+ # Deprecated. The name of the cluster.
2439
2452
  # This field has been deprecated and replaced by the parent field.
2440
2453
  # @param node_pool [::Google::Cloud::Container::V1beta1::NodePool, ::Hash]
2441
2454
  # Required. The node pool to create.
@@ -2527,19 +2540,19 @@ module Google
2527
2540
  # the default parameter values, pass an empty Hash as a request object (see above).
2528
2541
  #
2529
2542
  # @param project_id [::String]
2530
- # Required. Deprecated. The Google Developers Console [project ID or project
2543
+ # Deprecated. The Google Developers Console [project ID or project
2531
2544
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2532
2545
  # This field has been deprecated and replaced by the name field.
2533
2546
  # @param zone [::String]
2534
- # Required. Deprecated. The name of the Google Compute Engine
2535
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2536
- # cluster resides. This field has been deprecated and replaced by the name
2537
- # field.
2547
+ # Deprecated. The name of the Google Compute Engine
2548
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2549
+ # in which the cluster resides. This field has been deprecated and replaced
2550
+ # by the name field.
2538
2551
  # @param cluster_id [::String]
2539
- # Required. Deprecated. The name of the cluster.
2552
+ # Deprecated. The name of the cluster.
2540
2553
  # This field has been deprecated and replaced by the name field.
2541
2554
  # @param node_pool_id [::String]
2542
- # Required. Deprecated. The name of the node pool to delete.
2555
+ # Deprecated. The name of the node pool to delete.
2543
2556
  # This field has been deprecated and replaced by the name field.
2544
2557
  # @param name [::String]
2545
2558
  # The name (project, location, cluster, node pool id) of the node pool to
@@ -2718,19 +2731,19 @@ module Google
2718
2731
  # the default parameter values, pass an empty Hash as a request object (see above).
2719
2732
  #
2720
2733
  # @param project_id [::String]
2721
- # Required. Deprecated. The Google Developers Console [project ID or project
2734
+ # Deprecated. The Google Developers Console [project ID or project
2722
2735
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2723
2736
  # This field has been deprecated and replaced by the name field.
2724
2737
  # @param zone [::String]
2725
- # Required. Deprecated. The name of the Google Compute Engine
2726
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2727
- # cluster resides. This field has been deprecated and replaced by the name
2728
- # field.
2738
+ # Deprecated. The name of the Google Compute Engine
2739
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2740
+ # in which the cluster resides. This field has been deprecated and replaced
2741
+ # by the name field.
2729
2742
  # @param cluster_id [::String]
2730
- # Required. Deprecated. The name of the cluster to rollback.
2743
+ # Deprecated. The name of the cluster to rollback.
2731
2744
  # This field has been deprecated and replaced by the name field.
2732
2745
  # @param node_pool_id [::String]
2733
- # Required. Deprecated. The name of the node pool to rollback.
2746
+ # Deprecated. The name of the node pool to rollback.
2734
2747
  # This field has been deprecated and replaced by the name field.
2735
2748
  # @param name [::String]
2736
2749
  # The name (project, location, cluster, node pool id) of the node poll to
@@ -2823,19 +2836,19 @@ module Google
2823
2836
  # the default parameter values, pass an empty Hash as a request object (see above).
2824
2837
  #
2825
2838
  # @param project_id [::String]
2826
- # Required. Deprecated. The Google Developers Console [project ID or project
2839
+ # Deprecated. The Google Developers Console [project ID or project
2827
2840
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2828
2841
  # This field has been deprecated and replaced by the name field.
2829
2842
  # @param zone [::String]
2830
- # Required. Deprecated. The name of the Google Compute Engine
2831
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2832
- # cluster resides. This field has been deprecated and replaced by the name
2833
- # field.
2843
+ # Deprecated. The name of the Google Compute Engine
2844
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2845
+ # in which the cluster resides. This field has been deprecated and replaced
2846
+ # by the name field.
2834
2847
  # @param cluster_id [::String]
2835
- # Required. Deprecated. The name of the cluster to update.
2848
+ # Deprecated. The name of the cluster to update.
2836
2849
  # This field has been deprecated and replaced by the name field.
2837
2850
  # @param node_pool_id [::String]
2838
- # Required. Deprecated. The name of the node pool to update.
2851
+ # Deprecated. The name of the node pool to update.
2839
2852
  # This field has been deprecated and replaced by the name field.
2840
2853
  # @param management [::Google::Cloud::Container::V1beta1::NodeManagement, ::Hash]
2841
2854
  # Required. NodeManagement configuration for the node pool.
@@ -2927,16 +2940,16 @@ module Google
2927
2940
  # the default parameter values, pass an empty Hash as a request object (see above).
2928
2941
  #
2929
2942
  # @param project_id [::String]
2930
- # Required. Deprecated. The Google Developers Console [project ID or project
2943
+ # Deprecated. The Google Developers Console [project ID or project
2931
2944
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2932
2945
  # This field has been deprecated and replaced by the name field.
2933
2946
  # @param zone [::String]
2934
- # Required. Deprecated. The name of the Google Compute Engine
2935
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2936
- # cluster resides. This field has been deprecated and replaced by the name
2937
- # field.
2947
+ # Deprecated. The name of the Google Compute Engine
2948
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2949
+ # in which the cluster resides. This field has been deprecated and replaced
2950
+ # by the name field.
2938
2951
  # @param cluster_id [::String]
2939
- # Required. Deprecated. The name of the cluster.
2952
+ # Deprecated. The name of the cluster.
2940
2953
  # This field has been deprecated and replaced by the name field.
2941
2954
  # @param resource_labels [::Hash{::String => ::String}]
2942
2955
  # Required. The labels to set for that cluster.
@@ -3034,16 +3047,16 @@ module Google
3034
3047
  # the default parameter values, pass an empty Hash as a request object (see above).
3035
3048
  #
3036
3049
  # @param project_id [::String]
3037
- # Required. Deprecated. The Google Developers Console [project ID or project
3050
+ # Deprecated. The Google Developers Console [project ID or project
3038
3051
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
3039
3052
  # This field has been deprecated and replaced by the name field.
3040
3053
  # @param zone [::String]
3041
- # Required. Deprecated. The name of the Google Compute Engine
3042
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3043
- # cluster resides. This field has been deprecated and replaced by the name
3044
- # field.
3054
+ # Deprecated. The name of the Google Compute Engine
3055
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
3056
+ # in which the cluster resides. This field has been deprecated and replaced
3057
+ # by the name field.
3045
3058
  # @param cluster_id [::String]
3046
- # Required. Deprecated. The name of the cluster to update.
3059
+ # Deprecated. The name of the cluster to update.
3047
3060
  # This field has been deprecated and replaced by the name field.
3048
3061
  # @param enabled [::Boolean]
3049
3062
  # Required. Whether ABAC authorization will be enabled in the cluster.
@@ -3134,16 +3147,16 @@ module Google
3134
3147
  # the default parameter values, pass an empty Hash as a request object (see above).
3135
3148
  #
3136
3149
  # @param project_id [::String]
3137
- # Required. Deprecated. The Google Developers Console [project ID or project
3150
+ # Deprecated. The Google Developers Console [project ID or project
3138
3151
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
3139
3152
  # This field has been deprecated and replaced by the name field.
3140
3153
  # @param zone [::String]
3141
- # Required. Deprecated. The name of the Google Compute Engine
3142
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3143
- # cluster resides. This field has been deprecated and replaced by the name
3144
- # field.
3154
+ # Deprecated. The name of the Google Compute Engine
3155
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
3156
+ # in which the cluster resides. This field has been deprecated and replaced
3157
+ # by the name field.
3145
3158
  # @param cluster_id [::String]
3146
- # Required. Deprecated. The name of the cluster.
3159
+ # Deprecated. The name of the cluster.
3147
3160
  # This field has been deprecated and replaced by the name field.
3148
3161
  # @param name [::String]
3149
3162
  # The name (project, location, cluster name) of the cluster to start IP
@@ -3234,16 +3247,16 @@ module Google
3234
3247
  # the default parameter values, pass an empty Hash as a request object (see above).
3235
3248
  #
3236
3249
  # @param project_id [::String]
3237
- # Required. Deprecated. The Google Developers Console [project ID or project
3250
+ # Deprecated. The Google Developers Console [project ID or project
3238
3251
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
3239
3252
  # This field has been deprecated and replaced by the name field.
3240
3253
  # @param zone [::String]
3241
- # Required. Deprecated. The name of the Google Compute Engine
3242
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3243
- # cluster resides. This field has been deprecated and replaced by the name
3244
- # field.
3254
+ # Deprecated. The name of the Google Compute Engine
3255
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
3256
+ # in which the cluster resides. This field has been deprecated and replaced
3257
+ # by the name field.
3245
3258
  # @param cluster_id [::String]
3246
- # Required. Deprecated. The name of the cluster.
3259
+ # Deprecated. The name of the cluster.
3247
3260
  # This field has been deprecated and replaced by the name field.
3248
3261
  # @param name [::String]
3249
3262
  # The name (project, location, cluster name) of the cluster to complete IP
@@ -3334,19 +3347,19 @@ module Google
3334
3347
  # the default parameter values, pass an empty Hash as a request object (see above).
3335
3348
  #
3336
3349
  # @param project_id [::String]
3337
- # Required. Deprecated. The Google Developers Console [project ID or project
3350
+ # Deprecated. The Google Developers Console [project ID or project
3338
3351
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
3339
3352
  # This field has been deprecated and replaced by the name field.
3340
3353
  # @param zone [::String]
3341
- # Required. Deprecated. The name of the Google Compute Engine
3342
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3343
- # cluster resides. This field has been deprecated and replaced by the name
3344
- # field.
3354
+ # Deprecated. The name of the Google Compute Engine
3355
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
3356
+ # in which the cluster resides. This field has been deprecated and replaced
3357
+ # by the name field.
3345
3358
  # @param cluster_id [::String]
3346
- # Required. Deprecated. The name of the cluster to update.
3359
+ # Deprecated. The name of the cluster to update.
3347
3360
  # This field has been deprecated and replaced by the name field.
3348
3361
  # @param node_pool_id [::String]
3349
- # Required. Deprecated. The name of the node pool to update.
3362
+ # Deprecated. The name of the node pool to update.
3350
3363
  # This field has been deprecated and replaced by the name field.
3351
3364
  # @param node_count [::Integer]
3352
3365
  # Required. The desired node count for the pool.
@@ -3438,16 +3451,16 @@ module Google
3438
3451
  # the default parameter values, pass an empty Hash as a request object (see above).
3439
3452
  #
3440
3453
  # @param project_id [::String]
3441
- # Required. Deprecated. The Google Developers Console [project ID or project
3454
+ # Deprecated. The Google Developers Console [project ID or project
3442
3455
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
3443
3456
  # This field has been deprecated and replaced by the name field.
3444
3457
  # @param zone [::String]
3445
- # Required. Deprecated. The name of the Google Compute Engine
3446
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3447
- # cluster resides. This field has been deprecated and replaced by the name
3448
- # field.
3458
+ # Deprecated. The name of the Google Compute Engine
3459
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
3460
+ # in which the cluster resides. This field has been deprecated and replaced
3461
+ # by the name field.
3449
3462
  # @param cluster_id [::String]
3450
- # Required. Deprecated. The name of the cluster.
3463
+ # Deprecated. The name of the cluster.
3451
3464
  # This field has been deprecated and replaced by the name field.
3452
3465
  # @param network_policy [::Google::Cloud::Container::V1beta1::NetworkPolicy, ::Hash]
3453
3466
  # Required. Configuration options for the NetworkPolicy feature.
@@ -3542,8 +3555,8 @@ module Google
3542
3555
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
3543
3556
  # @param zone [::String]
3544
3557
  # Required. The name of the Google Compute Engine
3545
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3546
- # cluster resides.
3558
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
3559
+ # in which the cluster resides.
3547
3560
  # @param cluster_id [::String]
3548
3561
  # Required. The name of the cluster to update.
3549
3562
  # @param maintenance_policy [::Google::Cloud::Container::V1beta1::MaintenancePolicy, ::Hash]
@@ -3896,6 +3909,185 @@ module Google
3896
3909
  raise ::Google::Cloud::Error.from_error(e)
3897
3910
  end
3898
3911
 
3912
+ ##
3913
+ # Fetch upgrade information of a specific cluster.
3914
+ #
3915
+ # @overload fetch_cluster_upgrade_info(request, options = nil)
3916
+ # Pass arguments to `fetch_cluster_upgrade_info` via a request object, either of type
3917
+ # {::Google::Cloud::Container::V1beta1::FetchClusterUpgradeInfoRequest} or an equivalent Hash.
3918
+ #
3919
+ # @param request [::Google::Cloud::Container::V1beta1::FetchClusterUpgradeInfoRequest, ::Hash]
3920
+ # A request object representing the call parameters. Required. To specify no
3921
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3922
+ # @param options [::Gapic::CallOptions, ::Hash]
3923
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3924
+ #
3925
+ # @overload fetch_cluster_upgrade_info(name: nil, version: nil)
3926
+ # Pass arguments to `fetch_cluster_upgrade_info` via keyword arguments. Note that at
3927
+ # least one keyword argument is required. To specify no parameters, or to keep all
3928
+ # the default parameter values, pass an empty Hash as a request object (see above).
3929
+ #
3930
+ # @param name [::String]
3931
+ # Required. The name (project, location, cluster) of the cluster to get.
3932
+ # Specified in the format `projects/*/locations/*/clusters/*` or
3933
+ # `projects/*/zones/*/clusters/*`.
3934
+ # @param version [::String]
3935
+ # API request version that initiates this operation.
3936
+ #
3937
+ # @yield [response, operation] Access the result along with the RPC operation
3938
+ # @yieldparam response [::Google::Cloud::Container::V1beta1::ClusterUpgradeInfo]
3939
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3940
+ #
3941
+ # @return [::Google::Cloud::Container::V1beta1::ClusterUpgradeInfo]
3942
+ #
3943
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3944
+ #
3945
+ # @example Basic example
3946
+ # require "google/cloud/container/v1beta1"
3947
+ #
3948
+ # # Create a client object. The client can be reused for multiple calls.
3949
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
3950
+ #
3951
+ # # Create a request. To set request fields, pass in keyword arguments.
3952
+ # request = Google::Cloud::Container::V1beta1::FetchClusterUpgradeInfoRequest.new
3953
+ #
3954
+ # # Call the fetch_cluster_upgrade_info method.
3955
+ # result = client.fetch_cluster_upgrade_info request
3956
+ #
3957
+ # # The returned object is of type Google::Cloud::Container::V1beta1::ClusterUpgradeInfo.
3958
+ # p result
3959
+ #
3960
+ def fetch_cluster_upgrade_info request, options = nil
3961
+ raise ::ArgumentError, "request must be provided" if request.nil?
3962
+
3963
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1beta1::FetchClusterUpgradeInfoRequest
3964
+
3965
+ # Converts hash and nil to an options object
3966
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3967
+
3968
+ # Customize the options with defaults
3969
+ metadata = @config.rpcs.fetch_cluster_upgrade_info.metadata.to_h
3970
+
3971
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3972
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3973
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3974
+ gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
3975
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3976
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3977
+
3978
+ header_params = {}
3979
+ if request.name
3980
+ header_params["name"] = request.name
3981
+ end
3982
+
3983
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3984
+ metadata[:"x-goog-request-params"] ||= request_params_header
3985
+
3986
+ options.apply_defaults timeout: @config.rpcs.fetch_cluster_upgrade_info.timeout,
3987
+ metadata: metadata,
3988
+ retry_policy: @config.rpcs.fetch_cluster_upgrade_info.retry_policy
3989
+
3990
+ options.apply_defaults timeout: @config.timeout,
3991
+ metadata: @config.metadata,
3992
+ retry_policy: @config.retry_policy
3993
+
3994
+ @cluster_manager_stub.call_rpc :fetch_cluster_upgrade_info, request, options: options do |response, operation|
3995
+ yield response, operation if block_given?
3996
+ end
3997
+ rescue ::GRPC::BadStatus => e
3998
+ raise ::Google::Cloud::Error.from_error(e)
3999
+ end
4000
+
4001
+ ##
4002
+ # Fetch upgrade information of a specific nodepool.
4003
+ #
4004
+ # @overload fetch_node_pool_upgrade_info(request, options = nil)
4005
+ # Pass arguments to `fetch_node_pool_upgrade_info` via a request object, either of type
4006
+ # {::Google::Cloud::Container::V1beta1::FetchNodePoolUpgradeInfoRequest} or an equivalent Hash.
4007
+ #
4008
+ # @param request [::Google::Cloud::Container::V1beta1::FetchNodePoolUpgradeInfoRequest, ::Hash]
4009
+ # A request object representing the call parameters. Required. To specify no
4010
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4011
+ # @param options [::Gapic::CallOptions, ::Hash]
4012
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4013
+ #
4014
+ # @overload fetch_node_pool_upgrade_info(name: nil, version: nil)
4015
+ # Pass arguments to `fetch_node_pool_upgrade_info` via keyword arguments. Note that at
4016
+ # least one keyword argument is required. To specify no parameters, or to keep all
4017
+ # the default parameter values, pass an empty Hash as a request object (see above).
4018
+ #
4019
+ # @param name [::String]
4020
+ # Required. The name (project, location, cluster, nodepool) of the nodepool
4021
+ # to get. Specified in the format
4022
+ # `projects/*/locations/*/clusters/*/nodePools/*` or
4023
+ # `projects/*/zones/*/clusters/*/nodePools/*`.
4024
+ # @param version [::String]
4025
+ # API request version that initiates this operation.
4026
+ #
4027
+ # @yield [response, operation] Access the result along with the RPC operation
4028
+ # @yieldparam response [::Google::Cloud::Container::V1beta1::NodePoolUpgradeInfo]
4029
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4030
+ #
4031
+ # @return [::Google::Cloud::Container::V1beta1::NodePoolUpgradeInfo]
4032
+ #
4033
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4034
+ #
4035
+ # @example Basic example
4036
+ # require "google/cloud/container/v1beta1"
4037
+ #
4038
+ # # Create a client object. The client can be reused for multiple calls.
4039
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
4040
+ #
4041
+ # # Create a request. To set request fields, pass in keyword arguments.
4042
+ # request = Google::Cloud::Container::V1beta1::FetchNodePoolUpgradeInfoRequest.new
4043
+ #
4044
+ # # Call the fetch_node_pool_upgrade_info method.
4045
+ # result = client.fetch_node_pool_upgrade_info request
4046
+ #
4047
+ # # The returned object is of type Google::Cloud::Container::V1beta1::NodePoolUpgradeInfo.
4048
+ # p result
4049
+ #
4050
+ def fetch_node_pool_upgrade_info request, options = nil
4051
+ raise ::ArgumentError, "request must be provided" if request.nil?
4052
+
4053
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1beta1::FetchNodePoolUpgradeInfoRequest
4054
+
4055
+ # Converts hash and nil to an options object
4056
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4057
+
4058
+ # Customize the options with defaults
4059
+ metadata = @config.rpcs.fetch_node_pool_upgrade_info.metadata.to_h
4060
+
4061
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4062
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4063
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4064
+ gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
4065
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4066
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4067
+
4068
+ header_params = {}
4069
+ if request.name
4070
+ header_params["name"] = request.name
4071
+ end
4072
+
4073
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4074
+ metadata[:"x-goog-request-params"] ||= request_params_header
4075
+
4076
+ options.apply_defaults timeout: @config.rpcs.fetch_node_pool_upgrade_info.timeout,
4077
+ metadata: metadata,
4078
+ retry_policy: @config.rpcs.fetch_node_pool_upgrade_info.retry_policy
4079
+
4080
+ options.apply_defaults timeout: @config.timeout,
4081
+ metadata: @config.metadata,
4082
+ retry_policy: @config.retry_policy
4083
+
4084
+ @cluster_manager_stub.call_rpc :fetch_node_pool_upgrade_info, request, options: options do |response, operation|
4085
+ yield response, operation if block_given?
4086
+ end
4087
+ rescue ::GRPC::BadStatus => e
4088
+ raise ::Google::Cloud::Error.from_error(e)
4089
+ end
4090
+
3899
4091
  ##
3900
4092
  # Configuration class for the ClusterManager API.
3901
4093
  #
@@ -4237,6 +4429,16 @@ module Google
4237
4429
  # @return [::Gapic::Config::Method]
4238
4430
  #
4239
4431
  attr_reader :list_locations
4432
+ ##
4433
+ # RPC-specific configuration for `fetch_cluster_upgrade_info`
4434
+ # @return [::Gapic::Config::Method]
4435
+ #
4436
+ attr_reader :fetch_cluster_upgrade_info
4437
+ ##
4438
+ # RPC-specific configuration for `fetch_node_pool_upgrade_info`
4439
+ # @return [::Gapic::Config::Method]
4440
+ #
4441
+ attr_reader :fetch_node_pool_upgrade_info
4240
4442
 
4241
4443
  # @private
4242
4444
  def initialize parent_rpcs = nil
@@ -4310,6 +4512,10 @@ module Google
4310
4512
  @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config
4311
4513
  list_locations_config = parent_rpcs.list_locations if parent_rpcs.respond_to? :list_locations
4312
4514
  @list_locations = ::Gapic::Config::Method.new list_locations_config
4515
+ fetch_cluster_upgrade_info_config = parent_rpcs.fetch_cluster_upgrade_info if parent_rpcs.respond_to? :fetch_cluster_upgrade_info
4516
+ @fetch_cluster_upgrade_info = ::Gapic::Config::Method.new fetch_cluster_upgrade_info_config
4517
+ fetch_node_pool_upgrade_info_config = parent_rpcs.fetch_node_pool_upgrade_info if parent_rpcs.respond_to? :fetch_node_pool_upgrade_info
4518
+ @fetch_node_pool_upgrade_info = ::Gapic::Config::Method.new fetch_node_pool_upgrade_info_config
4313
4519
 
4314
4520
  yield self if block_given?
4315
4521
  end