google-cloud-container-v1 0.7.3 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ab7cf0d7799df6a0a06cbf2e18d4b758043ac129af7e9d147caf17235ed140a
4
- data.tar.gz: 2082d11e83defdafa5e53d32bdc5226e5114a58d5d10910a9750318c5b510255
3
+ metadata.gz: a79aa2154d4ddc42abf4da3143c69673da34535f0cf2d12aa448f333447b40c7
4
+ data.tar.gz: b099bb4789828fb8d69d68abdfa323f58d3b7b71df5dbc7fe428d90028baef7e
5
5
  SHA512:
6
- metadata.gz: 89b47361760905da211769842b1bcc69d7ceea0bd226f886ab82fbeadcff3d0777da03ea61a109c9c4aafb20d6ad593d21d276fffd59158e0c509232549495de
7
- data.tar.gz: 31fa7d361916180111ed92d132580018138483a38b16a8eede3fda8e763f16ad7d53161d4b55ef97c267f8e5b802210d30ee9cb0d5521f0aa776758d773d02c9
6
+ metadata.gz: ae9552f3fe6537816cbb96bfd1b57dede5e0b1661fe93577931e3979fe2f40ab5ee3b9aeff7a0fea5fc09cd30396efc1c37b1996cb7bef05afc90ee8c81a429c
7
+ data.tar.gz: adfed802d840eb2cbdb9d982e4ca29b3174a4109be2ebfb945a5a4bda6d9fdb61705e7536d4cea0112a1dff61452d5e2b7ae5ccb81b81805c0d8c1a8577ee1a0
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Container::V1::ListClustersRequest.new # (request fie
37
37
  response = client.list_clusters request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-container-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/kubernetes-engine)
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -30,6 +30,8 @@ module Google
30
30
  # Google Kubernetes Engine Cluster Manager v1
31
31
  #
32
32
  class Client
33
+ include Paths
34
+
33
35
  # @private
34
36
  attr_reader :cluster_manager_stub
35
37
 
@@ -250,7 +252,7 @@ module Google
250
252
  #
251
253
  # @param project_id [::String]
252
254
  # Deprecated. The Google Developers Console [project ID or project
253
- # number](https://support.google.com/cloud/answer/6158840).
255
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
254
256
  # This field has been deprecated and replaced by the parent field.
255
257
  # @param zone [::String]
256
258
  # Deprecated. The name of the Google Compute Engine
@@ -346,7 +348,7 @@ module Google
346
348
  #
347
349
  # @param project_id [::String]
348
350
  # Deprecated. The Google Developers Console [project ID or project
349
- # number](https://support.google.com/cloud/answer/6158840).
351
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
350
352
  # This field has been deprecated and replaced by the name field.
351
353
  # @param zone [::String]
352
354
  # Deprecated. The name of the Google Compute Engine
@@ -457,7 +459,7 @@ module Google
457
459
  #
458
460
  # @param project_id [::String]
459
461
  # Deprecated. The Google Developers Console [project ID or project
460
- # number](https://support.google.com/cloud/answer/6158840).
462
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
461
463
  # This field has been deprecated and replaced by the parent field.
462
464
  # @param zone [::String]
463
465
  # Deprecated. The name of the Google Compute Engine
@@ -555,7 +557,7 @@ module Google
555
557
  #
556
558
  # @param project_id [::String]
557
559
  # Deprecated. The Google Developers Console [project ID or project
558
- # number](https://support.google.com/cloud/answer/6158840).
560
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
559
561
  # This field has been deprecated and replaced by the name field.
560
562
  # @param zone [::String]
561
563
  # Deprecated. The name of the Google Compute Engine
@@ -648,14 +650,14 @@ module Google
648
650
  # @param options [::Gapic::CallOptions, ::Hash]
649
651
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
650
652
  #
651
- # @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)
653
+ # @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)
652
654
  # Pass arguments to `update_node_pool` via keyword arguments. Note that at
653
655
  # least one keyword argument is required. To specify no parameters, or to keep all
654
656
  # the default parameter values, pass an empty Hash as a request object (see above).
655
657
  #
656
658
  # @param project_id [::String]
657
659
  # Deprecated. The Google Developers Console [project ID or project
658
- # number](https://support.google.com/cloud/answer/6158840).
660
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
659
661
  # This field has been deprecated and replaced by the name field.
660
662
  # @param zone [::String]
661
663
  # Deprecated. The name of the Google Compute Engine
@@ -696,6 +698,31 @@ module Google
696
698
  # The desired workload metadata config for the node pool.
697
699
  # @param upgrade_settings [::Google::Cloud::Container::V1::NodePool::UpgradeSettings, ::Hash]
698
700
  # Upgrade settings control disruption and speed of the upgrade.
701
+ # @param tags [::Google::Cloud::Container::V1::NetworkTags, ::Hash]
702
+ # The desired network tags to be applied to all nodes in the node pool.
703
+ # If this field is not present, the tags will not be changed. Otherwise,
704
+ # the existing network tags will be *replaced* with the provided tags.
705
+ # @param taints [::Google::Cloud::Container::V1::NodeTaints, ::Hash]
706
+ # The desired node taints to be applied to all nodes in the node pool.
707
+ # If this field is not present, the taints will not be changed. Otherwise,
708
+ # the existing node taints will be *replaced* with the provided taints.
709
+ # @param labels [::Google::Cloud::Container::V1::NodeLabels, ::Hash]
710
+ # The desired node labels to be applied to all nodes in the node pool.
711
+ # If this field is not present, the labels will not be changed. Otherwise,
712
+ # the existing node labels will be *replaced* with the provided labels.
713
+ # @param linux_node_config [::Google::Cloud::Container::V1::LinuxNodeConfig, ::Hash]
714
+ # Parameters that can be configured on Linux nodes.
715
+ # @param kubelet_config [::Google::Cloud::Container::V1::NodeKubeletConfig, ::Hash]
716
+ # Node kubelet configs.
717
+ # @param node_network_config [::Google::Cloud::Container::V1::NodeNetworkConfig, ::Hash]
718
+ # Node network config.
719
+ # @param gcfs_config [::Google::Cloud::Container::V1::GcfsConfig, ::Hash]
720
+ # GCFS config.
721
+ # @param confidential_nodes [::Google::Cloud::Container::V1::ConfidentialNodes, ::Hash]
722
+ # Confidential nodes config.
723
+ # All the nodes in the node pool will be Confidential VM once enabled.
724
+ # @param gvnic [::Google::Cloud::Container::V1::VirtualNIC, ::Hash]
725
+ # Enable or disable gvnic on the node pool.
699
726
  #
700
727
  # @yield [response, operation] Access the result along with the RPC operation
701
728
  # @yieldparam response [::Google::Cloud::Container::V1::Operation]
@@ -781,7 +808,7 @@ module Google
781
808
  #
782
809
  # @param project_id [::String]
783
810
  # Deprecated. The Google Developers Console [project ID or project
784
- # number](https://support.google.com/cloud/answer/6158840).
811
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
785
812
  # This field has been deprecated and replaced by the name field.
786
813
  # @param zone [::String]
787
814
  # Deprecated. The name of the Google Compute Engine
@@ -885,7 +912,7 @@ module Google
885
912
  #
886
913
  # @param project_id [::String]
887
914
  # Deprecated. The Google Developers Console [project ID or project
888
- # number](https://support.google.com/cloud/answer/6158840).
915
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
889
916
  # This field has been deprecated and replaced by the name field.
890
917
  # @param zone [::String]
891
918
  # Deprecated. The name of the Google Compute Engine
@@ -995,7 +1022,7 @@ module Google
995
1022
  #
996
1023
  # @param project_id [::String]
997
1024
  # Deprecated. The Google Developers Console [project ID or project
998
- # number](https://support.google.com/cloud/answer/6158840).
1025
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
999
1026
  # This field has been deprecated and replaced by the name field.
1000
1027
  # @param zone [::String]
1001
1028
  # Deprecated. The name of the Google Compute Engine
@@ -1105,7 +1132,7 @@ module Google
1105
1132
  #
1106
1133
  # @param project_id [::String]
1107
1134
  # Deprecated. The Google Developers Console [project ID or project
1108
- # number](https://support.google.com/cloud/answer/6158840).
1135
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1109
1136
  # This field has been deprecated and replaced by the name field.
1110
1137
  # @param zone [::String]
1111
1138
  # Deprecated. The name of the Google Compute Engine
@@ -1211,7 +1238,7 @@ module Google
1211
1238
  #
1212
1239
  # @param project_id [::String]
1213
1240
  # Deprecated. The Google Developers Console [project ID or project
1214
- # number](https://support.google.com/cloud/answer/6158840).
1241
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1215
1242
  # This field has been deprecated and replaced by the name field.
1216
1243
  # @param zone [::String]
1217
1244
  # Deprecated. The name of the Google Compute Engine
@@ -1317,7 +1344,7 @@ module Google
1317
1344
  #
1318
1345
  # @param project_id [::String]
1319
1346
  # Deprecated. The Google Developers Console [project ID or project
1320
- # number](https://support.google.com/cloud/answer/6158840).
1347
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1321
1348
  # This field has been deprecated and replaced by the name field.
1322
1349
  # @param zone [::String]
1323
1350
  # Deprecated. The name of the Google Compute Engine
@@ -1428,7 +1455,7 @@ module Google
1428
1455
  #
1429
1456
  # @param project_id [::String]
1430
1457
  # Deprecated. The Google Developers Console [project ID or project
1431
- # number](https://support.google.com/cloud/answer/6158840).
1458
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1432
1459
  # This field has been deprecated and replaced by the name field.
1433
1460
  # @param zone [::String]
1434
1461
  # Deprecated. The name of the Google Compute Engine
@@ -1538,7 +1565,7 @@ module Google
1538
1565
  #
1539
1566
  # @param project_id [::String]
1540
1567
  # Deprecated. The Google Developers Console [project ID or project
1541
- # number](https://support.google.com/cloud/answer/6158840).
1568
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1542
1569
  # This field has been deprecated and replaced by the name field.
1543
1570
  # @param zone [::String]
1544
1571
  # Deprecated. The name of the Google Compute Engine
@@ -1636,7 +1663,7 @@ module Google
1636
1663
  #
1637
1664
  # @param project_id [::String]
1638
1665
  # Deprecated. The Google Developers Console [project ID or project
1639
- # number](https://support.google.com/cloud/answer/6158840).
1666
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1640
1667
  # This field has been deprecated and replaced by the parent field.
1641
1668
  # @param zone [::String]
1642
1669
  # Deprecated. The name of the Google Compute Engine
@@ -1732,7 +1759,7 @@ module Google
1732
1759
  #
1733
1760
  # @param project_id [::String]
1734
1761
  # Deprecated. The Google Developers Console [project ID or project
1735
- # number](https://support.google.com/cloud/answer/6158840).
1762
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1736
1763
  # This field has been deprecated and replaced by the name field.
1737
1764
  # @param zone [::String]
1738
1765
  # Deprecated. The name of the Google Compute Engine
@@ -1830,7 +1857,7 @@ module Google
1830
1857
  #
1831
1858
  # @param project_id [::String]
1832
1859
  # Deprecated. The Google Developers Console [project ID or project
1833
- # number](https://support.google.com/cloud/answer/6158840).
1860
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1834
1861
  # This field has been deprecated and replaced by the name field.
1835
1862
  # @param zone [::String]
1836
1863
  # Deprecated. The name of the Google Compute Engine
@@ -1928,7 +1955,7 @@ module Google
1928
1955
  #
1929
1956
  # @param project_id [::String]
1930
1957
  # Deprecated. The Google Developers Console [project ID or project
1931
- # number](https://support.google.com/cloud/answer/6158840).
1958
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
1932
1959
  # This field has been deprecated and replaced by the name field.
1933
1960
  # @param zone [::String]
1934
1961
  # Deprecated. The name of the Google Compute Engine
@@ -2025,7 +2052,7 @@ module Google
2025
2052
  # the default parameter values, pass an empty Hash as a request object (see above).
2026
2053
  #
2027
2054
  # @param parent [::String]
2028
- # The cluster (project, location, cluster id) to get keys for. Specified in
2055
+ # The cluster (project, location, cluster name) to get keys for. Specified in
2029
2056
  # the format `projects/*/locations/*/clusters/*`.
2030
2057
  #
2031
2058
  # @yield [response, operation] Access the result along with the RPC operation
@@ -2112,7 +2139,7 @@ module Google
2112
2139
  #
2113
2140
  # @param project_id [::String]
2114
2141
  # Deprecated. The Google Developers Console [project ID or project
2115
- # number](https://developers.google.com/console/help/new/#projectnumber).
2142
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2116
2143
  # This field has been deprecated and replaced by the parent field.
2117
2144
  # @param zone [::String]
2118
2145
  # Deprecated. The name of the Google Compute Engine
@@ -2123,7 +2150,7 @@ module Google
2123
2150
  # Deprecated. The name of the cluster.
2124
2151
  # This field has been deprecated and replaced by the parent field.
2125
2152
  # @param parent [::String]
2126
- # The parent (project, location, cluster id) where the node pools will be
2153
+ # The parent (project, location, cluster name) where the node pools will be
2127
2154
  # listed. Specified in the format `projects/*/locations/*/clusters/*`.
2128
2155
  #
2129
2156
  # @yield [response, operation] Access the result along with the RPC operation
@@ -2210,7 +2237,7 @@ module Google
2210
2237
  #
2211
2238
  # @param project_id [::String]
2212
2239
  # Deprecated. The Google Developers Console [project ID or project
2213
- # number](https://developers.google.com/console/help/new/#projectnumber).
2240
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2214
2241
  # This field has been deprecated and replaced by the name field.
2215
2242
  # @param zone [::String]
2216
2243
  # Deprecated. The name of the Google Compute Engine
@@ -2312,7 +2339,7 @@ module Google
2312
2339
  #
2313
2340
  # @param project_id [::String]
2314
2341
  # Deprecated. The Google Developers Console [project ID or project
2315
- # number](https://developers.google.com/console/help/new/#projectnumber).
2342
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2316
2343
  # This field has been deprecated and replaced by the parent field.
2317
2344
  # @param zone [::String]
2318
2345
  # Deprecated. The name of the Google Compute Engine
@@ -2325,7 +2352,7 @@ module Google
2325
2352
  # @param node_pool [::Google::Cloud::Container::V1::NodePool, ::Hash]
2326
2353
  # Required. The node pool to create.
2327
2354
  # @param parent [::String]
2328
- # The parent (project, location, cluster id) where the node pool will be
2355
+ # The parent (project, location, cluster name) where the node pool will be
2329
2356
  # created. Specified in the format
2330
2357
  # `projects/*/locations/*/clusters/*`.
2331
2358
  #
@@ -2413,7 +2440,7 @@ module Google
2413
2440
  #
2414
2441
  # @param project_id [::String]
2415
2442
  # Deprecated. The Google Developers Console [project ID or project
2416
- # number](https://developers.google.com/console/help/new/#projectnumber).
2443
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2417
2444
  # This field has been deprecated and replaced by the name field.
2418
2445
  # @param zone [::String]
2419
2446
  # Deprecated. The name of the Google Compute Engine
@@ -2495,6 +2522,94 @@ module Google
2495
2522
  raise ::Google::Cloud::Error.from_error(e)
2496
2523
  end
2497
2524
 
2525
+ ##
2526
+ # CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
2527
+ # complete.
2528
+ #
2529
+ # @overload complete_node_pool_upgrade(request, options = nil)
2530
+ # Pass arguments to `complete_node_pool_upgrade` via a request object, either of type
2531
+ # {::Google::Cloud::Container::V1::CompleteNodePoolUpgradeRequest} or an equivalent Hash.
2532
+ #
2533
+ # @param request [::Google::Cloud::Container::V1::CompleteNodePoolUpgradeRequest, ::Hash]
2534
+ # A request object representing the call parameters. Required. To specify no
2535
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2536
+ # @param options [::Gapic::CallOptions, ::Hash]
2537
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2538
+ #
2539
+ # @overload complete_node_pool_upgrade(name: nil)
2540
+ # Pass arguments to `complete_node_pool_upgrade` via keyword arguments. Note that at
2541
+ # least one keyword argument is required. To specify no parameters, or to keep all
2542
+ # the default parameter values, pass an empty Hash as a request object (see above).
2543
+ #
2544
+ # @param name [::String]
2545
+ # The name (project, location, cluster, node pool id) of the node pool to
2546
+ # complete upgrade.
2547
+ # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
2548
+ #
2549
+ # @yield [response, operation] Access the result along with the RPC operation
2550
+ # @yieldparam response [::Google::Protobuf::Empty]
2551
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2552
+ #
2553
+ # @return [::Google::Protobuf::Empty]
2554
+ #
2555
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2556
+ #
2557
+ # @example Basic example
2558
+ # require "google/cloud/container/v1"
2559
+ #
2560
+ # # Create a client object. The client can be reused for multiple calls.
2561
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
2562
+ #
2563
+ # # Create a request. To set request fields, pass in keyword arguments.
2564
+ # request = Google::Cloud::Container::V1::CompleteNodePoolUpgradeRequest.new
2565
+ #
2566
+ # # Call the complete_node_pool_upgrade method.
2567
+ # result = client.complete_node_pool_upgrade request
2568
+ #
2569
+ # # The returned object is of type Google::Protobuf::Empty.
2570
+ # p result
2571
+ #
2572
+ def complete_node_pool_upgrade request, options = nil
2573
+ raise ::ArgumentError, "request must be provided" if request.nil?
2574
+
2575
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::CompleteNodePoolUpgradeRequest
2576
+
2577
+ # Converts hash and nil to an options object
2578
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2579
+
2580
+ # Customize the options with defaults
2581
+ metadata = @config.rpcs.complete_node_pool_upgrade.metadata.to_h
2582
+
2583
+ # Set x-goog-api-client and x-goog-user-project headers
2584
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2585
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2586
+ gapic_version: ::Google::Cloud::Container::V1::VERSION
2587
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2588
+
2589
+ header_params = {}
2590
+ if request.name
2591
+ header_params["name"] = request.name
2592
+ end
2593
+
2594
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2595
+ metadata[:"x-goog-request-params"] ||= request_params_header
2596
+
2597
+ options.apply_defaults timeout: @config.rpcs.complete_node_pool_upgrade.timeout,
2598
+ metadata: metadata,
2599
+ retry_policy: @config.rpcs.complete_node_pool_upgrade.retry_policy
2600
+
2601
+ options.apply_defaults timeout: @config.timeout,
2602
+ metadata: @config.metadata,
2603
+ retry_policy: @config.retry_policy
2604
+
2605
+ @cluster_manager_stub.call_rpc :complete_node_pool_upgrade, request, options: options do |response, operation|
2606
+ yield response, operation if block_given?
2607
+ return response
2608
+ end
2609
+ rescue ::GRPC::BadStatus => e
2610
+ raise ::Google::Cloud::Error.from_error(e)
2611
+ end
2612
+
2498
2613
  ##
2499
2614
  # Rolls back a previously Aborted or Failed NodePool upgrade.
2500
2615
  # This makes no changes if the last upgrade successfully completed.
@@ -2509,14 +2624,14 @@ module Google
2509
2624
  # @param options [::Gapic::CallOptions, ::Hash]
2510
2625
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2511
2626
  #
2512
- # @overload rollback_node_pool_upgrade(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, name: nil)
2627
+ # @overload rollback_node_pool_upgrade(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, name: nil, respect_pdb: nil)
2513
2628
  # Pass arguments to `rollback_node_pool_upgrade` via keyword arguments. Note that at
2514
2629
  # least one keyword argument is required. To specify no parameters, or to keep all
2515
2630
  # the default parameter values, pass an empty Hash as a request object (see above).
2516
2631
  #
2517
2632
  # @param project_id [::String]
2518
2633
  # Deprecated. The Google Developers Console [project ID or project
2519
- # number](https://support.google.com/cloud/answer/6158840).
2634
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2520
2635
  # This field has been deprecated and replaced by the name field.
2521
2636
  # @param zone [::String]
2522
2637
  # Deprecated. The name of the Google Compute Engine
@@ -2533,6 +2648,9 @@ module Google
2533
2648
  # The name (project, location, cluster, node pool id) of the node poll to
2534
2649
  # rollback upgrade.
2535
2650
  # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
2651
+ # @param respect_pdb [::Boolean]
2652
+ # Option for rollback to ignore the PodDisruptionBudget.
2653
+ # Default value is false.
2536
2654
  #
2537
2655
  # @yield [response, operation] Access the result along with the RPC operation
2538
2656
  # @yieldparam response [::Google::Cloud::Container::V1::Operation]
@@ -2618,7 +2736,7 @@ module Google
2618
2736
  #
2619
2737
  # @param project_id [::String]
2620
2738
  # Deprecated. The Google Developers Console [project ID or project
2621
- # number](https://support.google.com/cloud/answer/6158840).
2739
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2622
2740
  # This field has been deprecated and replaced by the name field.
2623
2741
  # @param zone [::String]
2624
2742
  # Deprecated. The name of the Google Compute Engine
@@ -2722,7 +2840,7 @@ module Google
2722
2840
  #
2723
2841
  # @param project_id [::String]
2724
2842
  # Deprecated. The Google Developers Console [project ID or project
2725
- # number](https://developers.google.com/console/help/new/#projectnumber).
2843
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2726
2844
  # This field has been deprecated and replaced by the name field.
2727
2845
  # @param zone [::String]
2728
2846
  # Deprecated. The name of the Google Compute Engine
@@ -2742,7 +2860,7 @@ module Google
2742
2860
  # updating or changing labels. Make a `get()` request to the
2743
2861
  # resource to get the latest fingerprint.
2744
2862
  # @param name [::String]
2745
- # The name (project, location, cluster id) of the cluster to set labels.
2863
+ # The name (project, location, cluster name) of the cluster to set labels.
2746
2864
  # Specified in the format `projects/*/locations/*/clusters/*`.
2747
2865
  #
2748
2866
  # @yield [response, operation] Access the result along with the RPC operation
@@ -2829,7 +2947,7 @@ module Google
2829
2947
  #
2830
2948
  # @param project_id [::String]
2831
2949
  # Deprecated. The Google Developers Console [project ID or project
2832
- # number](https://support.google.com/cloud/answer/6158840).
2950
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2833
2951
  # This field has been deprecated and replaced by the name field.
2834
2952
  # @param zone [::String]
2835
2953
  # Deprecated. The name of the Google Compute Engine
@@ -2842,8 +2960,8 @@ module Google
2842
2960
  # @param enabled [::Boolean]
2843
2961
  # Required. Whether ABAC authorization will be enabled in the cluster.
2844
2962
  # @param name [::String]
2845
- # The name (project, location, cluster id) of the cluster to set legacy abac.
2846
- # Specified in the format `projects/*/locations/*/clusters/*`.
2963
+ # The name (project, location, cluster name) of the cluster to set legacy
2964
+ # abac. Specified in the format `projects/*/locations/*/clusters/*`.
2847
2965
  #
2848
2966
  # @yield [response, operation] Access the result along with the RPC operation
2849
2967
  # @yieldparam response [::Google::Cloud::Container::V1::Operation]
@@ -2929,7 +3047,7 @@ module Google
2929
3047
  #
2930
3048
  # @param project_id [::String]
2931
3049
  # Deprecated. The Google Developers Console [project ID or project
2932
- # number](https://developers.google.com/console/help/new/#projectnumber).
3050
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
2933
3051
  # This field has been deprecated and replaced by the name field.
2934
3052
  # @param zone [::String]
2935
3053
  # Deprecated. The name of the Google Compute Engine
@@ -2940,7 +3058,7 @@ module Google
2940
3058
  # Deprecated. The name of the cluster.
2941
3059
  # This field has been deprecated and replaced by the name field.
2942
3060
  # @param name [::String]
2943
- # The name (project, location, cluster id) of the cluster to start IP
3061
+ # The name (project, location, cluster name) of the cluster to start IP
2944
3062
  # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
2945
3063
  # @param rotate_credentials [::Boolean]
2946
3064
  # Whether to rotate credentials during IP rotation.
@@ -3029,7 +3147,7 @@ module Google
3029
3147
  #
3030
3148
  # @param project_id [::String]
3031
3149
  # Deprecated. The Google Developers Console [project ID or project
3032
- # number](https://developers.google.com/console/help/new/#projectnumber).
3150
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
3033
3151
  # This field has been deprecated and replaced by the name field.
3034
3152
  # @param zone [::String]
3035
3153
  # Deprecated. The name of the Google Compute Engine
@@ -3040,7 +3158,7 @@ module Google
3040
3158
  # Deprecated. The name of the cluster.
3041
3159
  # This field has been deprecated and replaced by the name field.
3042
3160
  # @param name [::String]
3043
- # The name (project, location, cluster id) of the cluster to complete IP
3161
+ # The name (project, location, cluster name) of the cluster to complete IP
3044
3162
  # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
3045
3163
  #
3046
3164
  # @yield [response, operation] Access the result along with the RPC operation
@@ -3108,7 +3226,9 @@ module Google
3108
3226
  end
3109
3227
 
3110
3228
  ##
3111
- # Sets the size for a specific node pool.
3229
+ # Sets the size for a specific node pool. The new size will be used for all
3230
+ # replicas, including future replicas created by modifying
3231
+ # {::Google::Cloud::Container::V1::NodePool#locations NodePool.locations}.
3112
3232
  #
3113
3233
  # @overload set_node_pool_size(request, options = nil)
3114
3234
  # Pass arguments to `set_node_pool_size` via a request object, either of type
@@ -3127,7 +3247,7 @@ module Google
3127
3247
  #
3128
3248
  # @param project_id [::String]
3129
3249
  # Deprecated. The Google Developers Console [project ID or project
3130
- # number](https://support.google.com/cloud/answer/6158840).
3250
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
3131
3251
  # This field has been deprecated and replaced by the name field.
3132
3252
  # @param zone [::String]
3133
3253
  # Deprecated. The name of the Google Compute Engine
@@ -3231,7 +3351,7 @@ module Google
3231
3351
  #
3232
3352
  # @param project_id [::String]
3233
3353
  # Deprecated. The Google Developers Console [project ID or project
3234
- # number](https://developers.google.com/console/help/new/#projectnumber).
3354
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
3235
3355
  # This field has been deprecated and replaced by the name field.
3236
3356
  # @param zone [::String]
3237
3357
  # Deprecated. The name of the Google Compute Engine
@@ -3244,7 +3364,7 @@ module Google
3244
3364
  # @param network_policy [::Google::Cloud::Container::V1::NetworkPolicy, ::Hash]
3245
3365
  # Required. Configuration options for the NetworkPolicy feature.
3246
3366
  # @param name [::String]
3247
- # The name (project, location, cluster id) of the cluster to set networking
3367
+ # The name (project, location, cluster name) of the cluster to set networking
3248
3368
  # policy. Specified in the format `projects/*/locations/*/clusters/*`.
3249
3369
  #
3250
3370
  # @yield [response, operation] Access the result along with the RPC operation
@@ -3331,7 +3451,7 @@ module Google
3331
3451
  #
3332
3452
  # @param project_id [::String]
3333
3453
  # Required. The Google Developers Console [project ID or project
3334
- # number](https://support.google.com/cloud/answer/6158840).
3454
+ # number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
3335
3455
  # @param zone [::String]
3336
3456
  # Required. The name of the Google Compute Engine
3337
3457
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
@@ -3342,8 +3462,8 @@ module Google
3342
3462
  # Required. The maintenance policy to be set for the cluster. An empty field
3343
3463
  # clears the existing maintenance policy.
3344
3464
  # @param name [::String]
3345
- # The name (project, location, cluster id) of the cluster to set maintenance
3346
- # policy.
3465
+ # The name (project, location, cluster name) of the cluster to set
3466
+ # maintenance policy.
3347
3467
  # Specified in the format `projects/*/locations/*/clusters/*`.
3348
3468
  #
3349
3469
  # @yield [response, operation] Access the result along with the RPC operation
@@ -3762,6 +3882,11 @@ module Google
3762
3882
  #
3763
3883
  attr_reader :delete_node_pool
3764
3884
  ##
3885
+ # RPC-specific configuration for `complete_node_pool_upgrade`
3886
+ # @return [::Gapic::Config::Method]
3887
+ #
3888
+ attr_reader :complete_node_pool_upgrade
3889
+ ##
3765
3890
  # RPC-specific configuration for `rollback_node_pool_upgrade`
3766
3891
  # @return [::Gapic::Config::Method]
3767
3892
  #
@@ -3858,6 +3983,8 @@ module Google
3858
3983
  @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config
3859
3984
  delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool
3860
3985
  @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config
3986
+ complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade
3987
+ @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config
3861
3988
  rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade
3862
3989
  @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config
3863
3990
  set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Container
23
+ module V1
24
+ module ClusterManager
25
+ # Path helper methods for the ClusterManager API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Topic resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/topics/{topic}`
33
+ #
34
+ # @param project [String]
35
+ # @param topic [String]
36
+ #
37
+ # @return [::String]
38
+ def topic_path project:, topic:
39
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
40
+
41
+ "projects/#{project}/topics/#{topic}"
42
+ end
43
+
44
+ extend self
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -23,6 +23,7 @@ require "gapic/config/method"
23
23
  require "google/cloud/container/v1/version"
24
24
 
25
25
  require "google/cloud/container/v1/cluster_manager/credentials"
26
+ require "google/cloud/container/v1/cluster_manager/paths"
26
27
  require "google/cloud/container/v1/cluster_manager/client"
27
28
 
28
29
  module Google