Skip to content

Commit dd96d20

Browse files
feat: Automated regeneration of container v1 client (googleapis#21878)
Auto-created at 2025-02-26 21:27:28 +0000 using the toys pull request generator.
1 parent 5e8fd6c commit dd96d20

File tree

5 files changed

+164
-11
lines changed

5 files changed

+164
-11
lines changed

api_names_out.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121052,6 +121052,8 @@
121052121052
"/container:v1/AutopilotCompatibilityIssue/lastObservation": last_observation
121053121053
"/container:v1/AutopilotCompatibilityIssue/subjects": subjects
121054121054
"/container:v1/AutopilotCompatibilityIssue/subjects/subject": subject
121055+
"/container:v1/AutopilotConfig": autopilot_config
121056+
"/container:v1/AutopilotConfig/enabled": enabled
121055121057
"/container:v1/AutoprovisioningNodePoolDefaults": autoprovisioning_node_pool_defaults
121056121058
"/container:v1/AutoprovisioningNodePoolDefaults/bootDiskKmsKey": boot_disk_kms_key
121057121059
"/container:v1/AutoprovisioningNodePoolDefaults/diskSizeGb": disk_size_gb
@@ -121605,9 +121607,17 @@
121605121607
"/container:v1/NodeConfigDefaults/loggingConfig": logging_config
121606121608
"/container:v1/NodeConfigDefaults/nodeKubeletConfig": node_kubelet_config
121607121609
"/container:v1/NodeKubeletConfig": node_kubelet_config
121610+
"/container:v1/NodeKubeletConfig/allowedUnsafeSysctls": allowed_unsafe_sysctls
121611+
"/container:v1/NodeKubeletConfig/allowedUnsafeSysctls/allowed_unsafe_sysctl": allowed_unsafe_sysctl
121612+
"/container:v1/NodeKubeletConfig/containerLogMaxFiles": container_log_max_files
121613+
"/container:v1/NodeKubeletConfig/containerLogMaxSize": container_log_max_size
121608121614
"/container:v1/NodeKubeletConfig/cpuCfsQuota": cpu_cfs_quota
121609121615
"/container:v1/NodeKubeletConfig/cpuCfsQuotaPeriod": cpu_cfs_quota_period
121610121616
"/container:v1/NodeKubeletConfig/cpuManagerPolicy": cpu_manager_policy
121617+
"/container:v1/NodeKubeletConfig/imageGcHighThresholdPercent": image_gc_high_threshold_percent
121618+
"/container:v1/NodeKubeletConfig/imageGcLowThresholdPercent": image_gc_low_threshold_percent
121619+
"/container:v1/NodeKubeletConfig/imageMaximumGcAge": image_maximum_gc_age
121620+
"/container:v1/NodeKubeletConfig/imageMinimumGcAge": image_minimum_gc_age
121611121621
"/container:v1/NodeKubeletConfig/insecureKubeletReadonlyPortEnabled": insecure_kubelet_readonly_port_enabled
121612121622
"/container:v1/NodeKubeletConfig/podPidsLimit": pod_pids_limit
121613121623
"/container:v1/NodeLabels": node_labels
@@ -121630,6 +121640,7 @@
121630121640
"/container:v1/NodeNetworkConfig/podIpv4RangeUtilization": pod_ipv4_range_utilization
121631121641
"/container:v1/NodeNetworkConfig/podRange": pod_range
121632121642
"/container:v1/NodePool": node_pool
121643+
"/container:v1/NodePool/autopilotConfig": autopilot_config
121633121644
"/container:v1/NodePool/autoscaling": autoscaling
121634121645
"/container:v1/NodePool/bestEffortProvisioning": best_effort_provisioning
121635121646
"/container:v1/NodePool/conditions": conditions
@@ -122059,6 +122070,7 @@
122059122070
"/container:v1/WorkloadMetadataConfig/mode": mode
122060122071
"/container:v1/WorkloadPolicyConfig": workload_policy_config
122061122072
"/container:v1/WorkloadPolicyConfig/allowNetAdmin": allow_net_admin
122073+
"/container:v1/WorkloadPolicyConfig/autopilotCompatibilityAuditingEnabled": autopilot_compatibility_auditing_enabled
122062122074
"/container:v1/container.projects.aggregated.usableSubnetworks.list": list_project_aggregated_usable_subnetworks
122063122075
"/container:v1/container.projects.aggregated.usableSubnetworks.list/filter": filter
122064122076
"/container:v1/container.projects.aggregated.usableSubnetworks.list/pageSize": page_size

generated/google-apis-container_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-container_v1
22

3+
### v0.89.0 (2025-02-26)
4+
5+
* Regenerated from discovery document revision 20250204
6+
37
### v0.88.0 (2025-01-12)
48

59
* Regenerated from discovery document revision 20241228

generated/google-apis-container_v1/lib/google/apis/container_v1/classes.rb

Lines changed: 123 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ class AutopilotCompatibilityIssue
425425
# @return [String]
426426
attr_accessor :description
427427

428-
# A URL to a public documnetation, which addresses resolving this issue.
428+
# A URL to a public documentation, which addresses resolving this issue.
429429
# Corresponds to the JSON property `documentationUrl`
430430
# @return [String]
431431
attr_accessor :documentation_url
@@ -460,6 +460,26 @@ def update!(**args)
460460
end
461461
end
462462

463+
# AutopilotConfig contains configuration of autopilot feature for this nodepool.
464+
class AutopilotConfig
465+
include Google::Apis::Core::Hashable
466+
467+
# Denotes that nodes belonging to this node pool are Autopilot nodes.
468+
# Corresponds to the JSON property `enabled`
469+
# @return [Boolean]
470+
attr_accessor :enabled
471+
alias_method :enabled?, :enabled
472+
473+
def initialize(**args)
474+
update!(**args)
475+
end
476+
477+
# Update properties of this object
478+
def update!(**args)
479+
@enabled = args[:enabled] if args.key?(:enabled)
480+
end
481+
end
482+
463483
# AutoprovisioningNodePoolDefaults contains defaults for a node pool created by
464484
# NAP.
465485
class AutoprovisioningNodePoolDefaults
@@ -786,7 +806,7 @@ class CertificateAuthorityDomainConfig
786806
include Google::Apis::Core::Hashable
787807

788808
# List of fully qualified domain names (FQDN). Specifying port is supported.
789-
# Wilcards are NOT supported. Examples: - my.customdomain.com - 10.0.1.2:5000
809+
# Wildcards are NOT supported. Examples: - my.customdomain.com - 10.0.1.2:5000
790810
# Corresponds to the JSON property `fqdns`
791811
# @return [Array<String>]
792812
attr_accessor :fqdns
@@ -2867,7 +2887,7 @@ def update!(**args)
28672887
end
28682888
end
28692889

2870-
# GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
2890+
# GetJSONWebKeysResponse is a valid JSON Web Key Set as specified in rfc 7517
28712891
class GetJsonWebKeysResponse
28722892
include Google::Apis::Core::Hashable
28732893

@@ -3533,9 +3553,14 @@ class LinuxNodeConfig
35333553

35343554
# The Linux kernel parameters to be applied to the nodes and all pods running on
35353555
# the nodes. The following parameters are supported. net.core.busy_poll net.core.
3536-
# busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default
3537-
# net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.
3538-
# ipv4.tcp_wmem net.ipv4.tcp_tw_reuse kernel.shmmni kernel.shmmax kernel.shmall
3556+
# busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.rmem_default
3557+
# net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn
3558+
# net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse net.netfilter.
3559+
# nf_conntrack_max net.netfilter.nf_conntrack_buckets net.netfilter.
3560+
# nf_conntrack_tcp_timeout_close_wait net.netfilter.
3561+
# nf_conntrack_tcp_timeout_time_wait net.netfilter.
3562+
# nf_conntrack_tcp_timeout_established net.netfilter.nf_conntrack_acct kernel.
3563+
# shmmni kernel.shmmax kernel.shmall vm.max_map_count
35393564
# Corresponds to the JSON property `sysctls`
35403565
# @return [Hash<String,String>]
35413566
attr_accessor :sysctls
@@ -3924,7 +3949,7 @@ class MasterAuthorizedNetworksConfig
39243949
attr_accessor :enabled
39253950
alias_method :enabled?, :enabled
39263951

3927-
# Whether master is accessbile via Google Compute Engine Public IP addresses.
3952+
# Whether master is accessible via Google Compute Engine Public IP addresses.
39283953
# Corresponds to the JSON property `gcpPublicCidrsAccessEnabled`
39293954
# @return [Boolean]
39303955
attr_accessor :gcp_public_cidrs_access_enabled
@@ -4160,7 +4185,7 @@ class NetworkConfig
41604185
# @return [String]
41614186
attr_accessor :in_transit_encryption_config
41624187

4163-
# Output only. The relative name of the Google Compute Engine network(https://
4188+
# Output only. The relative name of the Google Compute Engine [network](https://
41644189
# cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the
41654190
# cluster is connected. Example: projects/my-project/global/networks/my-network
41664191
# Corresponds to the JSON property `network`
@@ -4464,7 +4489,7 @@ class NodeConfig
44644489
# @return [Fixnum]
44654490
attr_accessor :local_ssd_count
44664491

4467-
# Specifies which method should be used for encrypting the Local SSDs attahced
4492+
# Specifies which method should be used for encrypting the Local SSDs attached
44684493
# to the node.
44694494
# Corresponds to the JSON property `localSsdEncryptionMode`
44704495
# @return [String]
@@ -4734,6 +4759,37 @@ def update!(**args)
47344759
class NodeKubeletConfig
47354760
include Google::Apis::Core::Hashable
47364761

4762+
# Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl
4763+
# patterns (ending in `*`). The unsafe namespaced sysctl groups are `kernel.shm*`
4764+
# , `kernel.msg*`, `kernel.sem`, `fs.mqueue.*`, and `net.*`. Leaving this
4765+
# allowlist empty means they cannot be set on Pods. To allow certain sysctls or
4766+
# sysctl patterns to be set on Pods, list them separated by commas. For example:
4767+
# `kernel.msg*,net.ipv4.route.min_pmtu`. See https://kubernetes.io/docs/tasks/
4768+
# administer-cluster/sysctl-cluster/ for more details.
4769+
# Corresponds to the JSON property `allowedUnsafeSysctls`
4770+
# @return [Array<String>]
4771+
attr_accessor :allowed_unsafe_sysctls
4772+
4773+
# Optional. Defines the maximum number of container log files that can be
4774+
# present for a container. See https://kubernetes.io/docs/concepts/cluster-
4775+
# administration/logging/#log-rotation The value must be an integer between 2
4776+
# and 10, inclusive. The default value is 5 if unspecified.
4777+
# Corresponds to the JSON property `containerLogMaxFiles`
4778+
# @return [Fixnum]
4779+
attr_accessor :container_log_max_files
4780+
4781+
# Optional. Defines the maximum size of the container log file before it is
4782+
# rotated. See https://kubernetes.io/docs/concepts/cluster-administration/
4783+
# logging/#log-rotation Valid format is positive number + unit, e.g. 100Ki, 10Mi.
4784+
# Valid units are Ki, Mi, Gi. The value must be between 10Mi and 500Mi,
4785+
# inclusive. Note that the total container log size (container_log_max_size *
4786+
# container_log_max_files) cannot exceed 1% of the total storage of the node, to
4787+
# avoid disk pressure caused by log files. The default value is 10Mi if
4788+
# unspecified.
4789+
# Corresponds to the JSON property `containerLogMaxSize`
4790+
# @return [String]
4791+
attr_accessor :container_log_max_size
4792+
47374793
# Enable CPU CFS quota enforcement for containers that specify CPU limits. This
47384794
# option is enabled by default which makes kubelet use CFS quota (https://www.
47394795
# kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU
@@ -4764,6 +4820,44 @@ class NodeKubeletConfig
47644820
# @return [String]
47654821
attr_accessor :cpu_manager_policy
47664822

4823+
# Optional. Defines the percent of disk usage after which image garbage
4824+
# collection is always run. The percent is calculated as this field value out of
4825+
# 100. The value must be between 10 and 85, inclusive and greater than
4826+
# image_gc_low_threshold_percent. The default value is 85 if unspecified.
4827+
# Corresponds to the JSON property `imageGcHighThresholdPercent`
4828+
# @return [Fixnum]
4829+
attr_accessor :image_gc_high_threshold_percent
4830+
4831+
# Optional. Defines the percent of disk usage before which image garbage
4832+
# collection is never run. Lowest disk usage to garbage collect to. The percent
4833+
# is calculated as this field value out of 100. The value must be between 10 and
4834+
# 85, inclusive and smaller than image_gc_high_threshold_percent. The default
4835+
# value is 80 if unspecified.
4836+
# Corresponds to the JSON property `imageGcLowThresholdPercent`
4837+
# @return [Fixnum]
4838+
attr_accessor :image_gc_low_threshold_percent
4839+
4840+
# Optional. Defines the maximum age an image can be unused before it is garbage
4841+
# collected. The string must be a sequence of decimal numbers, each with
4842+
# optional fraction and a unit suffix, such as "300s", "1.5h", and "2h45m".
4843+
# Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". The value must
4844+
# be a positive duration greater than image_minimum_gc_age or "0s". The default
4845+
# value is "0s" if unspecified, which disables this field, meaning images won't
4846+
# be garbage collected based on being unused for too long.
4847+
# Corresponds to the JSON property `imageMaximumGcAge`
4848+
# @return [String]
4849+
attr_accessor :image_maximum_gc_age
4850+
4851+
# Optional. Defines the minimum age for an unused image before it is garbage
4852+
# collected. The string must be a sequence of decimal numbers, each with
4853+
# optional fraction and a unit suffix, such as "300s", "1.5h", and "2h45m".
4854+
# Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". The value must
4855+
# be a positive duration less than or equal to 2 minutes. The default value is "
4856+
# 2m0s" if unspecified.
4857+
# Corresponds to the JSON property `imageMinimumGcAge`
4858+
# @return [String]
4859+
attr_accessor :image_minimum_gc_age
4860+
47674861
# Enable or disable Kubelet read only port.
47684862
# Corresponds to the JSON property `insecureKubeletReadonlyPortEnabled`
47694863
# @return [Boolean]
@@ -4784,9 +4878,16 @@ def initialize(**args)
47844878

47854879
# Update properties of this object
47864880
def update!(**args)
4881+
@allowed_unsafe_sysctls = args[:allowed_unsafe_sysctls] if args.key?(:allowed_unsafe_sysctls)
4882+
@container_log_max_files = args[:container_log_max_files] if args.key?(:container_log_max_files)
4883+
@container_log_max_size = args[:container_log_max_size] if args.key?(:container_log_max_size)
47874884
@cpu_cfs_quota = args[:cpu_cfs_quota] if args.key?(:cpu_cfs_quota)
47884885
@cpu_cfs_quota_period = args[:cpu_cfs_quota_period] if args.key?(:cpu_cfs_quota_period)
47894886
@cpu_manager_policy = args[:cpu_manager_policy] if args.key?(:cpu_manager_policy)
4887+
@image_gc_high_threshold_percent = args[:image_gc_high_threshold_percent] if args.key?(:image_gc_high_threshold_percent)
4888+
@image_gc_low_threshold_percent = args[:image_gc_low_threshold_percent] if args.key?(:image_gc_low_threshold_percent)
4889+
@image_maximum_gc_age = args[:image_maximum_gc_age] if args.key?(:image_maximum_gc_age)
4890+
@image_minimum_gc_age = args[:image_minimum_gc_age] if args.key?(:image_minimum_gc_age)
47904891
@insecure_kubelet_readonly_port_enabled = args[:insecure_kubelet_readonly_port_enabled] if args.key?(:insecure_kubelet_readonly_port_enabled)
47914892
@pod_pids_limit = args[:pod_pids_limit] if args.key?(:pod_pids_limit)
47924893
end
@@ -4951,6 +5052,11 @@ def update!(**args)
49515052
class NodePool
49525053
include Google::Apis::Core::Hashable
49535054

5055+
# AutopilotConfig contains configuration of autopilot feature for this nodepool.
5056+
# Corresponds to the JSON property `autopilotConfig`
5057+
# @return [Google::Apis::ContainerV1::AutopilotConfig]
5058+
attr_accessor :autopilot_config
5059+
49545060
# NodePoolAutoscaling contains information required by cluster autoscaler to
49555061
# adjust the size of the node pool to the current cluster usage.
49565062
# Corresponds to the JSON property `autoscaling`
@@ -5113,6 +5219,7 @@ def initialize(**args)
51135219

51145220
# Update properties of this object
51155221
def update!(**args)
5222+
@autopilot_config = args[:autopilot_config] if args.key?(:autopilot_config)
51165223
@autoscaling = args[:autoscaling] if args.key?(:autoscaling)
51175224
@best_effort_provisioning = args[:best_effort_provisioning] if args.key?(:best_effort_provisioning)
51185225
@conditions = args[:conditions] if args.key?(:conditions)
@@ -8384,13 +8491,20 @@ class WorkloadPolicyConfig
83848491
attr_accessor :allow_net_admin
83858492
alias_method :allow_net_admin?, :allow_net_admin
83868493

8494+
# If true, enables the GCW Auditor that audits workloads on standard clusters.
8495+
# Corresponds to the JSON property `autopilotCompatibilityAuditingEnabled`
8496+
# @return [Boolean]
8497+
attr_accessor :autopilot_compatibility_auditing_enabled
8498+
alias_method :autopilot_compatibility_auditing_enabled?, :autopilot_compatibility_auditing_enabled
8499+
83878500
def initialize(**args)
83888501
update!(**args)
83898502
end
83908503

83918504
# Update properties of this object
83928505
def update!(**args)
83938506
@allow_net_admin = args[:allow_net_admin] if args.key?(:allow_net_admin)
8507+
@autopilot_compatibility_auditing_enabled = args[:autopilot_compatibility_auditing_enabled] if args.key?(:autopilot_compatibility_auditing_enabled)
83948508
end
83958509
end
83968510
end

generated/google-apis-container_v1/lib/google/apis/container_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module ContainerV1
1818
# Version of the google-apis-container_v1 gem
19-
GEM_VERSION = "0.88.0"
19+
GEM_VERSION = "0.89.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241228"
25+
REVISION = "20250204"
2626
end
2727
end
2828
end

generated/google-apis-container_v1/lib/google/apis/container_v1/representations.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
8888
include Google::Apis::Core::JsonObjectSupport
8989
end
9090

91+
class AutopilotConfig
92+
class Representation < Google::Apis::Core::JsonRepresentation; end
93+
94+
include Google::Apis::Core::JsonObjectSupport
95+
end
96+
9197
class AutoprovisioningNodePoolDefaults
9298
class Representation < Google::Apis::Core::JsonRepresentation; end
9399

@@ -1279,6 +1285,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
12791285
end
12801286
end
12811287

1288+
class AutopilotConfig
1289+
# @private
1290+
class Representation < Google::Apis::Core::JsonRepresentation
1291+
property :enabled, as: 'enabled'
1292+
end
1293+
end
1294+
12821295
class AutoprovisioningNodePoolDefaults
12831296
# @private
12841297
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2409,9 +2422,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
24092422
class NodeKubeletConfig
24102423
# @private
24112424
class Representation < Google::Apis::Core::JsonRepresentation
2425+
collection :allowed_unsafe_sysctls, as: 'allowedUnsafeSysctls'
2426+
property :container_log_max_files, as: 'containerLogMaxFiles'
2427+
property :container_log_max_size, as: 'containerLogMaxSize'
24122428
property :cpu_cfs_quota, as: 'cpuCfsQuota'
24132429
property :cpu_cfs_quota_period, as: 'cpuCfsQuotaPeriod'
24142430
property :cpu_manager_policy, as: 'cpuManagerPolicy'
2431+
property :image_gc_high_threshold_percent, as: 'imageGcHighThresholdPercent'
2432+
property :image_gc_low_threshold_percent, as: 'imageGcLowThresholdPercent'
2433+
property :image_maximum_gc_age, as: 'imageMaximumGcAge'
2434+
property :image_minimum_gc_age, as: 'imageMinimumGcAge'
24152435
property :insecure_kubelet_readonly_port_enabled, as: 'insecureKubeletReadonlyPortEnabled'
24162436
property :pod_pids_limit, :numeric_string => true, as: 'podPidsLimit'
24172437
end
@@ -2456,6 +2476,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
24562476
class NodePool
24572477
# @private
24582478
class Representation < Google::Apis::Core::JsonRepresentation
2479+
property :autopilot_config, as: 'autopilotConfig', class: Google::Apis::ContainerV1::AutopilotConfig, decorator: Google::Apis::ContainerV1::AutopilotConfig::Representation
2480+
24592481
property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
24602482

24612483
property :best_effort_provisioning, as: 'bestEffortProvisioning', class: Google::Apis::ContainerV1::BestEffortProvisioning, decorator: Google::Apis::ContainerV1::BestEffortProvisioning::Representation
@@ -3314,6 +3336,7 @@ class WorkloadPolicyConfig
33143336
# @private
33153337
class Representation < Google::Apis::Core::JsonRepresentation
33163338
property :allow_net_admin, as: 'allowNetAdmin'
3339+
property :autopilot_compatibility_auditing_enabled, as: 'autopilotCompatibilityAuditingEnabled'
33173340
end
33183341
end
33193342
end

0 commit comments

Comments
 (0)