generated/google/apis/container_v1/service.rb in google-api-client-0.11.3 vs generated/google/apis/container_v1/service.rb in google-api-client-0.12.0
- old
+ new
@@ -53,15 +53,15 @@
# The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine [zone](/compute/docs/zones#available)
# to return operations for.
- # @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 [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::ServerConfig] parsed result object
@@ -70,18 +70,18 @@
# @return [Google::Apis::ContainerV1::ServerConfig]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_project_zone_serverconfig(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
+ def get_project_zone_serverconfig(project_id, zone, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/serverconfig', options)
command.response_representation = Google::Apis::ContainerV1::ServerConfig::Representation
command.response_class = Google::Apis::ContainerV1::ServerConfig
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
- command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Lists all clusters owned by a project in either the specified zone or all
# zones.
@@ -90,15 +90,15 @@
# number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides, or "-" for all zones.
- # @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 [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::ListClustersResponse] parsed result object
@@ -107,18 +107,18 @@
# @return [Google::Apis::ContainerV1::ListClustersResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_zone_clusters(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
+ def list_project_zone_clusters(project_id, zone, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters', options)
command.response_representation = Google::Apis::ContainerV1::ListClustersResponse::Representation
command.response_class = Google::Apis::ContainerV1::ListClustersResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
- command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Sets labels on a cluster.
# @param [String] project_id
@@ -129,15 +129,15 @@
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster.
# @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_request_object
- # @param [String] fields
- # Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
@@ -146,21 +146,21 @@
# @return [Google::Apis::ContainerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options)
command.request_representation = Google::Apis::ContainerV1::SetLabelsRequest::Representation
command.request_object = set_labels_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
- command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Creates a cluster, consisting of the specified number and type of Google
# Compute Engine instances.
@@ -178,15 +178,15 @@
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [Google::Apis::ContainerV1::CreateClusterRequest] create_cluster_request_object
- # @param [String] fields
- # Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
@@ -195,20 +195,20 @@
# @return [Google::Apis::ContainerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def create_cluster(project_id, zone, create_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def create_cluster(project_id, zone, create_cluster_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters', options)
command.request_representation = Google::Apis::ContainerV1::CreateClusterRequest::Representation
command.request_object = create_cluster_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
- command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Completes master IP rotation.
# @param [String] project_id
@@ -219,15 +219,15 @@
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster.
# @param [Google::Apis::ContainerV1::CompleteIpRotationRequest] complete_ip_rotation_request_object
- # @param [String] fields
- # Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
@@ -236,21 +236,21 @@
# @return [Google::Apis::ContainerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def complete_cluster_ip_rotation(project_id, zone, cluster_id, complete_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def complete_cluster_ip_rotation(project_id, zone, cluster_id, complete_ip_rotation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation', options)
command.request_representation = Google::Apis::ContainerV1::CompleteIpRotationRequest::Representation
command.request_object = complete_ip_rotation_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
- command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Enables or disables the ABAC authorization mechanism on a cluster.
# @param [String] project_id
@@ -261,15 +261,15 @@
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster to update.
# @param [Google::Apis::ContainerV1::SetLegacyAbacRequest] set_legacy_abac_request_object
- # @param [String] fields
- # Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
@@ -278,21 +278,21 @@
# @return [Google::Apis::ContainerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def legacy_project_zone_cluster_abac(project_id, zone, cluster_id, set_legacy_abac_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def legacy_project_zone_cluster_abac(project_id, zone, cluster_id, set_legacy_abac_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac', options)
command.request_representation = Google::Apis::ContainerV1::SetLegacyAbacRequest::Representation
command.request_object = set_legacy_abac_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
- command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Gets the details of a specific cluster.
# @param [String] project_id
@@ -302,15 +302,15 @@
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster to retrieve.
- # @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 [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::Cluster] parsed result object
@@ -319,19 +319,19 @@
# @return [Google::Apis::ContainerV1::Cluster]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
+ def get_project_zone_cluster(project_id, zone, cluster_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
command.response_representation = Google::Apis::ContainerV1::Cluster::Representation
command.response_class = Google::Apis::ContainerV1::Cluster
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
- command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Updates the settings of a specific cluster.
# @param [String] project_id
@@ -342,15 +342,15 @@
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster to upgrade.
# @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_request_object
- # @param [String] fields
- # Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
@@ -359,21 +359,21 @@
# @return [Google::Apis::ContainerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def update_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def update_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:put, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation
command.request_object = update_cluster_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
- command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Start master IP rotation.
# @param [String] project_id
@@ -384,15 +384,15 @@
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster.
# @param [Google::Apis::ContainerV1::StartIpRotationRequest] start_ip_rotation_request_object
- # @param [String] fields
- # Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
@@ -401,21 +401,21 @@
# @return [Google::Apis::ContainerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def start_cluster_ip_rotation(project_id, zone, cluster_id, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def start_cluster_ip_rotation(project_id, zone, cluster_id, start_ip_rotation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation', options)
command.request_representation = Google::Apis::ContainerV1::StartIpRotationRequest::Representation
command.request_object = start_ip_rotation_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
- command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Used to set master auth materials. Currently supports :-
# Changing the admin password of a specific cluster.
@@ -428,15 +428,15 @@
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster to upgrade.
# @param [Google::Apis::ContainerV1::SetMasterAuthRequest] set_master_auth_request_object
- # @param [String] fields
- # Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
@@ -445,21 +445,21 @@
# @return [Google::Apis::ContainerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def set_cluster_master_auth(project_id, zone, cluster_id, set_master_auth_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def set_cluster_master_auth(project_id, zone, cluster_id, set_master_auth_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth', options)
command.request_representation = Google::Apis::ContainerV1::SetMasterAuthRequest::Representation
command.request_object = set_master_auth_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
- command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Deletes the cluster, including the Kubernetes endpoint and all worker
# nodes.
@@ -475,15 +475,15 @@
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster to delete.
- # @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 [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
@@ -492,39 +492,41 @@
# @return [Google::Apis::ContainerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def delete_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
+ def delete_project_zone_cluster(project_id, zone, cluster_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
- command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
- # Deletes a node pool from a cluster.
+ # Roll back the previously Aborted or Failed NodePool upgrade.
+ # This will be an no-op if the last upgrade successfully completed.
# @param [String] project_id
# The Google Developers Console [project ID or project
- # number](https://developers.google.com/console/help/new/#projectnumber).
+ # number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
- # The name of the cluster.
+ # The name of the cluster to rollback.
# @param [String] node_pool_id
- # The name of the node pool to delete.
- # @param [String] fields
- # Selector specifying which fields to include in a partial response.
+ # The name of the node pool to rollback.
+ # @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
# @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 [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
@@ -533,41 +535,41 @@
# @return [Google::Apis::ContainerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
- command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
+ def rollback_node_pool_upgrade(project_id, zone, cluster_id, node_pool_id, rollback_node_pool_upgrade_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options)
+ command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation
+ command.request_object = rollback_node_pool_upgrade_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
- command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
- # Sets the NodeManagement options for a node pool.
+ # Creates a node pool for a cluster.
# @param [String] project_id
# The Google Developers Console [project ID or project
- # number](https://support.google.com/cloud/answer/6158840).
+ # number](https://developers.google.com/console/help/new/#projectnumber).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
- # The name of the cluster to update.
- # @param [String] node_pool_id
- # The name of the node pool to update.
- # @param [Google::Apis::ContainerV1::SetNodePoolManagementRequest] set_node_pool_management_request_object
- # @param [String] fields
- # Selector specifying which fields to include in a partial response.
+ # The name of the cluster.
+ # @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object
# @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 [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
@@ -576,83 +578,84 @@
# @return [Google::Apis::ContainerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def set_project_zone_cluster_node_pool_management(project_id, zone, cluster_id, node_pool_id, set_node_pool_management_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
- command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement', options)
- command.request_representation = Google::Apis::ContainerV1::SetNodePoolManagementRequest::Representation
- command.request_object = set_node_pool_management_request_object
+ def create_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
+ command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation
+ command.request_object = create_node_pool_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
- command.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?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
- # Lists the node pools for a cluster.
+ # Retrieves the node pool requested.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://developers.google.com/console/help/new/#projectnumber).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster.
- # @param [String] fields
- # Selector specifying which fields to include in a partial response.
+ # @param [String] node_pool_id
+ # The name of the node pool.
# @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 [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
- # @yieldparam result [Google::Apis::ContainerV1::ListNodePoolsResponse] parsed result object
+ # @yieldparam result [Google::Apis::ContainerV1::NodePool] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
- # @return [Google::Apis::ContainerV1::ListNodePoolsResponse]
+ # @return [Google::Apis::ContainerV1::NodePool]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_project_zone_cluster_node_pools(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
- command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
- command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation
- command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse
+ def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, quota_user: nil, fields: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
+ command.response_representation = Google::Apis::ContainerV1::NodePool::Representation
+ command.response_class = Google::Apis::ContainerV1::NodePool
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
- command.query['fields'] = fields unless fields.nil?
+ command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
- # Roll back the previously Aborted or Failed NodePool upgrade.
- # This will be an no-op if the last upgrade successfully completed.
+ # Sets the NodeManagement options for a node pool.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
- # The name of the cluster to rollback.
+ # The name of the cluster to update.
# @param [String] node_pool_id
- # The name of the node pool to rollback.
- # @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
- # @param [String] fields
- # Selector specifying which fields to include in a partial response.
+ # The name of the node pool to update.
+ # @param [Google::Apis::ContainerV1::SetNodePoolManagementRequest] set_node_pool_management_request_object
# @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 [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
@@ -661,41 +664,42 @@
# @return [Google::Apis::ContainerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def rollback_node_pool_upgrade(project_id, zone, cluster_id, node_pool_id, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
- command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options)
- command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation
- command.request_object = rollback_node_pool_upgrade_request_object
+ def set_project_zone_cluster_node_pool_management(project_id, zone, cluster_id, node_pool_id, set_node_pool_management_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement', options)
+ command.request_representation = Google::Apis::ContainerV1::SetNodePoolManagementRequest::Representation
+ command.request_object = set_node_pool_management_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
- command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
- # Creates a node pool for a cluster.
+ # Deletes a node pool from a cluster.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://developers.google.com/console/help/new/#projectnumber).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster.
- # @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object
- # @param [String] fields
- # Selector specifying which fields to include in a partial response.
+ # @param [String] node_pool_id
+ # The name of the node pool to delete.
# @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 [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
@@ -704,78 +708,74 @@
# @return [Google::Apis::ContainerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def create_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
- command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
- command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation
- command.request_object = create_node_pool_request_object
+ def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, quota_user: nil, fields: nil, options: nil, &block)
+ command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
- command.query['fields'] = fields unless fields.nil?
+ command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
- # Retrieves the node pool requested.
+ # Lists the node pools for a cluster.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://developers.google.com/console/help/new/#projectnumber).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster.
- # @param [String] node_pool_id
- # The name of the node pool.
- # @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 [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
- # @yieldparam result [Google::Apis::ContainerV1::NodePool] parsed result object
+ # @yieldparam result [Google::Apis::ContainerV1::ListNodePoolsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
- # @return [Google::Apis::ContainerV1::NodePool]
+ # @return [Google::Apis::ContainerV1::ListNodePoolsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
- command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
- command.response_representation = Google::Apis::ContainerV1::NodePool::Representation
- command.response_class = Google::Apis::ContainerV1::NodePool
+ def list_project_zone_cluster_node_pools(project_id, zone, cluster_id, quota_user: nil, fields: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
+ command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation
+ command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
- command.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?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Lists all operations in a project in a specific zone or all zones.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine [zone](/compute/docs/zones#available)
# to return operations for, or `-` for all zones.
- # @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 [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::ListOperationsResponse] parsed result object
@@ -784,18 +784,18 @@
# @return [Google::Apis::ContainerV1::ListOperationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
+ def list_project_zone_operations(project_id, zone, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations', options)
command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::ContainerV1::ListOperationsResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
- command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Gets the specified operation.
# @param [String] project_id
@@ -805,15 +805,15 @@
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] operation_id
# The server-assigned `name` of the operation.
- # @param [String] fields
- # Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
@@ -822,19 +822,19 @@
# @return [Google::Apis::ContainerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block)
+ def get_project_zone_operation(project_id, zone, operation_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options)
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['operationId'] = operation_id unless operation_id.nil?
- command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Cancels the specified operation.
# @param [String] project_id
@@ -844,15 +844,15 @@
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the operation resides.
# @param [String] operation_id
# The server-assigned `name` of the operation.
# @param [Google::Apis::ContainerV1::CancelOperationRequest] cancel_operation_request_object
- # @param [String] fields
- # Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContainerV1::Empty] parsed result object
@@ -861,20 +861,20 @@
# @return [Google::Apis::ContainerV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def cancel_operation(project_id, zone, operation_id, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ def cancel_operation(project_id, zone, operation_id, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel', options)
command.request_representation = Google::Apis::ContainerV1::CancelOperationRequest::Representation
command.request_object = cancel_operation_request_object
command.response_representation = Google::Apis::ContainerV1::Empty::Representation
command.response_class = Google::Apis::ContainerV1::Empty
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['operationId'] = operation_id unless operation_id.nil?
- command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
protected