Bump version, regen APIs
This commit is contained in:
1 parent
b8f6f7c2fe
commit
9237ba59cb
241 files changed
+53894
-50212
No files matched your search
@@ -22,6 +22,21 @@ module Google
|
||||
module Apis
|
||||
module ContainerV1
|
||||
|
||||
# RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
|
||||
# NodePool upgrade. This will be an no-op if the last upgrade successfully
|
||||
# completed.
|
||||
class RollbackNodePoolUpgradeRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# UpdateClusterRequest updates the settings of a cluster.
|
||||
class UpdateClusterRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -47,6 +62,80 @@ module Google
|
||||
class Cluster
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output only] The number of nodes currently in the cluster.
|
||||
# Corresponds to the JSON property `currentNodeCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :current_node_count
|
||||
|
||||
# The monitoring service the cluster should use to write metrics.
|
||||
# Currently available options:
|
||||
# * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
|
||||
# * `none` - no metrics will be exported from the cluster.
|
||||
# * if left as an empty string, `monitoring.googleapis.com` will be used.
|
||||
# Corresponds to the JSON property `monitoringService`
|
||||
# @return [String]
|
||||
attr_accessor :monitoring_service
|
||||
|
||||
# The name of the Google Compute Engine
|
||||
# [network](/compute/docs/networks-and-firewalls#networks) to which the
|
||||
# cluster is connected. If left unspecified, the `default` network
|
||||
# will be used.
|
||||
# Corresponds to the JSON property `network`
|
||||
# @return [String]
|
||||
attr_accessor :network
|
||||
|
||||
# The fingerprint of the set of labels for this cluster.
|
||||
# Corresponds to the JSON property `labelFingerprint`
|
||||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# [Output only] The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# Corresponds to the JSON property `zone`
|
||||
# @return [String]
|
||||
attr_accessor :zone
|
||||
|
||||
# [Output only] The time the cluster will be automatically
|
||||
# deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
||||
# Corresponds to the JSON property `expireTime`
|
||||
# @return [String]
|
||||
attr_accessor :expire_time
|
||||
|
||||
# [Output only] The size of the address space on each node for hosting
|
||||
# containers. This is provisioned from within the `container_ipv4_cidr`
|
||||
# range.
|
||||
# Corresponds to the JSON property `nodeIpv4CidrSize`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :node_ipv4_cidr_size
|
||||
|
||||
# The logging service the cluster should use to write logs.
|
||||
# Currently available options:
|
||||
# * `logging.googleapis.com` - the Google Cloud Logging service.
|
||||
# * `none` - no logs will be exported from the cluster.
|
||||
# * if left as an empty string,`logging.googleapis.com` will be used.
|
||||
# Corresponds to the JSON property `loggingService`
|
||||
# @return [String]
|
||||
attr_accessor :logging_service
|
||||
|
||||
# [Output only] Additional information about the current status of this
|
||||
# cluster, if available.
|
||||
# Corresponds to the JSON property `statusMessage`
|
||||
# @return [String]
|
||||
attr_accessor :status_message
|
||||
|
||||
# The authentication information for accessing the master endpoint.
|
||||
# Authentication can be done using HTTP basic auth or using client
|
||||
# certificates.
|
||||
# Corresponds to the JSON property `masterAuth`
|
||||
# @return [Google::Apis::ContainerV1::MasterAuth]
|
||||
attr_accessor :master_auth
|
||||
|
||||
# [Output only] The current software version of the master endpoint.
|
||||
# Corresponds to the JSON property `currentMasterVersion`
|
||||
# @return [String]
|
||||
attr_accessor :current_master_version
|
||||
|
||||
# Parameters that describe the nodes in a cluster.
|
||||
# Corresponds to the JSON property `nodeConfig`
|
||||
# @return [Google::Apis::ContainerV1::NodeConfig]
|
||||
@@ -63,13 +152,6 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :status
|
||||
|
||||
# The name of the Google Compute Engine
|
||||
# [subnetwork](/compute/docs/subnetworks) to which the
|
||||
# cluster is connected.
|
||||
# Corresponds to the JSON property `subnetwork`
|
||||
# @return [String]
|
||||
attr_accessor :subnetwork
|
||||
|
||||
# [Output only] The current version of the node software components.
|
||||
# If they are currently at multiple versions because they're in the process
|
||||
# of being upgraded, this reflects the minimum version of all nodes.
|
||||
@@ -77,6 +159,13 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :current_node_version
|
||||
|
||||
# The name of the Google Compute Engine
|
||||
# [subnetwork](/compute/docs/subnetworks) to which the
|
||||
# cluster is connected.
|
||||
# Corresponds to the JSON property `subnetwork`
|
||||
# @return [String]
|
||||
attr_accessor :subnetwork
|
||||
|
||||
# The resource labels for the cluster to use to annotate any related GCE
|
||||
# resources.
|
||||
# Corresponds to the JSON property `resourceLabels`
|
||||
@@ -100,6 +189,12 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :initial_cluster_version
|
||||
|
||||
# Configuration for the legacy Attribute Based Access Control authorization
|
||||
# mode.
|
||||
# Corresponds to the JSON property `legacyAbac`
|
||||
# @return [Google::Apis::ContainerV1::LegacyAbac]
|
||||
attr_accessor :legacy_abac
|
||||
|
||||
# [Output only] The IP address of this cluster's master endpoint.
|
||||
# The endpoint can be accessed from the internet at
|
||||
# `https://username:password@endpoint/`.
|
||||
@@ -109,12 +204,6 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :endpoint
|
||||
|
||||
# Configuration for the legacy Attribute Based Access Control authorization
|
||||
# mode.
|
||||
# Corresponds to the JSON property `legacyAbac`
|
||||
# @return [Google::Apis::ContainerV1::LegacyAbac]
|
||||
attr_accessor :legacy_abac
|
||||
|
||||
# [Output only] The time the cluster was created, in
|
||||
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
@@ -192,96 +281,33 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# [Output only] The number of nodes currently in the cluster.
|
||||
# Corresponds to the JSON property `currentNodeCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :current_node_count
|
||||
|
||||
# The monitoring service the cluster should use to write metrics.
|
||||
# Currently available options:
|
||||
# * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
|
||||
# * `none` - no metrics will be exported from the cluster.
|
||||
# * if left as an empty string, `monitoring.googleapis.com` will be used.
|
||||
# Corresponds to the JSON property `monitoringService`
|
||||
# @return [String]
|
||||
attr_accessor :monitoring_service
|
||||
|
||||
# The name of the Google Compute Engine
|
||||
# [network](/compute/docs/networks-and-firewalls#networks) to which the
|
||||
# cluster is connected. If left unspecified, the `default` network
|
||||
# will be used.
|
||||
# Corresponds to the JSON property `network`
|
||||
# @return [String]
|
||||
attr_accessor :network
|
||||
|
||||
# The fingerprint of the set of labels for this cluster.
|
||||
# Corresponds to the JSON property `labelFingerprint`
|
||||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# [Output only] The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# Corresponds to the JSON property `zone`
|
||||
# @return [String]
|
||||
attr_accessor :zone
|
||||
|
||||
# The logging service the cluster should use to write logs.
|
||||
# Currently available options:
|
||||
# * `logging.googleapis.com` - the Google Cloud Logging service.
|
||||
# * `none` - no logs will be exported from the cluster.
|
||||
# * if left as an empty string,`logging.googleapis.com` will be used.
|
||||
# Corresponds to the JSON property `loggingService`
|
||||
# @return [String]
|
||||
attr_accessor :logging_service
|
||||
|
||||
# [Output only] The size of the address space on each node for hosting
|
||||
# containers. This is provisioned from within the `container_ipv4_cidr`
|
||||
# range.
|
||||
# Corresponds to the JSON property `nodeIpv4CidrSize`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :node_ipv4_cidr_size
|
||||
|
||||
# [Output only] The time the cluster will be automatically
|
||||
# deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
||||
# Corresponds to the JSON property `expireTime`
|
||||
# @return [String]
|
||||
attr_accessor :expire_time
|
||||
|
||||
# [Output only] Additional information about the current status of this
|
||||
# cluster, if available.
|
||||
# Corresponds to the JSON property `statusMessage`
|
||||
# @return [String]
|
||||
attr_accessor :status_message
|
||||
|
||||
# The authentication information for accessing the master endpoint.
|
||||
# Authentication can be done using HTTP basic auth or using client
|
||||
# certificates.
|
||||
# Corresponds to the JSON property `masterAuth`
|
||||
# @return [Google::Apis::ContainerV1::MasterAuth]
|
||||
attr_accessor :master_auth
|
||||
|
||||
# [Output only] The current software version of the master endpoint.
|
||||
# Corresponds to the JSON property `currentMasterVersion`
|
||||
# @return [String]
|
||||
attr_accessor :current_master_version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@current_node_count = args[:current_node_count] if args.key?(:current_node_count)
|
||||
@monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service)
|
||||
@network = args[:network] if args.key?(:network)
|
||||
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
||||
@zone = args[:zone] if args.key?(:zone)
|
||||
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
||||
@node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size)
|
||||
@logging_service = args[:logging_service] if args.key?(:logging_service)
|
||||
@status_message = args[:status_message] if args.key?(:status_message)
|
||||
@master_auth = args[:master_auth] if args.key?(:master_auth)
|
||||
@current_master_version = args[:current_master_version] if args.key?(:current_master_version)
|
||||
@node_config = args[:node_config] if args.key?(:node_config)
|
||||
@addons_config = args[:addons_config] if args.key?(:addons_config)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
|
||||
@current_node_version = args[:current_node_version] if args.key?(:current_node_version)
|
||||
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
|
||||
@resource_labels = args[:resource_labels] if args.key?(:resource_labels)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@initial_cluster_version = args[:initial_cluster_version] if args.key?(:initial_cluster_version)
|
||||
@endpoint = args[:endpoint] if args.key?(:endpoint)
|
||||
@legacy_abac = args[:legacy_abac] if args.key?(:legacy_abac)
|
||||
@endpoint = args[:endpoint] if args.key?(:endpoint)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr)
|
||||
@initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count)
|
||||
@@ -292,41 +318,6 @@ module Google
|
||||
@services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr)
|
||||
@enable_kubernetes_alpha = args[:enable_kubernetes_alpha] if args.key?(:enable_kubernetes_alpha)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@current_node_count = args[:current_node_count] if args.key?(:current_node_count)
|
||||
@monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service)
|
||||
@network = args[:network] if args.key?(:network)
|
||||
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
||||
@zone = args[:zone] if args.key?(:zone)
|
||||
@logging_service = args[:logging_service] if args.key?(:logging_service)
|
||||
@node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size)
|
||||
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
||||
@status_message = args[:status_message] if args.key?(:status_message)
|
||||
@master_auth = args[:master_auth] if args.key?(:master_auth)
|
||||
@current_master_version = args[:current_master_version] if args.key?(:current_master_version)
|
||||
end
|
||||
end
|
||||
|
||||
# CreateNodePoolRequest creates a node pool for a cluster.
|
||||
class CreateNodePoolRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# NodePool contains the name and configuration for a cluster's node pool.
|
||||
# Node pools are a set of nodes (i.e. VM's), with a common configuration and
|
||||
# specification, under the control of the cluster master. They may have a set
|
||||
# of Kubernetes labels applied to them, which may be used to reference them
|
||||
# during pod scheduling. They may also be resized up or down, to accommodate
|
||||
# the workload.
|
||||
# Corresponds to the JSON property `nodePool`
|
||||
# @return [Google::Apis::ContainerV1::NodePool]
|
||||
attr_accessor :node_pool
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@node_pool = args[:node_pool] if args.key?(:node_pool)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -356,6 +347,30 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# CreateNodePoolRequest creates a node pool for a cluster.
|
||||
class CreateNodePoolRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# NodePool contains the name and configuration for a cluster's node pool.
|
||||
# Node pools are a set of nodes (i.e. VM's), with a common configuration and
|
||||
# specification, under the control of the cluster master. They may have a set
|
||||
# of Kubernetes labels applied to them, which may be used to reference them
|
||||
# during pod scheduling. They may also be resized up or down, to accommodate
|
||||
# the workload.
|
||||
# Corresponds to the JSON property `nodePool`
|
||||
# @return [Google::Apis::ContainerV1::NodePool]
|
||||
attr_accessor :node_pool
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@node_pool = args[:node_pool] if args.key?(:node_pool)
|
||||
end
|
||||
end
|
||||
|
||||
# Container Engine service configuration.
|
||||
class ServerConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -403,50 +418,6 @@ module Google
|
||||
class NodeConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The set of Google API scopes to be made available on all of the
|
||||
# node VMs under the "default" service account.
|
||||
# The following scopes are recommended, but not required, and by default are
|
||||
# not included:
|
||||
# * `https://www.googleapis.com/auth/compute` is required for mounting
|
||||
# persistent storage on your nodes.
|
||||
# * `https://www.googleapis.com/auth/devstorage.read_only` is required for
|
||||
# communicating with **gcr.io**
|
||||
# (the [Google Container Registry](/container-registry/)).
|
||||
# If unspecified, no scopes are added, unless Cloud Logging or Cloud
|
||||
# Monitoring are enabled, in which case their required scopes will be added.
|
||||
# Corresponds to the JSON property `oauthScopes`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :oauth_scopes
|
||||
|
||||
# Whether the nodes are created as preemptible VM instances. See:
|
||||
# https://cloud.google.com/compute/docs/instances/preemptible for more
|
||||
# inforamtion about preemptible VM instances.
|
||||
# Corresponds to the JSON property `preemptible`
|
||||
# @return [Boolean]
|
||||
attr_accessor :preemptible
|
||||
alias_method :preemptible?, :preemptible
|
||||
|
||||
# The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
||||
# These will added in addition to any default label(s) that
|
||||
# Kubernetes may apply to the node.
|
||||
# In case of conflict in label keys, the applied set may differ depending on
|
||||
# the Kubernetes version -- it's best to assume the behavior is undefined
|
||||
# and conflicts should be avoided.
|
||||
# For more information, including usage and the valid values, see:
|
||||
# http://kubernetes.io/v1.1/docs/user-guide/labels.html
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# The number of local SSD disks to be attached to the node.
|
||||
# The limit for this value is dependant upon the maximum number of
|
||||
# disks available on a machine per zone. See:
|
||||
# https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
|
||||
# for more information.
|
||||
# Corresponds to the JSON property `localSsdCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :local_ssd_count
|
||||
|
||||
# The metadata key/value pairs assigned to instances in the cluster.
|
||||
# Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
|
||||
# in length. These are reflected as part of a URL in the metadata server.
|
||||
@@ -497,22 +468,66 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :image_type
|
||||
|
||||
# The set of Google API scopes to be made available on all of the
|
||||
# node VMs under the "default" service account.
|
||||
# The following scopes are recommended, but not required, and by default are
|
||||
# not included:
|
||||
# * `https://www.googleapis.com/auth/compute` is required for mounting
|
||||
# persistent storage on your nodes.
|
||||
# * `https://www.googleapis.com/auth/devstorage.read_only` is required for
|
||||
# communicating with **gcr.io**
|
||||
# (the [Google Container Registry](/container-registry/)).
|
||||
# If unspecified, no scopes are added, unless Cloud Logging or Cloud
|
||||
# Monitoring are enabled, in which case their required scopes will be added.
|
||||
# Corresponds to the JSON property `oauthScopes`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :oauth_scopes
|
||||
|
||||
# Whether the nodes are created as preemptible VM instances. See:
|
||||
# https://cloud.google.com/compute/docs/instances/preemptible for more
|
||||
# inforamtion about preemptible VM instances.
|
||||
# Corresponds to the JSON property `preemptible`
|
||||
# @return [Boolean]
|
||||
attr_accessor :preemptible
|
||||
alias_method :preemptible?, :preemptible
|
||||
|
||||
# The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
||||
# These will added in addition to any default label(s) that
|
||||
# Kubernetes may apply to the node.
|
||||
# In case of conflict in label keys, the applied set may differ depending on
|
||||
# the Kubernetes version -- it's best to assume the behavior is undefined
|
||||
# and conflicts should be avoided.
|
||||
# For more information, including usage and the valid values, see:
|
||||
# http://kubernetes.io/v1.1/docs/user-guide/labels.html
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# The number of local SSD disks to be attached to the node.
|
||||
# The limit for this value is dependant upon the maximum number of
|
||||
# disks available on a machine per zone. See:
|
||||
# https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
|
||||
# for more information.
|
||||
# Corresponds to the JSON property `localSsdCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :local_ssd_count
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
|
||||
@preemptible = args[:preemptible] if args.key?(:preemptible)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@local_ssd_count = args[:local_ssd_count] if args.key?(:local_ssd_count)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
||||
@tags = args[:tags] if args.key?(:tags)
|
||||
@service_account = args[:service_account] if args.key?(:service_account)
|
||||
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
||||
@image_type = args[:image_type] if args.key?(:image_type)
|
||||
@oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
|
||||
@preemptible = args[:preemptible] if args.key?(:preemptible)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@local_ssd_count = args[:local_ssd_count] if args.key?(:local_ssd_count)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -522,6 +537,19 @@ module Google
|
||||
class MasterAuth
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The username to use for HTTP basic authentication to the master endpoint.
|
||||
# For clusters v1.6.0 and later, you can disable basic authentication by
|
||||
# providing an empty username.
|
||||
# Corresponds to the JSON property `username`
|
||||
# @return [String]
|
||||
attr_accessor :username
|
||||
|
||||
# [Output only] Base64-encoded private key used by clients to authenticate
|
||||
# to the cluster endpoint.
|
||||
# Corresponds to the JSON property `clientKey`
|
||||
# @return [String]
|
||||
attr_accessor :client_key
|
||||
|
||||
# [Output only] Base64-encoded public certificate that is the root of
|
||||
# trust for the cluster.
|
||||
# Corresponds to the JSON property `clusterCaCertificate`
|
||||
@@ -542,30 +570,17 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :client_certificate
|
||||
|
||||
# The username to use for HTTP basic authentication to the master endpoint.
|
||||
# For clusters v1.6.0 and later, you can disable basic authentication by
|
||||
# providing an empty username.
|
||||
# Corresponds to the JSON property `username`
|
||||
# @return [String]
|
||||
attr_accessor :username
|
||||
|
||||
# [Output only] Base64-encoded private key used by clients to authenticate
|
||||
# to the cluster endpoint.
|
||||
# Corresponds to the JSON property `clientKey`
|
||||
# @return [String]
|
||||
attr_accessor :client_key
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@username = args[:username] if args.key?(:username)
|
||||
@client_key = args[:client_key] if args.key?(:client_key)
|
||||
@cluster_ca_certificate = args[:cluster_ca_certificate] if args.key?(:cluster_ca_certificate)
|
||||
@password = args[:password] if args.key?(:password)
|
||||
@client_certificate = args[:client_certificate] if args.key?(:client_certificate)
|
||||
@username = args[:username] if args.key?(:username)
|
||||
@client_key = args[:client_key] if args.key?(:client_key)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -680,12 +695,6 @@ module Google
|
||||
class NodePoolAutoscaling
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Is autoscaling enabled for this node pool.
|
||||
# Corresponds to the JSON property `enabled`
|
||||
# @return [Boolean]
|
||||
attr_accessor :enabled
|
||||
alias_method :enabled?, :enabled
|
||||
|
||||
# Maximum number of nodes in the NodePool. Must be >= min_node_count. There
|
||||
# has to enough quota to scale up the cluster.
|
||||
# Corresponds to the JSON property `maxNodeCount`
|
||||
@@ -698,15 +707,21 @@ module Google
|
||||
# @return [Fixnum]
|
||||
attr_accessor :min_node_count
|
||||
|
||||
# Is autoscaling enabled for this node pool.
|
||||
# Corresponds to the JSON property `enabled`
|
||||
# @return [Boolean]
|
||||
attr_accessor :enabled
|
||||
alias_method :enabled?, :enabled
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@enabled = args[:enabled] if args.key?(:enabled)
|
||||
@max_node_count = args[:max_node_count] if args.key?(:max_node_count)
|
||||
@min_node_count = args[:min_node_count] if args.key?(:min_node_count)
|
||||
@enabled = args[:enabled] if args.key?(:enabled)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -716,6 +731,22 @@ module Google
|
||||
class ClusterUpdate
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# NodePoolAutoscaling contains information required by cluster autoscaler to
|
||||
# adjust the size of the node pool to the current cluster usage.
|
||||
# Corresponds to the JSON property `desiredNodePoolAutoscaling`
|
||||
# @return [Google::Apis::ContainerV1::NodePoolAutoscaling]
|
||||
attr_accessor :desired_node_pool_autoscaling
|
||||
|
||||
# The desired list of Google Compute Engine
|
||||
# [locations](/compute/docs/zones#available) in which the cluster's nodes
|
||||
# should be located. Changing the locations a cluster is in will result
|
||||
# in nodes being either created or removed from the cluster, depending on
|
||||
# whether locations are being added or removed.
|
||||
# This list must always include the cluster's primary zone.
|
||||
# Corresponds to the JSON property `desiredLocations`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :desired_locations
|
||||
|
||||
# The monitoring service the cluster should use to write metrics.
|
||||
# Currently available options:
|
||||
# * "monitoring.googleapis.com" - the Google Cloud Monitoring service
|
||||
@@ -758,36 +789,20 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :desired_master_version
|
||||
|
||||
# The desired list of Google Compute Engine
|
||||
# [locations](/compute/docs/zones#available) in which the cluster's nodes
|
||||
# should be located. Changing the locations a cluster is in will result
|
||||
# in nodes being either created or removed from the cluster, depending on
|
||||
# whether locations are being added or removed.
|
||||
# This list must always include the cluster's primary zone.
|
||||
# Corresponds to the JSON property `desiredLocations`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :desired_locations
|
||||
|
||||
# NodePoolAutoscaling contains information required by cluster autoscaler to
|
||||
# adjust the size of the node pool to the current cluster usage.
|
||||
# Corresponds to the JSON property `desiredNodePoolAutoscaling`
|
||||
# @return [Google::Apis::ContainerV1::NodePoolAutoscaling]
|
||||
attr_accessor :desired_node_pool_autoscaling
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@desired_node_pool_autoscaling = args[:desired_node_pool_autoscaling] if args.key?(:desired_node_pool_autoscaling)
|
||||
@desired_locations = args[:desired_locations] if args.key?(:desired_locations)
|
||||
@desired_monitoring_service = args[:desired_monitoring_service] if args.key?(:desired_monitoring_service)
|
||||
@desired_image_type = args[:desired_image_type] if args.key?(:desired_image_type)
|
||||
@desired_addons_config = args[:desired_addons_config] if args.key?(:desired_addons_config)
|
||||
@desired_node_pool_id = args[:desired_node_pool_id] if args.key?(:desired_node_pool_id)
|
||||
@desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version)
|
||||
@desired_master_version = args[:desired_master_version] if args.key?(:desired_master_version)
|
||||
@desired_locations = args[:desired_locations] if args.key?(:desired_locations)
|
||||
@desired_node_pool_autoscaling = args[:desired_node_pool_autoscaling] if args.key?(:desired_node_pool_autoscaling)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -944,6 +959,38 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
|
||||
# Engine cluster, which will in turn set them for Google Compute Engine
|
||||
# resources used by that cluster
|
||||
class SetLabelsRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The labels to set for that cluster.
|
||||
# Corresponds to the JSON property `resourceLabels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :resource_labels
|
||||
|
||||
# The fingerprint of the previous set of labels for this resource,
|
||||
# used to detect conflicts. The fingerprint is initially generated by
|
||||
# Container Engine and changes after every request to modify or update
|
||||
# labels. You must always provide an up-to-date fingerprint hash when
|
||||
# updating or changing labels. Make a <code>get()</code> request to the
|
||||
# resource to get the latest fingerprint.
|
||||
# Corresponds to the JSON property `labelFingerprint`
|
||||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource_labels = args[:resource_labels] if args.key?(:resource_labels)
|
||||
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
||||
end
|
||||
end
|
||||
|
||||
# NodePool contains the name and configuration for a cluster's node pool.
|
||||
# Node pools are a set of nodes (i.e. VM's), with a common configuration and
|
||||
# specification, under the control of the cluster master. They may have a set
|
||||
@@ -953,6 +1000,27 @@ module Google
|
||||
class NodePool
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output only] The status of the nodes in this pool instance.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [String]
|
||||
attr_accessor :status
|
||||
|
||||
# Parameters that describe the nodes in a cluster.
|
||||
# Corresponds to the JSON property `config`
|
||||
# @return [Google::Apis::ContainerV1::NodeConfig]
|
||||
attr_accessor :config
|
||||
|
||||
# [Output only] Additional information about the current status of this
|
||||
# node pool instance, if available.
|
||||
# Corresponds to the JSON property `statusMessage`
|
||||
# @return [String]
|
||||
attr_accessor :status_message
|
||||
|
||||
# The name of the node pool.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# NodePoolAutoscaling contains information required by cluster autoscaler to
|
||||
# adjust the size of the node pool to the current cluster usage.
|
||||
# Corresponds to the JSON property `autoscaling`
|
||||
@@ -990,75 +1058,22 @@ module Google
|
||||
# @return [Array<String>]
|
||||
attr_accessor :instance_group_urls
|
||||
|
||||
# [Output only] The status of the nodes in this pool instance.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [String]
|
||||
attr_accessor :status
|
||||
|
||||
# Parameters that describe the nodes in a cluster.
|
||||
# Corresponds to the JSON property `config`
|
||||
# @return [Google::Apis::ContainerV1::NodeConfig]
|
||||
attr_accessor :config
|
||||
|
||||
# [Output only] Additional information about the current status of this
|
||||
# node pool instance, if available.
|
||||
# Corresponds to the JSON property `statusMessage`
|
||||
# @return [String]
|
||||
attr_accessor :status_message
|
||||
|
||||
# The name of the node pool.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@config = args[:config] if args.key?(:config)
|
||||
@status_message = args[:status_message] if args.key?(:status_message)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@autoscaling = args[:autoscaling] if args.key?(:autoscaling)
|
||||
@initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count)
|
||||
@management = args[:management] if args.key?(:management)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
@instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@config = args[:config] if args.key?(:config)
|
||||
@status_message = args[:status_message] if args.key?(:status_message)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
end
|
||||
end
|
||||
|
||||
# SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
|
||||
# Engine cluster, which will in turn set them for Google Compute Engine
|
||||
# resources used by that cluster
|
||||
class SetLabelsRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The labels to set for that cluster.
|
||||
# Corresponds to the JSON property `resourceLabels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :resource_labels
|
||||
|
||||
# The fingerprint of the previous set of labels for this resource,
|
||||
# used to detect conflicts. The fingerprint is initially generated by
|
||||
# Container Engine and changes after every request to modify or update
|
||||
# labels. You must always provide an up-to-date fingerprint hash when
|
||||
# updating or changing labels. Make a <code>get()</code> request to the
|
||||
# resource to get the latest fingerprint.
|
||||
# Corresponds to the JSON property `labelFingerprint`
|
||||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource_labels = args[:resource_labels] if args.key?(:resource_labels)
|
||||
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1067,6 +1082,12 @@ module Google
|
||||
class NodeManagement
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# AutoUpgradeOptions defines the set of options for the user to control how
|
||||
# the Auto Upgrades will proceed.
|
||||
# Corresponds to the JSON property `upgradeOptions`
|
||||
# @return [Google::Apis::ContainerV1::AutoUpgradeOptions]
|
||||
attr_accessor :upgrade_options
|
||||
|
||||
# A flag that specifies whether node auto-upgrade is enabled for the node
|
||||
# pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
|
||||
# up to date with the latest release version of Kubernetes.
|
||||
@@ -1084,21 +1105,15 @@ module Google
|
||||
attr_accessor :auto_repair
|
||||
alias_method :auto_repair?, :auto_repair
|
||||
|
||||
# AutoUpgradeOptions defines the set of options for the user to control how
|
||||
# the Auto Upgrades will proceed.
|
||||
# Corresponds to the JSON property `upgradeOptions`
|
||||
# @return [Google::Apis::ContainerV1::AutoUpgradeOptions]
|
||||
attr_accessor :upgrade_options
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@upgrade_options = args[:upgrade_options] if args.key?(:upgrade_options)
|
||||
@auto_upgrade = args[:auto_upgrade] if args.key?(:auto_upgrade)
|
||||
@auto_repair = args[:auto_repair] if args.key?(:auto_repair)
|
||||
@upgrade_options = args[:upgrade_options] if args.key?(:upgrade_options)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1141,16 +1156,21 @@ module Google
|
||||
class Operation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# If an error has occurred, a textual description of the error.
|
||||
# Corresponds to the JSON property `statusMessage`
|
||||
# The current status of the operation.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [String]
|
||||
attr_accessor :status_message
|
||||
attr_accessor :status
|
||||
|
||||
# The server-assigned ID for the operation.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# If an error has occurred, a textual description of the error.
|
||||
# Corresponds to the JSON property `statusMessage`
|
||||
# @return [String]
|
||||
attr_accessor :status_message
|
||||
|
||||
# Server-defined URL for the resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
@@ -1178,25 +1198,20 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :zone
|
||||
|
||||
# The current status of the operation.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [String]
|
||||
attr_accessor :status
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@status_message = args[:status_message] if args.key?(:status_message)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@status_message = args[:status_message] if args.key?(:status_message)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@target_link = args[:target_link] if args.key?(:target_link)
|
||||
@detail = args[:detail] if args.key?(:detail)
|
||||
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
||||
@zone = args[:zone] if args.key?(:zone)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1228,21 +1243,6 @@ module Google
|
||||
@http_load_balancing = args[:http_load_balancing] if args.key?(:http_load_balancing)
|
||||
end
|
||||
end
|
||||
|
||||
# RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
|
||||
# NodePool upgrade. This will be an no-op if the last upgrade successfully
|
||||
# completed.
|
||||
class RollbackNodePoolUpgradeRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -22,6 +22,12 @@ module Google
|
||||
module Apis
|
||||
module ContainerV1
|
||||
|
||||
class RollbackNodePoolUpgradeRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UpdateClusterRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -34,13 +40,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateNodePoolRequest
|
||||
class ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class CreateNodePoolRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -148,13 +154,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NodePool
|
||||
class SetLabelsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SetLabelsRequest
|
||||
class NodePool
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -191,9 +197,9 @@ module Google
|
||||
end
|
||||
|
||||
class RollbackNodePoolUpgradeRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class UpdateClusterRequest
|
||||
@@ -207,19 +213,31 @@ module Google
|
||||
class Cluster
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :current_node_count, as: 'currentNodeCount'
|
||||
property :monitoring_service, as: 'monitoringService'
|
||||
property :network, as: 'network'
|
||||
property :label_fingerprint, as: 'labelFingerprint'
|
||||
property :zone, as: 'zone'
|
||||
property :expire_time, as: 'expireTime'
|
||||
property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
|
||||
property :logging_service, as: 'loggingService'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation
|
||||
|
||||
property :current_master_version, as: 'currentMasterVersion'
|
||||
property :node_config, as: 'nodeConfig', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
|
||||
|
||||
property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
|
||||
|
||||
property :status, as: 'status'
|
||||
property :subnetwork, as: 'subnetwork'
|
||||
property :current_node_version, as: 'currentNodeVersion'
|
||||
property :subnetwork, as: 'subnetwork'
|
||||
hash :resource_labels, as: 'resourceLabels'
|
||||
property :name, as: 'name'
|
||||
property :initial_cluster_version, as: 'initialClusterVersion'
|
||||
property :endpoint, as: 'endpoint'
|
||||
property :legacy_abac, as: 'legacyAbac', class: Google::Apis::ContainerV1::LegacyAbac, decorator: Google::Apis::ContainerV1::LegacyAbac::Representation
|
||||
|
||||
property :endpoint, as: 'endpoint'
|
||||
property :create_time, as: 'createTime'
|
||||
property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr'
|
||||
property :initial_node_count, as: 'initialNodeCount'
|
||||
@@ -231,26 +249,6 @@ module Google
|
||||
property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
|
||||
property :enable_kubernetes_alpha, as: 'enableKubernetesAlpha'
|
||||
property :description, as: 'description'
|
||||
property :current_node_count, as: 'currentNodeCount'
|
||||
property :monitoring_service, as: 'monitoringService'
|
||||
property :network, as: 'network'
|
||||
property :label_fingerprint, as: 'labelFingerprint'
|
||||
property :zone, as: 'zone'
|
||||
property :logging_service, as: 'loggingService'
|
||||
property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
|
||||
property :expire_time, as: 'expireTime'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation
|
||||
|
||||
property :current_master_version, as: 'currentMasterVersion'
|
||||
end
|
||||
end
|
||||
|
||||
class CreateNodePoolRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -263,6 +261,14 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class CreateNodePoolRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ServerConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -277,27 +283,27 @@ module Google
|
||||
class NodeConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :oauth_scopes, as: 'oauthScopes'
|
||||
property :preemptible, as: 'preemptible'
|
||||
hash :labels, as: 'labels'
|
||||
property :local_ssd_count, as: 'localSsdCount'
|
||||
hash :metadata, as: 'metadata'
|
||||
property :disk_size_gb, as: 'diskSizeGb'
|
||||
collection :tags, as: 'tags'
|
||||
property :service_account, as: 'serviceAccount'
|
||||
property :machine_type, as: 'machineType'
|
||||
property :image_type, as: 'imageType'
|
||||
collection :oauth_scopes, as: 'oauthScopes'
|
||||
property :preemptible, as: 'preemptible'
|
||||
hash :labels, as: 'labels'
|
||||
property :local_ssd_count, as: 'localSsdCount'
|
||||
end
|
||||
end
|
||||
|
||||
class MasterAuth
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :username, as: 'username'
|
||||
property :client_key, as: 'clientKey'
|
||||
property :cluster_ca_certificate, as: 'clusterCaCertificate'
|
||||
property :password, as: 'password'
|
||||
property :client_certificate, as: 'clientCertificate'
|
||||
property :username, as: 'username'
|
||||
property :client_key, as: 'clientKey'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -337,15 +343,18 @@ module Google
|
||||
class NodePoolAutoscaling
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :enabled, as: 'enabled'
|
||||
property :max_node_count, as: 'maxNodeCount'
|
||||
property :min_node_count, as: 'minNodeCount'
|
||||
property :enabled, as: 'enabled'
|
||||
end
|
||||
end
|
||||
|
||||
class ClusterUpdate
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :desired_node_pool_autoscaling, as: 'desiredNodePoolAutoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
|
||||
|
||||
collection :desired_locations, as: 'desiredLocations'
|
||||
property :desired_monitoring_service, as: 'desiredMonitoringService'
|
||||
property :desired_image_type, as: 'desiredImageType'
|
||||
property :desired_addons_config, as: 'desiredAddonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
|
||||
@@ -353,9 +362,6 @@ module Google
|
||||
property :desired_node_pool_id, as: 'desiredNodePoolId'
|
||||
property :desired_node_version, as: 'desiredNodeVersion'
|
||||
property :desired_master_version, as: 'desiredMasterVersion'
|
||||
collection :desired_locations, as: 'desiredLocations'
|
||||
property :desired_node_pool_autoscaling, as: 'desiredNodePoolAutoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -415,25 +421,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class NodePool
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
|
||||
|
||||
property :initial_node_count, as: 'initialNodeCount'
|
||||
property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation
|
||||
|
||||
property :self_link, as: 'selfLink'
|
||||
property :version, as: 'version'
|
||||
collection :instance_group_urls, as: 'instanceGroupUrls'
|
||||
property :status, as: 'status'
|
||||
property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
|
||||
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class SetLabelsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -442,13 +429,32 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class NodePool
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :status, as: 'status'
|
||||
property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
|
||||
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :name, as: 'name'
|
||||
property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
|
||||
|
||||
property :initial_node_count, as: 'initialNodeCount'
|
||||
property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation
|
||||
|
||||
property :self_link, as: 'selfLink'
|
||||
property :version, as: 'version'
|
||||
collection :instance_group_urls, as: 'instanceGroupUrls'
|
||||
end
|
||||
end
|
||||
|
||||
class NodeManagement
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :auto_upgrade, as: 'autoUpgrade'
|
||||
property :auto_repair, as: 'autoRepair'
|
||||
property :upgrade_options, as: 'upgradeOptions', class: Google::Apis::ContainerV1::AutoUpgradeOptions, decorator: Google::Apis::ContainerV1::AutoUpgradeOptions::Representation
|
||||
|
||||
property :auto_upgrade, as: 'autoUpgrade'
|
||||
property :auto_repair, as: 'autoRepair'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -468,14 +474,14 @@ module Google
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :status, as: 'status'
|
||||
property :name, as: 'name'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :target_link, as: 'targetLink'
|
||||
property :detail, as: 'detail'
|
||||
property :operation_type, as: 'operationType'
|
||||
property :zone, as: 'zone'
|
||||
property :status, as: 'status'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -488,12 +494,6 @@ module Google
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class RollbackNodePoolUpgradeRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -83,121 +83,6 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Cancels the specified operation.
|
||||
# @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 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 [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def cancel_operation(project_id, zone, operation_id, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel', options)
|
||||
command.request_representation = Google::Apis::ContainerV1::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Empty::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Empty
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['operationId'] = operation_id unless operation_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# 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 [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::ListOperationsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::ListOperationsResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.query['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
|
||||
# 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] 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 [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['operationId'] = operation_id unless operation_id.nil?
|
||||
command.query['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
|
||||
@@ -235,6 +120,48 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets labels on 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::SetLabelsRequest] set_labels_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options)
|
||||
command.request_representation = Google::Apis::ContainerV1::SetLabelsRequest::Representation
|
||||
command.request_object = set_labels_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a cluster, consisting of the specified number and type of Google
|
||||
# Compute Engine instances.
|
||||
# By default, the cluster is created in the project's
|
||||
@@ -283,48 +210,6 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets labels on 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::SetLabelsRequest] set_labels_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options)
|
||||
command.request_representation = Google::Apis::ContainerV1::SetLabelsRequest::Representation
|
||||
command.request_object = set_labels_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Completes master IP rotation.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project
|
||||
@@ -621,7 +506,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves the node pool requested.
|
||||
# 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).
|
||||
@@ -632,7 +517,7 @@ module Google
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster.
|
||||
# @param [String] node_pool_id
|
||||
# The name of the node pool.
|
||||
# The name of the node pool to delete.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -642,18 +527,18 @@ module Google
|
||||
# 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::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::NodePool]
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_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 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)
|
||||
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?
|
||||
@@ -708,48 +593,6 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# 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 [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.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
||||
command.query['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
|
||||
# The Google Developers Console [project ID or project
|
||||
@@ -876,6 +719,163 @@ module Google
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# 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] 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 [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::NodePool] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::NodePool]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::NodePool::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::NodePool
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists all operations in a project in a specific zone or all zones.
|
||||
# @param [String] project_id
|
||||
# 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 [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::ListOperationsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::ListOperationsResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.query['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
|
||||
# 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] 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 [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['operationId'] = operation_id unless operation_id.nil?
|
||||
command.query['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
|
||||
# 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 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 [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def cancel_operation(project_id, zone, operation_id, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel', options)
|
||||
command.request_representation = Google::Apis::ContainerV1::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Empty::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Empty
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['operationId'] = operation_id unless operation_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
|
||||
Reference in new issue
Block a user