Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class Accelerator extends \Google\Model
{
/**
* @var int
*/
public $count;
/**
* @var string
*/
public $type;
/**
* @param int
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Accelerator::class, 'Google_Service_CloudWorkstations_Accelerator');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* @var string
*/
public $service;
/**
* @param AuditLogConfig[]
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* @param string
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_CloudWorkstations_AuditConfig');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class AuditLogConfig extends \Google\Collection
{
protected $collection_key = 'exemptedMembers';
/**
* @var string[]
*/
public $exemptedMembers;
/**
* @var string
*/
public $logType;
/**
* @param string[]
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* @param string
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return string
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_CloudWorkstations_AuditLogConfig');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* @var string[]
*/
public $members;
/**
* @var string
*/
public $role;
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string[]
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_CloudWorkstations_Binding');

View File

@@ -0,0 +1,133 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class BoostConfig extends \Google\Collection
{
protected $collection_key = 'accelerators';
protected $acceleratorsType = Accelerator::class;
protected $acceleratorsDataType = 'array';
/**
* @var int
*/
public $bootDiskSizeGb;
/**
* @var bool
*/
public $enableNestedVirtualization;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $machineType;
/**
* @var int
*/
public $poolSize;
/**
* @param Accelerator[]
*/
public function setAccelerators($accelerators)
{
$this->accelerators = $accelerators;
}
/**
* @return Accelerator[]
*/
public function getAccelerators()
{
return $this->accelerators;
}
/**
* @param int
*/
public function setBootDiskSizeGb($bootDiskSizeGb)
{
$this->bootDiskSizeGb = $bootDiskSizeGb;
}
/**
* @return int
*/
public function getBootDiskSizeGb()
{
return $this->bootDiskSizeGb;
}
/**
* @param bool
*/
public function setEnableNestedVirtualization($enableNestedVirtualization)
{
$this->enableNestedVirtualization = $enableNestedVirtualization;
}
/**
* @return bool
*/
public function getEnableNestedVirtualization()
{
return $this->enableNestedVirtualization;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* @param int
*/
public function setPoolSize($poolSize)
{
$this->poolSize = $poolSize;
}
/**
* @return int
*/
public function getPoolSize()
{
return $this->poolSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BoostConfig::class, 'Google_Service_CloudWorkstations_BoostConfig');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_CloudWorkstations_CancelOperationRequest');

View File

@@ -0,0 +1,135 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class Container extends \Google\Collection
{
protected $collection_key = 'command';
/**
* @var string[]
*/
public $args;
/**
* @var string[]
*/
public $command;
/**
* @var string[]
*/
public $env;
/**
* @var string
*/
public $image;
/**
* @var int
*/
public $runAsUser;
/**
* @var string
*/
public $workingDir;
/**
* @param string[]
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return string[]
*/
public function getArgs()
{
return $this->args;
}
/**
* @param string[]
*/
public function setCommand($command)
{
$this->command = $command;
}
/**
* @return string[]
*/
public function getCommand()
{
return $this->command;
}
/**
* @param string[]
*/
public function setEnv($env)
{
$this->env = $env;
}
/**
* @return string[]
*/
public function getEnv()
{
return $this->env;
}
/**
* @param string
*/
public function setImage($image)
{
$this->image = $image;
}
/**
* @return string
*/
public function getImage()
{
return $this->image;
}
/**
* @param int
*/
public function setRunAsUser($runAsUser)
{
$this->runAsUser = $runAsUser;
}
/**
* @return int
*/
public function getRunAsUser()
{
return $this->runAsUser;
}
/**
* @param string
*/
public function setWorkingDir($workingDir)
{
$this->workingDir = $workingDir;
}
/**
* @return string
*/
public function getWorkingDir()
{
return $this->workingDir;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Container::class, 'Google_Service_CloudWorkstations_Container');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class CustomerEncryptionKey extends \Google\Model
{
/**
* @var string
*/
public $kmsKey;
/**
* @var string
*/
public $kmsKeyServiceAccount;
/**
* @param string
*/
public function setKmsKey($kmsKey)
{
$this->kmsKey = $kmsKey;
}
/**
* @return string
*/
public function getKmsKey()
{
return $this->kmsKey;
}
/**
* @param string
*/
public function setKmsKeyServiceAccount($kmsKeyServiceAccount)
{
$this->kmsKeyServiceAccount = $kmsKeyServiceAccount;
}
/**
* @return string
*/
public function getKmsKeyServiceAccount()
{
return $this->kmsKeyServiceAccount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerEncryptionKey::class, 'Google_Service_CloudWorkstations_CustomerEncryptionKey');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class DomainConfig extends \Google\Model
{
/**
* @var string
*/
public $domain;
/**
* @param string
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DomainConfig::class, 'Google_Service_CloudWorkstations_DomainConfig');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class EphemeralDirectory extends \Google\Model
{
protected $gcePdType = GcePersistentDisk::class;
protected $gcePdDataType = '';
/**
* @var string
*/
public $mountPath;
/**
* @param GcePersistentDisk
*/
public function setGcePd(GcePersistentDisk $gcePd)
{
$this->gcePd = $gcePd;
}
/**
* @return GcePersistentDisk
*/
public function getGcePd()
{
return $this->gcePd;
}
/**
* @param string
*/
public function setMountPath($mountPath)
{
$this->mountPath = $mountPath;
}
/**
* @return string
*/
public function getMountPath()
{
return $this->mountPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EphemeralDirectory::class, 'Google_Service_CloudWorkstations_EphemeralDirectory');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class Expr extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_CloudWorkstations_Expr');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class GceConfidentialInstanceConfig extends \Google\Model
{
/**
* @var bool
*/
public $enableConfidentialCompute;
/**
* @param bool
*/
public function setEnableConfidentialCompute($enableConfidentialCompute)
{
$this->enableConfidentialCompute = $enableConfidentialCompute;
}
/**
* @return bool
*/
public function getEnableConfidentialCompute()
{
return $this->enableConfidentialCompute;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GceConfidentialInstanceConfig::class, 'Google_Service_CloudWorkstations_GceConfidentialInstanceConfig');

View File

@@ -0,0 +1,289 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class GceInstance extends \Google\Collection
{
protected $collection_key = 'tags';
protected $acceleratorsType = Accelerator::class;
protected $acceleratorsDataType = 'array';
protected $boostConfigsType = BoostConfig::class;
protected $boostConfigsDataType = 'array';
/**
* @var int
*/
public $bootDiskSizeGb;
protected $confidentialInstanceConfigType = GceConfidentialInstanceConfig::class;
protected $confidentialInstanceConfigDataType = '';
/**
* @var bool
*/
public $disablePublicIpAddresses;
/**
* @var bool
*/
public $disableSsh;
/**
* @var bool
*/
public $enableNestedVirtualization;
/**
* @var string
*/
public $machineType;
/**
* @var int
*/
public $poolSize;
/**
* @var int
*/
public $pooledInstances;
/**
* @var string
*/
public $serviceAccount;
/**
* @var string[]
*/
public $serviceAccountScopes;
protected $shieldedInstanceConfigType = GceShieldedInstanceConfig::class;
protected $shieldedInstanceConfigDataType = '';
/**
* @var string[]
*/
public $tags;
/**
* @var string[]
*/
public $vmTags;
/**
* @param Accelerator[]
*/
public function setAccelerators($accelerators)
{
$this->accelerators = $accelerators;
}
/**
* @return Accelerator[]
*/
public function getAccelerators()
{
return $this->accelerators;
}
/**
* @param BoostConfig[]
*/
public function setBoostConfigs($boostConfigs)
{
$this->boostConfigs = $boostConfigs;
}
/**
* @return BoostConfig[]
*/
public function getBoostConfigs()
{
return $this->boostConfigs;
}
/**
* @param int
*/
public function setBootDiskSizeGb($bootDiskSizeGb)
{
$this->bootDiskSizeGb = $bootDiskSizeGb;
}
/**
* @return int
*/
public function getBootDiskSizeGb()
{
return $this->bootDiskSizeGb;
}
/**
* @param GceConfidentialInstanceConfig
*/
public function setConfidentialInstanceConfig(GceConfidentialInstanceConfig $confidentialInstanceConfig)
{
$this->confidentialInstanceConfig = $confidentialInstanceConfig;
}
/**
* @return GceConfidentialInstanceConfig
*/
public function getConfidentialInstanceConfig()
{
return $this->confidentialInstanceConfig;
}
/**
* @param bool
*/
public function setDisablePublicIpAddresses($disablePublicIpAddresses)
{
$this->disablePublicIpAddresses = $disablePublicIpAddresses;
}
/**
* @return bool
*/
public function getDisablePublicIpAddresses()
{
return $this->disablePublicIpAddresses;
}
/**
* @param bool
*/
public function setDisableSsh($disableSsh)
{
$this->disableSsh = $disableSsh;
}
/**
* @return bool
*/
public function getDisableSsh()
{
return $this->disableSsh;
}
/**
* @param bool
*/
public function setEnableNestedVirtualization($enableNestedVirtualization)
{
$this->enableNestedVirtualization = $enableNestedVirtualization;
}
/**
* @return bool
*/
public function getEnableNestedVirtualization()
{
return $this->enableNestedVirtualization;
}
/**
* @param string
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* @param int
*/
public function setPoolSize($poolSize)
{
$this->poolSize = $poolSize;
}
/**
* @return int
*/
public function getPoolSize()
{
return $this->poolSize;
}
/**
* @param int
*/
public function setPooledInstances($pooledInstances)
{
$this->pooledInstances = $pooledInstances;
}
/**
* @return int
*/
public function getPooledInstances()
{
return $this->pooledInstances;
}
/**
* @param string
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* @param string[]
*/
public function setServiceAccountScopes($serviceAccountScopes)
{
$this->serviceAccountScopes = $serviceAccountScopes;
}
/**
* @return string[]
*/
public function getServiceAccountScopes()
{
return $this->serviceAccountScopes;
}
/**
* @param GceShieldedInstanceConfig
*/
public function setShieldedInstanceConfig(GceShieldedInstanceConfig $shieldedInstanceConfig)
{
$this->shieldedInstanceConfig = $shieldedInstanceConfig;
}
/**
* @return GceShieldedInstanceConfig
*/
public function getShieldedInstanceConfig()
{
return $this->shieldedInstanceConfig;
}
/**
* @param string[]
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* @param string[]
*/
public function setVmTags($vmTags)
{
$this->vmTags = $vmTags;
}
/**
* @return string[]
*/
public function getVmTags()
{
return $this->vmTags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GceInstance::class, 'Google_Service_CloudWorkstations_GceInstance');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class GcePersistentDisk extends \Google\Model
{
/**
* @var string
*/
public $diskType;
/**
* @var bool
*/
public $readOnly;
/**
* @var string
*/
public $sourceImage;
/**
* @var string
*/
public $sourceSnapshot;
/**
* @param string
*/
public function setDiskType($diskType)
{
$this->diskType = $diskType;
}
/**
* @return string
*/
public function getDiskType()
{
return $this->diskType;
}
/**
* @param bool
*/
public function setReadOnly($readOnly)
{
$this->readOnly = $readOnly;
}
/**
* @return bool
*/
public function getReadOnly()
{
return $this->readOnly;
}
/**
* @param string
*/
public function setSourceImage($sourceImage)
{
$this->sourceImage = $sourceImage;
}
/**
* @return string
*/
public function getSourceImage()
{
return $this->sourceImage;
}
/**
* @param string
*/
public function setSourceSnapshot($sourceSnapshot)
{
$this->sourceSnapshot = $sourceSnapshot;
}
/**
* @return string
*/
public function getSourceSnapshot()
{
return $this->sourceSnapshot;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GcePersistentDisk::class, 'Google_Service_CloudWorkstations_GcePersistentDisk');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class GceRegionalPersistentDisk extends \Google\Model
{
/**
* @var string
*/
public $diskType;
/**
* @var string
*/
public $fsType;
/**
* @var string
*/
public $reclaimPolicy;
/**
* @var int
*/
public $sizeGb;
/**
* @var string
*/
public $sourceSnapshot;
/**
* @param string
*/
public function setDiskType($diskType)
{
$this->diskType = $diskType;
}
/**
* @return string
*/
public function getDiskType()
{
return $this->diskType;
}
/**
* @param string
*/
public function setFsType($fsType)
{
$this->fsType = $fsType;
}
/**
* @return string
*/
public function getFsType()
{
return $this->fsType;
}
/**
* @param string
*/
public function setReclaimPolicy($reclaimPolicy)
{
$this->reclaimPolicy = $reclaimPolicy;
}
/**
* @return string
*/
public function getReclaimPolicy()
{
return $this->reclaimPolicy;
}
/**
* @param int
*/
public function setSizeGb($sizeGb)
{
$this->sizeGb = $sizeGb;
}
/**
* @return int
*/
public function getSizeGb()
{
return $this->sizeGb;
}
/**
* @param string
*/
public function setSourceSnapshot($sourceSnapshot)
{
$this->sourceSnapshot = $sourceSnapshot;
}
/**
* @return string
*/
public function getSourceSnapshot()
{
return $this->sourceSnapshot;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GceRegionalPersistentDisk::class, 'Google_Service_CloudWorkstations_GceRegionalPersistentDisk');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class GceShieldedInstanceConfig extends \Google\Model
{
/**
* @var bool
*/
public $enableIntegrityMonitoring;
/**
* @var bool
*/
public $enableSecureBoot;
/**
* @var bool
*/
public $enableVtpm;
/**
* @param bool
*/
public function setEnableIntegrityMonitoring($enableIntegrityMonitoring)
{
$this->enableIntegrityMonitoring = $enableIntegrityMonitoring;
}
/**
* @return bool
*/
public function getEnableIntegrityMonitoring()
{
return $this->enableIntegrityMonitoring;
}
/**
* @param bool
*/
public function setEnableSecureBoot($enableSecureBoot)
{
$this->enableSecureBoot = $enableSecureBoot;
}
/**
* @return bool
*/
public function getEnableSecureBoot()
{
return $this->enableSecureBoot;
}
/**
* @param bool
*/
public function setEnableVtpm($enableVtpm)
{
$this->enableVtpm = $enableVtpm;
}
/**
* @return bool
*/
public function getEnableVtpm()
{
return $this->enableVtpm;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GceShieldedInstanceConfig::class, 'Google_Service_CloudWorkstations_GceShieldedInstanceConfig');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class GenerateAccessTokenRequest extends \Google\Model
{
/**
* @var string
*/
public $expireTime;
/**
* @var int
*/
public $port;
/**
* @var string
*/
public $ttl;
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param int
*/
public function setPort($port)
{
$this->port = $port;
}
/**
* @return int
*/
public function getPort()
{
return $this->port;
}
/**
* @param string
*/
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
/**
* @return string
*/
public function getTtl()
{
return $this->ttl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateAccessTokenRequest::class, 'Google_Service_CloudWorkstations_GenerateAccessTokenRequest');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class GenerateAccessTokenResponse extends \Google\Model
{
/**
* @var string
*/
public $accessToken;
/**
* @var string
*/
public $expireTime;
/**
* @param string
*/
public function setAccessToken($accessToken)
{
$this->accessToken = $accessToken;
}
/**
* @return string
*/
public function getAccessToken()
{
return $this->accessToken;
}
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateAccessTokenResponse::class, 'Google_Service_CloudWorkstations_GenerateAccessTokenResponse');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class GoogleProtobufEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleProtobufEmpty::class, 'Google_Service_CloudWorkstations_GoogleProtobufEmpty');

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class Host extends \Google\Model
{
protected $gceInstanceType = GceInstance::class;
protected $gceInstanceDataType = '';
/**
* @param GceInstance
*/
public function setGceInstance(GceInstance $gceInstance)
{
$this->gceInstance = $gceInstance;
}
/**
* @return GceInstance
*/
public function getGceInstance()
{
return $this->gceInstance;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Host::class, 'Google_Service_CloudWorkstations_Host');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Location[]
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_CloudWorkstations_ListLocationsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Operation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_CloudWorkstations_ListOperationsResponse');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class ListUsableWorkstationConfigsResponse extends \Google\Collection
{
protected $collection_key = 'workstationConfigs';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
protected $workstationConfigsType = WorkstationConfig::class;
protected $workstationConfigsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* @param WorkstationConfig[]
*/
public function setWorkstationConfigs($workstationConfigs)
{
$this->workstationConfigs = $workstationConfigs;
}
/**
* @return WorkstationConfig[]
*/
public function getWorkstationConfigs()
{
return $this->workstationConfigs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListUsableWorkstationConfigsResponse::class, 'Google_Service_CloudWorkstations_ListUsableWorkstationConfigsResponse');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class ListUsableWorkstationsResponse extends \Google\Collection
{
protected $collection_key = 'workstations';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
protected $workstationsType = Workstation::class;
protected $workstationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* @param Workstation[]
*/
public function setWorkstations($workstations)
{
$this->workstations = $workstations;
}
/**
* @return Workstation[]
*/
public function getWorkstations()
{
return $this->workstations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListUsableWorkstationsResponse::class, 'Google_Service_CloudWorkstations_ListUsableWorkstationsResponse');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class ListWorkstationClustersResponse extends \Google\Collection
{
protected $collection_key = 'workstationClusters';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
protected $workstationClustersType = WorkstationCluster::class;
protected $workstationClustersDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* @param WorkstationCluster[]
*/
public function setWorkstationClusters($workstationClusters)
{
$this->workstationClusters = $workstationClusters;
}
/**
* @return WorkstationCluster[]
*/
public function getWorkstationClusters()
{
return $this->workstationClusters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListWorkstationClustersResponse::class, 'Google_Service_CloudWorkstations_ListWorkstationClustersResponse');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class ListWorkstationConfigsResponse extends \Google\Collection
{
protected $collection_key = 'workstationConfigs';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
protected $workstationConfigsType = WorkstationConfig::class;
protected $workstationConfigsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* @param WorkstationConfig[]
*/
public function setWorkstationConfigs($workstationConfigs)
{
$this->workstationConfigs = $workstationConfigs;
}
/**
* @return WorkstationConfig[]
*/
public function getWorkstationConfigs()
{
return $this->workstationConfigs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListWorkstationConfigsResponse::class, 'Google_Service_CloudWorkstations_ListWorkstationConfigsResponse');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class ListWorkstationsResponse extends \Google\Collection
{
protected $collection_key = 'workstations';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
protected $workstationsType = Workstation::class;
protected $workstationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* @param Workstation[]
*/
public function setWorkstations($workstations)
{
$this->workstations = $workstations;
}
/**
* @return Workstation[]
*/
public function getWorkstations()
{
return $this->workstations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListWorkstationsResponse::class, 'Google_Service_CloudWorkstations_ListWorkstationsResponse');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class Location extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $locationId;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_CloudWorkstations_Location');

View File

@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class Operation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_CloudWorkstations_Operation');

View File

@@ -0,0 +1,152 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class OperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $apiVersion;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $endTime;
/**
* @var bool
*/
public $requestedCancellation;
/**
* @var string
*/
public $statusMessage;
/**
* @var string
*/
public $target;
/**
* @var string
*/
public $verb;
/**
* @param string
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param bool
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* @param string
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* @param string
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* @param string
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_CloudWorkstations_OperationMetadata');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class PersistentDirectory extends \Google\Model
{
protected $gcePdType = GceRegionalPersistentDisk::class;
protected $gcePdDataType = '';
/**
* @var string
*/
public $mountPath;
/**
* @param GceRegionalPersistentDisk
*/
public function setGcePd(GceRegionalPersistentDisk $gcePd)
{
$this->gcePd = $gcePd;
}
/**
* @return GceRegionalPersistentDisk
*/
public function getGcePd()
{
return $this->gcePd;
}
/**
* @param string
*/
public function setMountPath($mountPath)
{
$this->mountPath = $mountPath;
}
/**
* @return string
*/
public function getMountPath()
{
return $this->mountPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PersistentDirectory::class, 'Google_Service_CloudWorkstations_PersistentDirectory');

View File

@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* @var string
*/
public $etag;
/**
* @var int
*/
public $version;
/**
* @param AuditConfig[]
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* @param Binding[]
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param int
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_CloudWorkstations_Policy');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class PortRange extends \Google\Model
{
/**
* @var int
*/
public $first;
/**
* @var int
*/
public $last;
/**
* @param int
*/
public function setFirst($first)
{
$this->first = $first;
}
/**
* @return int
*/
public function getFirst()
{
return $this->first;
}
/**
* @param int
*/
public function setLast($last)
{
$this->last = $last;
}
/**
* @return int
*/
public function getLast()
{
return $this->last;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PortRange::class, 'Google_Service_CloudWorkstations_PortRange');

View File

@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class PrivateClusterConfig extends \Google\Collection
{
protected $collection_key = 'allowedProjects';
/**
* @var string[]
*/
public $allowedProjects;
/**
* @var string
*/
public $clusterHostname;
/**
* @var bool
*/
public $enablePrivateEndpoint;
/**
* @var string
*/
public $serviceAttachmentUri;
/**
* @param string[]
*/
public function setAllowedProjects($allowedProjects)
{
$this->allowedProjects = $allowedProjects;
}
/**
* @return string[]
*/
public function getAllowedProjects()
{
return $this->allowedProjects;
}
/**
* @param string
*/
public function setClusterHostname($clusterHostname)
{
$this->clusterHostname = $clusterHostname;
}
/**
* @return string
*/
public function getClusterHostname()
{
return $this->clusterHostname;
}
/**
* @param bool
*/
public function setEnablePrivateEndpoint($enablePrivateEndpoint)
{
$this->enablePrivateEndpoint = $enablePrivateEndpoint;
}
/**
* @return bool
*/
public function getEnablePrivateEndpoint()
{
return $this->enablePrivateEndpoint;
}
/**
* @param string
*/
public function setServiceAttachmentUri($serviceAttachmentUri)
{
$this->serviceAttachmentUri = $serviceAttachmentUri;
}
/**
* @return string
*/
public function getServiceAttachmentUri()
{
return $this->serviceAttachmentUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PrivateClusterConfig::class, 'Google_Service_CloudWorkstations_PrivateClusterConfig');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class ReadinessCheck extends \Google\Model
{
/**
* @var string
*/
public $path;
/**
* @var int
*/
public $port;
/**
* @param string
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* @param int
*/
public function setPort($port)
{
$this->port = $port;
}
/**
* @return int
*/
public function getPort()
{
return $this->port;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReadinessCheck::class, 'Google_Service_CloudWorkstations_ReadinessCheck');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $workstationsService = new Google\Service\CloudWorkstations(...);
* $projects = $workstationsService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_CloudWorkstations_Resource_Projects');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations\Resource;
use Google\Service\CloudWorkstations\ListLocationsResponse;
use Google\Service\CloudWorkstations\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $workstationsService = new Google\Service\CloudWorkstations(...);
* $locations = $workstationsService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Lists information about the supported locations for this service.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @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).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_CloudWorkstations_Resource_ProjectsLocations');

View File

@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations\Resource;
use Google\Service\CloudWorkstations\CancelOperationRequest;
use Google\Service\CloudWorkstations\GoogleProtobufEmpty;
use Google\Service\CloudWorkstations\ListOperationsResponse;
use Google\Service\CloudWorkstations\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $workstationsService = new Google\Service\CloudWorkstations(...);
* $operations = $workstationsService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], GoogleProtobufEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_CloudWorkstations_Resource_ProjectsLocationsOperations');

View File

@@ -0,0 +1,137 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations\Resource;
use Google\Service\CloudWorkstations\ListWorkstationClustersResponse;
use Google\Service\CloudWorkstations\Operation;
use Google\Service\CloudWorkstations\WorkstationCluster;
/**
* The "workstationClusters" collection of methods.
* Typical usage is:
* <code>
* $workstationsService = new Google\Service\CloudWorkstations(...);
* $workstationClusters = $workstationsService->projects_locations_workstationClusters;
* </code>
*/
class ProjectsLocationsWorkstationClusters extends \Google\Service\Resource
{
/**
* Creates a new workstation cluster. (workstationClusters.create)
*
* @param string $parent Required. Parent resource name.
* @param WorkstationCluster $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool validateOnly Optional. If set, validate the request and
* preview the review, but do not actually apply it.
* @opt_param string workstationClusterId Required. ID to use for the
* workstation cluster.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, WorkstationCluster $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified workstation cluster. (workstationClusters.delete)
*
* @param string $name Required. Name of the workstation cluster to delete.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. If set, the request will be rejected if the
* latest version of the workstation cluster on the server does not have this
* ETag.
* @opt_param bool force Optional. If set, any workstation configurations and
* workstations in the workstation cluster are also deleted. Otherwise, the
* request only works if the workstation cluster has no configurations or
* workstations.
* @opt_param bool validateOnly Optional. If set, validate the request and
* preview the review, but do not apply it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Returns the requested workstation cluster. (workstationClusters.get)
*
* @param string $name Required. Name of the requested resource.
* @param array $optParams Optional parameters.
* @return WorkstationCluster
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WorkstationCluster::class);
}
/**
* Returns all workstation clusters in the specified location.
* (workstationClusters.listProjectsLocationsWorkstationClusters)
*
* @param string $parent Required. Parent resource name.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of items to return.
* @opt_param string pageToken Optional. next_page_token value returned from a
* previous List request, if any.
* @return ListWorkstationClustersResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsWorkstationClusters($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListWorkstationClustersResponse::class);
}
/**
* Updates an existing workstation cluster. (workstationClusters.patch)
*
* @param string $name Identifier. Full name of this workstation cluster.
* @param WorkstationCluster $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set, and the workstation cluster is
* not found, a new workstation cluster will be created. In this situation,
* update_mask is ignored.
* @opt_param string updateMask Required. Mask that specifies which fields in
* the workstation cluster should be updated.
* @opt_param bool validateOnly Optional. If set, validate the request and
* preview the review, but do not actually apply it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, WorkstationCluster $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsWorkstationClusters::class, 'Google_Service_CloudWorkstations_Resource_ProjectsLocationsWorkstationClusters');

View File

@@ -0,0 +1,237 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations\Resource;
use Google\Service\CloudWorkstations\ListUsableWorkstationConfigsResponse;
use Google\Service\CloudWorkstations\ListWorkstationConfigsResponse;
use Google\Service\CloudWorkstations\Operation;
use Google\Service\CloudWorkstations\Policy;
use Google\Service\CloudWorkstations\SetIamPolicyRequest;
use Google\Service\CloudWorkstations\TestIamPermissionsRequest;
use Google\Service\CloudWorkstations\TestIamPermissionsResponse;
use Google\Service\CloudWorkstations\WorkstationConfig;
/**
* The "workstationConfigs" collection of methods.
* Typical usage is:
* <code>
* $workstationsService = new Google\Service\CloudWorkstations(...);
* $workstationConfigs = $workstationsService->projects_locations_workstationClusters_workstationConfigs;
* </code>
*/
class ProjectsLocationsWorkstationClustersWorkstationConfigs extends \Google\Service\Resource
{
/**
* Creates a new workstation configuration. (workstationConfigs.create)
*
* @param string $parent Required. Parent resource name.
* @param WorkstationConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool validateOnly Optional. If set, validate the request and
* preview the review, but do not actually apply it.
* @opt_param string workstationConfigId Required. ID to use for the workstation
* configuration.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, WorkstationConfig $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified workstation configuration. (workstationConfigs.delete)
*
* @param string $name Required. Name of the workstation configuration to
* delete.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. If set, the request is rejected if the
* latest version of the workstation configuration on the server does not have
* this ETag.
* @opt_param bool force Optional. If set, any workstations in the workstation
* configuration are also deleted. Otherwise, the request works only if the
* workstation configuration has no workstations.
* @opt_param bool validateOnly Optional. If set, validate the request and
* preview the review, but do not actually apply it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Returns the requested workstation configuration. (workstationConfigs.get)
*
* @param string $name Required. Name of the requested resource.
* @param array $optParams Optional parameters.
* @return WorkstationConfig
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WorkstationConfig::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (workstationConfigs.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Returns all workstation configurations in the specified cluster. (workstation
* Configs.listProjectsLocationsWorkstationClustersWorkstationConfigs)
*
* @param string $parent Required. Parent resource name.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of items to return.
* @opt_param string pageToken Optional. next_page_token value returned from a
* previous List request, if any.
* @return ListWorkstationConfigsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsWorkstationClustersWorkstationConfigs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListWorkstationConfigsResponse::class);
}
/**
* Returns all workstation configurations in the specified cluster on which the
* caller has the "workstations.workstation.create" permission.
* (workstationConfigs.listUsable)
*
* @param string $parent Required. Parent resource name.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of items to return.
* @opt_param string pageToken Optional. next_page_token value returned from a
* previous List request, if any.
* @return ListUsableWorkstationConfigsResponse
* @throws \Google\Service\Exception
*/
public function listUsable($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('listUsable', [$params], ListUsableWorkstationConfigsResponse::class);
}
/**
* Updates an existing workstation configuration. (workstationConfigs.patch)
*
* @param string $name Identifier. Full name of this workstation configuration.
* @param WorkstationConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set and the workstation
* configuration is not found, a new workstation configuration will be created.
* In this situation, update_mask is ignored.
* @opt_param string updateMask Required. Mask specifying which fields in the
* workstation configuration should be updated.
* @opt_param bool validateOnly Optional. If set, validate the request and
* preview the review, but do not actually apply it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, WorkstationConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (workstationConfigs.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (workstationConfigs.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsWorkstationClustersWorkstationConfigs::class, 'Google_Service_CloudWorkstations_Resource_ProjectsLocationsWorkstationClustersWorkstationConfigs');

View File

@@ -0,0 +1,285 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations\Resource;
use Google\Service\CloudWorkstations\GenerateAccessTokenRequest;
use Google\Service\CloudWorkstations\GenerateAccessTokenResponse;
use Google\Service\CloudWorkstations\ListUsableWorkstationsResponse;
use Google\Service\CloudWorkstations\ListWorkstationsResponse;
use Google\Service\CloudWorkstations\Operation;
use Google\Service\CloudWorkstations\Policy;
use Google\Service\CloudWorkstations\SetIamPolicyRequest;
use Google\Service\CloudWorkstations\StartWorkstationRequest;
use Google\Service\CloudWorkstations\StopWorkstationRequest;
use Google\Service\CloudWorkstations\TestIamPermissionsRequest;
use Google\Service\CloudWorkstations\TestIamPermissionsResponse;
use Google\Service\CloudWorkstations\Workstation;
/**
* The "workstations" collection of methods.
* Typical usage is:
* <code>
* $workstationsService = new Google\Service\CloudWorkstations(...);
* $workstations = $workstationsService->projects_locations_workstationClusters_workstationConfigs_workstations;
* </code>
*/
class ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstations extends \Google\Service\Resource
{
/**
* Creates a new workstation. (workstations.create)
*
* @param string $parent Required. Parent resource name.
* @param Workstation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool validateOnly Optional. If set, validate the request and
* preview the review, but do not actually apply it.
* @opt_param string workstationId Required. ID to use for the workstation.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Workstation $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified workstation. (workstations.delete)
*
* @param string $name Required. Name of the workstation to delete.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. If set, the request will be rejected if the
* latest version of the workstation on the server does not have this ETag.
* @opt_param bool validateOnly Optional. If set, validate the request and
* preview the review, but do not actually apply it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Returns a short-lived credential that can be used to send authenticated and
* authorized traffic to a workstation. Once generated this token cannot be
* revoked and is good for the lifetime of the token.
* (workstations.generateAccessToken)
*
* @param string $workstation Required. Name of the workstation for which the
* access token should be generated.
* @param GenerateAccessTokenRequest $postBody
* @param array $optParams Optional parameters.
* @return GenerateAccessTokenResponse
* @throws \Google\Service\Exception
*/
public function generateAccessToken($workstation, GenerateAccessTokenRequest $postBody, $optParams = [])
{
$params = ['workstation' => $workstation, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('generateAccessToken', [$params], GenerateAccessTokenResponse::class);
}
/**
* Returns the requested workstation. (workstations.get)
*
* @param string $name Required. Name of the requested resource.
* @param array $optParams Optional parameters.
* @return Workstation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Workstation::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (workstations.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Returns all Workstations using the specified workstation configuration. (work
* stations.listProjectsLocationsWorkstationClustersWorkstationConfigsWorkstatio
* ns)
*
* @param string $parent Required. Parent resource name.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of items to return.
* @opt_param string pageToken Optional. next_page_token value returned from a
* previous List request, if any.
* @return ListWorkstationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsWorkstationClustersWorkstationConfigsWorkstations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListWorkstationsResponse::class);
}
/**
* Returns all workstations using the specified workstation configuration on
* which the caller has the "workstations.workstations.use" permission.
* (workstations.listUsable)
*
* @param string $parent Required. Parent resource name.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of items to return.
* @opt_param string pageToken Optional. next_page_token value returned from a
* previous List request, if any.
* @return ListUsableWorkstationsResponse
* @throws \Google\Service\Exception
*/
public function listUsable($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('listUsable', [$params], ListUsableWorkstationsResponse::class);
}
/**
* Updates an existing workstation. (workstations.patch)
*
* @param string $name Identifier. Full name of this workstation.
* @param Workstation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set and the workstation
* configuration is not found, a new workstation configuration is created. In
* this situation, update_mask is ignored.
* @opt_param string updateMask Required. Mask specifying which fields in the
* workstation configuration should be updated.
* @opt_param bool validateOnly Optional. If set, validate the request and
* preview the review, but do not actually apply it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Workstation $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (workstations.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Starts running a workstation so that users can connect to it.
* (workstations.start)
*
* @param string $name Required. Name of the workstation to start.
* @param StartWorkstationRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function start($name, StartWorkstationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('start', [$params], Operation::class);
}
/**
* Stops running a workstation, reducing costs. (workstations.stop)
*
* @param string $name Required. Name of the workstation to stop.
* @param StopWorkstationRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function stop($name, StopWorkstationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('stop', [$params], Operation::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (workstations.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstations::class, 'Google_Service_CloudWorkstations_Resource_ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstations');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class SetIamPolicyRequest extends \Google\Model
{
protected $policyType = Policy::class;
protected $policyDataType = '';
/**
* @var string
*/
public $updateMask;
/**
* @param Policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* @param string
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetIamPolicyRequest::class, 'Google_Service_CloudWorkstations_SetIamPolicyRequest');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class StartWorkstationRequest extends \Google\Model
{
/**
* @var string
*/
public $etag;
/**
* @var bool
*/
public $validateOnly;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param bool
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StartWorkstationRequest::class, 'Google_Service_CloudWorkstations_StartWorkstationRequest');

View File

@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_CloudWorkstations_Status');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class StopWorkstationRequest extends \Google\Model
{
/**
* @var string
*/
public $etag;
/**
* @var bool
*/
public $validateOnly;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param bool
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StopWorkstationRequest::class, 'Google_Service_CloudWorkstations_StopWorkstationRequest');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class TestIamPermissionsRequest extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* @var string[]
*/
public $permissions;
/**
* @param string[]
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsRequest::class, 'Google_Service_CloudWorkstations_TestIamPermissionsRequest');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class TestIamPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* @var string[]
*/
public $permissions;
/**
* @param string[]
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsResponse::class, 'Google_Service_CloudWorkstations_TestIamPermissionsResponse');

View File

@@ -0,0 +1,296 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class Workstation extends \Google\Model
{
/**
* @var string[]
*/
public $annotations;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $deleteTime;
/**
* @var string
*/
public $displayName;
/**
* @var string[]
*/
public $env;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $host;
/**
* @var string
*/
public $kmsKey;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $reconciling;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $uid;
/**
* @var string
*/
public $updateTime;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string[]
*/
public function setEnv($env)
{
$this->env = $env;
}
/**
* @return string[]
*/
public function getEnv()
{
return $this->env;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setHost($host)
{
$this->host = $host;
}
/**
* @return string
*/
public function getHost()
{
return $this->host;
}
/**
* @param string
*/
public function setKmsKey($kmsKey)
{
$this->kmsKey = $kmsKey;
}
/**
* @return string
*/
public function getKmsKey()
{
return $this->kmsKey;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Workstation::class, 'Google_Service_CloudWorkstations_Workstation');

View File

@@ -0,0 +1,345 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class WorkstationCluster extends \Google\Collection
{
protected $collection_key = 'conditions';
/**
* @var string[]
*/
public $annotations;
protected $conditionsType = Status::class;
protected $conditionsDataType = 'array';
/**
* @var string
*/
public $controlPlaneIp;
/**
* @var string
*/
public $createTime;
/**
* @var bool
*/
public $degraded;
/**
* @var string
*/
public $deleteTime;
/**
* @var string
*/
public $displayName;
protected $domainConfigType = DomainConfig::class;
protected $domainConfigDataType = '';
/**
* @var string
*/
public $etag;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $network;
protected $privateClusterConfigType = PrivateClusterConfig::class;
protected $privateClusterConfigDataType = '';
/**
* @var bool
*/
public $reconciling;
/**
* @var string
*/
public $subnetwork;
/**
* @var string[]
*/
public $tags;
/**
* @var string
*/
public $uid;
/**
* @var string
*/
public $updateTime;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param Status[]
*/
public function setConditions($conditions)
{
$this->conditions = $conditions;
}
/**
* @return Status[]
*/
public function getConditions()
{
return $this->conditions;
}
/**
* @param string
*/
public function setControlPlaneIp($controlPlaneIp)
{
$this->controlPlaneIp = $controlPlaneIp;
}
/**
* @return string
*/
public function getControlPlaneIp()
{
return $this->controlPlaneIp;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param bool
*/
public function setDegraded($degraded)
{
$this->degraded = $degraded;
}
/**
* @return bool
*/
public function getDegraded()
{
return $this->degraded;
}
/**
* @param string
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param DomainConfig
*/
public function setDomainConfig(DomainConfig $domainConfig)
{
$this->domainConfig = $domainConfig;
}
/**
* @return DomainConfig
*/
public function getDomainConfig()
{
return $this->domainConfig;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* @param PrivateClusterConfig
*/
public function setPrivateClusterConfig(PrivateClusterConfig $privateClusterConfig)
{
$this->privateClusterConfig = $privateClusterConfig;
}
/**
* @return PrivateClusterConfig
*/
public function getPrivateClusterConfig()
{
return $this->privateClusterConfig;
}
/**
* @param bool
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* @param string
*/
public function setSubnetwork($subnetwork)
{
$this->subnetwork = $subnetwork;
}
/**
* @return string
*/
public function getSubnetwork()
{
return $this->subnetwork;
}
/**
* @param string[]
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WorkstationCluster::class, 'Google_Service_CloudWorkstations_WorkstationCluster');

View File

@@ -0,0 +1,479 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class WorkstationConfig extends \Google\Collection
{
protected $collection_key = 'replicaZones';
protected $allowedPortsType = PortRange::class;
protected $allowedPortsDataType = 'array';
/**
* @var string[]
*/
public $annotations;
protected $conditionsType = Status::class;
protected $conditionsDataType = 'array';
protected $containerType = Container::class;
protected $containerDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var bool
*/
public $degraded;
/**
* @var string
*/
public $deleteTime;
/**
* @var bool
*/
public $disableTcpConnections;
/**
* @var string
*/
public $displayName;
/**
* @var bool
*/
public $enableAuditAgent;
protected $encryptionKeyType = CustomerEncryptionKey::class;
protected $encryptionKeyDataType = '';
protected $ephemeralDirectoriesType = EphemeralDirectory::class;
protected $ephemeralDirectoriesDataType = 'array';
/**
* @var string
*/
public $etag;
/**
* @var bool
*/
public $grantWorkstationAdminRoleOnCreate;
protected $hostType = Host::class;
protected $hostDataType = '';
/**
* @var string
*/
public $idleTimeout;
/**
* @var string[]
*/
public $labels;
/**
* @var int
*/
public $maxUsableWorkstations;
/**
* @var string
*/
public $name;
protected $persistentDirectoriesType = PersistentDirectory::class;
protected $persistentDirectoriesDataType = 'array';
protected $readinessChecksType = ReadinessCheck::class;
protected $readinessChecksDataType = 'array';
/**
* @var bool
*/
public $reconciling;
/**
* @var string[]
*/
public $replicaZones;
/**
* @var string
*/
public $runningTimeout;
/**
* @var string
*/
public $uid;
/**
* @var string
*/
public $updateTime;
/**
* @param PortRange[]
*/
public function setAllowedPorts($allowedPorts)
{
$this->allowedPorts = $allowedPorts;
}
/**
* @return PortRange[]
*/
public function getAllowedPorts()
{
return $this->allowedPorts;
}
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param Status[]
*/
public function setConditions($conditions)
{
$this->conditions = $conditions;
}
/**
* @return Status[]
*/
public function getConditions()
{
return $this->conditions;
}
/**
* @param Container
*/
public function setContainer(Container $container)
{
$this->container = $container;
}
/**
* @return Container
*/
public function getContainer()
{
return $this->container;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param bool
*/
public function setDegraded($degraded)
{
$this->degraded = $degraded;
}
/**
* @return bool
*/
public function getDegraded()
{
return $this->degraded;
}
/**
* @param string
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* @param bool
*/
public function setDisableTcpConnections($disableTcpConnections)
{
$this->disableTcpConnections = $disableTcpConnections;
}
/**
* @return bool
*/
public function getDisableTcpConnections()
{
return $this->disableTcpConnections;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param bool
*/
public function setEnableAuditAgent($enableAuditAgent)
{
$this->enableAuditAgent = $enableAuditAgent;
}
/**
* @return bool
*/
public function getEnableAuditAgent()
{
return $this->enableAuditAgent;
}
/**
* @param CustomerEncryptionKey
*/
public function setEncryptionKey(CustomerEncryptionKey $encryptionKey)
{
$this->encryptionKey = $encryptionKey;
}
/**
* @return CustomerEncryptionKey
*/
public function getEncryptionKey()
{
return $this->encryptionKey;
}
/**
* @param EphemeralDirectory[]
*/
public function setEphemeralDirectories($ephemeralDirectories)
{
$this->ephemeralDirectories = $ephemeralDirectories;
}
/**
* @return EphemeralDirectory[]
*/
public function getEphemeralDirectories()
{
return $this->ephemeralDirectories;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param bool
*/
public function setGrantWorkstationAdminRoleOnCreate($grantWorkstationAdminRoleOnCreate)
{
$this->grantWorkstationAdminRoleOnCreate = $grantWorkstationAdminRoleOnCreate;
}
/**
* @return bool
*/
public function getGrantWorkstationAdminRoleOnCreate()
{
return $this->grantWorkstationAdminRoleOnCreate;
}
/**
* @param Host
*/
public function setHost(Host $host)
{
$this->host = $host;
}
/**
* @return Host
*/
public function getHost()
{
return $this->host;
}
/**
* @param string
*/
public function setIdleTimeout($idleTimeout)
{
$this->idleTimeout = $idleTimeout;
}
/**
* @return string
*/
public function getIdleTimeout()
{
return $this->idleTimeout;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param int
*/
public function setMaxUsableWorkstations($maxUsableWorkstations)
{
$this->maxUsableWorkstations = $maxUsableWorkstations;
}
/**
* @return int
*/
public function getMaxUsableWorkstations()
{
return $this->maxUsableWorkstations;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param PersistentDirectory[]
*/
public function setPersistentDirectories($persistentDirectories)
{
$this->persistentDirectories = $persistentDirectories;
}
/**
* @return PersistentDirectory[]
*/
public function getPersistentDirectories()
{
return $this->persistentDirectories;
}
/**
* @param ReadinessCheck[]
*/
public function setReadinessChecks($readinessChecks)
{
$this->readinessChecks = $readinessChecks;
}
/**
* @return ReadinessCheck[]
*/
public function getReadinessChecks()
{
return $this->readinessChecks;
}
/**
* @param bool
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* @param string[]
*/
public function setReplicaZones($replicaZones)
{
$this->replicaZones = $replicaZones;
}
/**
* @return string[]
*/
public function getReplicaZones()
{
return $this->replicaZones;
}
/**
* @param string
*/
public function setRunningTimeout($runningTimeout)
{
$this->runningTimeout = $runningTimeout;
}
/**
* @return string
*/
public function getRunningTimeout()
{
return $this->runningTimeout;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WorkstationConfig::class, 'Google_Service_CloudWorkstations_WorkstationConfig');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudWorkstations;
class WorkstationsEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WorkstationsEmpty::class, 'Google_Service_CloudWorkstations_WorkstationsEmpty');