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.
@@ -295,9 +295,9 @@ module Google
295
295
  # This field has been deprecated and replaced by the parent field.
296
296
  # @param zone [::String]
297
297
  # Deprecated. The name of the Google Compute Engine
298
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
299
- # cluster resides, or "-" for all zones. This field has been deprecated and
300
- # replaced by the parent field.
298
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
299
+ # in which the cluster resides, or "-" for all zones. This field has been
300
+ # deprecated and replaced by the parent field.
301
301
  # @param parent [::String]
302
302
  # The parent (project and location) where the clusters will be listed.
303
303
  # Specified in the format `projects/*/locations/*`.
@@ -391,9 +391,9 @@ module Google
391
391
  # This field has been deprecated and replaced by the name field.
392
392
  # @param zone [::String]
393
393
  # Deprecated. The name of the Google Compute Engine
394
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
395
- # cluster resides. This field has been deprecated and replaced by the name
396
- # field.
394
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
395
+ # in which the cluster resides. This field has been deprecated and replaced
396
+ # by the name field.
397
397
  # @param cluster_id [::String]
398
398
  # Deprecated. The name of the cluster to retrieve.
399
399
  # This field has been deprecated and replaced by the name field.
@@ -502,9 +502,9 @@ module Google
502
502
  # This field has been deprecated and replaced by the parent field.
503
503
  # @param zone [::String]
504
504
  # Deprecated. The name of the Google Compute Engine
505
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
506
- # cluster resides. This field has been deprecated and replaced by the parent
507
- # field.
505
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
506
+ # in which the cluster resides. This field has been deprecated and replaced
507
+ # by the parent field.
508
508
  # @param cluster [::Google::Cloud::Container::V1::Cluster, ::Hash]
509
509
  # Required. A [cluster
510
510
  # resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
@@ -600,9 +600,9 @@ module Google
600
600
  # This field has been deprecated and replaced by the name field.
601
601
  # @param zone [::String]
602
602
  # Deprecated. The name of the Google Compute Engine
603
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
604
- # cluster resides. This field has been deprecated and replaced by the name
605
- # field.
603
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
604
+ # in which the cluster resides. This field has been deprecated and replaced
605
+ # by the name field.
606
606
  # @param cluster_id [::String]
607
607
  # Deprecated. The name of the cluster to upgrade.
608
608
  # This field has been deprecated and replaced by the name field.
@@ -689,7 +689,7 @@ module Google
689
689
  # @param options [::Gapic::CallOptions, ::Hash]
690
690
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
691
691
  #
692
- # @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)
692
+ # @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)
693
693
  # Pass arguments to `update_node_pool` via keyword arguments. Note that at
694
694
  # least one keyword argument is required. To specify no parameters, or to keep all
695
695
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -700,9 +700,9 @@ module Google
700
700
  # This field has been deprecated and replaced by the name field.
701
701
  # @param zone [::String]
702
702
  # Deprecated. The name of the Google Compute Engine
703
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
704
- # cluster resides. This field has been deprecated and replaced by the name
705
- # field.
703
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
704
+ # in which the cluster resides. This field has been deprecated and replaced
705
+ # by the name field.
706
706
  # @param cluster_id [::String]
707
707
  # Deprecated. The name of the cluster to upgrade.
708
708
  # This field has been deprecated and replaced by the name field.
@@ -723,18 +723,18 @@ module Google
723
723
  # - "-": picks the Kubernetes master version
724
724
  # @param image_type [::String]
725
725
  # Required. The desired image type for the node pool. Please see
726
- # https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
727
- # available image types.
726
+ # https://cloud.google.com/kubernetes-engine/docs/concepts/node-images
727
+ # for available image types.
728
728
  # @param name [::String]
729
729
  # The name (project, location, cluster, node pool) of the node pool to
730
730
  # update. Specified in the format
731
731
  # `projects/*/locations/*/clusters/*/nodePools/*`.
732
732
  # @param locations [::Array<::String>]
733
733
  # The desired list of Google Compute Engine
734
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
735
- # node pool's nodes should be located. Changing the locations for a node pool
736
- # will result in nodes being either created or removed from the node pool,
737
- # depending on whether locations are being added or removed.
734
+ # [zones](https://cloud.google.com/compute/docs/zones#available)
735
+ # in which the node pool's nodes should be located. Changing the locations
736
+ # for a node pool will result in nodes being either created or removed from
737
+ # the node pool, depending on whether locations are being added or removed.
738
738
  # @param workload_metadata_config [::Google::Cloud::Container::V1::WorkloadMetadataConfig, ::Hash]
739
739
  # The desired workload metadata config for the node pool.
740
740
  # @param upgrade_settings [::Google::Cloud::Container::V1::NodePool::UpgradeSettings, ::Hash]
@@ -779,13 +779,14 @@ module Google
779
779
  # Parameters that can be configured on Windows nodes.
780
780
  # @param accelerators [::Array<::Google::Cloud::Container::V1::AcceleratorConfig, ::Hash>]
781
781
  # A list of hardware accelerators to be attached to each node.
782
- # See https://cloud.google.com/compute/docs/gpus for more information about
783
- # support for GPUs.
782
+ # See
783
+ # https://cloud.google.com/compute/docs/gpus
784
+ # for more information about support for GPUs.
784
785
  # @param machine_type [::String]
785
786
  # Optional. The desired [Google Compute Engine machine
786
- # type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
787
- # node pool. Initiates an upgrade operation that migrates the nodes in the
788
- # node pool to the specified machine type.
787
+ # type](https://cloud.google.com/compute/docs/machine-types)
788
+ # for nodes in the node pool. Initiates an upgrade operation that migrates
789
+ # the nodes in the node pool to the specified machine type.
789
790
  # @param disk_type [::String]
790
791
  # Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
791
792
  # 'pd-balanced') for nodes in the node pool.
@@ -809,6 +810,15 @@ module Google
809
810
  # @param storage_pools [::Array<::String>]
810
811
  # List of Storage Pools where boot disks are provisioned.
811
812
  # Existing Storage Pools will be replaced with storage-pools.
813
+ # @param max_run_duration [::Google::Protobuf::Duration, ::Hash]
814
+ # The maximum duration for the nodes to exist.
815
+ # If unspecified, the nodes can exist indefinitely.
816
+ # @param flex_start [::Boolean]
817
+ # Flex Start flag for enabling Flex Start VM.
818
+ # @param boot_disk [::Google::Cloud::Container::V1::BootDisk, ::Hash]
819
+ # The desired boot disk config for nodes in the node pool.
820
+ # Initiates an upgrade operation that migrates the nodes in the
821
+ # node pool to the specified boot disk config.
812
822
  #
813
823
  # @yield [response, operation] Access the result along with the RPC operation
814
824
  # @yieldparam response [::Google::Cloud::Container::V1::Operation]
@@ -898,9 +908,9 @@ module Google
898
908
  # This field has been deprecated and replaced by the name field.
899
909
  # @param zone [::String]
900
910
  # Deprecated. The name of the Google Compute Engine
901
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
902
- # cluster resides. This field has been deprecated and replaced by the name
903
- # field.
911
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
912
+ # in which the cluster resides. This field has been deprecated and replaced
913
+ # by the name field.
904
914
  # @param cluster_id [::String]
905
915
  # Deprecated. The name of the cluster to upgrade.
906
916
  # This field has been deprecated and replaced by the name field.
@@ -1002,9 +1012,9 @@ module Google
1002
1012
  # This field has been deprecated and replaced by the name field.
1003
1013
  # @param zone [::String]
1004
1014
  # Deprecated. The name of the Google Compute Engine
1005
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1006
- # cluster resides. This field has been deprecated and replaced by the name
1007
- # field.
1015
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1016
+ # in which the cluster resides. This field has been deprecated and replaced
1017
+ # by the name field.
1008
1018
  # @param cluster_id [::String]
1009
1019
  # Deprecated. The name of the cluster to upgrade.
1010
1020
  # This field has been deprecated and replaced by the name field.
@@ -1112,9 +1122,9 @@ module Google
1112
1122
  # This field has been deprecated and replaced by the name field.
1113
1123
  # @param zone [::String]
1114
1124
  # Deprecated. The name of the Google Compute Engine
1115
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1116
- # cluster resides. This field has been deprecated and replaced by the name
1117
- # field.
1125
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1126
+ # in which the cluster resides. This field has been deprecated and replaced
1127
+ # by the name field.
1118
1128
  # @param cluster_id [::String]
1119
1129
  # Deprecated. The name of the cluster to upgrade.
1120
1130
  # This field has been deprecated and replaced by the name field.
@@ -1122,7 +1132,7 @@ module Google
1122
1132
  # Required. The monitoring service the cluster should use to write metrics.
1123
1133
  # Currently available options:
1124
1134
  #
1125
- # * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
1135
+ # * `monitoring.googleapis.com/kubernetes` - The Cloud Monitoring
1126
1136
  # service with a Kubernetes-native resource model
1127
1137
  # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
1128
1138
  # longer available as of GKE 1.15).
@@ -1222,9 +1232,9 @@ module Google
1222
1232
  # This field has been deprecated and replaced by the name field.
1223
1233
  # @param zone [::String]
1224
1234
  # Deprecated. The name of the Google Compute Engine
1225
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1226
- # cluster resides. This field has been deprecated and replaced by the name
1227
- # field.
1235
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1236
+ # in which the cluster resides. This field has been deprecated and replaced
1237
+ # by the name field.
1228
1238
  # @param cluster_id [::String]
1229
1239
  # Deprecated. The name of the cluster to upgrade.
1230
1240
  # This field has been deprecated and replaced by the name field.
@@ -1328,18 +1338,18 @@ module Google
1328
1338
  # This field has been deprecated and replaced by the name field.
1329
1339
  # @param zone [::String]
1330
1340
  # Deprecated. The name of the Google Compute Engine
1331
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1332
- # cluster resides. This field has been deprecated and replaced by the name
1333
- # field.
1341
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1342
+ # in which the cluster resides. This field has been deprecated and replaced
1343
+ # by the name field.
1334
1344
  # @param cluster_id [::String]
1335
1345
  # Deprecated. The name of the cluster to upgrade.
1336
1346
  # This field has been deprecated and replaced by the name field.
1337
1347
  # @param locations [::Array<::String>]
1338
1348
  # Required. The desired list of Google Compute Engine
1339
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1340
- # cluster's nodes should be located. Changing the locations a cluster is in
1341
- # will result in nodes being either created or removed from the cluster,
1342
- # depending on whether locations are being added or removed.
1349
+ # [zones](https://cloud.google.com/compute/docs/zones#available)
1350
+ # in which the cluster's nodes should be located. Changing the locations a
1351
+ # cluster is in will result in nodes being either created or removed from the
1352
+ # cluster, depending on whether locations are being added or removed.
1343
1353
  #
1344
1354
  # This list must always include the cluster's primary zone.
1345
1355
  # @param name [::String]
@@ -1434,9 +1444,9 @@ module Google
1434
1444
  # This field has been deprecated and replaced by the name field.
1435
1445
  # @param zone [::String]
1436
1446
  # Deprecated. The name of the Google Compute Engine
1437
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1438
- # cluster resides. This field has been deprecated and replaced by the name
1439
- # field.
1447
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1448
+ # in which the cluster resides. This field has been deprecated and replaced
1449
+ # by the name field.
1440
1450
  # @param cluster_id [::String]
1441
1451
  # Deprecated. The name of the cluster to upgrade.
1442
1452
  # This field has been deprecated and replaced by the name field.
@@ -1545,9 +1555,9 @@ module Google
1545
1555
  # This field has been deprecated and replaced by the name field.
1546
1556
  # @param zone [::String]
1547
1557
  # Deprecated. The name of the Google Compute Engine
1548
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1549
- # cluster resides. This field has been deprecated and replaced by the name
1550
- # field.
1558
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1559
+ # in which the cluster resides. This field has been deprecated and replaced
1560
+ # by the name field.
1551
1561
  # @param cluster_id [::String]
1552
1562
  # Deprecated. The name of the cluster to upgrade.
1553
1563
  # This field has been deprecated and replaced by the name field.
@@ -1655,9 +1665,9 @@ module Google
1655
1665
  # This field has been deprecated and replaced by the name field.
1656
1666
  # @param zone [::String]
1657
1667
  # Deprecated. The name of the Google Compute Engine
1658
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1659
- # cluster resides. This field has been deprecated and replaced by the name
1660
- # field.
1668
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1669
+ # in which the cluster resides. This field has been deprecated and replaced
1670
+ # by the name field.
1661
1671
  # @param cluster_id [::String]
1662
1672
  # Deprecated. The name of the cluster to delete.
1663
1673
  # This field has been deprecated and replaced by the name field.
@@ -1753,9 +1763,9 @@ module Google
1753
1763
  # This field has been deprecated and replaced by the parent field.
1754
1764
  # @param zone [::String]
1755
1765
  # Deprecated. The name of the Google Compute Engine
1756
- # [zone](https://cloud.google.com/compute/docs/zones#available) to return
1757
- # operations for, or `-` for all zones. This field has been deprecated and
1758
- # replaced by the parent field.
1766
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1767
+ # to return operations for, or `-` for all zones. This field has been
1768
+ # deprecated and replaced by the parent field.
1759
1769
  # @param parent [::String]
1760
1770
  # The parent (project and location) where the operations will be listed.
1761
1771
  # Specified in the format `projects/*/locations/*`.
@@ -1849,9 +1859,9 @@ module Google
1849
1859
  # This field has been deprecated and replaced by the name field.
1850
1860
  # @param zone [::String]
1851
1861
  # Deprecated. The name of the Google Compute Engine
1852
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1853
- # cluster resides. This field has been deprecated and replaced by the name
1854
- # field.
1862
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1863
+ # in which the cluster resides. This field has been deprecated and replaced
1864
+ # by the name field.
1855
1865
  # @param operation_id [::String]
1856
1866
  # Deprecated. The server-assigned `name` of the operation.
1857
1867
  # This field has been deprecated and replaced by the name field.
@@ -1947,9 +1957,9 @@ module Google
1947
1957
  # This field has been deprecated and replaced by the name field.
1948
1958
  # @param zone [::String]
1949
1959
  # Deprecated. The name of the Google Compute Engine
1950
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1951
- # operation resides. This field has been deprecated and replaced by the name
1952
- # field.
1960
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
1961
+ # in which the operation resides. This field has been deprecated and replaced
1962
+ # by the name field.
1953
1963
  # @param operation_id [::String]
1954
1964
  # Deprecated. The server-assigned `name` of the operation.
1955
1965
  # This field has been deprecated and replaced by the name field.
@@ -2045,9 +2055,9 @@ module Google
2045
2055
  # This field has been deprecated and replaced by the name field.
2046
2056
  # @param zone [::String]
2047
2057
  # Deprecated. The name of the Google Compute Engine
2048
- # [zone](https://cloud.google.com/compute/docs/zones#available) to return
2049
- # operations for. This field has been deprecated and replaced by the name
2050
- # field.
2058
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2059
+ # to return operations for. This field has been deprecated and replaced by
2060
+ # the name field.
2051
2061
  # @param name [::String]
2052
2062
  # The name (project and location) of the server config to get,
2053
2063
  # specified in the format `projects/*/locations/*`.
@@ -2227,9 +2237,9 @@ module Google
2227
2237
  # This field has been deprecated and replaced by the parent field.
2228
2238
  # @param zone [::String]
2229
2239
  # Deprecated. The name of the Google Compute Engine
2230
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2231
- # cluster resides. This field has been deprecated and replaced by the parent
2232
- # field.
2240
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2241
+ # in which the cluster resides. This field has been deprecated and replaced
2242
+ # by the parent field.
2233
2243
  # @param cluster_id [::String]
2234
2244
  # Deprecated. The name of the cluster.
2235
2245
  # This field has been deprecated and replaced by the parent field.
@@ -2325,9 +2335,9 @@ module Google
2325
2335
  # This field has been deprecated and replaced by the name field.
2326
2336
  # @param zone [::String]
2327
2337
  # Deprecated. The name of the Google Compute Engine
2328
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2329
- # cluster resides. This field has been deprecated and replaced by the name
2330
- # field.
2338
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2339
+ # in which the cluster resides. This field has been deprecated and replaced
2340
+ # by the name field.
2331
2341
  # @param cluster_id [::String]
2332
2342
  # Deprecated. The name of the cluster.
2333
2343
  # This field has been deprecated and replaced by the name field.
@@ -2427,9 +2437,9 @@ module Google
2427
2437
  # This field has been deprecated and replaced by the parent field.
2428
2438
  # @param zone [::String]
2429
2439
  # Deprecated. The name of the Google Compute Engine
2430
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2431
- # cluster resides. This field has been deprecated and replaced by the parent
2432
- # field.
2440
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2441
+ # in which the cluster resides. This field has been deprecated and replaced
2442
+ # by the parent field.
2433
2443
  # @param cluster_id [::String]
2434
2444
  # Deprecated. The name of the cluster.
2435
2445
  # This field has been deprecated and replaced by the parent field.
@@ -2528,9 +2538,9 @@ module Google
2528
2538
  # This field has been deprecated and replaced by the name field.
2529
2539
  # @param zone [::String]
2530
2540
  # Deprecated. The name of the Google Compute Engine
2531
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2532
- # cluster resides. This field has been deprecated and replaced by the name
2533
- # field.
2541
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2542
+ # in which the cluster resides. This field has been deprecated and replaced
2543
+ # by the name field.
2534
2544
  # @param cluster_id [::String]
2535
2545
  # Deprecated. The name of the cluster.
2536
2546
  # This field has been deprecated and replaced by the name field.
@@ -2719,9 +2729,9 @@ module Google
2719
2729
  # This field has been deprecated and replaced by the name field.
2720
2730
  # @param zone [::String]
2721
2731
  # Deprecated. The name of the Google Compute Engine
2722
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2723
- # cluster resides. This field has been deprecated and replaced by the name
2724
- # field.
2732
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2733
+ # in which the cluster resides. This field has been deprecated and replaced
2734
+ # by the name field.
2725
2735
  # @param cluster_id [::String]
2726
2736
  # Deprecated. The name of the cluster to rollback.
2727
2737
  # This field has been deprecated and replaced by the name field.
@@ -2824,9 +2834,9 @@ module Google
2824
2834
  # This field has been deprecated and replaced by the name field.
2825
2835
  # @param zone [::String]
2826
2836
  # Deprecated. The name of the Google Compute Engine
2827
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2828
- # cluster resides. This field has been deprecated and replaced by the name
2829
- # field.
2837
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2838
+ # in which the cluster resides. This field has been deprecated and replaced
2839
+ # by the name field.
2830
2840
  # @param cluster_id [::String]
2831
2841
  # Deprecated. The name of the cluster to update.
2832
2842
  # This field has been deprecated and replaced by the name field.
@@ -2928,9 +2938,9 @@ module Google
2928
2938
  # This field has been deprecated and replaced by the name field.
2929
2939
  # @param zone [::String]
2930
2940
  # Deprecated. The name of the Google Compute Engine
2931
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2932
- # cluster resides. This field has been deprecated and replaced by the name
2933
- # field.
2941
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
2942
+ # in which the cluster resides. This field has been deprecated and replaced
2943
+ # by the name field.
2934
2944
  # @param cluster_id [::String]
2935
2945
  # Deprecated. The name of the cluster.
2936
2946
  # This field has been deprecated and replaced by the name field.
@@ -3035,9 +3045,9 @@ module Google
3035
3045
  # This field has been deprecated and replaced by the name field.
3036
3046
  # @param zone [::String]
3037
3047
  # Deprecated. The name of the Google Compute Engine
3038
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3039
- # cluster resides. This field has been deprecated and replaced by the name
3040
- # field.
3048
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
3049
+ # in which the cluster resides. This field has been deprecated and replaced
3050
+ # by the name field.
3041
3051
  # @param cluster_id [::String]
3042
3052
  # Deprecated. The name of the cluster to update.
3043
3053
  # This field has been deprecated and replaced by the name field.
@@ -3135,9 +3145,9 @@ module Google
3135
3145
  # This field has been deprecated and replaced by the name field.
3136
3146
  # @param zone [::String]
3137
3147
  # Deprecated. The name of the Google Compute Engine
3138
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3139
- # cluster resides. This field has been deprecated and replaced by the name
3140
- # field.
3148
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
3149
+ # in which the cluster resides. This field has been deprecated and replaced
3150
+ # by the name field.
3141
3151
  # @param cluster_id [::String]
3142
3152
  # Deprecated. The name of the cluster.
3143
3153
  # This field has been deprecated and replaced by the name field.
@@ -3235,9 +3245,9 @@ module Google
3235
3245
  # This field has been deprecated and replaced by the name field.
3236
3246
  # @param zone [::String]
3237
3247
  # Deprecated. The name of the Google Compute Engine
3238
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3239
- # cluster resides. This field has been deprecated and replaced by the name
3240
- # field.
3248
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
3249
+ # in which the cluster resides. This field has been deprecated and replaced
3250
+ # by the name field.
3241
3251
  # @param cluster_id [::String]
3242
3252
  # Deprecated. The name of the cluster.
3243
3253
  # This field has been deprecated and replaced by the name field.
@@ -3335,9 +3345,9 @@ module Google
3335
3345
  # This field has been deprecated and replaced by the name field.
3336
3346
  # @param zone [::String]
3337
3347
  # Deprecated. The name of the Google Compute Engine
3338
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3339
- # cluster resides. This field has been deprecated and replaced by the name
3340
- # field.
3348
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
3349
+ # in which the cluster resides. This field has been deprecated and replaced
3350
+ # by the name field.
3341
3351
  # @param cluster_id [::String]
3342
3352
  # Deprecated. The name of the cluster to update.
3343
3353
  # This field has been deprecated and replaced by the name field.
@@ -3439,9 +3449,9 @@ module Google
3439
3449
  # This field has been deprecated and replaced by the name field.
3440
3450
  # @param zone [::String]
3441
3451
  # Deprecated. The name of the Google Compute Engine
3442
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3443
- # cluster resides. This field has been deprecated and replaced by the name
3444
- # field.
3452
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
3453
+ # in which the cluster resides. This field has been deprecated and replaced
3454
+ # by the name field.
3445
3455
  # @param cluster_id [::String]
3446
3456
  # Deprecated. The name of the cluster.
3447
3457
  # This field has been deprecated and replaced by the name field.
@@ -3538,8 +3548,8 @@ module Google
3538
3548
  # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
3539
3549
  # @param zone [::String]
3540
3550
  # Required. The name of the Google Compute Engine
3541
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3542
- # cluster resides.
3551
+ # [zone](https://cloud.google.com/compute/docs/zones#available)
3552
+ # in which the cluster resides.
3543
3553
  # @param cluster_id [::String]
3544
3554
  # Required. The name of the cluster to update.
3545
3555
  # @param maintenance_policy [::Google::Cloud::Container::V1::MaintenancePolicy, ::Hash]
@@ -3806,6 +3816,185 @@ module Google
3806
3816
  raise ::Google::Cloud::Error.from_error(e)
3807
3817
  end
3808
3818
 
3819
+ ##
3820
+ # Fetch upgrade information of a specific cluster.
3821
+ #
3822
+ # @overload fetch_cluster_upgrade_info(request, options = nil)
3823
+ # Pass arguments to `fetch_cluster_upgrade_info` via a request object, either of type
3824
+ # {::Google::Cloud::Container::V1::FetchClusterUpgradeInfoRequest} or an equivalent Hash.
3825
+ #
3826
+ # @param request [::Google::Cloud::Container::V1::FetchClusterUpgradeInfoRequest, ::Hash]
3827
+ # A request object representing the call parameters. Required. To specify no
3828
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3829
+ # @param options [::Gapic::CallOptions, ::Hash]
3830
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3831
+ #
3832
+ # @overload fetch_cluster_upgrade_info(name: nil, version: nil)
3833
+ # Pass arguments to `fetch_cluster_upgrade_info` via keyword arguments. Note that at
3834
+ # least one keyword argument is required. To specify no parameters, or to keep all
3835
+ # the default parameter values, pass an empty Hash as a request object (see above).
3836
+ #
3837
+ # @param name [::String]
3838
+ # Required. The name (project, location, cluster) of the cluster to get.
3839
+ # Specified in the format `projects/*/locations/*/clusters/*` or
3840
+ # `projects/*/zones/*/clusters/*`.
3841
+ # @param version [::String]
3842
+ # API request version that initiates this operation.
3843
+ #
3844
+ # @yield [response, operation] Access the result along with the RPC operation
3845
+ # @yieldparam response [::Google::Cloud::Container::V1::ClusterUpgradeInfo]
3846
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3847
+ #
3848
+ # @return [::Google::Cloud::Container::V1::ClusterUpgradeInfo]
3849
+ #
3850
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3851
+ #
3852
+ # @example Basic example
3853
+ # require "google/cloud/container/v1"
3854
+ #
3855
+ # # Create a client object. The client can be reused for multiple calls.
3856
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
3857
+ #
3858
+ # # Create a request. To set request fields, pass in keyword arguments.
3859
+ # request = Google::Cloud::Container::V1::FetchClusterUpgradeInfoRequest.new
3860
+ #
3861
+ # # Call the fetch_cluster_upgrade_info method.
3862
+ # result = client.fetch_cluster_upgrade_info request
3863
+ #
3864
+ # # The returned object is of type Google::Cloud::Container::V1::ClusterUpgradeInfo.
3865
+ # p result
3866
+ #
3867
+ def fetch_cluster_upgrade_info request, options = nil
3868
+ raise ::ArgumentError, "request must be provided" if request.nil?
3869
+
3870
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::FetchClusterUpgradeInfoRequest
3871
+
3872
+ # Converts hash and nil to an options object
3873
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3874
+
3875
+ # Customize the options with defaults
3876
+ metadata = @config.rpcs.fetch_cluster_upgrade_info.metadata.to_h
3877
+
3878
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3879
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3880
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3881
+ gapic_version: ::Google::Cloud::Container::V1::VERSION
3882
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3883
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3884
+
3885
+ header_params = {}
3886
+ if request.name
3887
+ header_params["name"] = request.name
3888
+ end
3889
+
3890
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3891
+ metadata[:"x-goog-request-params"] ||= request_params_header
3892
+
3893
+ options.apply_defaults timeout: @config.rpcs.fetch_cluster_upgrade_info.timeout,
3894
+ metadata: metadata,
3895
+ retry_policy: @config.rpcs.fetch_cluster_upgrade_info.retry_policy
3896
+
3897
+ options.apply_defaults timeout: @config.timeout,
3898
+ metadata: @config.metadata,
3899
+ retry_policy: @config.retry_policy
3900
+
3901
+ @cluster_manager_stub.call_rpc :fetch_cluster_upgrade_info, request, options: options do |response, operation|
3902
+ yield response, operation if block_given?
3903
+ end
3904
+ rescue ::GRPC::BadStatus => e
3905
+ raise ::Google::Cloud::Error.from_error(e)
3906
+ end
3907
+
3908
+ ##
3909
+ # Fetch upgrade information of a specific nodepool.
3910
+ #
3911
+ # @overload fetch_node_pool_upgrade_info(request, options = nil)
3912
+ # Pass arguments to `fetch_node_pool_upgrade_info` via a request object, either of type
3913
+ # {::Google::Cloud::Container::V1::FetchNodePoolUpgradeInfoRequest} or an equivalent Hash.
3914
+ #
3915
+ # @param request [::Google::Cloud::Container::V1::FetchNodePoolUpgradeInfoRequest, ::Hash]
3916
+ # A request object representing the call parameters. Required. To specify no
3917
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3918
+ # @param options [::Gapic::CallOptions, ::Hash]
3919
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3920
+ #
3921
+ # @overload fetch_node_pool_upgrade_info(name: nil, version: nil)
3922
+ # Pass arguments to `fetch_node_pool_upgrade_info` via keyword arguments. Note that at
3923
+ # least one keyword argument is required. To specify no parameters, or to keep all
3924
+ # the default parameter values, pass an empty Hash as a request object (see above).
3925
+ #
3926
+ # @param name [::String]
3927
+ # Required. The name (project, location, cluster, nodepool) of the nodepool
3928
+ # to get. Specified in the format
3929
+ # `projects/*/locations/*/clusters/*/nodePools/*` or
3930
+ # `projects/*/zones/*/clusters/*/nodePools/*`.
3931
+ # @param version [::String]
3932
+ # API request version that initiates this operation.
3933
+ #
3934
+ # @yield [response, operation] Access the result along with the RPC operation
3935
+ # @yieldparam response [::Google::Cloud::Container::V1::NodePoolUpgradeInfo]
3936
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3937
+ #
3938
+ # @return [::Google::Cloud::Container::V1::NodePoolUpgradeInfo]
3939
+ #
3940
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3941
+ #
3942
+ # @example Basic example
3943
+ # require "google/cloud/container/v1"
3944
+ #
3945
+ # # Create a client object. The client can be reused for multiple calls.
3946
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
3947
+ #
3948
+ # # Create a request. To set request fields, pass in keyword arguments.
3949
+ # request = Google::Cloud::Container::V1::FetchNodePoolUpgradeInfoRequest.new
3950
+ #
3951
+ # # Call the fetch_node_pool_upgrade_info method.
3952
+ # result = client.fetch_node_pool_upgrade_info request
3953
+ #
3954
+ # # The returned object is of type Google::Cloud::Container::V1::NodePoolUpgradeInfo.
3955
+ # p result
3956
+ #
3957
+ def fetch_node_pool_upgrade_info request, options = nil
3958
+ raise ::ArgumentError, "request must be provided" if request.nil?
3959
+
3960
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::FetchNodePoolUpgradeInfoRequest
3961
+
3962
+ # Converts hash and nil to an options object
3963
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3964
+
3965
+ # Customize the options with defaults
3966
+ metadata = @config.rpcs.fetch_node_pool_upgrade_info.metadata.to_h
3967
+
3968
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3969
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3970
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3971
+ gapic_version: ::Google::Cloud::Container::V1::VERSION
3972
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3973
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3974
+
3975
+ header_params = {}
3976
+ if request.name
3977
+ header_params["name"] = request.name
3978
+ end
3979
+
3980
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3981
+ metadata[:"x-goog-request-params"] ||= request_params_header
3982
+
3983
+ options.apply_defaults timeout: @config.rpcs.fetch_node_pool_upgrade_info.timeout,
3984
+ metadata: metadata,
3985
+ retry_policy: @config.rpcs.fetch_node_pool_upgrade_info.retry_policy
3986
+
3987
+ options.apply_defaults timeout: @config.timeout,
3988
+ metadata: @config.metadata,
3989
+ retry_policy: @config.retry_policy
3990
+
3991
+ @cluster_manager_stub.call_rpc :fetch_node_pool_upgrade_info, request, options: options do |response, operation|
3992
+ yield response, operation if block_given?
3993
+ end
3994
+ rescue ::GRPC::BadStatus => e
3995
+ raise ::Google::Cloud::Error.from_error(e)
3996
+ end
3997
+
3809
3998
  ##
3810
3999
  # Configuration class for the ClusterManager API.
3811
4000
  #
@@ -4142,6 +4331,16 @@ module Google
4142
4331
  # @return [::Gapic::Config::Method]
4143
4332
  #
4144
4333
  attr_reader :check_autopilot_compatibility
4334
+ ##
4335
+ # RPC-specific configuration for `fetch_cluster_upgrade_info`
4336
+ # @return [::Gapic::Config::Method]
4337
+ #
4338
+ attr_reader :fetch_cluster_upgrade_info
4339
+ ##
4340
+ # RPC-specific configuration for `fetch_node_pool_upgrade_info`
4341
+ # @return [::Gapic::Config::Method]
4342
+ #
4343
+ attr_reader :fetch_node_pool_upgrade_info
4145
4344
 
4146
4345
  # @private
4147
4346
  def initialize parent_rpcs = nil
@@ -4213,6 +4412,10 @@ module Google
4213
4412
  @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
4214
4413
  check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility
4215
4414
  @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config
4415
+ fetch_cluster_upgrade_info_config = parent_rpcs.fetch_cluster_upgrade_info if parent_rpcs.respond_to? :fetch_cluster_upgrade_info
4416
+ @fetch_cluster_upgrade_info = ::Gapic::Config::Method.new fetch_cluster_upgrade_info_config
4417
+ fetch_node_pool_upgrade_info_config = parent_rpcs.fetch_node_pool_upgrade_info if parent_rpcs.respond_to? :fetch_node_pool_upgrade_info
4418
+ @fetch_node_pool_upgrade_info = ::Gapic::Config::Method.new fetch_node_pool_upgrade_info_config
4216
4419
 
4217
4420
  yield self if block_given?
4218
4421
  end