Autogenerated update (2018-01-13)
Update: - clouddebugger_v2 - container_v1beta1
This commit is contained in:
parent
c5606328ce
commit
1d4bc85829
|
@ -29833,6 +29833,7 @@
|
|||
"/container:v1beta1/NodeConfig/tags/tag": tag
|
||||
"/container:v1beta1/NodeConfig/taints": taints
|
||||
"/container:v1beta1/NodeConfig/taints/taint": taint_prop
|
||||
"/container:v1beta1/NodeConfig/workloadMetadataConfig": workload_metadata_config
|
||||
"/container:v1beta1/NodeManagement": node_management
|
||||
"/container:v1beta1/NodeManagement/autoRepair": auto_repair
|
||||
"/container:v1beta1/NodeManagement/autoUpgrade": auto_upgrade
|
||||
|
@ -29958,6 +29959,13 @@
|
|||
"/container:v1beta1/SetNodePoolManagementRequest/nodePoolId": node_pool_id
|
||||
"/container:v1beta1/SetNodePoolManagementRequest/projectId": project_id
|
||||
"/container:v1beta1/SetNodePoolManagementRequest/zone": zone
|
||||
"/container:v1beta1/SetNodePoolSizeRequest": set_node_pool_size_request
|
||||
"/container:v1beta1/SetNodePoolSizeRequest/clusterId": cluster_id
|
||||
"/container:v1beta1/SetNodePoolSizeRequest/name": name
|
||||
"/container:v1beta1/SetNodePoolSizeRequest/nodeCount": node_count
|
||||
"/container:v1beta1/SetNodePoolSizeRequest/nodePoolId": node_pool_id
|
||||
"/container:v1beta1/SetNodePoolSizeRequest/projectId": project_id
|
||||
"/container:v1beta1/SetNodePoolSizeRequest/zone": zone
|
||||
"/container:v1beta1/StartIPRotationRequest": start_ip_rotation_request
|
||||
"/container:v1beta1/StartIPRotationRequest/clusterId": cluster_id
|
||||
"/container:v1beta1/StartIPRotationRequest/name": name
|
||||
|
@ -29983,6 +29991,8 @@
|
|||
"/container:v1beta1/UpdateNodePoolRequest/nodeVersion": node_version
|
||||
"/container:v1beta1/UpdateNodePoolRequest/projectId": project_id
|
||||
"/container:v1beta1/UpdateNodePoolRequest/zone": zone
|
||||
"/container:v1beta1/WorkloadMetadataConfig": workload_metadata_config
|
||||
"/container:v1beta1/WorkloadMetadataConfig/nodeMetadata": node_metadata
|
||||
"/container:v1beta1/container.projects.clusters.list": list_clusters
|
||||
"/container:v1beta1/container.projects.locations.clusters.completeIpRotation": complete_project_location_cluster_ip_rotation
|
||||
"/container:v1beta1/container.projects.locations.clusters.completeIpRotation/name": name
|
||||
|
@ -30027,6 +30037,8 @@
|
|||
"/container:v1beta1/container.projects.locations.clusters.nodePools.setAutoscaling/name": name
|
||||
"/container:v1beta1/container.projects.locations.clusters.nodePools.setManagement": set_project_location_cluster_node_pool_management
|
||||
"/container:v1beta1/container.projects.locations.clusters.nodePools.setManagement/name": name
|
||||
"/container:v1beta1/container.projects.locations.clusters.nodePools.setSize": set_project_location_cluster_node_pool_size
|
||||
"/container:v1beta1/container.projects.locations.clusters.nodePools.setSize/name": name
|
||||
"/container:v1beta1/container.projects.locations.clusters.nodePools.update": update_project_location_cluster_node_pool
|
||||
"/container:v1beta1/container.projects.locations.clusters.nodePools.update/name": name
|
||||
"/container:v1beta1/container.projects.locations.clusters.setAddons": set_cluster_addons_config
|
||||
|
@ -30150,6 +30162,11 @@
|
|||
"/container:v1beta1/container.projects.zones.clusters.nodePools.setManagement/nodePoolId": node_pool_id
|
||||
"/container:v1beta1/container.projects.zones.clusters.nodePools.setManagement/projectId": project_id
|
||||
"/container:v1beta1/container.projects.zones.clusters.nodePools.setManagement/zone": zone
|
||||
"/container:v1beta1/container.projects.zones.clusters.nodePools.setSize": set_project_zone_cluster_node_pool_size
|
||||
"/container:v1beta1/container.projects.zones.clusters.nodePools.setSize/clusterId": cluster_id
|
||||
"/container:v1beta1/container.projects.zones.clusters.nodePools.setSize/nodePoolId": node_pool_id
|
||||
"/container:v1beta1/container.projects.zones.clusters.nodePools.setSize/projectId": project_id
|
||||
"/container:v1beta1/container.projects.zones.clusters.nodePools.setSize/zone": zone
|
||||
"/container:v1beta1/container.projects.zones.clusters.nodePools.update": update_project_zone_cluster_node_pool
|
||||
"/container:v1beta1/container.projects.zones.clusters.nodePools.update/clusterId": cluster_id
|
||||
"/container:v1beta1/container.projects.zones.clusters.nodePools.update/nodePoolId": node_pool_id
|
||||
|
|
|
@ -26,12 +26,12 @@ module Google
|
|||
# @see http://cloud.google.com/debugger
|
||||
module ClouddebuggerV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20170809'
|
||||
REVISION = '20180112'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# Manage cloud debugger
|
||||
# Use Stackdriver Debugger
|
||||
AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -310,7 +310,6 @@ module Google
|
|||
|
||||
# References to the locations and revisions of the source code used in the
|
||||
# deployed application.
|
||||
# NOTE: this field is experimental and can be ignored.
|
||||
# Corresponds to the JSON property `extSourceContexts`
|
||||
# @return [Array<Google::Apis::ClouddebuggerV2::ExtendedSourceContext>]
|
||||
attr_accessor :ext_source_contexts
|
||||
|
|
|
@ -18,7 +18,7 @@ require 'google/apis/container_v1beta1/representations.rb'
|
|||
|
||||
module Google
|
||||
module Apis
|
||||
# Google Container Engine API
|
||||
# Google Kubernetes Engine API
|
||||
#
|
||||
# The Google Kubernetes Engine API is used for building and managing container
|
||||
# based applications, powered by the open source Kubernetes technology.
|
||||
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-engine/
|
||||
module ContainerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20171127'
|
||||
REVISION = '20171227'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1356,6 +1356,12 @@ module Google
|
|||
# @return [Array<Google::Apis::ContainerV1beta1::NodeTaint>]
|
||||
attr_accessor :taints
|
||||
|
||||
# WorkloadMetadataConfig defines the metadata configuration to expose to
|
||||
# workloads on the node pool.
|
||||
# Corresponds to the JSON property `workloadMetadataConfig`
|
||||
# @return [Google::Apis::ContainerV1beta1::WorkloadMetadataConfig]
|
||||
attr_accessor :workload_metadata_config
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -1375,6 +1381,7 @@ module Google
|
|||
@service_account = args[:service_account] if args.key?(:service_account)
|
||||
@tags = args[:tags] if args.key?(:tags)
|
||||
@taints = args[:taints] if args.key?(:taints)
|
||||
@workload_metadata_config = args[:workload_metadata_config] if args.key?(:workload_metadata_config)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -2377,6 +2384,64 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# SetNodePoolSizeRequest sets the size a node
|
||||
# pool.
|
||||
class SetNodePoolSizeRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of the cluster to update.
|
||||
# This field is deprecated, use name instead.
|
||||
# Corresponds to the JSON property `clusterId`
|
||||
# @return [String]
|
||||
attr_accessor :cluster_id
|
||||
|
||||
# The name (project, location, cluster, node pool id) of the node pool to set
|
||||
# size.
|
||||
# Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The desired node count for the pool.
|
||||
# Corresponds to the JSON property `nodeCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :node_count
|
||||
|
||||
# The name of the node pool to update.
|
||||
# This field is deprecated, use name instead.
|
||||
# Corresponds to the JSON property `nodePoolId`
|
||||
# @return [String]
|
||||
attr_accessor :node_pool_id
|
||||
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
# Corresponds to the JSON property `projectId`
|
||||
# @return [String]
|
||||
attr_accessor :project_id
|
||||
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# This field is deprecated, use name instead.
|
||||
# Corresponds to the JSON property `zone`
|
||||
# @return [String]
|
||||
attr_accessor :zone
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@cluster_id = args[:cluster_id] if args.key?(:cluster_id)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@node_count = args[:node_count] if args.key?(:node_count)
|
||||
@node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id)
|
||||
@project_id = args[:project_id] if args.key?(:project_id)
|
||||
@zone = args[:zone] if args.key?(:zone)
|
||||
end
|
||||
end
|
||||
|
||||
# StartIPRotationRequest creates a new IP for the cluster and then performs
|
||||
# a node upgrade on each node pool to point to the new IP.
|
||||
class StartIpRotationRequest
|
||||
|
@ -2589,6 +2654,27 @@ module Google
|
|||
@zone = args[:zone] if args.key?(:zone)
|
||||
end
|
||||
end
|
||||
|
||||
# WorkloadMetadataConfig defines the metadata configuration to expose to
|
||||
# workloads on the node pool.
|
||||
class WorkloadMetadataConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# NodeMetadata is the configuration for if and how to expose the node
|
||||
# metadata to the workload running on the node.
|
||||
# Corresponds to the JSON property `nodeMetadata`
|
||||
# @return [String]
|
||||
attr_accessor :node_metadata
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@node_metadata = args[:node_metadata] if args.key?(:node_metadata)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -298,6 +298,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SetNodePoolSizeRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StartIpRotationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -322,6 +328,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class WorkloadMetadataConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AcceleratorConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -629,6 +641,8 @@ module Google
|
|||
collection :tags, as: 'tags'
|
||||
collection :taints, as: 'taints', class: Google::Apis::ContainerV1beta1::NodeTaint, decorator: Google::Apis::ContainerV1beta1::NodeTaint::Representation
|
||||
|
||||
property :workload_metadata_config, as: 'workloadMetadataConfig', class: Google::Apis::ContainerV1beta1::WorkloadMetadataConfig, decorator: Google::Apis::ContainerV1beta1::WorkloadMetadataConfig::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -856,6 +870,18 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class SetNodePoolSizeRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :name, as: 'name'
|
||||
property :node_count, as: 'nodeCount'
|
||||
property :node_pool_id, as: 'nodePoolId'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class StartIpRotationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -901,6 +927,13 @@ module Google
|
|||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class WorkloadMetadataConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :node_metadata, as: 'nodeMetadata'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -20,7 +20,7 @@ require 'google/apis/errors'
|
|||
module Google
|
||||
module Apis
|
||||
module ContainerV1beta1
|
||||
# Google Container Engine API
|
||||
# Google Kubernetes Engine API
|
||||
#
|
||||
# The Google Kubernetes Engine API is used for building and managing container
|
||||
# based applications, powered by the open source Kubernetes technology.
|
||||
|
@ -1008,6 +1008,41 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the size of a specific node pool.
|
||||
# @param [String] name
|
||||
# The name (project, location, cluster, node pool id) of the node pool to set
|
||||
# size.
|
||||
# Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
|
||||
# @param [Google::Apis::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)
|
||||
command = make_simple_command(:post, 'v1beta1/{+name}:setSize', options)
|
||||
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
|
||||
|
||||
# Updates the version and/or iamge type of a specific node pool.
|
||||
# @param [String] name
|
||||
# The name (project, location, cluster, node pool) of the node pool to update.
|
||||
|
@ -2319,6 +2354,54 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the size of a specific 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.
|
||||
# This field is deprecated, use name instead.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster to update.
|
||||
# This field is deprecated, use name instead.
|
||||
# @param [String] node_pool_id
|
||||
# The name of the node pool to update.
|
||||
# This field is deprecated, use name instead.
|
||||
# @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)
|
||||
command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize', options)
|
||||
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['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the version and/or iamge type of a specific node pool.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project
|
||||
|
|
Loading…
Reference in New Issue