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
48 changes: 48 additions & 0 deletions src/TPU/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
20 changes: 12 additions & 8 deletions src/TPU/Resource/ProjectsLocations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
Loading