2017-08-26 01:31:01 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# 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 ContainerV1beta1
|
2018-04-15 00:36:03 +00:00
|
|
|
# Kubernetes Engine API
|
2017-08-26 01:31:01 +00:00
|
|
|
#
|
2018-12-01 00:36:27 +00:00
|
|
|
# Builds and manages container-based applications, powered by the open source
|
|
|
|
# Kubernetes technology.
|
2017-08-26 01:31:01 +00:00
|
|
|
#
|
|
|
|
# @example
|
|
|
|
# require 'google/apis/container_v1beta1'
|
|
|
|
#
|
|
|
|
# Container = Google::Apis::ContainerV1beta1 # Alias the module
|
|
|
|
# service = Container::ContainerService.new
|
|
|
|
#
|
|
|
|
# @see https://cloud.google.com/container-engine/
|
|
|
|
class ContainerService < Google::Apis::Core::BaseService
|
|
|
|
# @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('https://container.googleapis.com/', '')
|
|
|
|
@batch_path = 'batch'
|
|
|
|
end
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Lists subnetworks that can be used for creating clusters in a project.
|
2018-04-15 00:36:03 +00:00
|
|
|
# @param [String] parent
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. The parent project where subnetworks are usable. Specified in the
|
|
|
|
# format `projects/*`.
|
2018-04-15 00:36:03 +00:00
|
|
|
# @param [String] filter
|
2020-08-15 00:38:25 +00:00
|
|
|
# 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.
|
2018-04-15 00:36:03 +00:00
|
|
|
# @param [Fixnum] page_size
|
2020-08-15 00:38:25 +00:00
|
|
|
# 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)
|
2018-04-15 00:36:03 +00:00
|
|
|
# @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::ContainerV1beta1::ListUsableSubnetworksResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/{+parent}/aggregated/usableSubnetworks', options)
|
2018-04-15 00:36:03 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::ListUsableSubnetworksResponse::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Returns configuration info about the Google Kubernetes Engine service.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project and location) of the server config to get, specified in the
|
|
|
|
# format `projects/*/locations/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) to return operations for. This
|
|
|
|
# field has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::ServerConfig] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/{+name}/serverConfig', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::ServerConfig::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Fetches locations that offer Google Kubernetes Engine.
|
2018-05-11 00:36:23 +00:00
|
|
|
# @param [String] parent
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Contains the name of the resource requested. Specified in the format
|
|
|
|
# `projects/*`.
|
2018-05-11 00:36:23 +00:00
|
|
|
# @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::ContainerV1beta1::ListLocationsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::ListLocationsResponse]
|
|
|
|
#
|
|
|
|
# @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_locations(parent, fields: nil, quota_user: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/{+parent}/locations', options)
|
2018-05-11 00:36:23 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::ListLocationsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::ListLocationsResponse
|
|
|
|
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
|
|
|
|
|
2017-08-26 01:31:01 +00:00
|
|
|
# Completes master IP rotation.
|
|
|
|
# @param [String] name
|
|
|
|
# The name (project, location, cluster id) of the cluster to complete IP
|
2020-05-07 20:07:42 +00:00
|
|
|
# rotation. Specified in the format `projects/*/locations/*/clusters/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:completeIpRotation', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::CompleteIpRotationRequest::Representation
|
|
|
|
command.request_object = complete_ip_rotation_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
2020-08-15 00:38:25 +00:00
|
|
|
# Compute Engine instances. By default, the cluster is created in the project's [
|
|
|
|
# default network](https://cloud.google.com/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.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] parent
|
2020-08-15 00:38:25 +00:00
|
|
|
# The parent (project and location) where the cluster will be created. Specified
|
|
|
|
# in the format `projects/*/locations/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+parent}/clusters', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::CreateClusterRequest::Representation
|
|
|
|
command.request_object = create_cluster_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2020-08-15 00:38:25 +00:00
|
|
|
# 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.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, cluster) of the cluster to delete. Specified in
|
|
|
|
# the format `projects/*/locations/*/clusters/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] cluster_id
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the cluster to delete. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
|
|
|
# This field has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2018-05-18 00:36:22 +00:00
|
|
|
# Gets the details for a specific cluster.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, cluster) of the cluster to retrieve. Specified in
|
|
|
|
# the format `projects/*/locations/*/clusters/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] cluster_id
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the cluster to retrieve. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
|
|
|
# This field has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::Cluster] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Cluster::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2020-08-15 00:38:25 +00:00
|
|
|
# Gets the public component of the cluster signing keys in JSON Web Key format.
|
2019-01-12 00:37:06 +00:00
|
|
|
# This API is not yet intended for general use, and is not available for all
|
|
|
|
# clusters.
|
|
|
|
# @param [String] parent
|
2020-08-15 00:38:25 +00:00
|
|
|
# The cluster (project, location, cluster id) to get keys for. Specified in the
|
|
|
|
# format `projects/*/locations/*/clusters/*`.
|
2019-01-12 00:37:06 +00:00
|
|
|
# @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::ContainerV1beta1::GetJsonWebKeysResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/{+parent}/jwks', options)
|
2019-01-12 00:37:06 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::GetJsonWebKeysResponse::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2017-08-26 01:31:01 +00:00
|
|
|
# Lists all clusters owned by a project in either the specified zone or all
|
|
|
|
# zones.
|
|
|
|
# @param [String] parent
|
2020-08-15 00:38:25 +00:00
|
|
|
# The parent (project and location) where the clusters will be listed. Specified
|
|
|
|
# in the format `projects/*/locations/*`. Location "-" matches all zones and all
|
|
|
|
# regions.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the parent field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides,
|
|
|
|
# or "-" for all zones. This field has been deprecated and replaced by the
|
|
|
|
# parent field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::ListClustersResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/{+parent}/clusters', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::ListClustersResponse::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2018-05-18 00:36:22 +00:00
|
|
|
# Sets the addons for a specific cluster.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, cluster) of the cluster to set addons. Specified
|
|
|
|
# in the format `projects/*/locations/*/clusters/*`.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:setAddons', options)
|
2017-11-10 00:35:09 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetAddonsConfigRequest::Representation
|
|
|
|
command.request_object = set_addons_config_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2017-08-26 01:31:01 +00:00
|
|
|
# Enables or disables the ABAC authorization mechanism on a cluster.
|
|
|
|
# @param [String] name
|
|
|
|
# The name (project, location, cluster id) of the cluster to set legacy abac.
|
2020-05-07 20:07:42 +00:00
|
|
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:setLegacyAbac', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetLegacyAbacRequest::Representation
|
|
|
|
command.request_object = set_legacy_abac_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2020-08-15 00:38:25 +00:00
|
|
|
# Sets the locations for a specific cluster. Deprecated. Use [projects.locations.
|
|
|
|
# clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/
|
|
|
|
# rest/v1beta1/projects.locations.clusters/update) instead.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] name
|
|
|
|
# The name (project, location, cluster) of the cluster to set locations.
|
2020-05-07 20:07:42 +00:00
|
|
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:setLocations', options)
|
2017-11-10 00:35:09 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetLocationsRequest::Representation
|
|
|
|
command.request_object = set_locations_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2018-05-18 00:36:22 +00:00
|
|
|
# Sets the logging service for a specific cluster.
|
2017-11-03 00:35:37 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, cluster) of the cluster to set logging. Specified
|
|
|
|
# in the format `projects/*/locations/*/clusters/*`.
|
2017-11-03 00:35:37 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:setLogging', options)
|
2017-11-03 00:35:37 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetLoggingServiceRequest::Representation
|
|
|
|
command.request_object = set_logging_service_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2017-09-21 00:37:23 +00:00
|
|
|
# Sets the maintenance policy for a cluster.
|
|
|
|
# @param [String] name
|
|
|
|
# The name (project, location, cluster id) of the cluster to set maintenance
|
2020-08-15 00:38:25 +00:00
|
|
|
# policy. Specified in the format `projects/*/locations/*/clusters/*`.
|
2017-09-21 00:37:23 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:setMaintenancePolicy', options)
|
2017-09-21 00:37:23 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetMaintenancePolicyRequest::Representation
|
|
|
|
command.request_object = set_maintenance_policy_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2020-08-15 00:38:25 +00:00
|
|
|
# Sets master auth materials. Currently supports changing the admin password or
|
|
|
|
# a specific cluster, either via password generation or explicitly setting the
|
|
|
|
# password.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, cluster) of the cluster to set auth. Specified in
|
|
|
|
# the format `projects/*/locations/*/clusters/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:setMasterAuth', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetMasterAuthRequest::Representation
|
|
|
|
command.request_object = set_master_auth_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2018-05-18 00:36:22 +00:00
|
|
|
# Sets the monitoring service for a specific cluster.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] name
|
|
|
|
# The name (project, location, cluster) of the cluster to set monitoring.
|
2020-05-07 20:07:42 +00:00
|
|
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:setMonitoring', options)
|
2017-11-10 00:35:09 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetMonitoringServiceRequest::Representation
|
|
|
|
command.request_object = set_monitoring_service_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Enables or disables Network Policy for a cluster.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] name
|
|
|
|
# The name (project, location, cluster id) of the cluster to set networking
|
2020-05-07 20:07:42 +00:00
|
|
|
# policy. Specified in the format `projects/*/locations/*/clusters/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:setNetworkPolicy', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetNetworkPolicyRequest::Representation
|
|
|
|
command.request_object = set_network_policy_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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 id) of the cluster to set labels.
|
2020-05-07 20:07:42 +00:00
|
|
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:setResourceLabels', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetLabelsRequest::Representation
|
|
|
|
command.request_object = set_labels_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Starts master IP rotation.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, cluster id) of the cluster to start IP rotation.
|
|
|
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:startIpRotation', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::StartIpRotationRequest::Representation
|
|
|
|
command.request_object = start_ip_rotation_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2018-05-18 00:36:22 +00:00
|
|
|
# Updates the settings for a specific cluster.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, cluster) of the cluster to update. Specified in
|
|
|
|
# the format `projects/*/locations/*/clusters/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:put, 'v1beta1/{+name}', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::UpdateClusterRequest::Representation
|
|
|
|
command.request_object = update_cluster_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2018-05-18 00:36:22 +00:00
|
|
|
# Updates the master for a specific cluster.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, cluster) of the cluster to update. Specified in
|
|
|
|
# the format `projects/*/locations/*/clusters/*`.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:updateMaster', options)
|
2017-11-10 00:35:09 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::UpdateMasterRequest::Representation
|
|
|
|
command.request_object = update_master_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2017-08-26 01:31:01 +00:00
|
|
|
# Creates a node pool for a cluster.
|
|
|
|
# @param [String] parent
|
2020-08-15 00:38:25 +00:00
|
|
|
# The parent (project, location, cluster id) where the node pool will be created.
|
|
|
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+parent}/nodePools', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::CreateNodePoolRequest::Representation
|
|
|
|
command.request_object = create_node_pool_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, cluster, node pool id) of the node pool to delete.
|
|
|
|
# Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] cluster_id
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the cluster. This field has been deprecated
|
|
|
|
# and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] node_pool_id
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the node pool to delete. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://developers.google.com/console/help/new/#projectnumber). This
|
|
|
|
# field has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
|
|
|
# This field has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Retrieves the requested node pool.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, cluster, node pool id) of the node pool to get.
|
|
|
|
# Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] cluster_id
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the cluster. This field has been deprecated
|
|
|
|
# and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] node_pool_id
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the node pool. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://developers.google.com/console/help/new/#projectnumber). This
|
|
|
|
# field has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
|
|
|
# This field has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::NodePool] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::NodePool::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
2020-08-15 00:38:25 +00:00
|
|
|
# The parent (project, location, cluster id) where the node pools will be listed.
|
|
|
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] cluster_id
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the cluster. This field has been deprecated
|
|
|
|
# and replaced by the parent field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://developers.google.com/console/help/new/#projectnumber). This
|
|
|
|
# field has been deprecated and replaced by the parent field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
|
|
|
# This field has been deprecated and replaced by the parent field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::ListNodePoolsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/{+parent}/nodePools', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::ListNodePoolsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2020-08-15 00:38:25 +00:00
|
|
|
# Rolls back a previously Aborted or Failed NodePool upgrade. This makes no
|
|
|
|
# changes if the last upgrade successfully completed.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] name
|
|
|
|
# The name (project, location, cluster, node pool id) of the node poll to
|
2020-08-15 00:38:25 +00:00
|
|
|
# rollback upgrade. Specified in the format `projects/*/locations/*/clusters/*/
|
|
|
|
# nodePools/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:rollback', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::RollbackNodePoolUpgradeRequest::Representation
|
|
|
|
command.request_object = rollback_node_pool_upgrade_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2017-11-10 00:35:09 +00:00
|
|
|
# Sets the autoscaling settings of a specific node pool.
|
|
|
|
# @param [String] name
|
|
|
|
# The name (project, location, cluster, node pool) of the node pool to set
|
2020-08-15 00:38:25 +00:00
|
|
|
# autoscaler settings. Specified in the format `projects/*/locations/*/clusters/*
|
|
|
|
# /nodePools/*`.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:setAutoscaling', options)
|
2017-11-10 00:35:09 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetNodePoolAutoscalingRequest::Representation
|
|
|
|
command.request_object = set_node_pool_autoscaling_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2017-08-26 01:31:01 +00:00
|
|
|
# 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
|
2020-08-15 00:38:25 +00:00
|
|
|
# management properties. Specified in the format `projects/*/locations/*/
|
|
|
|
# clusters/*/nodePools/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:setManagement', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetNodePoolManagementRequest::Representation
|
|
|
|
command.request_object = set_node_pool_management_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
feat: Automated regeneration of container v1beta1 client (#1732)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-12-11 02:08:24,576 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-container-v1beta1
nothing to commit, working tree clean
2020-12-11 02:08:24,607 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth container v1beta1
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth container v1beta1
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching minitest 5.14.2
Installing minitest 5.14.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.8
Installing tzinfo 1.2.8
Fetching activesupport 5.0.7.2
Installing activesupport 5.0.7.2
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.1.4
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Fetching coderay 1.1.3
Installing coderay 1.1.3
Fetching json 2.3.1
Installing json 2.3.1 with native extensions
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Using sync 0.5.0
Fetching tins 1.26.0
Installing tins 1.26.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching crack 0.4.4
Installing crack 0.4.4
Fetching declarative 0.0.20
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Installing fakefs 0.20.1
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching ruby2_keywords 0.0.2
Installing ruby2_keywords 0.0.2
Fetching faraday 1.1.0
Installing faraday 1.1.0
Fetching gems 1.2.0
Installing gems 1.2.0
Fetching github-markup 1.7.0
Installing github-markup 1.7.0
Fetching jwt 2.2.2
Installing jwt 2.2.2
Fetching memoist 0.16.2
Installing memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching os 0.9.6
Installing os 0.9.6
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching googleauth 0.14.0
Installing googleauth 0.14.0
Fetching httpclient 2.8.3
Installing httpclient 2.8.3
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching rexml 3.2.4
Installing rexml 3.2.4
Using google-api-client 0.51.0 from source at `.`
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.1104
Installing mime-types-data 3.2020.1104
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching httparty 0.18.1
Installing httparty 0.18.1
Fetching rspec-support 3.10.0
Installing rspec-support 3.10.0
Fetching rspec-core 3.10.0
Installing rspec-core 3.10.0
Fetching rspec-expectations 3.10.0
Installing rspec-expectations 3.10.0
Fetching rspec-mocks 3.10.0
Installing rspec-mocks 3.10.0
Fetching rspec 3.10.0
Installing rspec 3.10.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching launchy 2.5.0
Installing launchy 2.5.0
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching logging 2.3.0
Installing logging 2.3.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching opencensus 0.5.0
Installing opencensus 0.5.0
Fetching parallel 1.20.1
Installing parallel 1.20.1
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.3
Installing powerpack 0.1.3
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching pry-byebug 3.9.0
Installing pry-byebug 3.9.0
Fetching yard 0.9.25
Installing yard 0.9.25
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Fetching redcarpet 3.5.0
Installing redcarpet 3.5.0 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Installing webmock 2.3.2
Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.
If you are upgrading your Rails application from an older version of Rails:
Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.
If you are starting a NEW Rails application, you can ignore this notice.
For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen generated --api=container.v1beta1 --names-out=/workspace/api_names_out.yaml
Loading container, version v1beta1 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/container.v1beta1.json
W, [2020-12-11T10:08:46.393856 #242] WARN -- : Found reserved property 'taint'
W, [2020-12-11T10:08:46.393921 #242] WARN -- : Changed to 'taint_prop'
conflict google/apis/container_v1beta1.rb
<ntainer_v1beta1.rb? (enter "h" for help) [Ynaqdhm] a
force google/apis/container_v1beta1.rb
conflict google/apis/container_v1beta1/service.rb
force google/apis/container_v1beta1/service.rb
conflict google/apis/container_v1beta1/classes.rb
force google/apis/container_v1beta1/classes.rb
conflict google/apis/container_v1beta1/representations.rb
force google/apis/container_v1beta1/representations.rb
conflict /workspace/api_names_out.yaml
force /workspace/api_names_out.yaml
2020-12-11 02:08:50,966 synthtool [DEBUG] > Wrote metadata to generated/google/apis/container_v1beta1/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/container_v1beta1/synth.metadata.
```
</details>
Full log will be available here:
https://source.cloud.google.com/results/invocations/461ec1a9-2841-43d5-b073-8c3cf2cfc89e/targets
- [ ] To automatically regenerate this PR, check this box.
2020-12-11 10:24:04 +00:00
|
|
|
# SetNodePoolSizeRequest sets the size of a node pool. The new size will be used
|
|
|
|
# for all replicas, including future replicas created by modifying NodePool.
|
|
|
|
# locations.
|
2018-01-13 00:36:11 +00:00
|
|
|
# @param [String] name
|
|
|
|
# The name (project, location, cluster, node pool id) of the node pool to set
|
2020-08-15 00:38:25 +00:00
|
|
|
# size. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
|
2018-01-13 00:36:11 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:setSize', options)
|
2018-01-13 00:36:11 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetNodePoolSizeRequest::Representation
|
|
|
|
command.request_object = set_node_pool_size_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2018-02-16 00:36:10 +00:00
|
|
|
# Updates the version and/or image type of a specific node pool.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, cluster, node pool) of the node pool to update.
|
|
|
|
# Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:put, 'v1beta1/{+name}', options)
|
2017-11-10 00:35:09 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::UpdateNodePoolRequest::Representation
|
|
|
|
command.request_object = update_node_pool_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2020-08-15 00:38:25 +00:00
|
|
|
# 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. This API is not yet intended for general use, and is
|
|
|
|
# not available for all clusters.
|
2019-01-12 00:37:06 +00:00
|
|
|
# @param [String] parent
|
2020-08-15 00:38:25 +00:00
|
|
|
# The cluster (project, location, cluster id) to get the discovery document for.
|
|
|
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
2019-01-12 00:37:06 +00:00
|
|
|
# @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::ContainerV1beta1::GetOpenIdConfigResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/{+parent}/.well-known/openid-configuration', options)
|
2019-01-12 00:37:06 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::GetOpenIdConfigResponse::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2017-08-26 01:31:01 +00:00
|
|
|
# Cancels the specified operation.
|
|
|
|
# @param [String] name
|
|
|
|
# The name (project, location, operation id) of the operation to cancel.
|
2020-05-07 20:07:42 +00:00
|
|
|
# Specified in the format `projects/*/locations/*/operations/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Empty] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::CancelOperationRequest::Representation
|
|
|
|
command.request_object = cancel_operation_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Empty::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, operation id) of the operation to get. Specified
|
|
|
|
# in the format `projects/*/locations/*/operations/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] operation_id
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The server-assigned `name` of the operation. This field
|
|
|
|
# has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
|
|
|
# This field has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Lists all operations in a project in the specified zone or all zones.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] parent
|
|
|
|
# The parent (project and location) where the operations will be listed.
|
2020-08-15 00:38:25 +00:00
|
|
|
# Specified in the format `projects/*/locations/*`. Location "-" matches all
|
|
|
|
# zones and all regions.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the parent field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) to return operations for, or `-`
|
|
|
|
# for all zones. This field has been deprecated and replaced by the parent
|
|
|
|
# field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::ListOperationsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/{+parent}/operations', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::ListOperationsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Returns configuration info about the Google Kubernetes Engine service.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) to return operations for. This
|
|
|
|
# field has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project and location) of the server config to get, specified in the
|
|
|
|
# format `projects/*/locations/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::ServerConfig] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/serverconfig', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::ServerConfig::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2018-05-18 00:36:22 +00:00
|
|
|
# Sets the addons for a specific cluster.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster to upgrade. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons', options)
|
2017-11-10 00:35:09 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetAddonsConfigRequest::Representation
|
|
|
|
command.request_object = set_addons_config_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2017-08-26 01:31:01 +00:00
|
|
|
# Completes master IP rotation.
|
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://developers.google.com/console/help/new/#projectnumber). This
|
|
|
|
# field has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster. This field has been deprecated
|
|
|
|
# and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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_zone_cluster_ip_rotation(project_id, zone, cluster_id, complete_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::CompleteIpRotationRequest::Representation
|
|
|
|
command.request_object = complete_ip_rotation_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
2020-08-15 00:38:25 +00:00
|
|
|
# Compute Engine instances. By default, the cluster is created in the project's [
|
|
|
|
# default network](https://cloud.google.com/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.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the parent field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
|
|
|
# This field has been deprecated and replaced by the parent field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::CreateClusterRequest::Representation
|
|
|
|
command.request_object = create_cluster_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2020-08-15 00:38:25 +00:00
|
|
|
# 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.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster to delete. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, cluster) of the cluster to delete. Specified in
|
|
|
|
# the format `projects/*/locations/*/clusters/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:delete, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2018-05-18 00:36:22 +00:00
|
|
|
# Gets the details for a specific cluster.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster to retrieve. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, cluster) of the cluster to retrieve. Specified in
|
|
|
|
# the format `projects/*/locations/*/clusters/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::Cluster] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Cluster::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster to update. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetLegacyAbacRequest::Representation
|
|
|
|
command.request_object = set_legacy_abac_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the parent field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides,
|
|
|
|
# or "-" for all zones. This field has been deprecated and replaced by the
|
|
|
|
# parent field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] parent
|
2020-08-15 00:38:25 +00:00
|
|
|
# The parent (project and location) where the clusters will be listed. Specified
|
|
|
|
# in the format `projects/*/locations/*`. Location "-" matches all zones and all
|
|
|
|
# regions.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::ListClustersResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/clusters', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::ListClustersResponse::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2020-08-15 00:38:25 +00:00
|
|
|
# Sets the locations for a specific cluster. Deprecated. Use [projects.locations.
|
|
|
|
# clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/
|
|
|
|
# rest/v1beta1/projects.locations.clusters/update) instead.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster to upgrade. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations', options)
|
2017-11-10 00:35:09 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetLocationsRequest::Representation
|
|
|
|
command.request_object = set_locations_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2018-05-18 00:36:22 +00:00
|
|
|
# Sets the logging service for a specific cluster.
|
2017-11-03 00:35:37 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-11-03 00:35:37 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster to upgrade. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-11-03 00:35:37 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging', options)
|
2017-11-03 00:35:37 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetLoggingServiceRequest::Representation
|
|
|
|
command.request_object = set_logging_service_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2018-05-18 00:36:22 +00:00
|
|
|
# Updates the master for a specific cluster.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster to upgrade. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master', options)
|
2017-11-10 00:35:09 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::UpdateMasterRequest::Representation
|
|
|
|
command.request_object = update_master_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2018-05-18 00:36:22 +00:00
|
|
|
# Sets the monitoring service for a specific cluster.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster to upgrade. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring', options)
|
2017-11-10 00:35:09 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetMonitoringServiceRequest::Representation
|
|
|
|
command.request_object = set_monitoring_service_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2017-08-26 01:31:01 +00:00
|
|
|
# Sets labels on a cluster.
|
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://developers.google.com/console/help/new/#projectnumber). This
|
|
|
|
# field has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster. This field has been deprecated
|
|
|
|
# and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetLabelsRequest::Representation
|
|
|
|
command.request_object = set_labels_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::Operation
|
|
|
|
command.params['projectId'] = project_id unless project_id.nil?
|
2017-09-21 00:37:23 +00:00
|
|
|
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
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. The Google Developers Console [project ID or project number](https://
|
|
|
|
# support.google.com/cloud/answer/6158840).
|
2017-09-21 00:37:23 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. The name of the Google Compute Engine [zone](https://cloud.google.
|
|
|
|
# com/compute/docs/zones#available) in which the cluster resides.
|
2017-09-21 00:37:23 +00:00
|
|
|
# @param [String] cluster_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. The name of the cluster to update.
|
2017-09-21 00:37:23 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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_maintenance_policy(project_id, zone, cluster_id, set_maintenance_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy', options)
|
2017-09-21 00:37:23 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetMaintenancePolicyRequest::Representation
|
|
|
|
command.request_object = set_maintenance_policy_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::Operation
|
|
|
|
command.params['projectId'] = project_id unless project_id.nil?
|
2017-08-26 01:31:01 +00:00
|
|
|
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
|
|
|
|
|
2020-08-15 00:38:25 +00:00
|
|
|
# Sets master auth materials. Currently supports changing the admin password or
|
|
|
|
# a specific cluster, either via password generation or explicitly setting the
|
|
|
|
# password.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster to upgrade. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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_master_auth(project_id, zone, cluster_id, set_master_auth_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetMasterAuthRequest::Representation
|
|
|
|
command.request_object = set_master_auth_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Enables or disables Network Policy for a cluster.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://developers.google.com/console/help/new/#projectnumber). This
|
|
|
|
# field has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster. This field has been deprecated
|
|
|
|
# and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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_network_policy(project_id, zone, cluster_id, set_network_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetNetworkPolicyRequest::Representation
|
|
|
|
command.request_object = set_network_policy_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Starts master IP rotation.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://developers.google.com/console/help/new/#projectnumber). This
|
|
|
|
# field has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster. This field has been deprecated
|
|
|
|
# and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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_zone_cluster_ip_rotation(project_id, zone, cluster_id, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::StartIpRotationRequest::Representation
|
|
|
|
command.request_object = start_ip_rotation_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2018-05-18 00:36:22 +00:00
|
|
|
# Updates the settings for a specific cluster.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster to upgrade. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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_zone_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:put, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::UpdateClusterRequest::Representation
|
|
|
|
command.request_object = update_cluster_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2017-11-10 00:35:09 +00:00
|
|
|
# Sets the autoscaling settings of a specific node pool.
|
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster to upgrade. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] node_pool_id
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the node pool to upgrade. This field has
|
|
|
|
# been deprecated and replaced by the name field.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling', options)
|
2017-11-10 00:35:09 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetNodePoolAutoscalingRequest::Representation
|
|
|
|
command.request_object = set_node_pool_autoscaling_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2017-08-26 01:31:01 +00:00
|
|
|
# Creates a node pool for a cluster.
|
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://developers.google.com/console/help/new/#projectnumber). This
|
|
|
|
# field has been deprecated and replaced by the parent field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the parent field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster. This field has been deprecated
|
|
|
|
# and replaced by the parent field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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_zone_cluster_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::CreateNodePoolRequest::Representation
|
|
|
|
command.request_object = create_node_pool_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://developers.google.com/console/help/new/#projectnumber). This
|
|
|
|
# field has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster. This field has been deprecated
|
|
|
|
# and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] node_pool_id
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the node pool to delete. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, cluster, node pool id) of the node pool to delete.
|
|
|
|
# Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:delete, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Retrieves the requested node pool.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://developers.google.com/console/help/new/#projectnumber). This
|
|
|
|
# field has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster. This field has been deprecated
|
|
|
|
# and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] node_pool_id
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the node pool. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, cluster, node pool id) of the node pool to get.
|
|
|
|
# Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::NodePool] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::NodePool::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://developers.google.com/console/help/new/#projectnumber). This
|
|
|
|
# field has been deprecated and replaced by the parent field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the parent field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster. This field has been deprecated
|
|
|
|
# and replaced by the parent field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] parent
|
2020-08-15 00:38:25 +00:00
|
|
|
# The parent (project, location, cluster id) where the node pools will be listed.
|
|
|
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::ListNodePoolsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::ListNodePoolsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2020-08-15 00:38:25 +00:00
|
|
|
# Rolls back a previously Aborted or Failed NodePool upgrade. This makes no
|
|
|
|
# changes if the last upgrade successfully completed.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster to rollback. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] node_pool_id
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the node pool to rollback. This field has
|
|
|
|
# been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::RollbackNodePoolUpgradeRequest::Representation
|
|
|
|
command.request_object = rollback_node_pool_upgrade_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster to update. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] node_pool_id
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the node pool to update. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetNodePoolManagementRequest::Representation
|
|
|
|
command.request_object = set_node_pool_management_request_object
|
2017-11-10 00:35:09 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
2018-01-13 00:36:11 +00:00
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
feat: Automated regeneration of container v1beta1 client (#1732)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-12-11 02:08:24,576 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-container-v1beta1
nothing to commit, working tree clean
2020-12-11 02:08:24,607 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth container v1beta1
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth container v1beta1
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching minitest 5.14.2
Installing minitest 5.14.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.8
Installing tzinfo 1.2.8
Fetching activesupport 5.0.7.2
Installing activesupport 5.0.7.2
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.1.4
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Fetching coderay 1.1.3
Installing coderay 1.1.3
Fetching json 2.3.1
Installing json 2.3.1 with native extensions
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Using sync 0.5.0
Fetching tins 1.26.0
Installing tins 1.26.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching crack 0.4.4
Installing crack 0.4.4
Fetching declarative 0.0.20
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Installing fakefs 0.20.1
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching ruby2_keywords 0.0.2
Installing ruby2_keywords 0.0.2
Fetching faraday 1.1.0
Installing faraday 1.1.0
Fetching gems 1.2.0
Installing gems 1.2.0
Fetching github-markup 1.7.0
Installing github-markup 1.7.0
Fetching jwt 2.2.2
Installing jwt 2.2.2
Fetching memoist 0.16.2
Installing memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching os 0.9.6
Installing os 0.9.6
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching googleauth 0.14.0
Installing googleauth 0.14.0
Fetching httpclient 2.8.3
Installing httpclient 2.8.3
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching rexml 3.2.4
Installing rexml 3.2.4
Using google-api-client 0.51.0 from source at `.`
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.1104
Installing mime-types-data 3.2020.1104
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching httparty 0.18.1
Installing httparty 0.18.1
Fetching rspec-support 3.10.0
Installing rspec-support 3.10.0
Fetching rspec-core 3.10.0
Installing rspec-core 3.10.0
Fetching rspec-expectations 3.10.0
Installing rspec-expectations 3.10.0
Fetching rspec-mocks 3.10.0
Installing rspec-mocks 3.10.0
Fetching rspec 3.10.0
Installing rspec 3.10.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching launchy 2.5.0
Installing launchy 2.5.0
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching logging 2.3.0
Installing logging 2.3.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching opencensus 0.5.0
Installing opencensus 0.5.0
Fetching parallel 1.20.1
Installing parallel 1.20.1
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.3
Installing powerpack 0.1.3
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching pry-byebug 3.9.0
Installing pry-byebug 3.9.0
Fetching yard 0.9.25
Installing yard 0.9.25
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Fetching redcarpet 3.5.0
Installing redcarpet 3.5.0 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Installing webmock 2.3.2
Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.
If you are upgrading your Rails application from an older version of Rails:
Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.
If you are starting a NEW Rails application, you can ignore this notice.
For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen generated --api=container.v1beta1 --names-out=/workspace/api_names_out.yaml
Loading container, version v1beta1 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/container.v1beta1.json
W, [2020-12-11T10:08:46.393856 #242] WARN -- : Found reserved property 'taint'
W, [2020-12-11T10:08:46.393921 #242] WARN -- : Changed to 'taint_prop'
conflict google/apis/container_v1beta1.rb
<ntainer_v1beta1.rb? (enter "h" for help) [Ynaqdhm] a
force google/apis/container_v1beta1.rb
conflict google/apis/container_v1beta1/service.rb
force google/apis/container_v1beta1/service.rb
conflict google/apis/container_v1beta1/classes.rb
force google/apis/container_v1beta1/classes.rb
conflict google/apis/container_v1beta1/representations.rb
force google/apis/container_v1beta1/representations.rb
conflict /workspace/api_names_out.yaml
force /workspace/api_names_out.yaml
2020-12-11 02:08:50,966 synthtool [DEBUG] > Wrote metadata to generated/google/apis/container_v1beta1/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/container_v1beta1/synth.metadata.
```
</details>
Full log will be available here:
https://source.cloud.google.com/results/invocations/461ec1a9-2841-43d5-b073-8c3cf2cfc89e/targets
- [ ] To automatically regenerate this PR, check this box.
2020-12-11 10:24:04 +00:00
|
|
|
# SetNodePoolSizeRequest sets the size of a node pool. The new size will be used
|
|
|
|
# for all replicas, including future replicas created by modifying NodePool.
|
|
|
|
# locations.
|
2018-01-13 00:36:11 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2018-01-13 00:36:11 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster to update. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2018-01-13 00:36:11 +00:00
|
|
|
# @param [String] node_pool_id
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the node pool to update. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2018-01-13 00:36:11 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize', options)
|
2018-01-13 00:36:11 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::SetNodePoolSizeRequest::Representation
|
|
|
|
command.request_object = set_node_pool_size_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
2017-11-10 00:35:09 +00:00
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2018-02-16 00:36:10 +00:00
|
|
|
# Updates the version and/or image type of a specific node pool.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] cluster_id
|
|
|
|
# Required. Deprecated. The name of the cluster to upgrade. This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [String] node_pool_id
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the node pool to upgrade. This field has
|
|
|
|
# been deprecated and replaced by the name field.
|
2017-11-10 00:35:09 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, update_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update', options)
|
2017-11-10 00:35:09 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::UpdateNodePoolRequest::Representation
|
|
|
|
command.request_object = update_node_pool_request_object
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the operation resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] operation_id
|
|
|
|
# Required. Deprecated. The server-assigned `name` of the operation. This field
|
|
|
|
# has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [Google::Apis::ContainerV1beta1::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::ContainerV1beta1::Empty] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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_zone_operation(project_id, zone, operation_id, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.request_representation = Google::Apis::ContainerV1beta1::CancelOperationRequest::Representation
|
|
|
|
command.request_object = cancel_operation_request_object
|
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Empty::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
2018-03-09 00:36:06 +00:00
|
|
|
# This field has been deprecated and replaced by the name field.
|
2020-08-15 00:38:25 +00:00
|
|
|
# @param [String] operation_id
|
|
|
|
# Required. Deprecated. The server-assigned `name` of the operation. This field
|
|
|
|
# has been deprecated and replaced by the name field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] name
|
2020-08-15 00:38:25 +00:00
|
|
|
# The name (project, location, operation id) of the operation to get. Specified
|
|
|
|
# in the format `projects/*/locations/*/operations/*`.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::Operation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|
|
|
|
|
2019-04-25 00:37:02 +00:00
|
|
|
# Lists all operations in a project in the specified zone or all zones.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] project_id
|
2020-01-09 00:37:48 +00:00
|
|
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2020-08-15 00:38:25 +00:00
|
|
|
# number](https://support.google.com/cloud/answer/6158840). This field has been
|
|
|
|
# deprecated and replaced by the parent field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] zone
|
2020-08-15 00:38:25 +00:00
|
|
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
|
|
|
# cloud.google.com/compute/docs/zones#available) to return operations for, or `-`
|
|
|
|
# for all zones. This field has been deprecated and replaced by the parent
|
|
|
|
# field.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @param [String] parent
|
|
|
|
# The parent (project and location) where the operations will be listed.
|
2020-08-15 00:38:25 +00:00
|
|
|
# Specified in the format `projects/*/locations/*`. Location "-" matches all
|
|
|
|
# zones and all regions.
|
2017-08-26 01:31:01 +00:00
|
|
|
# @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::ContainerV1beta1::ListOperationsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::ContainerV1beta1::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)
|
2019-05-10 00:37:26 +00:00
|
|
|
command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/operations', options)
|
2017-08-26 01:31:01 +00:00
|
|
|
command.response_representation = Google::Apis::ContainerV1beta1::ListOperationsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::ContainerV1beta1::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
|