Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ def update_cluster request, options = nil
# @param options [::Gapic::CallOptions, ::Hash]
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
#
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil, locations: nil, workload_metadata_config: nil, upgrade_settings: nil, tags: nil, taints: nil, labels: nil, linux_node_config: nil, kubelet_config: nil, node_network_config: nil, gcfs_config: nil, confidential_nodes: nil, gvnic: nil, etag: nil, fast_socket: nil, logging_config: nil, resource_labels: nil, windows_node_config: nil, accelerators: nil, machine_type: nil, disk_type: nil, disk_size_gb: nil, resource_manager_tags: nil, containerd_config: nil, queued_provisioning: nil, storage_pools: nil, max_run_duration: nil, flex_start: nil, boot_disk: nil)
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil, locations: nil, workload_metadata_config: nil, upgrade_settings: nil, tags: nil, taints: nil, labels: nil, linux_node_config: nil, kubelet_config: nil, node_network_config: nil, gcfs_config: nil, confidential_nodes: nil, gvnic: nil, etag: nil, fast_socket: nil, logging_config: nil, resource_labels: nil, windows_node_config: nil, accelerators: nil, machine_type: nil, disk_type: nil, disk_size_gb: nil, resource_manager_tags: nil, containerd_config: nil, queued_provisioning: nil, storage_pools: nil, max_run_duration: nil, flex_start: nil, boot_disk: nil, node_drain_config: nil, consolidation_delay: nil)
# Pass arguments to `update_node_pool` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
Expand Down Expand Up @@ -827,6 +827,12 @@ def update_cluster request, options = nil
# The desired boot disk config for nodes in the node pool.
# Initiates an upgrade operation that migrates the nodes in the
# node pool to the specified boot disk config.
# @param node_drain_config [::Google::Cloud::Container::V1::NodePool::NodeDrainConfig, ::Hash]
# The desired node drain configuration for nodes in the node pool.
# @param consolidation_delay [::Google::Protobuf::Duration, ::Hash]
# Consolidation delay defines duration after which the Cluster Autoscaler can
# scale down underutilized nodes. If not set, nodes are scaled down by
# default behavior, i.e. according to the chosen autoscaling profile.
#
# @yield [response, operation] Access the result along with the RPC operation
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,25 @@ def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
end

##
# Create a fully-qualified Subnetwork resource string.
#
# The resource will be in the following format:
#
# `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
#
# @param project [String]
# @param region [String]
# @param subnetwork [String]
#
# @return [::String]
def subnetwork_path project:, region:, subnetwork:
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"

"projects/#{project}/regions/#{region}/subnetworks/#{subnetwork}"
end

##
# Create a fully-qualified Topic resource string.
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ def update_cluster request, options = nil
# @param options [::Gapic::CallOptions, ::Hash]
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
#
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil, locations: nil, workload_metadata_config: nil, upgrade_settings: nil, tags: nil, taints: nil, labels: nil, linux_node_config: nil, kubelet_config: nil, node_network_config: nil, gcfs_config: nil, confidential_nodes: nil, gvnic: nil, etag: nil, fast_socket: nil, logging_config: nil, resource_labels: nil, windows_node_config: nil, accelerators: nil, machine_type: nil, disk_type: nil, disk_size_gb: nil, resource_manager_tags: nil, containerd_config: nil, queued_provisioning: nil, storage_pools: nil, max_run_duration: nil, flex_start: nil, boot_disk: nil)
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil, locations: nil, workload_metadata_config: nil, upgrade_settings: nil, tags: nil, taints: nil, labels: nil, linux_node_config: nil, kubelet_config: nil, node_network_config: nil, gcfs_config: nil, confidential_nodes: nil, gvnic: nil, etag: nil, fast_socket: nil, logging_config: nil, resource_labels: nil, windows_node_config: nil, accelerators: nil, machine_type: nil, disk_type: nil, disk_size_gb: nil, resource_manager_tags: nil, containerd_config: nil, queued_provisioning: nil, storage_pools: nil, max_run_duration: nil, flex_start: nil, boot_disk: nil, node_drain_config: nil, consolidation_delay: nil)
# Pass arguments to `update_node_pool` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
Expand Down Expand Up @@ -792,6 +792,12 @@ def update_cluster request, options = nil
# The desired boot disk config for nodes in the node pool.
# Initiates an upgrade operation that migrates the nodes in the
# node pool to the specified boot disk config.
# @param node_drain_config [::Google::Cloud::Container::V1::NodePool::NodeDrainConfig, ::Hash]
# The desired node drain configuration for nodes in the node pool.
# @param consolidation_delay [::Google::Protobuf::Duration, ::Hash]
# Consolidation delay defines duration after which the Cluster Autoscaler can
# scale down underutilized nodes. If not set, nodes are scaled down by
# default behavior, i.e. according to the chosen autoscaling profile.
# @yield [result, operation] Access the result along with the TransportOperation object
# @yieldparam result [::Google::Cloud::Container::V1::Operation]
# @yieldparam operation [::Gapic::Rest::TransportOperation]
Expand Down

Large diffs are not rendered by default.

Loading
Loading