From 4f11c49eebeb4cdb7b7ef6918a50325fde75ae16 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sun, 4 Oct 2026 18:32:53 -0700 Subject: [PATCH] Regenerate tpu client --- src/TPU/Node.php | 48 ++++++++++++++++++++++++++ src/TPU/Resource/ProjectsLocations.php | 20 ++++++----- 2 files changed, 60 insertions(+), 8 deletions(-) diff --git a/src/TPU/Node.php b/src/TPU/Node.php index 1c3d7facf7..d8fd8c12a7 100644 --- a/src/TPU/Node.php +++ b/src/TPU/Node.php @@ -60,6 +60,26 @@ class Node extends \Google\Collection * resume running once rescheduled. */ public const HEALTH_UNHEALTHY_MAINTENANCE = 'UNHEALTHY_MAINTENANCE'; + /** + * Protection tier is unknown. + */ + public const PROTECTION_TIER_PROTECTION_TIER_UNSPECIFIED = 'PROTECTION_TIER_UNSPECIFIED'; + /** + * STANDARD protection for workload that should be protected by redundancies + * (e.g. power, cooling) at the data center level. In the event of + * infrastructure failures at data center (e.g. power and/or cooling + * failures), this workload is expected to continue as normal using the + * redundancies. + */ + public const PROTECTION_TIER_STANDARD = 'STANDARD'; + /** + * CAPACITY_OPTIMIZED capacity leverages redundancies (e.g. power, cooling) at + * the data center during normal operating conditions. In the event of + * infrastructure failures at data center (e.g. power and/or cooling + * failures), this workload may be disrupted. As a consequence, it has a + * weaker availability SLO than STANDARD. + */ + public const PROTECTION_TIER_CAPACITY_OPTIMIZED = 'CAPACITY_OPTIMIZED'; /** * TPU node state is not known/set. */ @@ -220,6 +240,14 @@ class Node extends \Google\Collection protected $networkConfigsDataType = 'array'; protected $networkEndpointsType = NetworkEndpoint::class; protected $networkEndpointsDataType = 'array'; + /** + * Output only. Protection tier for the workload which specifies the workload + * expectations in the event of infrastructure failures at data center (e.g. + * power and/or cooling failures). + * + * @var string + */ + public $protectionTier; /** * Output only. The qualified name of the QueuedResource that requested this * Node. @@ -566,6 +594,26 @@ public function getNetworkEndpoints() { return $this->networkEndpoints; } + /** + * Output only. Protection tier for the workload which specifies the workload + * expectations in the event of infrastructure failures at data center (e.g. + * power and/or cooling failures). + * + * Accepted values: PROTECTION_TIER_UNSPECIFIED, STANDARD, CAPACITY_OPTIMIZED + * + * @param self::PROTECTION_TIER_* $protectionTier + */ + public function setProtectionTier($protectionTier) + { + $this->protectionTier = $protectionTier; + } + /** + * @return self::PROTECTION_TIER_* + */ + public function getProtectionTier() + { + return $this->protectionTier; + } /** * Output only. The qualified name of the QueuedResource that requested this * Node. diff --git a/src/TPU/Resource/ProjectsLocations.php b/src/TPU/Resource/ProjectsLocations.php index d5809ef61b..f5e47a67f7 100644 --- a/src/TPU/Resource/ProjectsLocations.php +++ b/src/TPU/Resource/ProjectsLocations.php @@ -64,19 +64,23 @@ public function get($name, $optParams = []) } /** * Lists information about the supported locations for this service. This method - * can be called in two ways: * **List all public locations:** Use the path `GET - * /v1/locations`. * **List project-visible locations:** Use the path `GET - * /v1/projects/{project_id}/locations`. This may include public locations as - * well as private or other locations specifically visible to the project. - * (locations.listProjectsLocations) + * lists locations based on the resource scope provided in the + * ListLocationsRequest.name field: * **Global locations**: If `name` is empty, + * the method lists the public locations available to all projects. * **Project- + * specific locations**: If `name` follows the format `projects/{project}`, the + * method lists locations visible to that specific project. This includes + * public, private, or other project-specific locations enabled for the project. + * For gRPC and client library implementations, the resource name is passed as + * the `name` field. For direct service calls, the resource name is incorporated + * into the request path based on the specific service implementation and + * version. (locations.listProjectsLocations) * * @param string $name The resource that owns the locations collection, if * applicable. * @param array $optParams Optional parameters. * - * @opt_param string extraLocationTypes Optional. Do not use this field. It is - * unsupported and is ignored unless explicitly documented otherwise. This is - * primarily for internal usage. + * @opt_param string extraLocationTypes Optional. Do not use this field unless + * explicitly documented otherwise. This is primarily for internal usage. * @opt_param string filter A filter to narrow down results to a preferred * subset. The filtering language accepts strings like `"displayName=tokyo"`, * and is documented in more detail in [AIP-160](https://google.aip.dev/160).