# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'

module Google
  module Apis
    module ContainerV1
      # Kubernetes Engine API
      #
      # Builds and manages container-based applications, powered by the open source
      #  Kubernetes technology.
      #
      # @example
      #    require 'google/apis/container_v1'
      #
      #    Container = Google::Apis::ContainerV1 # Alias the module
      #    service = Container::ContainerService.new
      #
      # @see https://cloud.google.com/kubernetes-engine/docs/
      class ContainerService < Google::Apis::Core::BaseService
        DEFAULT_ENDPOINT_TEMPLATE = "https://container.$UNIVERSE_DOMAIN$/"

        # @return [String]
        #  API key. Your API key identifies your project and provides you with API access,
        #  quota, and reports. Required unless you provide an OAuth 2.0 token.
        attr_accessor :key

        # @return [String]
        #  Available to use for quota purposes for server-side applications. Can be any
        #  arbitrary string assigned to a user, but should not exceed 40 characters.
        attr_accessor :quota_user

        def initialize
          super(DEFAULT_ENDPOINT_TEMPLATE, '',
                client_name: 'google-apis-container_v1',
                client_version: Google::Apis::ContainerV1::GEM_VERSION)
          @batch_path = 'batch'
        end
        
        # Lists subnetworks that are usable for creating clusters in a project.
        # @param [String] parent
        #   The parent project where subnetworks are usable. Specified in the format `
        #   projects/*`.
        # @param [String] filter
        #   Filtering currently only supports equality on the networkProjectId and must be
        #   in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` is the
        #   project which owns the listed subnetworks. This defaults to the parent project
        #   ID.
        # @param [Fixnum] page_size
        #   The max number of results per page that should be returned. If the number of
        #   available results is larger than `page_size`, a `next_page_token` is returned
        #   which can be used to get the next page of results in subsequent requests.
        #   Acceptable values are 0 to 500, inclusive. (Default: 500)
        # @param [String] page_token
        #   Specifies a page token to use. Set this to the nextPageToken returned by
        #   previous list requests to get the next page of results.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::ListUsableSubnetworksResponse] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::ListUsableSubnetworksResponse]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def list_project_aggregated_usable_subnetworks(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+parent}/aggregated/usableSubnetworks', options)
          command.response_representation = Google::Apis::ContainerV1::ListUsableSubnetworksResponse::Representation
          command.response_class = Google::Apis::ContainerV1::ListUsableSubnetworksResponse
          command.params['parent'] = parent unless parent.nil?
          command.query['filter'] = filter unless filter.nil?
          command.query['pageSize'] = page_size unless page_size.nil?
          command.query['pageToken'] = page_token unless page_token.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Returns configuration info about the Google Kubernetes Engine service.
        # @param [String] name
        #   The name (project and location) of the server config to get, specified in the
        #   format `projects/*/locations/*`.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) to return
        #   operations for. This field has been deprecated and replaced by the name field.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::ServerConfig] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::ServerConfig]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def get_project_location_server_config(name, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+name}/serverConfig', options)
          command.response_representation = Google::Apis::ContainerV1::ServerConfig::Representation
          command.response_class = Google::Apis::ContainerV1::ServerConfig
          command.params['name'] = name unless name.nil?
          command.query['projectId'] = project_id unless project_id.nil?
          command.query['zone'] = zone unless zone.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Checks the cluster compatibility with Autopilot mode, and returns a list of
        # compatibility issues.
        # @param [String] name
        #   The name (project, location, cluster) of the cluster to retrieve. Specified in
        #   the format `projects/*/locations/*/clusters/*`.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::CheckAutopilotCompatibilityResponse] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::CheckAutopilotCompatibilityResponse]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def check_project_location_cluster_autopilot_compatibility(name, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+name}:checkAutopilotCompatibility', options)
          command.response_representation = Google::Apis::ContainerV1::CheckAutopilotCompatibilityResponse::Representation
          command.response_class = Google::Apis::ContainerV1::CheckAutopilotCompatibilityResponse
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Completes master IP rotation.
        # @param [String] name
        #   The name (project, location, cluster name) of the cluster to complete IP
        #   rotation. Specified in the format `projects/*/locations/*/clusters/*`.
        # @param [Google::Apis::ContainerV1::CompleteIpRotationRequest] complete_ip_rotation_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def complete_project_location_cluster_ip_rotation(name, complete_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:completeIpRotation', options)
          command.request_representation = Google::Apis::ContainerV1::CompleteIpRotationRequest::Representation
          command.request_object = complete_ip_rotation_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Creates a cluster, consisting of the specified number and type of Google
        # Compute Engine instances. By default, the cluster is created in the project's [
        # default network](https://`$universe.dns_names.final_documentation_domain`/
        # compute/docs/networks-and-firewalls#networks). One firewall is added for the
        # cluster. After cluster creation, the Kubelet creates routes for each node to
        # allow the containers on that node to communicate with all other instances in
        # the cluster. Finally, an entry is added to the project's global metadata
        # indicating which CIDR range the cluster is using.
        # @param [String] parent
        #   The parent (project and location) where the cluster will be created. Specified
        #   in the format `projects/*/locations/*`.
        # @param [Google::Apis::ContainerV1::CreateClusterRequest] create_cluster_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def create_project_location_cluster(parent, create_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+parent}/clusters', options)
          command.request_representation = Google::Apis::ContainerV1::CreateClusterRequest::Representation
          command.request_object = create_cluster_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['parent'] = parent unless parent.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
        # Firewalls and routes that were configured during cluster creation are also
        # deleted. Other Google Compute Engine resources that might be in use by the
        # cluster, such as load balancer resources, are not deleted if they weren't
        # present when the cluster was initially created.
        # @param [String] name
        #   The name (project, location, cluster) of the cluster to delete. Specified in
        #   the format `projects/*/locations/*/clusters/*`.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to delete. This field has been deprecated
        #   and replaced by the name field.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def delete_project_location_cluster(name, cluster_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:delete, 'v1/{+name}', options)
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['projectId'] = project_id unless project_id.nil?
          command.query['zone'] = zone unless zone.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Fetch upgrade information of a specific cluster.
        # @param [String] name
        #   Required. The name (project, location, cluster) of the cluster to get.
        #   Specified in the format `projects/*/locations/*/clusters/*` or `projects/*/
        #   zones/*/clusters/*`.
        # @param [String] version
        #   API request version that initiates this operation.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::ClusterUpgradeInfo] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::ClusterUpgradeInfo]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def fetch_project_location_cluster_cluster_upgrade_info(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+name}:fetchClusterUpgradeInfo', options)
          command.response_representation = Google::Apis::ContainerV1::ClusterUpgradeInfo::Representation
          command.response_class = Google::Apis::ContainerV1::ClusterUpgradeInfo
          command.params['name'] = name unless name.nil?
          command.query['version'] = version unless version.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Gets the details of a specific cluster.
        # @param [String] name
        #   The name (project, location, cluster) of the cluster to retrieve. Specified in
        #   the format `projects/*/locations/*/clusters/*`.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to retrieve. This field has been
        #   deprecated and replaced by the name field.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Cluster] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Cluster]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def get_project_location_cluster(name, cluster_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+name}', options)
          command.response_representation = Google::Apis::ContainerV1::Cluster::Representation
          command.response_class = Google::Apis::ContainerV1::Cluster
          command.params['name'] = name unless name.nil?
          command.query['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['projectId'] = project_id unless project_id.nil?
          command.query['zone'] = zone unless zone.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Gets the public component of the cluster signing keys in JSON Web Key format.
        # @param [String] parent
        #   The cluster (project, location, cluster name) to get keys for. Specified in
        #   the format `projects/*/locations/*/clusters/*`.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::GetJsonWebKeysResponse] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::GetJsonWebKeysResponse]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def get_project_location_cluster_jwks(parent, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+parent}/jwks', options)
          command.response_representation = Google::Apis::ContainerV1::GetJsonWebKeysResponse::Representation
          command.response_class = Google::Apis::ContainerV1::GetJsonWebKeysResponse
          command.params['parent'] = parent unless parent.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Lists all clusters owned by a project in either the specified zone or all
        # zones.
        # @param [String] parent
        #   The parent (project and location) where the clusters will be listed. Specified
        #   in the format `projects/*/locations/*`. Location "-" matches all zones and all
        #   regions.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the parent field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides, or "-" for all zones. This field has been deprecated and
        #   replaced by the parent field.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::ListClustersResponse] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::ListClustersResponse]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def list_project_location_clusters(parent, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+parent}/clusters', options)
          command.response_representation = Google::Apis::ContainerV1::ListClustersResponse::Representation
          command.response_class = Google::Apis::ContainerV1::ListClustersResponse
          command.params['parent'] = parent unless parent.nil?
          command.query['projectId'] = project_id unless project_id.nil?
          command.query['zone'] = zone unless zone.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets the addons for a specific cluster.
        # @param [String] name
        #   The name (project, location, cluster) of the cluster to set addons. Specified
        #   in the format `projects/*/locations/*/clusters/*`.
        # @param [Google::Apis::ContainerV1::SetAddonsConfigRequest] set_addons_config_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_cluster_addons_config(name, set_addons_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:setAddons', options)
          command.request_representation = Google::Apis::ContainerV1::SetAddonsConfigRequest::Representation
          command.request_object = set_addons_config_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Enables or disables the ABAC authorization mechanism on a cluster.
        # @param [String] name
        #   The name (project, location, cluster name) of the cluster to set legacy abac.
        #   Specified in the format `projects/*/locations/*/clusters/*`.
        # @param [Google::Apis::ContainerV1::SetLegacyAbacRequest] set_legacy_abac_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_cluster_legacy_abac(name, set_legacy_abac_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:setLegacyAbac', options)
          command.request_representation = Google::Apis::ContainerV1::SetLegacyAbacRequest::Representation
          command.request_object = set_legacy_abac_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets the locations for a specific cluster. Deprecated. Use [projects.locations.
        # clusters.update](https://`$universe.dns_names.final_documentation_domain`/
        # kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
        # instead.
        # @param [String] name
        #   The name (project, location, cluster) of the cluster to set locations.
        #   Specified in the format `projects/*/locations/*/clusters/*`.
        # @param [Google::Apis::ContainerV1::SetLocationsRequest] set_locations_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_cluster_locations(name, set_locations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:setLocations', options)
          command.request_representation = Google::Apis::ContainerV1::SetLocationsRequest::Representation
          command.request_object = set_locations_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets the logging service for a specific cluster.
        # @param [String] name
        #   The name (project, location, cluster) of the cluster to set logging. Specified
        #   in the format `projects/*/locations/*/clusters/*`.
        # @param [Google::Apis::ContainerV1::SetLoggingServiceRequest] set_logging_service_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_cluster_logging_service(name, set_logging_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:setLogging', options)
          command.request_representation = Google::Apis::ContainerV1::SetLoggingServiceRequest::Representation
          command.request_object = set_logging_service_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets the maintenance policy for a cluster.
        # @param [String] name
        #   The name (project, location, cluster name) of the cluster to set maintenance
        #   policy. Specified in the format `projects/*/locations/*/clusters/*`.
        # @param [Google::Apis::ContainerV1::SetMaintenancePolicyRequest] set_maintenance_policy_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_project_location_cluster_maintenance_policy(name, set_maintenance_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:setMaintenancePolicy', options)
          command.request_representation = Google::Apis::ContainerV1::SetMaintenancePolicyRequest::Representation
          command.request_object = set_maintenance_policy_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets master auth materials. Currently supports changing the admin password or
        # a specific cluster, either via password generation or explicitly setting the
        # password.
        # @param [String] name
        #   The name (project, location, cluster) of the cluster to set auth. Specified in
        #   the format `projects/*/locations/*/clusters/*`.
        # @param [Google::Apis::ContainerV1::SetMasterAuthRequest] set_master_auth_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_project_location_cluster_master_auth(name, set_master_auth_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:setMasterAuth', options)
          command.request_representation = Google::Apis::ContainerV1::SetMasterAuthRequest::Representation
          command.request_object = set_master_auth_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets the monitoring service for a specific cluster.
        # @param [String] name
        #   The name (project, location, cluster) of the cluster to set monitoring.
        #   Specified in the format `projects/*/locations/*/clusters/*`.
        # @param [Google::Apis::ContainerV1::SetMonitoringServiceRequest] set_monitoring_service_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_cluster_monitoring_service(name, set_monitoring_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:setMonitoring', options)
          command.request_representation = Google::Apis::ContainerV1::SetMonitoringServiceRequest::Representation
          command.request_object = set_monitoring_service_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Enables or disables Network Policy for a cluster.
        # @param [String] name
        #   The name (project, location, cluster name) of the cluster to set networking
        #   policy. Specified in the format `projects/*/locations/*/clusters/*`.
        # @param [Google::Apis::ContainerV1::SetNetworkPolicyRequest] set_network_policy_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_project_location_cluster_network_policy(name, set_network_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:setNetworkPolicy', options)
          command.request_representation = Google::Apis::ContainerV1::SetNetworkPolicyRequest::Representation
          command.request_object = set_network_policy_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets labels on a cluster.
        # @param [String] name
        #   The name (project, location, cluster name) of the cluster to set labels.
        #   Specified in the format `projects/*/locations/*/clusters/*`.
        # @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_project_location_cluster_resource_labels(name, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:setResourceLabels', options)
          command.request_representation = Google::Apis::ContainerV1::SetLabelsRequest::Representation
          command.request_object = set_labels_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Starts master IP rotation.
        # @param [String] name
        #   The name (project, location, cluster name) of the cluster to start IP rotation.
        #   Specified in the format `projects/*/locations/*/clusters/*`.
        # @param [Google::Apis::ContainerV1::StartIpRotationRequest] start_ip_rotation_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def start_project_location_cluster_ip_rotation(name, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:startIpRotation', options)
          command.request_representation = Google::Apis::ContainerV1::StartIpRotationRequest::Representation
          command.request_object = start_ip_rotation_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Updates the settings of a specific cluster.
        # @param [String] name
        #   The name (project, location, cluster) of the cluster to update. Specified in
        #   the format `projects/*/locations/*/clusters/*`.
        # @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def update_project_location_cluster(name, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:put, 'v1/{+name}', options)
          command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation
          command.request_object = update_cluster_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Updates the master for a specific cluster.
        # @param [String] name
        #   The name (project, location, cluster) of the cluster to update. Specified in
        #   the format `projects/*/locations/*/clusters/*`.
        # @param [Google::Apis::ContainerV1::UpdateMasterRequest] update_master_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def update_cluster_master(name, update_master_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:updateMaster', options)
          command.request_representation = Google::Apis::ContainerV1::UpdateMasterRequest::Representation
          command.request_object = update_master_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # CompleteNodePoolUpgrade will signal an on-going node pool upgrade to complete.
        # @param [String] name
        #   The name (project, location, cluster, node pool id) of the node pool to
        #   complete upgrade. Specified in the format `projects/*/locations/*/clusters/*/
        #   nodePools/*`.
        # @param [Google::Apis::ContainerV1::CompleteNodePoolUpgradeRequest] complete_node_pool_upgrade_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Empty] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Empty]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def complete_project_location_cluster_node_pool_upgrade(name, complete_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:completeUpgrade', options)
          command.request_representation = Google::Apis::ContainerV1::CompleteNodePoolUpgradeRequest::Representation
          command.request_object = complete_node_pool_upgrade_request_object
          command.response_representation = Google::Apis::ContainerV1::Empty::Representation
          command.response_class = Google::Apis::ContainerV1::Empty
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Creates a node pool for a cluster.
        # @param [String] parent
        #   The parent (project, location, cluster name) where the node pool will be
        #   created. Specified in the format `projects/*/locations/*/clusters/*`.
        # @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def create_project_location_cluster_node_pool(parent, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+parent}/nodePools', options)
          command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation
          command.request_object = create_node_pool_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['parent'] = parent unless parent.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Deletes a node pool from a cluster.
        # @param [String] name
        #   The name (project, location, cluster, node pool id) of the node pool to delete.
        #   Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster. This field has been deprecated and
        #   replaced by the name field.
        # @param [String] node_pool_id
        #   Deprecated. The name of the node pool to delete. This field has been
        #   deprecated and replaced by the name field.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def delete_project_location_cluster_node_pool(name, cluster_id: nil, node_pool_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:delete, 'v1/{+name}', options)
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['nodePoolId'] = node_pool_id unless node_pool_id.nil?
          command.query['projectId'] = project_id unless project_id.nil?
          command.query['zone'] = zone unless zone.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Fetch upgrade information of a specific nodepool.
        # @param [String] name
        #   Required. The name (project, location, cluster, nodepool) of the nodepool to
        #   get. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`
        #   or `projects/*/zones/*/clusters/*/nodePools/*`.
        # @param [String] version
        #   API request version that initiates this operation.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::NodePoolUpgradeInfo] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::NodePoolUpgradeInfo]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def fetch_project_location_cluster_node_pool_node_pool_upgrade_info(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+name}:fetchNodePoolUpgradeInfo', options)
          command.response_representation = Google::Apis::ContainerV1::NodePoolUpgradeInfo::Representation
          command.response_class = Google::Apis::ContainerV1::NodePoolUpgradeInfo
          command.params['name'] = name unless name.nil?
          command.query['version'] = version unless version.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Retrieves the requested node pool.
        # @param [String] name
        #   The name (project, location, cluster, node pool id) of the node pool to get.
        #   Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster. This field has been deprecated and
        #   replaced by the name field.
        # @param [String] node_pool_id
        #   Deprecated. The name of the node pool. This field has been deprecated and
        #   replaced by the name field.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::NodePool] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::NodePool]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def get_project_location_cluster_node_pool(name, cluster_id: nil, node_pool_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+name}', options)
          command.response_representation = Google::Apis::ContainerV1::NodePool::Representation
          command.response_class = Google::Apis::ContainerV1::NodePool
          command.params['name'] = name unless name.nil?
          command.query['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['nodePoolId'] = node_pool_id unless node_pool_id.nil?
          command.query['projectId'] = project_id unless project_id.nil?
          command.query['zone'] = zone unless zone.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Lists the node pools for a cluster.
        # @param [String] parent
        #   The parent (project, location, cluster name) where the node pools will be
        #   listed. Specified in the format `projects/*/locations/*/clusters/*`.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster. This field has been deprecated and
        #   replaced by the parent field.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the parent field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the parent
        #   field.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::ListNodePoolsResponse] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::ListNodePoolsResponse]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def list_project_location_cluster_node_pools(parent, cluster_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+parent}/nodePools', options)
          command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation
          command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse
          command.params['parent'] = parent unless parent.nil?
          command.query['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['projectId'] = project_id unless project_id.nil?
          command.query['zone'] = zone unless zone.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Rolls back a previously Aborted or Failed NodePool upgrade. This makes no
        # changes if the last upgrade successfully completed.
        # @param [String] name
        #   The name (project, location, cluster, node pool id) of the node poll to
        #   rollback upgrade. Specified in the format `projects/*/locations/*/clusters/*/
        #   nodePools/*`.
        # @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def rollback_project_location_cluster_node_pool(name, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:rollback', options)
          command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation
          command.request_object = rollback_node_pool_upgrade_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets the autoscaling settings for the specified node pool.
        # @param [String] name
        #   The name (project, location, cluster, node pool) of the node pool to set
        #   autoscaler settings. Specified in the format `projects/*/locations/*/clusters/*
        #   /nodePools/*`.
        # @param [Google::Apis::ContainerV1::SetNodePoolAutoscalingRequest] set_node_pool_autoscaling_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_project_location_cluster_node_pool_autoscaling(name, set_node_pool_autoscaling_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:setAutoscaling', options)
          command.request_representation = Google::Apis::ContainerV1::SetNodePoolAutoscalingRequest::Representation
          command.request_object = set_node_pool_autoscaling_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets the NodeManagement options for a node pool.
        # @param [String] name
        #   The name (project, location, cluster, node pool id) of the node pool to set
        #   management properties. Specified in the format `projects/*/locations/*/
        #   clusters/*/nodePools/*`.
        # @param [Google::Apis::ContainerV1::SetNodePoolManagementRequest] set_node_pool_management_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_project_location_cluster_node_pool_management(name, set_node_pool_management_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:setManagement', options)
          command.request_representation = Google::Apis::ContainerV1::SetNodePoolManagementRequest::Representation
          command.request_object = set_node_pool_management_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets the size for a specific node pool. The new size will be used for all
        # replicas, including future replicas created by modifying NodePool.locations.
        # @param [String] name
        #   The name (project, location, cluster, node pool id) of the node pool to set
        #   size. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
        # @param [Google::Apis::ContainerV1::SetNodePoolSizeRequest] set_node_pool_size_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_project_location_cluster_node_pool_size(name, set_node_pool_size_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:setSize', options)
          command.request_representation = Google::Apis::ContainerV1::SetNodePoolSizeRequest::Representation
          command.request_object = set_node_pool_size_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Updates the version and/or image type for the specified node pool.
        # @param [String] name
        #   The name (project, location, cluster, node pool) of the node pool to update.
        #   Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
        # @param [Google::Apis::ContainerV1::UpdateNodePoolRequest] update_node_pool_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def update_project_location_cluster_node_pool(name, update_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:put, 'v1/{+name}', options)
          command.request_representation = Google::Apis::ContainerV1::UpdateNodePoolRequest::Representation
          command.request_object = update_node_pool_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Gets the OIDC discovery document for the cluster. See the [OpenID Connect
        # Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-
        # 1_0.html) for details.
        # @param [String] parent
        #   The cluster (project, location, cluster name) to get the discovery document
        #   for. Specified in the format `projects/*/locations/*/clusters/*`.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::GetOpenIdConfigResponse] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::GetOpenIdConfigResponse]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def get_project_location_cluster_well_known_openid_configuration(parent, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+parent}/.well-known/openid-configuration', options)
          command.response_representation = Google::Apis::ContainerV1::GetOpenIdConfigResponse::Representation
          command.response_class = Google::Apis::ContainerV1::GetOpenIdConfigResponse
          command.params['parent'] = parent unless parent.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Cancels the specified operation.
        # @param [String] name
        #   The name (project, location, operation id) of the operation to cancel.
        #   Specified in the format `projects/*/locations/*/operations/*`.
        # @param [Google::Apis::ContainerV1::CancelOperationRequest] cancel_operation_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Empty] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Empty]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def cancel_project_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}:cancel', options)
          command.request_representation = Google::Apis::ContainerV1::CancelOperationRequest::Representation
          command.request_object = cancel_operation_request_object
          command.response_representation = Google::Apis::ContainerV1::Empty::Representation
          command.response_class = Google::Apis::ContainerV1::Empty
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Gets the specified operation.
        # @param [String] name
        #   The name (project, location, operation id) of the operation to get. Specified
        #   in the format `projects/*/locations/*/operations/*`.
        # @param [String] operation_id
        #   Deprecated. The server-assigned `name` of the operation. This field has been
        #   deprecated and replaced by the name field.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def get_project_location_operation(name, operation_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+name}', options)
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['name'] = name unless name.nil?
          command.query['operationId'] = operation_id unless operation_id.nil?
          command.query['projectId'] = project_id unless project_id.nil?
          command.query['zone'] = zone unless zone.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Lists all operations in a project in a specific zone or all zones.
        # @param [String] parent
        #   The parent (project and location) where the operations will be listed.
        #   Specified in the format `projects/*/locations/*`. Location "-" matches all
        #   zones and all regions.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the parent field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) to return
        #   operations for, or `-` for all zones. This field has been deprecated and
        #   replaced by the parent field.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::ListOperationsResponse] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::ListOperationsResponse]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def list_project_location_operations(parent, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+parent}/operations', options)
          command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation
          command.response_class = Google::Apis::ContainerV1::ListOperationsResponse
          command.params['parent'] = parent unless parent.nil?
          command.query['projectId'] = project_id unless project_id.nil?
          command.query['zone'] = zone unless zone.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Returns configuration info about the Google Kubernetes Engine service.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) to return
        #   operations for. This field has been deprecated and replaced by the name field.
        # @param [String] name
        #   The name (project and location) of the server config to get, specified in the
        #   format `projects/*/locations/*`.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::ServerConfig] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::ServerConfig]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def get_project_zone_serverconfig(project_id, zone, name: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/serverconfig', options)
          command.response_representation = Google::Apis::ContainerV1::ServerConfig::Representation
          command.response_class = Google::Apis::ContainerV1::ServerConfig
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.query['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets the addons for a specific cluster.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to upgrade. This field has been deprecated
        #   and replaced by the name field.
        # @param [Google::Apis::ContainerV1::SetAddonsConfigRequest] set_addons_config_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def addons_project_zone_cluster(project_id, zone, cluster_id, set_addons_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons', options)
          command.request_representation = Google::Apis::ContainerV1::SetAddonsConfigRequest::Representation
          command.request_object = set_addons_config_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Completes master IP rotation.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster. This field has been deprecated and
        #   replaced by the name field.
        # @param [Google::Apis::ContainerV1::CompleteIpRotationRequest] complete_ip_rotation_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def complete_cluster_ip_rotation(project_id, zone, cluster_id, complete_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation', options)
          command.request_representation = Google::Apis::ContainerV1::CompleteIpRotationRequest::Representation
          command.request_object = complete_ip_rotation_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Creates a cluster, consisting of the specified number and type of Google
        # Compute Engine instances. By default, the cluster is created in the project's [
        # default network](https://`$universe.dns_names.final_documentation_domain`/
        # compute/docs/networks-and-firewalls#networks). One firewall is added for the
        # cluster. After cluster creation, the Kubelet creates routes for each node to
        # allow the containers on that node to communicate with all other instances in
        # the cluster. Finally, an entry is added to the project's global metadata
        # indicating which CIDR range the cluster is using.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the parent field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the parent
        #   field.
        # @param [Google::Apis::ContainerV1::CreateClusterRequest] create_cluster_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def create_cluster(project_id, zone, create_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters', options)
          command.request_representation = Google::Apis::ContainerV1::CreateClusterRequest::Representation
          command.request_object = create_cluster_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
        # Firewalls and routes that were configured during cluster creation are also
        # deleted. Other Google Compute Engine resources that might be in use by the
        # cluster, such as load balancer resources, are not deleted if they weren't
        # present when the cluster was initially created.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to delete. This field has been deprecated
        #   and replaced by the name field.
        # @param [String] name
        #   The name (project, location, cluster) of the cluster to delete. Specified in
        #   the format `projects/*/locations/*/clusters/*`.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def delete_zone_cluster(project_id, zone, cluster_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Fetch upgrade information of a specific cluster.
        # @param [String] name
        #   Required. The name (project, location, cluster) of the cluster to get.
        #   Specified in the format `projects/*/locations/*/clusters/*` or `projects/*/
        #   zones/*/clusters/*`.
        # @param [String] version
        #   API request version that initiates this operation.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::ClusterUpgradeInfo] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::ClusterUpgradeInfo]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def fetch_project_zone_cluster_cluster_upgrade_info(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+name}:fetchClusterUpgradeInfo', options)
          command.response_representation = Google::Apis::ContainerV1::ClusterUpgradeInfo::Representation
          command.response_class = Google::Apis::ContainerV1::ClusterUpgradeInfo
          command.params['name'] = name unless name.nil?
          command.query['version'] = version unless version.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Gets the details of a specific cluster.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to retrieve. This field has been
        #   deprecated and replaced by the name field.
        # @param [String] name
        #   The name (project, location, cluster) of the cluster to retrieve. Specified in
        #   the format `projects/*/locations/*/clusters/*`.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Cluster] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Cluster]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def get_zone_cluster(project_id, zone, cluster_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
          command.response_representation = Google::Apis::ContainerV1::Cluster::Representation
          command.response_class = Google::Apis::ContainerV1::Cluster
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Enables or disables the ABAC authorization mechanism on a cluster.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to update. This field has been deprecated
        #   and replaced by the name field.
        # @param [Google::Apis::ContainerV1::SetLegacyAbacRequest] set_legacy_abac_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def legacy_project_zone_cluster_abac(project_id, zone, cluster_id, set_legacy_abac_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac', options)
          command.request_representation = Google::Apis::ContainerV1::SetLegacyAbacRequest::Representation
          command.request_object = set_legacy_abac_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Lists all clusters owned by a project in either the specified zone or all
        # zones.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the parent field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides, or "-" for all zones. This field has been deprecated and
        #   replaced by the parent field.
        # @param [String] parent
        #   The parent (project and location) where the clusters will be listed. Specified
        #   in the format `projects/*/locations/*`. Location "-" matches all zones and all
        #   regions.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::ListClustersResponse] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::ListClustersResponse]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def list_zone_clusters(project_id, zone, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters', options)
          command.response_representation = Google::Apis::ContainerV1::ListClustersResponse::Representation
          command.response_class = Google::Apis::ContainerV1::ListClustersResponse
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.query['parent'] = parent unless parent.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets the locations for a specific cluster. Deprecated. Use [projects.locations.
        # clusters.update](https://`$universe.dns_names.final_documentation_domain`/
        # kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
        # instead.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to upgrade. This field has been deprecated
        #   and replaced by the name field.
        # @param [Google::Apis::ContainerV1::SetLocationsRequest] set_locations_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def locations_project_zone_cluster(project_id, zone, cluster_id, set_locations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations', options)
          command.request_representation = Google::Apis::ContainerV1::SetLocationsRequest::Representation
          command.request_object = set_locations_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets the logging service for a specific cluster.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to upgrade. This field has been deprecated
        #   and replaced by the name field.
        # @param [Google::Apis::ContainerV1::SetLoggingServiceRequest] set_logging_service_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def logging_project_zone_cluster(project_id, zone, cluster_id, set_logging_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging', options)
          command.request_representation = Google::Apis::ContainerV1::SetLoggingServiceRequest::Representation
          command.request_object = set_logging_service_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Updates the master for a specific cluster.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to upgrade. This field has been deprecated
        #   and replaced by the name field.
        # @param [Google::Apis::ContainerV1::UpdateMasterRequest] update_master_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def master_project_zone_cluster(project_id, zone, cluster_id, update_master_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master', options)
          command.request_representation = Google::Apis::ContainerV1::UpdateMasterRequest::Representation
          command.request_object = update_master_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets the monitoring service for a specific cluster.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to upgrade. This field has been deprecated
        #   and replaced by the name field.
        # @param [Google::Apis::ContainerV1::SetMonitoringServiceRequest] set_monitoring_service_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def monitoring_project_zone_cluster(project_id, zone, cluster_id, set_monitoring_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring', options)
          command.request_representation = Google::Apis::ContainerV1::SetMonitoringServiceRequest::Representation
          command.request_object = set_monitoring_service_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets labels on a cluster.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster. This field has been deprecated and
        #   replaced by the name field.
        # @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options)
          command.request_representation = Google::Apis::ContainerV1::SetLabelsRequest::Representation
          command.request_object = set_labels_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets the maintenance policy for a cluster.
        # @param [String] project_id
        #   Required. The Google Developers Console [project ID or project number](https://
        #   `$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects).
        # @param [String] zone
        #   Required. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides.
        # @param [String] cluster_id
        #   Required. The name of the cluster to update.
        # @param [Google::Apis::ContainerV1::SetMaintenancePolicyRequest] set_maintenance_policy_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_cluster_maintenance_policy(project_id, zone, cluster_id, set_maintenance_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy', options)
          command.request_representation = Google::Apis::ContainerV1::SetMaintenancePolicyRequest::Representation
          command.request_object = set_maintenance_policy_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets master auth materials. Currently supports changing the admin password or
        # a specific cluster, either via password generation or explicitly setting the
        # password.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to upgrade. This field has been deprecated
        #   and replaced by the name field.
        # @param [Google::Apis::ContainerV1::SetMasterAuthRequest] set_master_auth_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_cluster_master_auth(project_id, zone, cluster_id, set_master_auth_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth', options)
          command.request_representation = Google::Apis::ContainerV1::SetMasterAuthRequest::Representation
          command.request_object = set_master_auth_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Enables or disables Network Policy for a cluster.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster. This field has been deprecated and
        #   replaced by the name field.
        # @param [Google::Apis::ContainerV1::SetNetworkPolicyRequest] set_network_policy_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_cluster_network_policy(project_id, zone, cluster_id, set_network_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy', options)
          command.request_representation = Google::Apis::ContainerV1::SetNetworkPolicyRequest::Representation
          command.request_object = set_network_policy_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Starts master IP rotation.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster. This field has been deprecated and
        #   replaced by the name field.
        # @param [Google::Apis::ContainerV1::StartIpRotationRequest] start_ip_rotation_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def start_cluster_ip_rotation(project_id, zone, cluster_id, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation', options)
          command.request_representation = Google::Apis::ContainerV1::StartIpRotationRequest::Representation
          command.request_object = start_ip_rotation_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Updates the settings of a specific cluster.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to upgrade. This field has been deprecated
        #   and replaced by the name field.
        # @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def update_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:put, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
          command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation
          command.request_object = update_cluster_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets the autoscaling settings for the specified node pool.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to upgrade. This field has been deprecated
        #   and replaced by the name field.
        # @param [String] node_pool_id
        #   Deprecated. The name of the node pool to upgrade. This field has been
        #   deprecated and replaced by the name field.
        # @param [Google::Apis::ContainerV1::SetNodePoolAutoscalingRequest] set_node_pool_autoscaling_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def autoscaling_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, set_node_pool_autoscaling_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling', options)
          command.request_representation = Google::Apis::ContainerV1::SetNodePoolAutoscalingRequest::Representation
          command.request_object = set_node_pool_autoscaling_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Creates a node pool for a cluster.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the parent field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the parent
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster. This field has been deprecated and
        #   replaced by the parent field.
        # @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def create_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
          command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation
          command.request_object = create_node_pool_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Deletes a node pool from a cluster.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster. This field has been deprecated and
        #   replaced by the name field.
        # @param [String] node_pool_id
        #   Deprecated. The name of the node pool to delete. This field has been
        #   deprecated and replaced by the name field.
        # @param [String] name
        #   The name (project, location, cluster, node pool id) of the node pool to delete.
        #   Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
          command.query['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Fetch upgrade information of a specific nodepool.
        # @param [String] name
        #   Required. The name (project, location, cluster, nodepool) of the nodepool to
        #   get. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`
        #   or `projects/*/zones/*/clusters/*/nodePools/*`.
        # @param [String] version
        #   API request version that initiates this operation.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::NodePoolUpgradeInfo] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::NodePoolUpgradeInfo]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def fetch_project_zone_cluster_node_pool_node_pool_upgrade_info(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/{+name}:fetchNodePoolUpgradeInfo', options)
          command.response_representation = Google::Apis::ContainerV1::NodePoolUpgradeInfo::Representation
          command.response_class = Google::Apis::ContainerV1::NodePoolUpgradeInfo
          command.params['name'] = name unless name.nil?
          command.query['version'] = version unless version.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Retrieves the requested node pool.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster. This field has been deprecated and
        #   replaced by the name field.
        # @param [String] node_pool_id
        #   Deprecated. The name of the node pool. This field has been deprecated and
        #   replaced by the name field.
        # @param [String] name
        #   The name (project, location, cluster, node pool id) of the node pool to get.
        #   Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::NodePool] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::NodePool]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
          command.response_representation = Google::Apis::ContainerV1::NodePool::Representation
          command.response_class = Google::Apis::ContainerV1::NodePool
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
          command.query['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Lists the node pools for a cluster.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the parent field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the parent
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster. This field has been deprecated and
        #   replaced by the parent field.
        # @param [String] parent
        #   The parent (project, location, cluster name) where the node pools will be
        #   listed. Specified in the format `projects/*/locations/*/clusters/*`.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::ListNodePoolsResponse] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::ListNodePoolsResponse]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def list_project_zone_cluster_node_pools(project_id, zone, cluster_id, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
          command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation
          command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.query['parent'] = parent unless parent.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Rolls back a previously Aborted or Failed NodePool upgrade. This makes no
        # changes if the last upgrade successfully completed.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to rollback. This field has been
        #   deprecated and replaced by the name field.
        # @param [String] node_pool_id
        #   Deprecated. The name of the node pool to rollback. This field has been
        #   deprecated and replaced by the name field.
        # @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def rollback_node_pool_upgrade(project_id, zone, cluster_id, node_pool_id, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options)
          command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation
          command.request_object = rollback_node_pool_upgrade_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets the NodeManagement options for a node pool.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to update. This field has been deprecated
        #   and replaced by the name field.
        # @param [String] node_pool_id
        #   Deprecated. The name of the node pool to update. This field has been
        #   deprecated and replaced by the name field.
        # @param [Google::Apis::ContainerV1::SetNodePoolManagementRequest] set_node_pool_management_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_project_zone_cluster_node_pool_management(project_id, zone, cluster_id, node_pool_id, set_node_pool_management_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement', options)
          command.request_representation = Google::Apis::ContainerV1::SetNodePoolManagementRequest::Representation
          command.request_object = set_node_pool_management_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Sets the size for a specific node pool. The new size will be used for all
        # replicas, including future replicas created by modifying NodePool.locations.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to update. This field has been deprecated
        #   and replaced by the name field.
        # @param [String] node_pool_id
        #   Deprecated. The name of the node pool to update. This field has been
        #   deprecated and replaced by the name field.
        # @param [Google::Apis::ContainerV1::SetNodePoolSizeRequest] set_node_pool_size_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def set_project_zone_cluster_node_pool_size(project_id, zone, cluster_id, node_pool_id, set_node_pool_size_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize', options)
          command.request_representation = Google::Apis::ContainerV1::SetNodePoolSizeRequest::Representation
          command.request_object = set_node_pool_size_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Updates the version and/or image type for the specified node pool.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] cluster_id
        #   Deprecated. The name of the cluster to upgrade. This field has been deprecated
        #   and replaced by the name field.
        # @param [String] node_pool_id
        #   Deprecated. The name of the node pool to upgrade. This field has been
        #   deprecated and replaced by the name field.
        # @param [Google::Apis::ContainerV1::UpdateNodePoolRequest] update_node_pool_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def update_node_pool(project_id, zone, cluster_id, node_pool_id, update_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update', options)
          command.request_representation = Google::Apis::ContainerV1::UpdateNodePoolRequest::Representation
          command.request_object = update_node_pool_request_object
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['clusterId'] = cluster_id unless cluster_id.nil?
          command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Cancels the specified operation.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the operation resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] operation_id
        #   Deprecated. The server-assigned `name` of the operation. This field has been
        #   deprecated and replaced by the name field.
        # @param [Google::Apis::ContainerV1::CancelOperationRequest] cancel_operation_request_object
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Empty] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Empty]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def cancel_operation(project_id, zone, operation_id, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel', options)
          command.request_representation = Google::Apis::ContainerV1::CancelOperationRequest::Representation
          command.request_object = cancel_operation_request_object
          command.response_representation = Google::Apis::ContainerV1::Empty::Representation
          command.response_class = Google::Apis::ContainerV1::Empty
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['operationId'] = operation_id unless operation_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Gets the specified operation.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the name field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) in which
        #   the cluster resides. This field has been deprecated and replaced by the name
        #   field.
        # @param [String] operation_id
        #   Deprecated. The server-assigned `name` of the operation. This field has been
        #   deprecated and replaced by the name field.
        # @param [String] name
        #   The name (project, location, operation id) of the operation to get. Specified
        #   in the format `projects/*/locations/*/operations/*`.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::Operation]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def get_zone_operation(project_id, zone, operation_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options)
          command.response_representation = Google::Apis::ContainerV1::Operation::Representation
          command.response_class = Google::Apis::ContainerV1::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.params['operationId'] = operation_id unless operation_id.nil?
          command.query['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Lists all operations in a project in a specific zone or all zones.
        # @param [String] project_id
        #   Deprecated. The Google Developers Console [project ID or project number](https:
        #   //`$universe.dns_names.final_documentation_domain`/resource-manager/docs/
        #   creating-managing-projects). This field has been deprecated and replaced by
        #   the parent field.
        # @param [String] zone
        #   Deprecated. The name of the Google Compute Engine [zone](https://`$universe.
        #   dns_names.final_documentation_domain`/compute/docs/zones#available) to return
        #   operations for, or `-` for all zones. This field has been deprecated and
        #   replaced by the parent field.
        # @param [String] parent
        #   The parent (project and location) where the operations will be listed.
        #   Specified in the format `projects/*/locations/*`. Location "-" matches all
        #   zones and all regions.
        # @param [String] fields
        #   Selector specifying which fields to include in a partial response.
        # @param [String] quota_user
        #   Available to use for quota purposes for server-side applications. Can be any
        #   arbitrary string assigned to a user, but should not exceed 40 characters.
        # @param [Google::Apis::RequestOptions] options
        #   Request-specific options
        #
        # @yield [result, err] Result & error if block supplied
        # @yieldparam result [Google::Apis::ContainerV1::ListOperationsResponse] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::ContainerV1::ListOperationsResponse]
        #
        # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
        # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
        # @raise [Google::Apis::AuthorizationError] Authorization is required
        def list_zone_operations(project_id, zone, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations', options)
          command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation
          command.response_class = Google::Apis::ContainerV1::ListOperationsResponse
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['zone'] = zone unless zone.nil?
          command.query['parent'] = parent unless parent.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end

        protected

        def apply_command_defaults(command)
          command.query['key'] = key unless key.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
        end
      end
    end
  end
end
