Skip to content

Commit c6fc3de

Browse files
1 parent b8c52da commit c6fc3de

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

src/CloudWorkstations/WorkstationCluster.php

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,29 @@ class WorkstationCluster extends \Google\Collection
135135
* @var string
136136
*/
137137
public $updateTime;
138+
/**
139+
* Optional. Specifies the redirect URL for unauthorized requests received by
140+
* workstation VMs in this cluster. Redirects to this endpoint will send a
141+
* base64 encoded `state` query param containing the target workstation name
142+
* and original request hostname. The endpoint is responsible for retrieving a
143+
* token using `GenerateAccessToken` and redirecting back to the original
144+
* hostname with the token.
145+
*
146+
* @var string
147+
*/
148+
public $workstationAuthorizationUrl;
149+
/**
150+
* Optional. Specifies the launch URL for workstations in this cluster.
151+
* Requests sent to unstarted workstations will be redirected to this URL.
152+
* Requests redirected to the launch endpoint will be sent with a
153+
* `workstation` and `project` query parameter containing the full workstation
154+
* resource name and project ID, respectively. The launch endpoint is
155+
* responsible for starting the workstation, polling it until it reaches
156+
* `STATE_RUNNING`, and then issuing a redirect to the workstation's host URL.
157+
*
158+
* @var string
159+
*/
160+
public $workstationLaunchUrl;
138161

139162
/**
140163
* Optional. Client-specified annotations.
@@ -458,6 +481,49 @@ public function getUpdateTime()
458481
{
459482
return $this->updateTime;
460483
}
484+
/**
485+
* Optional. Specifies the redirect URL for unauthorized requests received by
486+
* workstation VMs in this cluster. Redirects to this endpoint will send a
487+
* base64 encoded `state` query param containing the target workstation name
488+
* and original request hostname. The endpoint is responsible for retrieving a
489+
* token using `GenerateAccessToken` and redirecting back to the original
490+
* hostname with the token.
491+
*
492+
* @param string $workstationAuthorizationUrl
493+
*/
494+
public function setWorkstationAuthorizationUrl($workstationAuthorizationUrl)
495+
{
496+
$this->workstationAuthorizationUrl = $workstationAuthorizationUrl;
497+
}
498+
/**
499+
* @return string
500+
*/
501+
public function getWorkstationAuthorizationUrl()
502+
{
503+
return $this->workstationAuthorizationUrl;
504+
}
505+
/**
506+
* Optional. Specifies the launch URL for workstations in this cluster.
507+
* Requests sent to unstarted workstations will be redirected to this URL.
508+
* Requests redirected to the launch endpoint will be sent with a
509+
* `workstation` and `project` query parameter containing the full workstation
510+
* resource name and project ID, respectively. The launch endpoint is
511+
* responsible for starting the workstation, polling it until it reaches
512+
* `STATE_RUNNING`, and then issuing a redirect to the workstation's host URL.
513+
*
514+
* @param string $workstationLaunchUrl
515+
*/
516+
public function setWorkstationLaunchUrl($workstationLaunchUrl)
517+
{
518+
$this->workstationLaunchUrl = $workstationLaunchUrl;
519+
}
520+
/**
521+
* @return string
522+
*/
523+
public function getWorkstationLaunchUrl()
524+
{
525+
return $this->workstationLaunchUrl;
526+
}
461527
}
462528

463529
// Adding a class alias for backwards compatibility with the previous class name.

0 commit comments

Comments
 (0)