google-cloud-container-v1 1.17.1 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba3043b7c2a4399c188052ae05d673d2479fe1e5f36104b1556d5f87914fee7c
4
- data.tar.gz: 1ef71bfd791d60a0f05a530602597730278a00bec8f52f4273c4c4a26f027a15
3
+ metadata.gz: 4e1961882dd67c53c1fcf4503e88760f56c8f6b0c2b66bc5bf3aba91d285ceb2
4
+ data.tar.gz: f8eaeb2b73a6b3c1a20b5f8a499a2f089c934dc21d755f1bfac0c010d3ff56c6
5
5
  SHA512:
6
- metadata.gz: 1d33791c7d277ae6d6d07cab1f7d028e0fbeeb741980023d780bbb96782d5539176ee4756fcdd0af54363306a72d4ae9c7f576ec0179a6d4990a98f1699ad06a
7
- data.tar.gz: 86248d851a441532511c3b5a007e29cf5b09216daede9e176c21a71e4ff74586e860d522482916e21da3676007875dbdea25bc7d0e8edf1b9df24868a95e218c
6
+ metadata.gz: 7efec157dcbd640b1db4bb3c97558ba61d01166cf89f587e55abd511ec598dd808a4fdba5a8f6743aaee452c4ed09b0986aec76fd8a349e0536a78ac0ca325eb
7
+ data.tar.gz: 484a82f68502faaf95f9389e57aa7a12c703642017d9cfcfa3841b2c0197c57950ccb0fb05445f902e90a82d41018746688ffc57298a365d73430b7bd922e2c1
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -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, image: nil, image_project: 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, node_drain_config: nil, consolidation_delay: nil, taint_config: 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, image: nil, image_project: 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, node_drain_config: nil, consolidation_delay: nil, taint_config: nil, maintenance_policy: 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).
@@ -841,6 +841,9 @@ module Google
841
841
  # default behavior, i.e. according to the chosen autoscaling profile.
842
842
  # @param taint_config [::Google::Cloud::Container::V1::TaintConfig, ::Hash]
843
843
  # The taint configuration for the node pool.
844
+ # @param maintenance_policy [::Google::Cloud::Container::V1::NodePool::NodePoolMaintenancePolicy, ::Hash]
845
+ # Optional. Specifies the maintenance policy for the node pool, including
846
+ # maintenance exclusion options.
844
847
  #
845
848
  # @yield [response, operation] Access the result along with the RPC operation
846
849
  # @yieldparam response [::Google::Cloud::Container::V1::Operation]
@@ -4017,6 +4020,95 @@ module Google
4017
4020
  raise ::Google::Cloud::Error.from_error(e)
4018
4021
  end
4019
4022
 
4023
+ ##
4024
+ # CompleteControlPlaneUpgrade completes the rollback-safe upgrade by
4025
+ # performing the step two upgrade for a specific cluster.
4026
+ #
4027
+ # @overload complete_control_plane_upgrade(request, options = nil)
4028
+ # Pass arguments to `complete_control_plane_upgrade` via a request object, either of type
4029
+ # {::Google::Cloud::Container::V1::CompleteControlPlaneUpgradeRequest} or an equivalent Hash.
4030
+ #
4031
+ # @param request [::Google::Cloud::Container::V1::CompleteControlPlaneUpgradeRequest, ::Hash]
4032
+ # A request object representing the call parameters. Required. To specify no
4033
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4034
+ # @param options [::Gapic::CallOptions, ::Hash]
4035
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4036
+ #
4037
+ # @overload complete_control_plane_upgrade(name: nil, version: nil)
4038
+ # Pass arguments to `complete_control_plane_upgrade` via keyword arguments. Note that at
4039
+ # least one keyword argument is required. To specify no parameters, or to keep all
4040
+ # the default parameter values, pass an empty Hash as a request object (see above).
4041
+ #
4042
+ # @param name [::String]
4043
+ # Required. The name (project, location, cluster) of the cluster to complete
4044
+ # upgrade. Specified in the format `projects/*/locations/*/clusters/*`.
4045
+ # @param version [::String]
4046
+ # Optional. API request version that initiates this operation.
4047
+ #
4048
+ # @yield [response, operation] Access the result along with the RPC operation
4049
+ # @yieldparam response [::Google::Cloud::Container::V1::Operation]
4050
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4051
+ #
4052
+ # @return [::Google::Cloud::Container::V1::Operation]
4053
+ #
4054
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4055
+ #
4056
+ # @example Basic example
4057
+ # require "google/cloud/container/v1"
4058
+ #
4059
+ # # Create a client object. The client can be reused for multiple calls.
4060
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
4061
+ #
4062
+ # # Create a request. To set request fields, pass in keyword arguments.
4063
+ # request = Google::Cloud::Container::V1::CompleteControlPlaneUpgradeRequest.new
4064
+ #
4065
+ # # Call the complete_control_plane_upgrade method.
4066
+ # result = client.complete_control_plane_upgrade request
4067
+ #
4068
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
4069
+ # p result
4070
+ #
4071
+ def complete_control_plane_upgrade request, options = nil
4072
+ raise ::ArgumentError, "request must be provided" if request.nil?
4073
+
4074
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::CompleteControlPlaneUpgradeRequest
4075
+
4076
+ # Converts hash and nil to an options object
4077
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4078
+
4079
+ # Customize the options with defaults
4080
+ metadata = @config.rpcs.complete_control_plane_upgrade.metadata.to_h
4081
+
4082
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4083
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4084
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4085
+ gapic_version: ::Google::Cloud::Container::V1::VERSION
4086
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4087
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4088
+
4089
+ header_params = {}
4090
+ if request.name
4091
+ header_params["name"] = request.name
4092
+ end
4093
+
4094
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4095
+ metadata[:"x-goog-request-params"] ||= request_params_header
4096
+
4097
+ options.apply_defaults timeout: @config.rpcs.complete_control_plane_upgrade.timeout,
4098
+ metadata: metadata,
4099
+ retry_policy: @config.rpcs.complete_control_plane_upgrade.retry_policy
4100
+
4101
+ options.apply_defaults timeout: @config.timeout,
4102
+ metadata: @config.metadata,
4103
+ retry_policy: @config.retry_policy
4104
+
4105
+ @cluster_manager_stub.call_rpc :complete_control_plane_upgrade, request, options: options do |response, operation|
4106
+ yield response, operation if block_given?
4107
+ end
4108
+ rescue ::GRPC::BadStatus => e
4109
+ raise ::Google::Cloud::Error.from_error(e)
4110
+ end
4111
+
4020
4112
  ##
4021
4113
  # Configuration class for the ClusterManager API.
4022
4114
  #
@@ -4382,6 +4474,11 @@ module Google
4382
4474
  # @return [::Gapic::Config::Method]
4383
4475
  #
4384
4476
  attr_reader :fetch_node_pool_upgrade_info
4477
+ ##
4478
+ # RPC-specific configuration for `complete_control_plane_upgrade`
4479
+ # @return [::Gapic::Config::Method]
4480
+ #
4481
+ attr_reader :complete_control_plane_upgrade
4385
4482
 
4386
4483
  # @private
4387
4484
  def initialize parent_rpcs = nil
@@ -4457,6 +4554,8 @@ module Google
4457
4554
  @fetch_cluster_upgrade_info = ::Gapic::Config::Method.new fetch_cluster_upgrade_info_config
4458
4555
  fetch_node_pool_upgrade_info_config = parent_rpcs.fetch_node_pool_upgrade_info if parent_rpcs.respond_to? :fetch_node_pool_upgrade_info
4459
4556
  @fetch_node_pool_upgrade_info = ::Gapic::Config::Method.new fetch_node_pool_upgrade_info_config
4557
+ complete_control_plane_upgrade_config = parent_rpcs.complete_control_plane_upgrade if parent_rpcs.respond_to? :complete_control_plane_upgrade
4558
+ @complete_control_plane_upgrade = ::Gapic::Config::Method.new complete_control_plane_upgrade_config
4460
4559
 
4461
4560
  yield self if block_given?
4462
4561
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2024 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -654,7 +654,7 @@ module Google
654
654
  # @param options [::Gapic::CallOptions, ::Hash]
655
655
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
656
656
  #
657
- # @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil, image: nil, image_project: 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, node_drain_config: nil, consolidation_delay: nil, taint_config: nil)
657
+ # @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil, image: nil, image_project: 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, node_drain_config: nil, consolidation_delay: nil, taint_config: nil, maintenance_policy: nil)
658
658
  # Pass arguments to `update_node_pool` via keyword arguments. Note that at
659
659
  # least one keyword argument is required. To specify no parameters, or to keep all
660
660
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -806,6 +806,9 @@ module Google
806
806
  # default behavior, i.e. according to the chosen autoscaling profile.
807
807
  # @param taint_config [::Google::Cloud::Container::V1::TaintConfig, ::Hash]
808
808
  # The taint configuration for the node pool.
809
+ # @param maintenance_policy [::Google::Cloud::Container::V1::NodePool::NodePoolMaintenancePolicy, ::Hash]
810
+ # Optional. Specifies the maintenance policy for the node pool, including
811
+ # maintenance exclusion options.
809
812
  # @yield [result, operation] Access the result along with the TransportOperation object
810
813
  # @yieldparam result [::Google::Cloud::Container::V1::Operation]
811
814
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -3756,6 +3759,88 @@ module Google
3756
3759
  raise ::Google::Cloud::Error.from_error(e)
3757
3760
  end
3758
3761
 
3762
+ ##
3763
+ # CompleteControlPlaneUpgrade completes the rollback-safe upgrade by
3764
+ # performing the step two upgrade for a specific cluster.
3765
+ #
3766
+ # @overload complete_control_plane_upgrade(request, options = nil)
3767
+ # Pass arguments to `complete_control_plane_upgrade` via a request object, either of type
3768
+ # {::Google::Cloud::Container::V1::CompleteControlPlaneUpgradeRequest} or an equivalent Hash.
3769
+ #
3770
+ # @param request [::Google::Cloud::Container::V1::CompleteControlPlaneUpgradeRequest, ::Hash]
3771
+ # A request object representing the call parameters. Required. To specify no
3772
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3773
+ # @param options [::Gapic::CallOptions, ::Hash]
3774
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3775
+ #
3776
+ # @overload complete_control_plane_upgrade(name: nil, version: nil)
3777
+ # Pass arguments to `complete_control_plane_upgrade` via keyword arguments. Note that at
3778
+ # least one keyword argument is required. To specify no parameters, or to keep all
3779
+ # the default parameter values, pass an empty Hash as a request object (see above).
3780
+ #
3781
+ # @param name [::String]
3782
+ # Required. The name (project, location, cluster) of the cluster to complete
3783
+ # upgrade. Specified in the format `projects/*/locations/*/clusters/*`.
3784
+ # @param version [::String]
3785
+ # Optional. API request version that initiates this operation.
3786
+ # @yield [result, operation] Access the result along with the TransportOperation object
3787
+ # @yieldparam result [::Google::Cloud::Container::V1::Operation]
3788
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3789
+ #
3790
+ # @return [::Google::Cloud::Container::V1::Operation]
3791
+ #
3792
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3793
+ #
3794
+ # @example Basic example
3795
+ # require "google/cloud/container/v1"
3796
+ #
3797
+ # # Create a client object. The client can be reused for multiple calls.
3798
+ # client = Google::Cloud::Container::V1::ClusterManager::Rest::Client.new
3799
+ #
3800
+ # # Create a request. To set request fields, pass in keyword arguments.
3801
+ # request = Google::Cloud::Container::V1::CompleteControlPlaneUpgradeRequest.new
3802
+ #
3803
+ # # Call the complete_control_plane_upgrade method.
3804
+ # result = client.complete_control_plane_upgrade request
3805
+ #
3806
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
3807
+ # p result
3808
+ #
3809
+ def complete_control_plane_upgrade request, options = nil
3810
+ raise ::ArgumentError, "request must be provided" if request.nil?
3811
+
3812
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::CompleteControlPlaneUpgradeRequest
3813
+
3814
+ # Converts hash and nil to an options object
3815
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3816
+
3817
+ # Customize the options with defaults
3818
+ call_metadata = @config.rpcs.complete_control_plane_upgrade.metadata.to_h
3819
+
3820
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3821
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3822
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3823
+ gapic_version: ::Google::Cloud::Container::V1::VERSION,
3824
+ transports_version_send: [:rest]
3825
+
3826
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3827
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3828
+
3829
+ options.apply_defaults timeout: @config.rpcs.complete_control_plane_upgrade.timeout,
3830
+ metadata: call_metadata,
3831
+ retry_policy: @config.rpcs.complete_control_plane_upgrade.retry_policy
3832
+
3833
+ options.apply_defaults timeout: @config.timeout,
3834
+ metadata: @config.metadata,
3835
+ retry_policy: @config.retry_policy
3836
+
3837
+ @cluster_manager_stub.complete_control_plane_upgrade request, options do |result, operation|
3838
+ yield result, operation if block_given?
3839
+ end
3840
+ rescue ::Gapic::Rest::Error => e
3841
+ raise ::Google::Cloud::Error.from_error(e)
3842
+ end
3843
+
3759
3844
  ##
3760
3845
  # Configuration class for the ClusterManager REST API.
3761
3846
  #
@@ -4084,6 +4169,11 @@ module Google
4084
4169
  # @return [::Gapic::Config::Method]
4085
4170
  #
4086
4171
  attr_reader :fetch_node_pool_upgrade_info
4172
+ ##
4173
+ # RPC-specific configuration for `complete_control_plane_upgrade`
4174
+ # @return [::Gapic::Config::Method]
4175
+ #
4176
+ attr_reader :complete_control_plane_upgrade
4087
4177
 
4088
4178
  # @private
4089
4179
  def initialize parent_rpcs = nil
@@ -4159,6 +4249,8 @@ module Google
4159
4249
  @fetch_cluster_upgrade_info = ::Gapic::Config::Method.new fetch_cluster_upgrade_info_config
4160
4250
  fetch_node_pool_upgrade_info_config = parent_rpcs.fetch_node_pool_upgrade_info if parent_rpcs.respond_to? :fetch_node_pool_upgrade_info
4161
4251
  @fetch_node_pool_upgrade_info = ::Gapic::Config::Method.new fetch_node_pool_upgrade_info_config
4252
+ complete_control_plane_upgrade_config = parent_rpcs.complete_control_plane_upgrade if parent_rpcs.respond_to? :complete_control_plane_upgrade
4253
+ @complete_control_plane_upgrade = ::Gapic::Config::Method.new complete_control_plane_upgrade_config
4162
4254
 
4163
4255
  yield self if block_given?
4164
4256
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2024 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1513,6 +1513,46 @@ module Google
1513
1513
  end
1514
1514
  end
1515
1515
 
1516
+ ##
1517
+ # Baseline implementation for the complete_control_plane_upgrade REST call
1518
+ #
1519
+ # @param request_pb [::Google::Cloud::Container::V1::CompleteControlPlaneUpgradeRequest]
1520
+ # A request object representing the call parameters. Required.
1521
+ # @param options [::Gapic::CallOptions]
1522
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1523
+ #
1524
+ # @yield [result, operation] Access the result along with the TransportOperation object
1525
+ # @yieldparam result [::Google::Cloud::Container::V1::Operation]
1526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1527
+ #
1528
+ # @return [::Google::Cloud::Container::V1::Operation]
1529
+ # A result object deserialized from the server's reply
1530
+ def complete_control_plane_upgrade request_pb, options = nil
1531
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1532
+
1533
+ verb, uri, query_string_params, body = ServiceStub.transcode_complete_control_plane_upgrade_request request_pb
1534
+ query_string_params = if query_string_params.any?
1535
+ query_string_params.to_h { |p| p.split "=", 2 }
1536
+ else
1537
+ {}
1538
+ end
1539
+
1540
+ response = @client_stub.make_http_request(
1541
+ verb,
1542
+ uri: uri,
1543
+ body: body || "",
1544
+ params: query_string_params,
1545
+ method_name: "complete_control_plane_upgrade",
1546
+ options: options
1547
+ )
1548
+ operation = ::Gapic::Rest::TransportOperation.new response
1549
+ result = ::Google::Cloud::Container::V1::Operation.decode_json response.body, ignore_unknown_fields: true
1550
+ catch :response do
1551
+ yield result, operation if block_given?
1552
+ result
1553
+ end
1554
+ end
1555
+
1516
1556
  ##
1517
1557
  # @private
1518
1558
  #
@@ -2598,6 +2638,36 @@ module Google
2598
2638
  )
2599
2639
  transcoder.transcode request_pb
2600
2640
  end
2641
+
2642
+ ##
2643
+ # @private
2644
+ #
2645
+ # GRPC transcoding helper method for the complete_control_plane_upgrade REST call
2646
+ #
2647
+ # @param request_pb [::Google::Cloud::Container::V1::CompleteControlPlaneUpgradeRequest]
2648
+ # A request object representing the call parameters. Required.
2649
+ # @return [Array(String, [String, nil], Hash{String => String})]
2650
+ # Uri, Body, Query string parameters
2651
+ def self.transcode_complete_control_plane_upgrade_request request_pb
2652
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2653
+ .with_bindings(
2654
+ uri_method: :post,
2655
+ uri_template: "/v1/{name}:completeControlPlaneUpgrade",
2656
+ body: "*",
2657
+ matches: [
2658
+ ["name", %r{^projects/[^/]+/locations/[^/]+/clusters/[^/]+/?$}, false]
2659
+ ]
2660
+ )
2661
+ .with_bindings(
2662
+ uri_method: :post,
2663
+ uri_template: "/v1/{name}:completeControlPlaneUpgrade",
2664
+ body: "*",
2665
+ matches: [
2666
+ ["name", %r{^projects/[^/]+/zones/[^/]+/clusters/[^/]+/?$}, false]
2667
+ ]
2668
+ )
2669
+ transcoder.transcode request_pb
2670
+ end
2601
2671
  end
2602
2672
  end
2603
2673
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2024 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2024 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Container
23
23
  module V1
24
- VERSION = "1.17.1"
24
+ VERSION = "1.18.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.