From cfe309d3d119a356c0b44982d45c729c462418e5 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 9 Nov 2025 09:10:53 +0000 Subject: [PATCH] feat: Automated regeneration of container v1beta1 client --- api_names_out.yaml | 52 +++ .../CHANGELOG.md | 4 + .../google/apis/container_v1beta1/classes.rb | 357 +++++++++++++++++- .../apis/container_v1beta1/gem_version.rb | 4 +- .../apis/container_v1beta1/representations.rb | 163 ++++++++ .../google/apis/container_v1beta1/service.rb | 70 ++++ 6 files changed, 647 insertions(+), 3 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 9432dbc325b..667b5079426 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -137468,6 +137468,7 @@ "/container:v1beta1/AddonsConfig/lustreCsiDriverConfig": lustre_csi_driver_config "/container:v1beta1/AddonsConfig/networkPolicyConfig": network_policy_config "/container:v1beta1/AddonsConfig/parallelstoreCsiDriverConfig": parallelstore_csi_driver_config +"/container:v1beta1/AddonsConfig/podSnapshotConfig": pod_snapshot_config "/container:v1beta1/AddonsConfig/rayOperatorConfig": ray_operator_config "/container:v1beta1/AddonsConfig/statefulHaConfig": stateful_ha_config "/container:v1beta1/AdvancedDatapathObservabilityConfig": advanced_datapath_observability_config @@ -137564,6 +137565,11 @@ "/container:v1beta1/CertificateAuthorityDomainConfig/fqdns": fqdns "/container:v1beta1/CertificateAuthorityDomainConfig/fqdns/fqdn": fqdn "/container:v1beta1/CertificateAuthorityDomainConfig/gcpSecretManagerCertificateConfig": gcp_secret_manager_certificate_config +"/container:v1beta1/CertificateConfig": certificate_config +"/container:v1beta1/CertificateConfig/gcpSecretManagerSecretUri": gcp_secret_manager_secret_uri +"/container:v1beta1/CertificateConfigPair": certificate_config_pair +"/container:v1beta1/CertificateConfigPair/cert": cert +"/container:v1beta1/CertificateConfigPair/key": key "/container:v1beta1/CheckAutopilotCompatibilityResponse": check_autopilot_compatibility_response "/container:v1beta1/CheckAutopilotCompatibilityResponse/issues": issues "/container:v1beta1/CheckAutopilotCompatibilityResponse/issues/issue": issue @@ -137594,6 +137600,7 @@ "/container:v1beta1/Cluster/controlPlaneEndpointsConfig": control_plane_endpoints_config "/container:v1beta1/Cluster/costManagementConfig": cost_management_config "/container:v1beta1/Cluster/createTime": create_time +"/container:v1beta1/Cluster/currentEmulatedVersion": current_emulated_version "/container:v1beta1/Cluster/currentMasterVersion": current_master_version "/container:v1beta1/Cluster/currentNodeCount": current_node_count "/container:v1beta1/Cluster/currentNodeVersion": current_node_version @@ -137653,6 +137660,7 @@ "/container:v1beta1/Cluster/resourceLabels": resource_labels "/container:v1beta1/Cluster/resourceLabels/resource_label": resource_label "/container:v1beta1/Cluster/resourceUsageExportConfig": resource_usage_export_config +"/container:v1beta1/Cluster/rollbackSafeUpgrade": rollback_safe_upgrade "/container:v1beta1/Cluster/satisfiesPzi": satisfies_pzi "/container:v1beta1/Cluster/satisfiesPzs": satisfies_pzs "/container:v1beta1/Cluster/secretManagerConfig": secret_manager_config @@ -137753,6 +137761,7 @@ "/container:v1beta1/ClusterUpdate/desiredRbacBindingConfig": desired_rbac_binding_config "/container:v1beta1/ClusterUpdate/desiredReleaseChannel": desired_release_channel "/container:v1beta1/ClusterUpdate/desiredResourceUsageExportConfig": desired_resource_usage_export_config +"/container:v1beta1/ClusterUpdate/desiredRollbackSafeUpgrade": desired_rollback_safe_upgrade "/container:v1beta1/ClusterUpdate/desiredSecretManagerConfig": desired_secret_manager_config "/container:v1beta1/ClusterUpdate/desiredSecretSyncConfig": desired_secret_sync_config "/container:v1beta1/ClusterUpdate/desiredSecurityPostureConfig": desired_security_posture_config @@ -137780,8 +137789,14 @@ "/container:v1beta1/ClusterUpgradeInfo/patchTargetVersion": patch_target_version "/container:v1beta1/ClusterUpgradeInfo/pausedReason": paused_reason "/container:v1beta1/ClusterUpgradeInfo/pausedReason/paused_reason": paused_reason +"/container:v1beta1/ClusterUpgradeInfo/rollbackSafeUpgradeStatus": rollback_safe_upgrade_status "/container:v1beta1/ClusterUpgradeInfo/upgradeDetails": upgrade_details "/container:v1beta1/ClusterUpgradeInfo/upgradeDetails/upgrade_detail": upgrade_detail +"/container:v1beta1/CompatibilityStatus": compatibility_status +"/container:v1beta1/CompatibilityStatus/downgradableVersion": downgradable_version +"/container:v1beta1/CompatibilityStatus/emulatedVersionTime": emulated_version_time +"/container:v1beta1/CompleteControlPlaneUpgradeRequest": complete_control_plane_upgrade_request +"/container:v1beta1/CompleteControlPlaneUpgradeRequest/version": version "/container:v1beta1/CompleteIPRotationRequest": complete_ip_rotation_request "/container:v1beta1/CompleteIPRotationRequest/clusterId": cluster_id "/container:v1beta1/CompleteIPRotationRequest/name": name @@ -137803,6 +137818,8 @@ "/container:v1beta1/ConsumptionMeteringConfig/enabled": enabled "/container:v1beta1/ContainerdConfig": containerd_config "/container:v1beta1/ContainerdConfig/privateRegistryAccessConfig": private_registry_access_config +"/container:v1beta1/ContainerdConfig/registryHosts": registry_hosts +"/container:v1beta1/ContainerdConfig/registryHosts/registry_host": registry_host "/container:v1beta1/ContainerdConfig/writableCgroups": writable_cgroups "/container:v1beta1/ControlPlaneEndpointsConfig": control_plane_endpoints_config "/container:v1beta1/ControlPlaneEndpointsConfig/dnsEndpointConfig": dns_endpoint_config @@ -137964,6 +137981,18 @@ "/container:v1beta1/HighScaleCheckpointingConfig/enabled": enabled "/container:v1beta1/HorizontalPodAutoscaling": horizontal_pod_autoscaling "/container:v1beta1/HorizontalPodAutoscaling/disabled": disabled +"/container:v1beta1/HostConfig": host_config +"/container:v1beta1/HostConfig/ca": ca +"/container:v1beta1/HostConfig/ca/ca": ca +"/container:v1beta1/HostConfig/capabilities": capabilities +"/container:v1beta1/HostConfig/capabilities/capability": capability +"/container:v1beta1/HostConfig/client": client +"/container:v1beta1/HostConfig/client/client": client +"/container:v1beta1/HostConfig/dialTimeout": dial_timeout +"/container:v1beta1/HostConfig/header": header +"/container:v1beta1/HostConfig/header/header": header +"/container:v1beta1/HostConfig/host": host +"/container:v1beta1/HostConfig/overridePath": override_path "/container:v1beta1/HostMaintenancePolicy": host_maintenance_policy "/container:v1beta1/HostMaintenancePolicy/maintenanceInterval": maintenance_interval "/container:v1beta1/HostMaintenancePolicy/opportunisticMaintenanceStrategy": opportunistic_maintenance_strategy @@ -138099,6 +138128,7 @@ "/container:v1beta1/ManagedPrometheusConfig/autoMonitoringConfig": auto_monitoring_config "/container:v1beta1/ManagedPrometheusConfig/enabled": enabled "/container:v1beta1/Master": master +"/container:v1beta1/Master/compatibilityStatus": compatibility_status "/container:v1beta1/MasterAuth": master_auth "/container:v1beta1/MasterAuth/clientCertificate": client_certificate "/container:v1beta1/MasterAuth/clientCertificateConfig": client_certificate_config @@ -138387,6 +138417,8 @@ "/container:v1beta1/PodCIDROverprovisionConfig/disable": disable "/container:v1beta1/PodSecurityPolicyConfig": pod_security_policy_config "/container:v1beta1/PodSecurityPolicyConfig/enabled": enabled +"/container:v1beta1/PodSnapshotConfig": pod_snapshot_config +"/container:v1beta1/PodSnapshotConfig/enabled": enabled "/container:v1beta1/PolicyBinding": policy_binding "/container:v1beta1/PolicyBinding/name": name "/container:v1beta1/PrivateClusterConfig": private_cluster_config @@ -138433,6 +138465,14 @@ "/container:v1beta1/RecurringTimeWindow": recurring_time_window "/container:v1beta1/RecurringTimeWindow/recurrence": recurrence "/container:v1beta1/RecurringTimeWindow/window": window +"/container:v1beta1/RegistryHeader": registry_header +"/container:v1beta1/RegistryHeader/key": key +"/container:v1beta1/RegistryHeader/value": value +"/container:v1beta1/RegistryHeader/value/value": value +"/container:v1beta1/RegistryHostConfig": registry_host_config +"/container:v1beta1/RegistryHostConfig/hosts": hosts +"/container:v1beta1/RegistryHostConfig/hosts/host": host +"/container:v1beta1/RegistryHostConfig/server": server "/container:v1beta1/ReleaseChannel": release_channel "/container:v1beta1/ReleaseChannel/channel": channel "/container:v1beta1/ReleaseChannelConfig": release_channel_config @@ -138469,6 +138509,12 @@ "/container:v1beta1/RollbackNodePoolUpgradeRequest/projectId": project_id "/container:v1beta1/RollbackNodePoolUpgradeRequest/respectPdb": respect_pdb "/container:v1beta1/RollbackNodePoolUpgradeRequest/zone": zone +"/container:v1beta1/RollbackSafeUpgrade": rollback_safe_upgrade +"/container:v1beta1/RollbackSafeUpgrade/controlPlaneSoakDuration": control_plane_soak_duration +"/container:v1beta1/RollbackSafeUpgradeStatus": rollback_safe_upgrade_status +"/container:v1beta1/RollbackSafeUpgradeStatus/controlPlaneUpgradeRollbackEndTime": control_plane_upgrade_rollback_end_time +"/container:v1beta1/RollbackSafeUpgradeStatus/mode": mode +"/container:v1beta1/RollbackSafeUpgradeStatus/previousVersion": previous_version "/container:v1beta1/RotationConfig": rotation_config "/container:v1beta1/RotationConfig/enabled": enabled "/container:v1beta1/RotationConfig/rotationInterval": rotation_interval @@ -138710,10 +138756,12 @@ "/container:v1beta1/UpgradeAvailableEvent/windowsVersions": windows_versions "/container:v1beta1/UpgradeDetails": upgrade_details "/container:v1beta1/UpgradeDetails/endTime": end_time +"/container:v1beta1/UpgradeDetails/initialEmulatedVersion": initial_emulated_version "/container:v1beta1/UpgradeDetails/initialVersion": initial_version "/container:v1beta1/UpgradeDetails/startTime": start_time "/container:v1beta1/UpgradeDetails/startType": start_type "/container:v1beta1/UpgradeDetails/state": state +"/container:v1beta1/UpgradeDetails/targetEmulatedVersion": target_emulated_version "/container:v1beta1/UpgradeDetails/targetVersion": target_version "/container:v1beta1/UpgradeEvent": upgrade_event "/container:v1beta1/UpgradeEvent/currentEmulatedVersion": current_emulated_version @@ -138807,6 +138855,8 @@ "/container:v1beta1/container.projects.getIamPolicy/resource": resource "/container:v1beta1/container.projects.locations.clusters.checkAutopilotCompatibility": check_project_location_cluster_autopilot_compatibility "/container:v1beta1/container.projects.locations.clusters.checkAutopilotCompatibility/name": name +"/container:v1beta1/container.projects.locations.clusters.completeControlPlaneUpgrade": complete_project_location_cluster_control_plane_upgrade +"/container:v1beta1/container.projects.locations.clusters.completeControlPlaneUpgrade/name": name "/container:v1beta1/container.projects.locations.clusters.completeIpRotation": complete_project_location_cluster_ip_rotation "/container:v1beta1/container.projects.locations.clusters.completeIpRotation/name": name "/container:v1beta1/container.projects.locations.clusters.create": create_project_location_cluster @@ -138916,6 +138966,8 @@ "/container:v1beta1/container.projects.zones.clusters.addons/clusterId": cluster_id "/container:v1beta1/container.projects.zones.clusters.addons/projectId": project_id "/container:v1beta1/container.projects.zones.clusters.addons/zone": zone +"/container:v1beta1/container.projects.zones.clusters.completeControlPlaneUpgrade": complete_project_zone_cluster_control_plane_upgrade +"/container:v1beta1/container.projects.zones.clusters.completeControlPlaneUpgrade/name": name "/container:v1beta1/container.projects.zones.clusters.completeIpRotation": complete_project_zone_cluster_ip_rotation "/container:v1beta1/container.projects.zones.clusters.completeIpRotation/clusterId": cluster_id "/container:v1beta1/container.projects.zones.clusters.completeIpRotation/projectId": project_id diff --git a/generated/google-apis-container_v1beta1/CHANGELOG.md b/generated/google-apis-container_v1beta1/CHANGELOG.md index 0bcf4b1453a..f8d731dc62f 100644 --- a/generated/google-apis-container_v1beta1/CHANGELOG.md +++ b/generated/google-apis-container_v1beta1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-container_v1beta1 +### v0.96.0 (2025-11-09) + +* Regenerated from discovery document revision 20251028 + ### v0.95.0 (2025-11-02) * Regenerated from discovery document revision 20251021 diff --git a/generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/classes.rb b/generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/classes.rb index f43bdf03d74..69afce515ac 100644 --- a/generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/classes.rb +++ b/generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/classes.rb @@ -287,6 +287,11 @@ class AddonsConfig # @return [Google::Apis::ContainerV1beta1::ParallelstoreCsiDriverConfig] attr_accessor :parallelstore_csi_driver_config + # PodSnapshotConfig is the configuration for GKE Pod Snapshots feature. + # Corresponds to the JSON property `podSnapshotConfig` + # @return [Google::Apis::ContainerV1beta1::PodSnapshotConfig] + attr_accessor :pod_snapshot_config + # Configuration options for the Ray Operator add-on. # Corresponds to the JSON property `rayOperatorConfig` # @return [Google::Apis::ContainerV1beta1::RayOperatorConfig] @@ -319,6 +324,7 @@ def update!(**args) @lustre_csi_driver_config = args[:lustre_csi_driver_config] if args.key?(:lustre_csi_driver_config) @network_policy_config = args[:network_policy_config] if args.key?(:network_policy_config) @parallelstore_csi_driver_config = args[:parallelstore_csi_driver_config] if args.key?(:parallelstore_csi_driver_config) + @pod_snapshot_config = args[:pod_snapshot_config] if args.key?(:pod_snapshot_config) @ray_operator_config = args[:ray_operator_config] if args.key?(:ray_operator_config) @stateful_ha_config = args[:stateful_ha_config] if args.key?(:stateful_ha_config) end @@ -1117,6 +1123,55 @@ def update!(**args) end end + # CertificateConfig configures certificate for the registry. + class CertificateConfig + include Google::Apis::Core::Hashable + + # The URI configures a secret from [Secret Manager](https://cloud.google.com/ + # secret-manager) in the format "projects/$PROJECT_ID/secrets/$SECRET_NAME/ + # versions/$VERSION" for global secret or "projects/$PROJECT_ID/locations/$ + # REGION/secrets/$SECRET_NAME/versions/$VERSION" for regional secret. Version + # can be fixed (e.g. "2") or "latest" + # Corresponds to the JSON property `gcpSecretManagerSecretUri` + # @return [String] + attr_accessor :gcp_secret_manager_secret_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcp_secret_manager_secret_uri = args[:gcp_secret_manager_secret_uri] if args.key?(:gcp_secret_manager_secret_uri) + end + end + + # CertificateConfigPair configures pairs of certificates, which is used for + # client certificate and key pairs under a registry. + class CertificateConfigPair + include Google::Apis::Core::Hashable + + # CertificateConfig configures certificate for the registry. + # Corresponds to the JSON property `cert` + # @return [Google::Apis::ContainerV1beta1::CertificateConfig] + attr_accessor :cert + + # CertificateConfig configures certificate for the registry. + # Corresponds to the JSON property `key` + # @return [Google::Apis::ContainerV1beta1::CertificateConfig] + attr_accessor :key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cert = args[:cert] if args.key?(:cert) + @key = args[:key] if args.key?(:key) + end + end + # CheckAutopilotCompatibilityResponse has a list of compatibility issues. class CheckAutopilotCompatibilityResponse include Google::Apis::Core::Hashable @@ -1304,6 +1359,13 @@ class Cluster # @return [String] attr_accessor :create_time + # Output only. The current emulated version of the master endpoint. The version + # is in minor version format, e.g. 1.30. No value or empty string means the + # cluster has no emulated version. + # Corresponds to the JSON property `currentEmulatedVersion` + # @return [String] + attr_accessor :current_emulated_version + # Output only. The current software version of the master endpoint. # Corresponds to the JSON property `currentMasterVersion` # @return [String] @@ -1671,6 +1733,11 @@ class Cluster # @return [Google::Apis::ContainerV1beta1::ResourceUsageExportConfig] attr_accessor :resource_usage_export_config + # RollbackSafeUpgrade is the configuration for the rollback safe upgrade. + # Corresponds to the JSON property `rollbackSafeUpgrade` + # @return [Google::Apis::ContainerV1beta1::RollbackSafeUpgrade] + attr_accessor :rollback_safe_upgrade + # Output only. Reserved for future use. # Corresponds to the JSON property `satisfiesPzi` # @return [Boolean] @@ -1807,6 +1874,7 @@ def update!(**args) @control_plane_endpoints_config = args[:control_plane_endpoints_config] if args.key?(:control_plane_endpoints_config) @cost_management_config = args[:cost_management_config] if args.key?(:cost_management_config) @create_time = args[:create_time] if args.key?(:create_time) + @current_emulated_version = args[:current_emulated_version] if args.key?(:current_emulated_version) @current_master_version = args[:current_master_version] if args.key?(:current_master_version) @current_node_count = args[:current_node_count] if args.key?(:current_node_count) @current_node_version = args[:current_node_version] if args.key?(:current_node_version) @@ -1862,6 +1930,7 @@ def update!(**args) @release_channel = args[:release_channel] if args.key?(:release_channel) @resource_labels = args[:resource_labels] if args.key?(:resource_labels) @resource_usage_export_config = args[:resource_usage_export_config] if args.key?(:resource_usage_export_config) + @rollback_safe_upgrade = args[:rollback_safe_upgrade] if args.key?(:rollback_safe_upgrade) @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi) @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs) @secret_manager_config = args[:secret_manager_config] if args.key?(:secret_manager_config) @@ -2383,6 +2452,11 @@ class ClusterUpdate # @return [Google::Apis::ContainerV1beta1::ResourceUsageExportConfig] attr_accessor :desired_resource_usage_export_config + # RollbackSafeUpgrade is the configuration for the rollback safe upgrade. + # Corresponds to the JSON property `desiredRollbackSafeUpgrade` + # @return [Google::Apis::ContainerV1beta1::RollbackSafeUpgrade] + attr_accessor :desired_rollback_safe_upgrade + # SecretManagerConfig is config for secret manager enablement. # Corresponds to the JSON property `desiredSecretManagerConfig` # @return [Google::Apis::ContainerV1beta1::SecretManagerConfig] @@ -2557,6 +2631,7 @@ def update!(**args) @desired_rbac_binding_config = args[:desired_rbac_binding_config] if args.key?(:desired_rbac_binding_config) @desired_release_channel = args[:desired_release_channel] if args.key?(:desired_release_channel) @desired_resource_usage_export_config = args[:desired_resource_usage_export_config] if args.key?(:desired_resource_usage_export_config) + @desired_rollback_safe_upgrade = args[:desired_rollback_safe_upgrade] if args.key?(:desired_rollback_safe_upgrade) @desired_secret_manager_config = args[:desired_secret_manager_config] if args.key?(:desired_secret_manager_config) @desired_secret_sync_config = args[:desired_secret_sync_config] if args.key?(:desired_secret_sync_config) @desired_security_posture_config = args[:desired_security_posture_config] if args.key?(:desired_security_posture_config) @@ -2612,6 +2687,12 @@ class ClusterUpgradeInfo # @return [Array] attr_accessor :paused_reason + # RollbackSafeUpgradeStatus contains the rollback-safe upgrade status of a + # cluster. + # Corresponds to the JSON property `rollbackSafeUpgradeStatus` + # @return [Google::Apis::ContainerV1beta1::RollbackSafeUpgradeStatus] + attr_accessor :rollback_safe_upgrade_status + # The list of past auto upgrades. # Corresponds to the JSON property `upgradeDetails` # @return [Array] @@ -2629,10 +2710,60 @@ def update!(**args) @minor_target_version = args[:minor_target_version] if args.key?(:minor_target_version) @patch_target_version = args[:patch_target_version] if args.key?(:patch_target_version) @paused_reason = args[:paused_reason] if args.key?(:paused_reason) + @rollback_safe_upgrade_status = args[:rollback_safe_upgrade_status] if args.key?(:rollback_safe_upgrade_status) @upgrade_details = args[:upgrade_details] if args.key?(:upgrade_details) end end + # CompatibilityStatus is the status regarding the control plane's compatibility. + class CompatibilityStatus + include Google::Apis::Core::Hashable + + # Output only. The GKE version that the cluster can be safely downgraded to if + # the cluster is emulating the previous minor version. It is usually the cluster' + # s previous version before a minor version upgrade. + # Corresponds to the JSON property `downgradableVersion` + # @return [String] + attr_accessor :downgradable_version + + # Output only. Last time the control plane became available after a minor + # version binary upgrade with emulated version set. It indicates the last time + # the cluster entered the rollback safe mode. + # Corresponds to the JSON property `emulatedVersionTime` + # @return [String] + attr_accessor :emulated_version_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @downgradable_version = args[:downgradable_version] if args.key?(:downgradable_version) + @emulated_version_time = args[:emulated_version_time] if args.key?(:emulated_version_time) + end + end + + # CompleteControlPlaneUpgradeRequest sets the name of target cluster to complete + # upgrade. + class CompleteControlPlaneUpgradeRequest + include Google::Apis::Core::Hashable + + # API request version that initiates this operation. + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @version = args[:version] if args.key?(:version) + end + end + # CompleteIPRotationRequest moves the cluster master back into single-IP mode. class CompleteIpRotationRequest include Google::Apis::Core::Hashable @@ -2813,6 +2944,13 @@ class ContainerdConfig # @return [Google::Apis::ContainerV1beta1::PrivateRegistryAccessConfig] attr_accessor :private_registry_access_config + # RegistryHostConfig configures containerd registry host configuration. Each + # registry_hosts represents a hosts.toml file. At most 25 registry_hosts are + # allowed. + # Corresponds to the JSON property `registryHosts` + # @return [Array] + attr_accessor :registry_hosts + # Defines writable cgroups configuration. # Corresponds to the JSON property `writableCgroups` # @return [Google::Apis::ContainerV1beta1::WritableCgroups] @@ -2825,6 +2963,7 @@ def initialize(**args) # Update properties of this object def update!(**args) @private_registry_access_config = args[:private_registry_access_config] if args.key?(:private_registry_access_config) + @registry_hosts = args[:registry_hosts] if args.key?(:registry_hosts) @writable_cgroups = args[:writable_cgroups] if args.key?(:writable_cgroups) end end @@ -4070,6 +4209,73 @@ def update!(**args) end end + # HostConfig configures the registry host under a given Server. + class HostConfig + include Google::Apis::Core::Hashable + + # CA configures the registry host certificate. + # Corresponds to the JSON property `ca` + # @return [Array] + attr_accessor :ca + + # Capabilities represent the capabilities of the registry host, specifying what + # operations a host is capable of performing. If not set, containerd enables all + # capabilities by default. + # Corresponds to the JSON property `capabilities` + # @return [Array] + attr_accessor :capabilities + + # Client configures the registry host client certificate and key. + # Corresponds to the JSON property `client` + # @return [Array] + attr_accessor :client + + # Specifies the maximum duration allowed for a connection attempt to complete. A + # shorter timeout helps reduce delays when falling back to the original registry + # if the mirror is unreachable. Maximum allowed value is 180s. If not set, + # containerd sets default 30s. The value should be a decimal number of seconds + # with an `s` suffix. + # Corresponds to the JSON property `dialTimeout` + # @return [String] + attr_accessor :dial_timeout + + # Header configures the registry host headers. + # Corresponds to the JSON property `header` + # @return [Array] + attr_accessor :header + + # Host configures the registry host/mirror. It supports fully qualified domain + # names (FQDN) and IP addresses: Specifying port is supported. Wildcards are NOT + # supported. Examples: - my.customdomain.com - 10.0.1.2:5000 + # Corresponds to the JSON property `host` + # @return [String] + attr_accessor :host + + # OverridePath is used to indicate the host's API root endpoint is defined in + # the URL path rather than by the API specification. This may be used with non- + # compliant OCI registries which are missing the /v2 prefix. If not set, + # containerd sets default false. + # Corresponds to the JSON property `overridePath` + # @return [Boolean] + attr_accessor :override_path + alias_method :override_path?, :override_path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ca = args[:ca] if args.key?(:ca) + @capabilities = args[:capabilities] if args.key?(:capabilities) + @client = args[:client] if args.key?(:client) + @dial_timeout = args[:dial_timeout] if args.key?(:dial_timeout) + @header = args[:header] if args.key?(:header) + @host = args[:host] if args.key?(:host) + @override_path = args[:override_path] if args.key?(:override_path) + end + end + # HostMaintenancePolicy contains the maintenance policy for the hosts on which # the GKE VMs run on. class HostMaintenancePolicy @@ -5033,7 +5239,10 @@ class LustreCsiDriverConfig # port 6988. This serves as a workaround for a port conflict with the gke- # metadata-server. This field is required ONLY under the following conditions: 1. # The GKE node version is older than 1.33.2-gke.4655000. 2. You're connecting - # to a Lustre instance that has the 'gke-support-enabled' flag. + # to a Lustre instance that has the 'gke-support-enabled' flag. Deprecated: This + # flag is no longer required as of GKE node version 1.33.2-gke.4655000, unless + # you are connecting to a Lustre instance that has the `gke-support-enabled` + # flag. # Corresponds to the JSON property `enableLegacyLustrePort` # @return [Boolean] attr_accessor :enable_legacy_lustre_port @@ -5174,12 +5383,18 @@ def update!(**args) class Master include Google::Apis::Core::Hashable + # CompatibilityStatus is the status regarding the control plane's compatibility. + # Corresponds to the JSON property `compatibilityStatus` + # @return [Google::Apis::ContainerV1beta1::CompatibilityStatus] + attr_accessor :compatibility_status + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @compatibility_status = args[:compatibility_status] if args.key?(:compatibility_status) end end @@ -7402,6 +7617,26 @@ def update!(**args) end end + # PodSnapshotConfig is the configuration for GKE Pod Snapshots feature. + class PodSnapshotConfig + include Google::Apis::Core::Hashable + + # Whether or not the Pod Snapshots feature is enabled. + # 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) + end + end + # Binauthz policy that applies to this cluster. class PolicyBinding include Google::Apis::Core::Hashable @@ -7823,6 +8058,62 @@ def update!(**args) end end + # RegistryHeader configures headers for the registry. + class RegistryHeader + include Google::Apis::Core::Hashable + + # Key configures the header key. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Value configures the header value. + # Corresponds to the JSON property `value` + # @return [Array] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + + # RegistryHostConfig configures the top-level structure for a single containerd + # registry server's configuration, which represents one hosts.toml file on the + # node. It will override the same fqdns in PrivateRegistryAccessConfig. + class RegistryHostConfig + include Google::Apis::Core::Hashable + + # HostConfig configures a list of host-specific configurations for the server. + # Each server can have at most 10 host configurations. + # Corresponds to the JSON property `hosts` + # @return [Array] + attr_accessor :hosts + + # Defines the host name of the registry server, which will be used to create + # configuration file as /etc/containerd/hosts.d//hosts.toml. It supports fully + # qualified domain names (FQDN) and IP addresses: Specifying port is supported. + # Wildcards are NOT supported. Examples: - my.customdomain.com - 10.0.1.2:5000 + # Corresponds to the JSON property `server` + # @return [String] + attr_accessor :server + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @hosts = args[:hosts] if args.key?(:hosts) + @server = args[:server] if args.key?(:server) + end + end + # ReleaseChannel indicates which release channel a cluster is subscribed to. # Release channels are arranged in order of risk. When a cluster is subscribed # to a release channel, Google maintains both the master version and the node @@ -8094,6 +8385,58 @@ def update!(**args) end end + # RollbackSafeUpgrade is the configuration for the rollback safe upgrade. + class RollbackSafeUpgrade + include Google::Apis::Core::Hashable + + # A user-defined period for the cluster remains in the rollbackable state. ex: ` + # seconds: 21600`. + # Corresponds to the JSON property `controlPlaneSoakDuration` + # @return [String] + attr_accessor :control_plane_soak_duration + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @control_plane_soak_duration = args[:control_plane_soak_duration] if args.key?(:control_plane_soak_duration) + end + end + + # RollbackSafeUpgradeStatus contains the rollback-safe upgrade status of a + # cluster. + class RollbackSafeUpgradeStatus + include Google::Apis::Core::Hashable + + # The rollback-safe mode expiration time. + # Corresponds to the JSON property `controlPlaneUpgradeRollbackEndTime` + # @return [String] + attr_accessor :control_plane_upgrade_rollback_end_time + + # The mode of the rollback-safe upgrade. + # Corresponds to the JSON property `mode` + # @return [String] + attr_accessor :mode + + # The GKE version that the cluster previously used before step-one upgrade. + # Corresponds to the JSON property `previousVersion` + # @return [String] + attr_accessor :previous_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @control_plane_upgrade_rollback_end_time = args[:control_plane_upgrade_rollback_end_time] if args.key?(:control_plane_upgrade_rollback_end_time) + @mode = args[:mode] if args.key?(:mode) + @previous_version = args[:previous_version] if args.key?(:previous_version) + end + end + # RotationConfig is config for secret manager auto rotation. class RotationConfig include Google::Apis::Core::Hashable @@ -10001,6 +10344,11 @@ class UpgradeDetails # @return [String] attr_accessor :end_time + # The emulated version before the upgrade. + # Corresponds to the JSON property `initialEmulatedVersion` + # @return [String] + attr_accessor :initial_emulated_version + # The version before the upgrade. # Corresponds to the JSON property `initialVersion` # @return [String] @@ -10021,6 +10369,11 @@ class UpgradeDetails # @return [String] attr_accessor :state + # The emulated version after the upgrade. + # Corresponds to the JSON property `targetEmulatedVersion` + # @return [String] + attr_accessor :target_emulated_version + # The version after the upgrade. # Corresponds to the JSON property `targetVersion` # @return [String] @@ -10033,10 +10386,12 @@ def initialize(**args) # Update properties of this object def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) + @initial_emulated_version = args[:initial_emulated_version] if args.key?(:initial_emulated_version) @initial_version = args[:initial_version] if args.key?(:initial_version) @start_time = args[:start_time] if args.key?(:start_time) @start_type = args[:start_type] if args.key?(:start_type) @state = args[:state] if args.key?(:state) + @target_emulated_version = args[:target_emulated_version] if args.key?(:target_emulated_version) @target_version = args[:target_version] if args.key?(:target_version) end end diff --git a/generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/gem_version.rb b/generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/gem_version.rb index 3c973f3e3cc..795a33a4537 100644 --- a/generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/gem_version.rb +++ b/generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ContainerV1beta1 # Version of the google-apis-container_v1beta1 gem - GEM_VERSION = "0.95.0" + GEM_VERSION = "0.96.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20251021" + REVISION = "20251028" end end end diff --git a/generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/representations.rb b/generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/representations.rb index db1f840bdcd..9db2d757423 100644 --- a/generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/representations.rb +++ b/generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/representations.rb @@ -196,6 +196,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class CertificateConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CertificateConfigPair + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CheckAutopilotCompatibilityResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -256,6 +268,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class CompatibilityStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CompleteControlPlaneUpgradeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CompleteIpRotationRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -550,6 +574,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class HostConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class HostMaintenancePolicy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -988,6 +1018,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class PodSnapshotConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PolicyBinding class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1072,6 +1108,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class RegistryHeader + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RegistryHostConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ReleaseChannel class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1120,6 +1168,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class RollbackSafeUpgrade + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RollbackSafeUpgradeStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RotationConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1559,6 +1619,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :parallelstore_csi_driver_config, as: 'parallelstoreCsiDriverConfig', class: Google::Apis::ContainerV1beta1::ParallelstoreCsiDriverConfig, decorator: Google::Apis::ContainerV1beta1::ParallelstoreCsiDriverConfig::Representation + property :pod_snapshot_config, as: 'podSnapshotConfig', class: Google::Apis::ContainerV1beta1::PodSnapshotConfig, decorator: Google::Apis::ContainerV1beta1::PodSnapshotConfig::Representation + property :ray_operator_config, as: 'rayOperatorConfig', class: Google::Apis::ContainerV1beta1::RayOperatorConfig, decorator: Google::Apis::ContainerV1beta1::RayOperatorConfig::Representation property :stateful_ha_config, as: 'statefulHaConfig', class: Google::Apis::ContainerV1beta1::StatefulHaConfig, decorator: Google::Apis::ContainerV1beta1::StatefulHaConfig::Representation @@ -1779,6 +1841,23 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class CertificateConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcp_secret_manager_secret_uri, as: 'gcpSecretManagerSecretUri' + end + end + + class CertificateConfigPair + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cert, as: 'cert', class: Google::Apis::ContainerV1beta1::CertificateConfig, decorator: Google::Apis::ContainerV1beta1::CertificateConfig::Representation + + property :key, as: 'key', class: Google::Apis::ContainerV1beta1::CertificateConfig, decorator: Google::Apis::ContainerV1beta1::CertificateConfig::Representation + + end + end + class CheckAutopilotCompatibilityResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1841,6 +1920,7 @@ class Representation < Google::Apis::Core::JsonRepresentation property :cost_management_config, as: 'costManagementConfig', class: Google::Apis::ContainerV1beta1::CostManagementConfig, decorator: Google::Apis::ContainerV1beta1::CostManagementConfig::Representation property :create_time, as: 'createTime' + property :current_emulated_version, as: 'currentEmulatedVersion' property :current_master_version, as: 'currentMasterVersion' property :current_node_count, as: 'currentNodeCount' property :current_node_version, as: 'currentNodeVersion' @@ -1927,6 +2007,8 @@ class Representation < Google::Apis::Core::JsonRepresentation hash :resource_labels, as: 'resourceLabels' property :resource_usage_export_config, as: 'resourceUsageExportConfig', class: Google::Apis::ContainerV1beta1::ResourceUsageExportConfig, decorator: Google::Apis::ContainerV1beta1::ResourceUsageExportConfig::Representation + property :rollback_safe_upgrade, as: 'rollbackSafeUpgrade', class: Google::Apis::ContainerV1beta1::RollbackSafeUpgrade, decorator: Google::Apis::ContainerV1beta1::RollbackSafeUpgrade::Representation + property :satisfies_pzi, as: 'satisfiesPzi' property :satisfies_pzs, as: 'satisfiesPzs' property :secret_manager_config, as: 'secretManagerConfig', class: Google::Apis::ContainerV1beta1::SecretManagerConfig, decorator: Google::Apis::ContainerV1beta1::SecretManagerConfig::Representation @@ -2105,6 +2187,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :desired_resource_usage_export_config, as: 'desiredResourceUsageExportConfig', class: Google::Apis::ContainerV1beta1::ResourceUsageExportConfig, decorator: Google::Apis::ContainerV1beta1::ResourceUsageExportConfig::Representation + property :desired_rollback_safe_upgrade, as: 'desiredRollbackSafeUpgrade', class: Google::Apis::ContainerV1beta1::RollbackSafeUpgrade, decorator: Google::Apis::ContainerV1beta1::RollbackSafeUpgrade::Representation + property :desired_secret_manager_config, as: 'desiredSecretManagerConfig', class: Google::Apis::ContainerV1beta1::SecretManagerConfig, decorator: Google::Apis::ContainerV1beta1::SecretManagerConfig::Representation property :desired_secret_sync_config, as: 'desiredSecretSyncConfig', class: Google::Apis::ContainerV1beta1::SecretSyncConfig, decorator: Google::Apis::ContainerV1beta1::SecretSyncConfig::Representation @@ -2151,11 +2235,28 @@ class Representation < Google::Apis::Core::JsonRepresentation property :minor_target_version, as: 'minorTargetVersion' property :patch_target_version, as: 'patchTargetVersion' collection :paused_reason, as: 'pausedReason' + property :rollback_safe_upgrade_status, as: 'rollbackSafeUpgradeStatus', class: Google::Apis::ContainerV1beta1::RollbackSafeUpgradeStatus, decorator: Google::Apis::ContainerV1beta1::RollbackSafeUpgradeStatus::Representation + collection :upgrade_details, as: 'upgradeDetails', class: Google::Apis::ContainerV1beta1::UpgradeDetails, decorator: Google::Apis::ContainerV1beta1::UpgradeDetails::Representation end end + class CompatibilityStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :downgradable_version, as: 'downgradableVersion' + property :emulated_version_time, as: 'emulatedVersionTime' + end + end + + class CompleteControlPlaneUpgradeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :version, as: 'version' + end + end + class CompleteIpRotationRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2215,6 +2316,8 @@ class ContainerdConfig class Representation < Google::Apis::Core::JsonRepresentation property :private_registry_access_config, as: 'privateRegistryAccessConfig', class: Google::Apis::ContainerV1beta1::PrivateRegistryAccessConfig, decorator: Google::Apis::ContainerV1beta1::PrivateRegistryAccessConfig::Representation + collection :registry_hosts, as: 'registryHosts', class: Google::Apis::ContainerV1beta1::RegistryHostConfig, decorator: Google::Apis::ContainerV1beta1::RegistryHostConfig::Representation + property :writable_cgroups, as: 'writableCgroups', class: Google::Apis::ContainerV1beta1::WritableCgroups, decorator: Google::Apis::ContainerV1beta1::WritableCgroups::Representation end @@ -2566,6 +2669,22 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class HostConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ca, as: 'ca', class: Google::Apis::ContainerV1beta1::CertificateConfig, decorator: Google::Apis::ContainerV1beta1::CertificateConfig::Representation + + collection :capabilities, as: 'capabilities' + collection :client, as: 'client', class: Google::Apis::ContainerV1beta1::CertificateConfigPair, decorator: Google::Apis::ContainerV1beta1::CertificateConfigPair::Representation + + property :dial_timeout, as: 'dialTimeout' + collection :header, as: 'header', class: Google::Apis::ContainerV1beta1::RegistryHeader, decorator: Google::Apis::ContainerV1beta1::RegistryHeader::Representation + + property :host, as: 'host' + property :override_path, as: 'overridePath' + end + end + class HostMaintenancePolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2867,6 +2986,8 @@ class Representation < Google::Apis::Core::JsonRepresentation class Master # @private class Representation < Google::Apis::Core::JsonRepresentation + property :compatibility_status, as: 'compatibilityStatus', class: Google::Apis::ContainerV1beta1::CompatibilityStatus, decorator: Google::Apis::ContainerV1beta1::CompatibilityStatus::Representation + end end @@ -3412,6 +3533,13 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class PodSnapshotConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enabled, as: 'enabled' + end + end + class PolicyBinding # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3533,6 +3661,23 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class RegistryHeader + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + collection :value, as: 'value' + end + end + + class RegistryHostConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :hosts, as: 'hosts', class: Google::Apis::ContainerV1beta1::HostConfig, decorator: Google::Apis::ContainerV1beta1::HostConfig::Representation + + property :server, as: 'server' + end + end + class ReleaseChannel # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3607,6 +3752,22 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class RollbackSafeUpgrade + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :control_plane_soak_duration, as: 'controlPlaneSoakDuration' + end + end + + class RollbackSafeUpgradeStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :control_plane_upgrade_rollback_end_time, as: 'controlPlaneUpgradeRollbackEndTime' + property :mode, as: 'mode' + property :previous_version, as: 'previousVersion' + end + end + class RotationConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4073,10 +4234,12 @@ class UpgradeDetails # @private class Representation < Google::Apis::Core::JsonRepresentation property :end_time, as: 'endTime' + property :initial_emulated_version, as: 'initialEmulatedVersion' property :initial_version, as: 'initialVersion' property :start_time, as: 'startTime' property :start_type, as: 'startType' property :state, as: 'state' + property :target_emulated_version, as: 'targetEmulatedVersion' property :target_version, as: 'targetVersion' end end diff --git a/generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/service.rb b/generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/service.rb index c69ed2c1df8..92f21f2254c 100644 --- a/generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/service.rb +++ b/generated/google-apis-container_v1beta1/lib/google/apis/container_v1beta1/service.rb @@ -203,6 +203,41 @@ def check_project_location_cluster_autopilot_compatibility(name, fields: nil, qu execute_or_queue_command(command, &block) end + # CompleteControlPlaneUpgrade completes the rollback-safe upgrade by performing + # the step two upgrade for a specific cluster. + # @param [String] name + # The name (project, location, cluster) of the cluster to complete upgrade. + # Specified in the format `projects/*/locations/*/clusters/*`. + # @param [Google::Apis::ContainerV1beta1::CompleteControlPlaneUpgradeRequest] complete_control_plane_upgrade_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def complete_project_location_cluster_control_plane_upgrade(name, complete_control_plane_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:completeControlPlaneUpgrade', options) + command.request_representation = Google::Apis::ContainerV1beta1::CompleteControlPlaneUpgradeRequest::Representation + command.request_object = complete_control_plane_upgrade_request_object + command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation + command.response_class = Google::Apis::ContainerV1beta1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Completes master IP rotation. # @param [String] name # The name (project, location, cluster name) of the cluster to complete IP @@ -1555,6 +1590,41 @@ def addons_project_zone_cluster(project_id, zone, cluster_id, set_addons_config_ execute_or_queue_command(command, &block) end + # CompleteControlPlaneUpgrade completes the rollback-safe upgrade by performing + # the step two upgrade for a specific cluster. + # @param [String] name + # The name (project, location, cluster) of the cluster to complete upgrade. + # Specified in the format `projects/*/locations/*/clusters/*`. + # @param [Google::Apis::ContainerV1beta1::CompleteControlPlaneUpgradeRequest] complete_control_plane_upgrade_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def complete_project_zone_cluster_control_plane_upgrade(name, complete_control_plane_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:completeControlPlaneUpgrade', options) + command.request_representation = Google::Apis::ContainerV1beta1::CompleteControlPlaneUpgradeRequest::Representation + command.request_object = complete_control_plane_upgrade_request_object + command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation + command.response_class = Google::Apis::ContainerV1beta1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Completes master IP rotation. # @param [String] project_id # Deprecated. The Google Developers Console [project ID or project number](https: