google-cloud-container-v1 1.11.1 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec4daf0d35ab5898bdfe8d1d1c9ec01363d07f148b5d3b4a41f50cffc8c43981
4
- data.tar.gz: a6aecac3ec89c27b3412fa8fbb66148eebe28de5e3c1ec0a10e30e4aeb949e49
3
+ metadata.gz: 263b9d78dec44737fb57e776b91aaefe84f3a66cc9899ebfdcbf1618e51002bd
4
+ data.tar.gz: 768c283a86bf65025d95507332dc601ee219c2ef7d341d54fcf14dd54016c3cc
5
5
  SHA512:
6
- metadata.gz: bc684e63030fc73b01ffaf91d828272270259ea5c76719beeff53ae2436e794396b9903840054f612dfeb5f34317f320d7038d9e6bf9f290834e0744ae7d676b
7
- data.tar.gz: 56f582e286d98bf0c7441e1e29f6e232eb8f386133ed7a732768fb6ae57c2ff6f35614975605b8508758a139844fbf7fbd99703ec1db02c33a77778f93f48719
6
+ metadata.gz: aaaecd5e6627f928bff33e4b0684919331c443262295a3d065c49c2b31bff8fe0444dffadeaac304e1c7fdc6643a5119f1d6ae934e683885733e871b4ed4876e
7
+ data.tar.gz: 7493c0b85f4a417a731b43531ccabce602d1107524ecc8b95c7f31ddc0bf03333eaa653f7c7b511c1d8abbc9894bb40c336eb3a8fa12e78dfaeb932da58bab30
@@ -689,7 +689,7 @@ module Google
689
689
  # @param options [::Gapic::CallOptions, ::Hash]
690
690
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
691
691
  #
692
- # @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)
692
+ # @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)
693
693
  # Pass arguments to `update_node_pool` via keyword arguments. Note that at
694
694
  # least one keyword argument is required. To specify no parameters, or to keep all
695
695
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -827,6 +827,12 @@ module Google
827
827
  # The desired boot disk config for nodes in the node pool.
828
828
  # Initiates an upgrade operation that migrates the nodes in the
829
829
  # node pool to the specified boot disk config.
830
+ # @param node_drain_config [::Google::Cloud::Container::V1::NodePool::NodeDrainConfig, ::Hash]
831
+ # The desired node drain configuration for nodes in the node pool.
832
+ # @param consolidation_delay [::Google::Protobuf::Duration, ::Hash]
833
+ # Consolidation delay defines duration after which the Cluster Autoscaler can
834
+ # scale down underutilized nodes. If not set, nodes are scaled down by
835
+ # default behavior, i.e. according to the chosen autoscaling profile.
830
836
  #
831
837
  # @yield [response, operation] Access the result along with the RPC operation
832
838
  # @yieldparam response [::Google::Cloud::Container::V1::Operation]
@@ -66,6 +66,25 @@ module Google
66
66
  "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
67
67
  end
68
68
 
69
+ ##
70
+ # Create a fully-qualified Subnetwork resource string.
71
+ #
72
+ # The resource will be in the following format:
73
+ #
74
+ # `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
75
+ #
76
+ # @param project [String]
77
+ # @param region [String]
78
+ # @param subnetwork [String]
79
+ #
80
+ # @return [::String]
81
+ def subnetwork_path project:, region:, subnetwork:
82
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
83
+ raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
84
+
85
+ "projects/#{project}/regions/#{region}/subnetworks/#{subnetwork}"
86
+ end
87
+
69
88
  ##
70
89
  # Create a fully-qualified Topic resource string.
71
90
  #
@@ -654,7 +654,7 @@ module Google
654
654
  # @param options [::Gapic::CallOptions, ::Hash]
655
655
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
656
656
  #
657
- # @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)
657
+ # @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)
658
658
  # Pass arguments to `update_node_pool` via keyword arguments. Note that at
659
659
  # least one keyword argument is required. To specify no parameters, or to keep all
660
660
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -792,6 +792,12 @@ module Google
792
792
  # The desired boot disk config for nodes in the node pool.
793
793
  # Initiates an upgrade operation that migrates the nodes in the
794
794
  # node pool to the specified boot disk config.
795
+ # @param node_drain_config [::Google::Cloud::Container::V1::NodePool::NodeDrainConfig, ::Hash]
796
+ # The desired node drain configuration for nodes in the node pool.
797
+ # @param consolidation_delay [::Google::Protobuf::Duration, ::Hash]
798
+ # Consolidation delay defines duration after which the Cluster Autoscaler can
799
+ # scale down underutilized nodes. If not set, nodes are scaled down by
800
+ # default behavior, i.e. according to the chosen autoscaling profile.
795
801
  # @yield [result, operation] Access the result along with the TransportOperation object
796
802
  # @yieldparam result [::Google::Cloud::Container::V1::Operation]
797
803
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Container
23
23
  module V1
24
- VERSION = "1.11.1"
24
+ VERSION = "1.12.0"
25
25
  end
26
26
  end
27
27
  end