gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,100 @@
<?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\TPU;
class AcceleratorConfig extends \Google\Model
{
/**
* Unspecified version.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* TPU v2.
*/
public const TYPE_V2 = 'V2';
/**
* TPU v3.
*/
public const TYPE_V3 = 'V3';
/**
* TPU v4.
*/
public const TYPE_V4 = 'V4';
/**
* TPU v5lite pod.
*/
public const TYPE_V5LITE_POD = 'V5LITE_POD';
/**
* TPU v5p.
*/
public const TYPE_V5P = 'V5P';
/**
* TPU v6e.
*/
public const TYPE_V6E = 'V6E';
/**
* Required. Topology of TPU in chips.
*
* @var string
*/
public $topology;
/**
* Required. Type of TPU.
*
* @var string
*/
public $type;
/**
* Required. Topology of TPU in chips.
*
* @param string $topology
*/
public function setTopology($topology)
{
$this->topology = $topology;
}
/**
* @return string
*/
public function getTopology()
{
return $this->topology;
}
/**
* Required. Type of TPU.
*
* Accepted values: TYPE_UNSPECIFIED, V2, V3, V4, V5LITE_POD, V5P, V6E
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorConfig::class, 'Google_Service_TPU_AcceleratorConfig');
@@ -0,0 +1,89 @@
<?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\TPU;
class AcceleratorType extends \Google\Collection
{
protected $collection_key = 'acceleratorConfigs';
protected $acceleratorConfigsType = AcceleratorConfig::class;
protected $acceleratorConfigsDataType = 'array';
/**
* The resource name.
*
* @var string
*/
public $name;
/**
* The accelerator type.
*
* @var string
*/
public $type;
/**
* The accelerator config.
*
* @param AcceleratorConfig[] $acceleratorConfigs
*/
public function setAcceleratorConfigs($acceleratorConfigs)
{
$this->acceleratorConfigs = $acceleratorConfigs;
}
/**
* @return AcceleratorConfig[]
*/
public function getAcceleratorConfigs()
{
return $this->acceleratorConfigs;
}
/**
* The resource name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The accelerator type.
*
* @param string $type
*/
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(AcceleratorType::class, 'Google_Service_TPU_AcceleratorType');
@@ -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\TPU;
class AcceptedData extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceptedData::class, 'Google_Service_TPU_AcceptedData');
@@ -0,0 +1,48 @@
<?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\TPU;
class AccessConfig extends \Google\Model
{
/**
* Output only. An external IP address associated with the TPU worker.
*
* @var string
*/
public $externalIp;
/**
* Output only. An external IP address associated with the TPU worker.
*
* @param string $externalIp
*/
public function setExternalIp($externalIp)
{
$this->externalIp = $externalIp;
}
/**
* @return string
*/
public function getExternalIp()
{
return $this->externalIp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessConfig::class, 'Google_Service_TPU_AccessConfig');
+25
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\TPU;
class ActiveData extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ActiveData::class, 'Google_Service_TPU_ActiveData');
@@ -0,0 +1,90 @@
<?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\TPU;
class AttachedDisk extends \Google\Model
{
/**
* The disk mode is not known/set.
*/
public const MODE_DISK_MODE_UNSPECIFIED = 'DISK_MODE_UNSPECIFIED';
/**
* Attaches the disk in read-write mode. Only one TPU node can attach a disk
* in read-write mode at a time.
*/
public const MODE_READ_WRITE = 'READ_WRITE';
/**
* Attaches the disk in read-only mode. Multiple TPU nodes can attach a disk
* in read-only mode at a time.
*/
public const MODE_READ_ONLY = 'READ_ONLY';
/**
* The mode in which to attach this disk. If not specified, the default is
* READ_WRITE mode. Only applicable to data_disks.
*
* @var string
*/
public $mode;
/**
* Specifies the full path to an existing disk. For example: "projects/my-
* project/zones/us-central1-c/disks/my-disk".
*
* @var string
*/
public $sourceDisk;
/**
* The mode in which to attach this disk. If not specified, the default is
* READ_WRITE mode. Only applicable to data_disks.
*
* Accepted values: DISK_MODE_UNSPECIFIED, READ_WRITE, READ_ONLY
*
* @param self::MODE_* $mode
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return self::MODE_*
*/
public function getMode()
{
return $this->mode;
}
/**
* Specifies the full path to an existing disk. For example: "projects/my-
* project/zones/us-central1-c/disks/my-disk".
*
* @param string $sourceDisk
*/
public function setSourceDisk($sourceDisk)
{
$this->sourceDisk = $sourceDisk;
}
/**
* @return string
*/
public function getSourceDisk()
{
return $this->sourceDisk;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttachedDisk::class, 'Google_Service_TPU_AttachedDisk');
@@ -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\TPU;
class BootDiskConfig extends \Google\Model
{
protected $customerEncryptionKeyType = CustomerEncryptionKey::class;
protected $customerEncryptionKeyDataType = '';
/**
* Optional. Customer encryption key for boot disk.
*
* @param CustomerEncryptionKey $customerEncryptionKey
*/
public function setCustomerEncryptionKey(CustomerEncryptionKey $customerEncryptionKey)
{
$this->customerEncryptionKey = $customerEncryptionKey;
}
/**
* @return CustomerEncryptionKey
*/
public function getCustomerEncryptionKey()
{
return $this->customerEncryptionKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BootDiskConfig::class, 'Google_Service_TPU_BootDiskConfig');
@@ -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\TPU;
class CreatingData extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreatingData::class, 'Google_Service_TPU_CreatingData');
@@ -0,0 +1,56 @@
<?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\TPU;
class CustomerEncryptionKey extends \Google\Model
{
/**
* The name of the encryption key that is stored in Google Cloud KMS. For
* example: "kmsKeyName": "projects/KMS_PROJECT_ID/locations/REGION/keyRings/K
* EY_REGION/cryptoKeys/KEY The fully-qualifed key name may be returned for
* resource GET requests. For example: "kmsKeyName": "projects/KMS_PROJECT_ID/
* locations/REGION/keyRings/KEY_REGION/cryptoKeys/KEY/cryptoKeyVersions/1
*
* @var string
*/
public $kmsKeyName;
/**
* The name of the encryption key that is stored in Google Cloud KMS. For
* example: "kmsKeyName": "projects/KMS_PROJECT_ID/locations/REGION/keyRings/K
* EY_REGION/cryptoKeys/KEY The fully-qualifed key name may be returned for
* resource GET requests. For example: "kmsKeyName": "projects/KMS_PROJECT_ID/
* locations/REGION/keyRings/KEY_REGION/cryptoKeys/KEY/cryptoKeyVersions/1
*
* @param string $kmsKeyName
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerEncryptionKey::class, 'Google_Service_TPU_CustomerEncryptionKey');
@@ -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\TPU;
class DeletingData extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeletingData::class, 'Google_Service_TPU_DeletingData');
+45
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\TPU;
class FailedData extends \Google\Model
{
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Output only. The error that caused the queued resource to enter the FAILED
* state.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FailedData::class, 'Google_Service_TPU_FailedData');
@@ -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\TPU;
class GenerateServiceIdentityRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateServiceIdentityRequest::class, 'Google_Service_TPU_GenerateServiceIdentityRequest');
@@ -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\TPU;
class GenerateServiceIdentityResponse extends \Google\Model
{
protected $identityType = ServiceIdentity::class;
protected $identityDataType = '';
/**
* ServiceIdentity that was created or retrieved.
*
* @param ServiceIdentity $identity
*/
public function setIdentity(ServiceIdentity $identity)
{
$this->identity = $identity;
}
/**
* @return ServiceIdentity
*/
public function getIdentity()
{
return $this->identity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateServiceIdentityResponse::class, 'Google_Service_TPU_GenerateServiceIdentityResponse');
@@ -0,0 +1,73 @@
<?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\TPU;
class GetGuestAttributesRequest extends \Google\Collection
{
protected $collection_key = 'workerIds';
/**
* The guest attributes path to be queried.
*
* @var string
*/
public $queryPath;
/**
* The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
* returned.
*
* @var string[]
*/
public $workerIds;
/**
* The guest attributes path to be queried.
*
* @param string $queryPath
*/
public function setQueryPath($queryPath)
{
$this->queryPath = $queryPath;
}
/**
* @return string
*/
public function getQueryPath()
{
return $this->queryPath;
}
/**
* The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
* returned.
*
* @param string[] $workerIds
*/
public function setWorkerIds($workerIds)
{
$this->workerIds = $workerIds;
}
/**
* @return string[]
*/
public function getWorkerIds()
{
return $this->workerIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetGuestAttributesRequest::class, 'Google_Service_TPU_GetGuestAttributesRequest');
@@ -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\TPU;
class GetGuestAttributesResponse extends \Google\Collection
{
protected $collection_key = 'guestAttributes';
protected $guestAttributesType = GuestAttributes::class;
protected $guestAttributesDataType = 'array';
/**
* The guest attributes for the TPU workers.
*
* @param GuestAttributes[] $guestAttributes
*/
public function setGuestAttributes($guestAttributes)
{
$this->guestAttributes = $guestAttributes;
}
/**
* @return GuestAttributes[]
*/
public function getGuestAttributes()
{
return $this->guestAttributes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetGuestAttributesResponse::class, 'Google_Service_TPU_GetGuestAttributesResponse');
+52
View File
@@ -0,0 +1,52 @@
<?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\TPU;
class Guaranteed extends \Google\Model
{
/**
* Optional. Defines the minimum duration of the guarantee. If specified, the
* requested resources will only be provisioned if they can be allocated for
* at least the given duration.
*
* @var string
*/
public $minDuration;
/**
* Optional. Defines the minimum duration of the guarantee. If specified, the
* requested resources will only be provisioned if they can be allocated for
* at least the given duration.
*
* @param string $minDuration
*/
public function setMinDuration($minDuration)
{
$this->minDuration = $minDuration;
}
/**
* @return string
*/
public function getMinDuration()
{
return $this->minDuration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Guaranteed::class, 'Google_Service_TPU_Guaranteed');
@@ -0,0 +1,68 @@
<?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\TPU;
class GuestAttributes extends \Google\Model
{
/**
* The path to be queried. This can be the default namespace ('/') or a nested
* namespace ('/\/') or a specified key ('/\/\')
*
* @var string
*/
public $queryPath;
protected $queryValueType = GuestAttributesValue::class;
protected $queryValueDataType = '';
/**
* The path to be queried. This can be the default namespace ('/') or a nested
* namespace ('/\/') or a specified key ('/\/\')
*
* @param string $queryPath
*/
public function setQueryPath($queryPath)
{
$this->queryPath = $queryPath;
}
/**
* @return string
*/
public function getQueryPath()
{
return $this->queryPath;
}
/**
* The value of the requested queried path.
*
* @param GuestAttributesValue $queryValue
*/
public function setQueryValue(GuestAttributesValue $queryValue)
{
$this->queryValue = $queryValue;
}
/**
* @return GuestAttributesValue
*/
public function getQueryValue()
{
return $this->queryValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GuestAttributes::class, 'Google_Service_TPU_GuestAttributes');
@@ -0,0 +1,92 @@
<?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\TPU;
class GuestAttributesEntry extends \Google\Model
{
/**
* Key for the guest attribute entry.
*
* @var string
*/
public $key;
/**
* Namespace for the guest attribute entry.
*
* @var string
*/
public $namespace;
/**
* Value for the guest attribute entry.
*
* @var string
*/
public $value;
/**
* Key for the guest attribute entry.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* Namespace for the guest attribute entry.
*
* @param string $namespace
*/
public function setNamespace($namespace)
{
$this->namespace = $namespace;
}
/**
* @return string
*/
public function getNamespace()
{
return $this->namespace;
}
/**
* Value for the guest attribute entry.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GuestAttributesEntry::class, 'Google_Service_TPU_GuestAttributesEntry');
@@ -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\TPU;
class GuestAttributesValue extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = GuestAttributesEntry::class;
protected $itemsDataType = 'array';
/**
* The list of guest attributes entries.
*
* @param GuestAttributesEntry[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return GuestAttributesEntry[]
*/
public function getItems()
{
return $this->items;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GuestAttributesValue::class, 'Google_Service_TPU_GuestAttributesValue');
+74
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\TPU;
class Interval extends \Google\Model
{
/**
* Optional. Exclusive end of the interval. If specified, a Timestamp matching
* this interval will have to be before the end.
*
* @var string
*/
public $endTime;
/**
* Optional. Inclusive start of the interval. If specified, a Timestamp
* matching this interval will have to be the same or after the start.
*
* @var string
*/
public $startTime;
/**
* Optional. Exclusive end of the interval. If specified, a Timestamp matching
* this interval will have to be before the end.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Optional. Inclusive start of the interval. If specified, a Timestamp
* matching this interval will have to be the same or after the start.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Interval::class, 'Google_Service_TPU_Interval');
@@ -0,0 +1,89 @@
<?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\TPU;
class ListAcceleratorTypesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $acceleratorTypesType = AcceleratorType::class;
protected $acceleratorTypesDataType = 'array';
/**
* The next page token or empty if none.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The listed nodes.
*
* @param AcceleratorType[] $acceleratorTypes
*/
public function setAcceleratorTypes($acceleratorTypes)
{
$this->acceleratorTypes = $acceleratorTypes;
}
/**
* @return AcceleratorType[]
*/
public function getAcceleratorTypes()
{
return $this->acceleratorTypes;
}
/**
* The next page token or empty if none.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAcceleratorTypesResponse::class, 'Google_Service_TPU_ListAcceleratorTypesResponse');
@@ -0,0 +1,67 @@
<?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\TPU;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
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_TPU_ListLocationsResponse');
@@ -0,0 +1,89 @@
<?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\TPU;
class ListNodesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The next page token or empty if none.
*
* @var string
*/
public $nextPageToken;
protected $nodesType = Node::class;
protected $nodesDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The next page token or empty if none.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The listed nodes.
*
* @param Node[] $nodes
*/
public function setNodes($nodes)
{
$this->nodes = $nodes;
}
/**
* @return Node[]
*/
public function getNodes()
{
return $this->nodes;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListNodesResponse::class, 'Google_Service_TPU_ListNodesResponse');
@@ -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\TPU;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_TPU_ListOperationsResponse');
@@ -0,0 +1,89 @@
<?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\TPU;
class ListQueuedResourcesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The next page token or empty if none.
*
* @var string
*/
public $nextPageToken;
protected $queuedResourcesType = QueuedResource::class;
protected $queuedResourcesDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The next page token or empty if none.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The listed queued resources.
*
* @param QueuedResource[] $queuedResources
*/
public function setQueuedResources($queuedResources)
{
$this->queuedResources = $queuedResources;
}
/**
* @return QueuedResource[]
*/
public function getQueuedResources()
{
return $this->queuedResources;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListQueuedResourcesResponse::class, 'Google_Service_TPU_ListQueuedResourcesResponse');
@@ -0,0 +1,89 @@
<?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\TPU;
class ListRuntimeVersionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The next page token or empty if none.
*
* @var string
*/
public $nextPageToken;
protected $runtimeVersionsType = RuntimeVersion::class;
protected $runtimeVersionsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The next page token or empty if none.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The listed nodes.
*
* @param RuntimeVersion[] $runtimeVersions
*/
public function setRuntimeVersions($runtimeVersions)
{
$this->runtimeVersions = $runtimeVersions;
}
/**
* @return RuntimeVersion[]
*/
public function getRuntimeVersions()
{
return $this->runtimeVersions;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListRuntimeVersionsResponse::class, 'Google_Service_TPU_ListRuntimeVersionsResponse');
@@ -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\TPU;
class ListTensorFlowVersionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $tensorflowVersionsType = TensorFlowVersion::class;
protected $tensorflowVersionsDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param TensorFlowVersion[]
*/
public function setTensorflowVersions($tensorflowVersions)
{
$this->tensorflowVersions = $tensorflowVersions;
}
/**
* @return TensorFlowVersion[]
*/
public function getTensorflowVersions()
{
return $this->tensorflowVersions;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTensorFlowVersionsResponse::class, 'Google_Service_TPU_ListTensorFlowVersionsResponse');
+144
View File
@@ -0,0 +1,144 @@
<?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\TPU;
class Location extends \Google\Model
{
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @var string
*/
public $displayName;
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @var string[]
*/
public $labels;
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @var string
*/
public $locationId;
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @var array[]
*/
public $metadata;
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @var string
*/
public $name;
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @param string $name
*/
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_TPU_Location');
@@ -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\TPU;
class MultisliceParams extends \Google\Model
{
/**
* Required. Number of nodes with this spec. The system will attempt to
* provision "node_count" nodes as part of the request. This needs to be > 1.
*
* @var int
*/
public $nodeCount;
/**
* Optional. Prefix of node_ids in case of multislice request. Should follow
* the `^[A-Za-z0-9_.~+%-]+$` regex format. If node_count = 3 and
* node_id_prefix = "np", node ids of nodes created will be "np-0", "np-1",
* "np-2". If this field is not provided we use queued_resource_id as the
* node_id_prefix.
*
* @var string
*/
public $nodeIdPrefix;
/**
* Required. Number of nodes with this spec. The system will attempt to
* provision "node_count" nodes as part of the request. This needs to be > 1.
*
* @param int $nodeCount
*/
public function setNodeCount($nodeCount)
{
$this->nodeCount = $nodeCount;
}
/**
* @return int
*/
public function getNodeCount()
{
return $this->nodeCount;
}
/**
* Optional. Prefix of node_ids in case of multislice request. Should follow
* the `^[A-Za-z0-9_.~+%-]+$` regex format. If node_count = 3 and
* node_id_prefix = "np", node ids of nodes created will be "np-0", "np-1",
* "np-2". If this field is not provided we use queued_resource_id as the
* node_id_prefix.
*
* @param string $nodeIdPrefix
*/
public function setNodeIdPrefix($nodeIdPrefix)
{
$this->nodeIdPrefix = $nodeIdPrefix;
}
/**
* @return string
*/
public function getNodeIdPrefix()
{
return $this->nodeIdPrefix;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MultisliceParams::class, 'Google_Service_TPU_MultisliceParams');
@@ -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\TPU;
class NetworkConfig extends \Google\Model
{
/**
* Allows the TPU node to send and receive packets with non-matching
* destination or source IPs. This is required if you plan to use the TPU
* workers to forward routes.
*
* @var bool
*/
public $canIpForward;
/**
* Indicates that external IP addresses would be associated with the TPU
* workers. If set to false, the specified subnetwork or network should have
* Private Google Access enabled.
*
* @var bool
*/
public $enableExternalIps;
/**
* The name of the network for the TPU node. It must be a preexisting Google
* Compute Engine network. If none is provided, "default" will be used.
*
* @var string
*/
public $network;
/**
* Optional. Specifies networking queue count for TPU VM instance's network
* interface.
*
* @var int
*/
public $queueCount;
/**
* The name of the subnetwork for the TPU node. It must be a preexisting
* Google Compute Engine subnetwork. If none is provided, "default" will be
* used.
*
* @var string
*/
public $subnetwork;
/**
* Allows the TPU node to send and receive packets with non-matching
* destination or source IPs. This is required if you plan to use the TPU
* workers to forward routes.
*
* @param bool $canIpForward
*/
public function setCanIpForward($canIpForward)
{
$this->canIpForward = $canIpForward;
}
/**
* @return bool
*/
public function getCanIpForward()
{
return $this->canIpForward;
}
/**
* Indicates that external IP addresses would be associated with the TPU
* workers. If set to false, the specified subnetwork or network should have
* Private Google Access enabled.
*
* @param bool $enableExternalIps
*/
public function setEnableExternalIps($enableExternalIps)
{
$this->enableExternalIps = $enableExternalIps;
}
/**
* @return bool
*/
public function getEnableExternalIps()
{
return $this->enableExternalIps;
}
/**
* The name of the network for the TPU node. It must be a preexisting Google
* Compute Engine network. If none is provided, "default" will be used.
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Optional. Specifies networking queue count for TPU VM instance's network
* interface.
*
* @param int $queueCount
*/
public function setQueueCount($queueCount)
{
$this->queueCount = $queueCount;
}
/**
* @return int
*/
public function getQueueCount()
{
return $this->queueCount;
}
/**
* The name of the subnetwork for the TPU node. It must be a preexisting
* Google Compute Engine subnetwork. If none is provided, "default" will be
* used.
*
* @param string $subnetwork
*/
public function setSubnetwork($subnetwork)
{
$this->subnetwork = $subnetwork;
}
/**
* @return string
*/
public function getSubnetwork()
{
return $this->subnetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkConfig::class, 'Google_Service_TPU_NetworkConfig');
@@ -0,0 +1,88 @@
<?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\TPU;
class NetworkEndpoint extends \Google\Model
{
protected $accessConfigType = AccessConfig::class;
protected $accessConfigDataType = '';
/**
* The internal IP address of this network endpoint.
*
* @var string
*/
public $ipAddress;
/**
* The port of this network endpoint.
*
* @var int
*/
public $port;
/**
* The access config for the TPU worker.
*
* @param AccessConfig $accessConfig
*/
public function setAccessConfig(AccessConfig $accessConfig)
{
$this->accessConfig = $accessConfig;
}
/**
* @return AccessConfig
*/
public function getAccessConfig()
{
return $this->accessConfig;
}
/**
* The internal IP address of this network endpoint.
*
* @param string $ipAddress
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* The port of this network endpoint.
*
* @param int $port
*/
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(NetworkEndpoint::class, 'Google_Service_TPU_NetworkEndpoint');
+723
View File
@@ -0,0 +1,723 @@
<?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\TPU;
class Node extends \Google\Collection
{
/**
* API version is unknown.
*/
public const API_VERSION_API_VERSION_UNSPECIFIED = 'API_VERSION_UNSPECIFIED';
/**
* TPU API V1Alpha1 version.
*/
public const API_VERSION_V1_ALPHA1 = 'V1_ALPHA1';
/**
* TPU API V1 version.
*/
public const API_VERSION_V1 = 'V1';
/**
* TPU API V2Alpha1 version.
*/
public const API_VERSION_V2_ALPHA1 = 'V2_ALPHA1';
/**
* TPU API V2 version.
*/
public const API_VERSION_V2 = 'V2';
/**
* Health status is unknown: not initialized or failed to retrieve.
*/
public const HEALTH_HEALTH_UNSPECIFIED = 'HEALTH_UNSPECIFIED';
/**
* The resource is healthy.
*/
public const HEALTH_HEALTHY = 'HEALTHY';
/**
* The resource is unresponsive.
*/
public const HEALTH_TIMEOUT = 'TIMEOUT';
/**
* The in-guest ML stack is unhealthy.
*/
public const HEALTH_UNHEALTHY_TENSORFLOW = 'UNHEALTHY_TENSORFLOW';
/**
* The node is under maintenance/priority boost caused rescheduling and will
* resume running once rescheduled.
*/
public const HEALTH_UNHEALTHY_MAINTENANCE = 'UNHEALTHY_MAINTENANCE';
/**
* TPU node state is not known/set.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* TPU node is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* TPU node has been created.
*/
public const STATE_READY = 'READY';
/**
* TPU node is restarting.
*/
public const STATE_RESTARTING = 'RESTARTING';
/**
* TPU node is undergoing reimaging.
*/
public const STATE_REIMAGING = 'REIMAGING';
/**
* TPU node is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* TPU node is being repaired and may be unusable. Details can be found in the
* 'help_description' field.
*/
public const STATE_REPAIRING = 'REPAIRING';
/**
* TPU node is stopped.
*/
public const STATE_STOPPED = 'STOPPED';
/**
* TPU node is currently stopping.
*/
public const STATE_STOPPING = 'STOPPING';
/**
* TPU node is currently starting.
*/
public const STATE_STARTING = 'STARTING';
/**
* TPU node has been preempted. Only applies to Preemptible TPU Nodes.
*/
public const STATE_PREEMPTED = 'PREEMPTED';
/**
* TPU node has been terminated due to maintenance or has reached the end of
* its life cycle (for preemptible nodes).
*/
public const STATE_TERMINATED = 'TERMINATED';
/**
* TPU node is currently hiding.
*/
public const STATE_HIDING = 'HIDING';
/**
* TPU node has been hidden.
*/
public const STATE_HIDDEN = 'HIDDEN';
/**
* TPU node is currently unhiding.
*/
public const STATE_UNHIDING = 'UNHIDING';
/**
* TPU node has unknown state after a failed repair.
*/
public const STATE_UNKNOWN = 'UNKNOWN';
protected $collection_key = 'tags';
protected $acceleratorConfigType = AcceleratorConfig::class;
protected $acceleratorConfigDataType = '';
/**
* Optional. The type of hardware accelerators associated with this node.
*
* @var string
*/
public $acceleratorType;
/**
* Output only. The API version that created this Node.
*
* @var string
*/
public $apiVersion;
protected $bootDiskConfigType = BootDiskConfig::class;
protected $bootDiskConfigDataType = '';
/**
* The CIDR block that the TPU node will use when selecting an IP address.
* This CIDR block must be a /29 block; the Compute Engine networks API
* forbids a smaller block, and using a larger block would be wasteful (a node
* can only consume one IP address). Errors will occur if the CIDR block has
* already been used for a currently existing TPU node, the CIDR block
* conflicts with any subnetworks in the user's provided network, or the
* provided network is peered with another network that is using that CIDR
* block.
*
* @var string
*/
public $cidrBlock;
/**
* Output only. The time when the node was created.
*
* @var string
*/
public $createTime;
protected $dataDisksType = AttachedDisk::class;
protected $dataDisksDataType = 'array';
/**
* The user-supplied description of the TPU. Maximum of 512 characters.
*
* @var string
*/
public $description;
/**
* The health status of the TPU node.
*
* @var string
*/
public $health;
/**
* Output only. If this field is populated, it contains a description of why
* the TPU Node is unhealthy.
*
* @var string
*/
public $healthDescription;
/**
* Output only. The unique identifier for the TPU Node.
*
* @var string
*/
public $id;
/**
* Resource labels to represent user-provided metadata.
*
* @var string[]
*/
public $labels;
/**
* Custom metadata to apply to the TPU Node. Can set startup-script and
* shutdown-script
*
* @var string[]
*/
public $metadata;
/**
* Output only. Whether the Node belongs to a Multislice group.
*
* @var bool
*/
public $multisliceNode;
/**
* Output only. Immutable. The name of the TPU.
*
* @var string
*/
public $name;
protected $networkConfigType = NetworkConfig::class;
protected $networkConfigDataType = '';
protected $networkConfigsType = NetworkConfig::class;
protected $networkConfigsDataType = 'array';
protected $networkEndpointsType = NetworkEndpoint::class;
protected $networkEndpointsDataType = 'array';
/**
* Output only. The qualified name of the QueuedResource that requested this
* Node.
*
* @var string
*/
public $queuedResource;
/**
* Required. The runtime version running in the Node.
*
* @var string
*/
public $runtimeVersion;
protected $schedulingConfigType = SchedulingConfig::class;
protected $schedulingConfigDataType = '';
protected $serviceAccountType = ServiceAccount::class;
protected $serviceAccountDataType = '';
protected $shieldedInstanceConfigType = ShieldedInstanceConfig::class;
protected $shieldedInstanceConfigDataType = '';
/**
* Output only. The current state for the TPU Node.
*
* @var string
*/
public $state;
protected $symptomsType = Symptom::class;
protected $symptomsDataType = 'array';
/**
* Tags to apply to the TPU Node. Tags are used to identify valid sources or
* targets for network firewalls.
*
* @var string[]
*/
public $tags;
protected $upcomingMaintenanceType = UpcomingMaintenance::class;
protected $upcomingMaintenanceDataType = '';
/**
* The AccleratorConfig for the TPU Node.
*
* @param AcceleratorConfig $acceleratorConfig
*/
public function setAcceleratorConfig(AcceleratorConfig $acceleratorConfig)
{
$this->acceleratorConfig = $acceleratorConfig;
}
/**
* @return AcceleratorConfig
*/
public function getAcceleratorConfig()
{
return $this->acceleratorConfig;
}
/**
* Optional. The type of hardware accelerators associated with this node.
*
* @param string $acceleratorType
*/
public function setAcceleratorType($acceleratorType)
{
$this->acceleratorType = $acceleratorType;
}
/**
* @return string
*/
public function getAcceleratorType()
{
return $this->acceleratorType;
}
/**
* Output only. The API version that created this Node.
*
* Accepted values: API_VERSION_UNSPECIFIED, V1_ALPHA1, V1, V2_ALPHA1, V2
*
* @param self::API_VERSION_* $apiVersion
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return self::API_VERSION_*
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* Optional. Boot disk configuration.
*
* @param BootDiskConfig $bootDiskConfig
*/
public function setBootDiskConfig(BootDiskConfig $bootDiskConfig)
{
$this->bootDiskConfig = $bootDiskConfig;
}
/**
* @return BootDiskConfig
*/
public function getBootDiskConfig()
{
return $this->bootDiskConfig;
}
/**
* The CIDR block that the TPU node will use when selecting an IP address.
* This CIDR block must be a /29 block; the Compute Engine networks API
* forbids a smaller block, and using a larger block would be wasteful (a node
* can only consume one IP address). Errors will occur if the CIDR block has
* already been used for a currently existing TPU node, the CIDR block
* conflicts with any subnetworks in the user's provided network, or the
* provided network is peered with another network that is using that CIDR
* block.
*
* @param string $cidrBlock
*/
public function setCidrBlock($cidrBlock)
{
$this->cidrBlock = $cidrBlock;
}
/**
* @return string
*/
public function getCidrBlock()
{
return $this->cidrBlock;
}
/**
* Output only. The time when the node was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The additional data disks for the Node.
*
* @param AttachedDisk[] $dataDisks
*/
public function setDataDisks($dataDisks)
{
$this->dataDisks = $dataDisks;
}
/**
* @return AttachedDisk[]
*/
public function getDataDisks()
{
return $this->dataDisks;
}
/**
* The user-supplied description of the TPU. Maximum of 512 characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The health status of the TPU node.
*
* Accepted values: HEALTH_UNSPECIFIED, HEALTHY, TIMEOUT,
* UNHEALTHY_TENSORFLOW, UNHEALTHY_MAINTENANCE
*
* @param self::HEALTH_* $health
*/
public function setHealth($health)
{
$this->health = $health;
}
/**
* @return self::HEALTH_*
*/
public function getHealth()
{
return $this->health;
}
/**
* Output only. If this field is populated, it contains a description of why
* the TPU Node is unhealthy.
*
* @param string $healthDescription
*/
public function setHealthDescription($healthDescription)
{
$this->healthDescription = $healthDescription;
}
/**
* @return string
*/
public function getHealthDescription()
{
return $this->healthDescription;
}
/**
* Output only. The unique identifier for the TPU Node.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Resource labels to represent user-provided metadata.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Custom metadata to apply to the TPU Node. Can set startup-script and
* shutdown-script
*
* @param string[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return string[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Output only. Whether the Node belongs to a Multislice group.
*
* @param bool $multisliceNode
*/
public function setMultisliceNode($multisliceNode)
{
$this->multisliceNode = $multisliceNode;
}
/**
* @return bool
*/
public function getMultisliceNode()
{
return $this->multisliceNode;
}
/**
* Output only. Immutable. The name of the TPU.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Network configurations for the TPU node. network_config and network_configs
* are mutually exclusive, you can only specify one of them. If both are
* specified, an error will be returned.
*
* @param NetworkConfig $networkConfig
*/
public function setNetworkConfig(NetworkConfig $networkConfig)
{
$this->networkConfig = $networkConfig;
}
/**
* @return NetworkConfig
*/
public function getNetworkConfig()
{
return $this->networkConfig;
}
/**
* Optional. Repeated network configurations for the TPU node. This field is
* used to specify multiple networks configs for the TPU node. network_config
* and network_configs are mutually exclusive, you can only specify one of
* them. If both are specified, an error will be returned.
*
* @param NetworkConfig[] $networkConfigs
*/
public function setNetworkConfigs($networkConfigs)
{
$this->networkConfigs = $networkConfigs;
}
/**
* @return NetworkConfig[]
*/
public function getNetworkConfigs()
{
return $this->networkConfigs;
}
/**
* Output only. The network endpoints where TPU workers can be accessed and
* sent work. It is recommended that runtime clients of the node reach out to
* the 0th entry in this map first.
*
* @param NetworkEndpoint[] $networkEndpoints
*/
public function setNetworkEndpoints($networkEndpoints)
{
$this->networkEndpoints = $networkEndpoints;
}
/**
* @return NetworkEndpoint[]
*/
public function getNetworkEndpoints()
{
return $this->networkEndpoints;
}
/**
* Output only. The qualified name of the QueuedResource that requested this
* Node.
*
* @param string $queuedResource
*/
public function setQueuedResource($queuedResource)
{
$this->queuedResource = $queuedResource;
}
/**
* @return string
*/
public function getQueuedResource()
{
return $this->queuedResource;
}
/**
* Required. The runtime version running in the Node.
*
* @param string $runtimeVersion
*/
public function setRuntimeVersion($runtimeVersion)
{
$this->runtimeVersion = $runtimeVersion;
}
/**
* @return string
*/
public function getRuntimeVersion()
{
return $this->runtimeVersion;
}
/**
* The scheduling options for this node.
*
* @param SchedulingConfig $schedulingConfig
*/
public function setSchedulingConfig(SchedulingConfig $schedulingConfig)
{
$this->schedulingConfig = $schedulingConfig;
}
/**
* @return SchedulingConfig
*/
public function getSchedulingConfig()
{
return $this->schedulingConfig;
}
/**
* The Google Cloud Platform Service Account to be used by the TPU node VMs.
* If None is specified, the default compute service account will be used.
*
* @param ServiceAccount $serviceAccount
*/
public function setServiceAccount(ServiceAccount $serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return ServiceAccount
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Shielded Instance options.
*
* @param ShieldedInstanceConfig $shieldedInstanceConfig
*/
public function setShieldedInstanceConfig(ShieldedInstanceConfig $shieldedInstanceConfig)
{
$this->shieldedInstanceConfig = $shieldedInstanceConfig;
}
/**
* @return ShieldedInstanceConfig
*/
public function getShieldedInstanceConfig()
{
return $this->shieldedInstanceConfig;
}
/**
* Output only. The current state for the TPU Node.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, READY, RESTARTING, REIMAGING,
* DELETING, REPAIRING, STOPPED, STOPPING, STARTING, PREEMPTED, TERMINATED,
* HIDING, HIDDEN, UNHIDING, UNKNOWN
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The Symptoms that have occurred to the TPU Node.
*
* @param Symptom[] $symptoms
*/
public function setSymptoms($symptoms)
{
$this->symptoms = $symptoms;
}
/**
* @return Symptom[]
*/
public function getSymptoms()
{
return $this->symptoms;
}
/**
* Tags to apply to the TPU Node. Tags are used to identify valid sources or
* targets for network firewalls.
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* Output only. Upcoming maintenance on this TPU node.
*
* @param UpcomingMaintenance $upcomingMaintenance
*/
public function setUpcomingMaintenance(UpcomingMaintenance $upcomingMaintenance)
{
$this->upcomingMaintenance = $upcomingMaintenance;
}
/**
* @return UpcomingMaintenance
*/
public function getUpcomingMaintenance()
{
return $this->upcomingMaintenance;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Node::class, 'Google_Service_TPU_Node');
+112
View File
@@ -0,0 +1,112 @@
<?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\TPU;
class NodeSpec extends \Google\Model
{
protected $multisliceParamsType = MultisliceParams::class;
protected $multisliceParamsDataType = '';
protected $nodeType = Node::class;
protected $nodeDataType = '';
/**
* Optional. The unqualified resource name. Should follow the
* `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when requesting
* a single node. In case of multislice requests, multislice_params must be
* populated instead.
*
* @var string
*/
public $nodeId;
/**
* Required. The parent resource name.
*
* @var string
*/
public $parent;
/**
* Optional. Fields to specify in case of multislice request.
*
* @param MultisliceParams $multisliceParams
*/
public function setMultisliceParams(MultisliceParams $multisliceParams)
{
$this->multisliceParams = $multisliceParams;
}
/**
* @return MultisliceParams
*/
public function getMultisliceParams()
{
return $this->multisliceParams;
}
/**
* Required. The node.
*
* @param Node $node
*/
public function setNode(Node $node)
{
$this->node = $node;
}
/**
* @return Node
*/
public function getNode()
{
return $this->node;
}
/**
* Optional. The unqualified resource name. Should follow the
* `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when requesting
* a single node. In case of multislice requests, multislice_params must be
* populated instead.
*
* @param string $nodeId
*/
public function setNodeId($nodeId)
{
$this->nodeId = $nodeId;
}
/**
* @return string
*/
public function getNodeId()
{
return $this->nodeId;
}
/**
* Required. The parent resource name.
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NodeSpec::class, 'Google_Service_TPU_NodeSpec');
+158
View File
@@ -0,0 +1,158 @@
<?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\TPU;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
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_TPU_Operation');
@@ -0,0 +1,182 @@
<?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\TPU;
class OperationMetadata extends \Google\Model
{
/**
* API version.
*
* @var string
*/
public $apiVersion;
/**
* Specifies if cancellation was requested for the operation.
*
* @var bool
*/
public $cancelRequested;
/**
* The time the operation was created.
*
* @var string
*/
public $createTime;
/**
* The time the operation finished running.
*
* @var string
*/
public $endTime;
/**
* Human-readable status of the operation, if any.
*
* @var string
*/
public $statusDetail;
/**
* Target of the operation - for example
* projects/project-1/connectivityTests/test-1
*
* @var string
*/
public $target;
/**
* Name of the verb executed by the operation.
*
* @var string
*/
public $verb;
/**
* API version.
*
* @param string $apiVersion
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* Specifies if cancellation was requested for the operation.
*
* @param bool $cancelRequested
*/
public function setCancelRequested($cancelRequested)
{
$this->cancelRequested = $cancelRequested;
}
/**
* @return bool
*/
public function getCancelRequested()
{
return $this->cancelRequested;
}
/**
* The time the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The time the operation finished running.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Human-readable status of the operation, if any.
*
* @param string $statusDetail
*/
public function setStatusDetail($statusDetail)
{
$this->statusDetail = $statusDetail;
}
/**
* @return string
*/
public function getStatusDetail()
{
return $this->statusDetail;
}
/**
* Target of the operation - for example
* projects/project-1/connectivityTests/test-1
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* Name of the verb executed by the operation.
*
* @param string $verb
*/
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_TPU_OperationMetadata');
@@ -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\TPU;
class ProvisioningData extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProvisioningData::class, 'Google_Service_TPU_ProvisioningData');
@@ -0,0 +1,186 @@
<?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\TPU;
class QueuedResource extends \Google\Model
{
/**
* Output only. The time when the QueuedResource was created.
*
* @var string
*/
public $createTime;
protected $guaranteedType = Guaranteed::class;
protected $guaranteedDataType = '';
/**
* Output only. Immutable. The name of the QueuedResource.
*
* @var string
*/
public $name;
protected $queueingPolicyType = QueueingPolicy::class;
protected $queueingPolicyDataType = '';
/**
* Optional. Name of the reservation in which the resource should be
* provisioned. Format:
* projects/{project}/locations/{zone}/reservations/{reservation}
*
* @var string
*/
public $reservationName;
protected $spotType = Spot::class;
protected $spotDataType = '';
protected $stateType = QueuedResourceState::class;
protected $stateDataType = '';
protected $tpuType = Tpu::class;
protected $tpuDataType = '';
/**
* Output only. The time when the QueuedResource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. The Guaranteed tier
*
* @param Guaranteed $guaranteed
*/
public function setGuaranteed(Guaranteed $guaranteed)
{
$this->guaranteed = $guaranteed;
}
/**
* @return Guaranteed
*/
public function getGuaranteed()
{
return $this->guaranteed;
}
/**
* Output only. Immutable. The name of the QueuedResource.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. The queueing policy of the QueuedRequest.
*
* @param QueueingPolicy $queueingPolicy
*/
public function setQueueingPolicy(QueueingPolicy $queueingPolicy)
{
$this->queueingPolicy = $queueingPolicy;
}
/**
* @return QueueingPolicy
*/
public function getQueueingPolicy()
{
return $this->queueingPolicy;
}
/**
* Optional. Name of the reservation in which the resource should be
* provisioned. Format:
* projects/{project}/locations/{zone}/reservations/{reservation}
*
* @param string $reservationName
*/
public function setReservationName($reservationName)
{
$this->reservationName = $reservationName;
}
/**
* @return string
*/
public function getReservationName()
{
return $this->reservationName;
}
/**
* Optional. The Spot tier.
*
* @param Spot $spot
*/
public function setSpot(Spot $spot)
{
$this->spot = $spot;
}
/**
* @return Spot
*/
public function getSpot()
{
return $this->spot;
}
/**
* Output only. State of the QueuedResource request.
*
* @param QueuedResourceState $state
*/
public function setState(QueuedResourceState $state)
{
$this->state = $state;
}
/**
* @return QueuedResourceState
*/
public function getState()
{
return $this->state;
}
/**
* Optional. Defines a TPU resource.
*
* @param Tpu $tpu
*/
public function setTpu(Tpu $tpu)
{
$this->tpu = $tpu;
}
/**
* @return Tpu
*/
public function getTpu()
{
return $this->tpu;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueuedResource::class, 'Google_Service_TPU_QueuedResource');
@@ -0,0 +1,292 @@
<?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\TPU;
class QueuedResourceState extends \Google\Model
{
/**
* State of the QueuedResource request is not known/set.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The QueuedResource request has been received. We're still working on
* determining if we will be able to honor this request.
*/
public const STATE_CREATING = 'CREATING';
/**
* The QueuedResource request has passed initial validation/admission control
* and has been persisted in the queue.
*/
public const STATE_ACCEPTED = 'ACCEPTED';
/**
* The QueuedResource request has been selected. The associated resources are
* currently being provisioned (or very soon will begin provisioning).
*/
public const STATE_PROVISIONING = 'PROVISIONING';
/**
* The request could not be completed. This may be due to some late-discovered
* problem with the request itself, or due to unavailability of resources
* within the constraints of the request (e.g., the 'valid until' start timing
* constraint expired).
*/
public const STATE_FAILED = 'FAILED';
/**
* The QueuedResource is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The resources specified in the QueuedResource request have been provisioned
* and are ready for use by the end-user/consumer.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The resources specified in the QueuedResource request are being deleted.
* This may have been initiated by the user, or the Cloud TPU service. Inspect
* the state data for more details.
*/
public const STATE_SUSPENDING = 'SUSPENDING';
/**
* The resources specified in the QueuedResource request have been deleted.
*/
public const STATE_SUSPENDED = 'SUSPENDED';
/**
* The QueuedResource request has passed initial validation and has been
* persisted in the queue. It will remain in this state until there are
* sufficient free resources to begin provisioning your request. Wait times
* will vary significantly depending on demand levels. When demand is high,
* not all requests can be immediately provisioned. If you need more reliable
* obtainability of TPUs consider purchasing a reservation. To put a limit on
* how long you are willing to wait, use [timing
* constraints](https://cloud.google.com/tpu/docs/queued-
* resources#request_a_queued_resource_before_a_specified_time).
*/
public const STATE_WAITING_FOR_RESOURCES = 'WAITING_FOR_RESOURCES';
/**
* The state initiator is unspecified.
*/
public const STATE_INITIATOR_STATE_INITIATOR_UNSPECIFIED = 'STATE_INITIATOR_UNSPECIFIED';
/**
* The current QueuedResource state was initiated by the user.
*/
public const STATE_INITIATOR_USER = 'USER';
/**
* The current QueuedResource state was initiated by the service.
*/
public const STATE_INITIATOR_SERVICE = 'SERVICE';
protected $acceptedDataType = AcceptedData::class;
protected $acceptedDataDataType = '';
protected $activeDataType = ActiveData::class;
protected $activeDataDataType = '';
protected $creatingDataType = CreatingData::class;
protected $creatingDataDataType = '';
protected $deletingDataType = DeletingData::class;
protected $deletingDataDataType = '';
protected $failedDataType = FailedData::class;
protected $failedDataDataType = '';
protected $provisioningDataType = ProvisioningData::class;
protected $provisioningDataDataType = '';
/**
* Output only. State of the QueuedResource request.
*
* @var string
*/
public $state;
/**
* Output only. The initiator of the QueuedResources's current state. Used to
* indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
* or the service.
*
* @var string
*/
public $stateInitiator;
protected $suspendedDataType = SuspendedData::class;
protected $suspendedDataDataType = '';
protected $suspendingDataType = SuspendingData::class;
protected $suspendingDataDataType = '';
/**
* Output only. Further data for the accepted state.
*
* @param AcceptedData $acceptedData
*/
public function setAcceptedData(AcceptedData $acceptedData)
{
$this->acceptedData = $acceptedData;
}
/**
* @return AcceptedData
*/
public function getAcceptedData()
{
return $this->acceptedData;
}
/**
* Output only. Further data for the active state.
*
* @param ActiveData $activeData
*/
public function setActiveData(ActiveData $activeData)
{
$this->activeData = $activeData;
}
/**
* @return ActiveData
*/
public function getActiveData()
{
return $this->activeData;
}
/**
* Output only. Further data for the creating state.
*
* @param CreatingData $creatingData
*/
public function setCreatingData(CreatingData $creatingData)
{
$this->creatingData = $creatingData;
}
/**
* @return CreatingData
*/
public function getCreatingData()
{
return $this->creatingData;
}
/**
* Output only. Further data for the deleting state.
*
* @param DeletingData $deletingData
*/
public function setDeletingData(DeletingData $deletingData)
{
$this->deletingData = $deletingData;
}
/**
* @return DeletingData
*/
public function getDeletingData()
{
return $this->deletingData;
}
/**
* Output only. Further data for the failed state.
*
* @param FailedData $failedData
*/
public function setFailedData(FailedData $failedData)
{
$this->failedData = $failedData;
}
/**
* @return FailedData
*/
public function getFailedData()
{
return $this->failedData;
}
/**
* Output only. Further data for the provisioning state.
*
* @param ProvisioningData $provisioningData
*/
public function setProvisioningData(ProvisioningData $provisioningData)
{
$this->provisioningData = $provisioningData;
}
/**
* @return ProvisioningData
*/
public function getProvisioningData()
{
return $this->provisioningData;
}
/**
* Output only. State of the QueuedResource request.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ACCEPTED, PROVISIONING,
* FAILED, DELETING, ACTIVE, SUSPENDING, SUSPENDED, WAITING_FOR_RESOURCES
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The initiator of the QueuedResources's current state. Used to
* indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
* or the service.
*
* Accepted values: STATE_INITIATOR_UNSPECIFIED, USER, SERVICE
*
* @param self::STATE_INITIATOR_* $stateInitiator
*/
public function setStateInitiator($stateInitiator)
{
$this->stateInitiator = $stateInitiator;
}
/**
* @return self::STATE_INITIATOR_*
*/
public function getStateInitiator()
{
return $this->stateInitiator;
}
/**
* Output only. Further data for the suspended state.
*
* @param SuspendedData $suspendedData
*/
public function setSuspendedData(SuspendedData $suspendedData)
{
$this->suspendedData = $suspendedData;
}
/**
* @return SuspendedData
*/
public function getSuspendedData()
{
return $this->suspendedData;
}
/**
* Output only. Further data for the suspending state.
*
* @param SuspendingData $suspendingData
*/
public function setSuspendingData(SuspendingData $suspendingData)
{
$this->suspendingData = $suspendingData;
}
/**
* @return SuspendingData
*/
public function getSuspendingData()
{
return $this->suspendingData;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueuedResourceState::class, 'Google_Service_TPU_QueuedResourceState');
@@ -0,0 +1,136 @@
<?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\TPU;
class QueueingPolicy extends \Google\Model
{
/**
* Optional. A relative time after which resources may be created.
*
* @var string
*/
public $validAfterDuration;
/**
* Optional. An absolute time after which resources may be created.
*
* @var string
*/
public $validAfterTime;
protected $validIntervalType = Interval::class;
protected $validIntervalDataType = '';
/**
* Optional. A relative time after which resources should not be created. If
* the request cannot be fulfilled by this time the request will be failed.
*
* @var string
*/
public $validUntilDuration;
/**
* Optional. An absolute time after which resources should not be created. If
* the request cannot be fulfilled by this time the request will be failed.
*
* @var string
*/
public $validUntilTime;
/**
* Optional. A relative time after which resources may be created.
*
* @param string $validAfterDuration
*/
public function setValidAfterDuration($validAfterDuration)
{
$this->validAfterDuration = $validAfterDuration;
}
/**
* @return string
*/
public function getValidAfterDuration()
{
return $this->validAfterDuration;
}
/**
* Optional. An absolute time after which resources may be created.
*
* @param string $validAfterTime
*/
public function setValidAfterTime($validAfterTime)
{
$this->validAfterTime = $validAfterTime;
}
/**
* @return string
*/
public function getValidAfterTime()
{
return $this->validAfterTime;
}
/**
* Optional. An absolute time interval within which resources may be created.
*
* @param Interval $validInterval
*/
public function setValidInterval(Interval $validInterval)
{
$this->validInterval = $validInterval;
}
/**
* @return Interval
*/
public function getValidInterval()
{
return $this->validInterval;
}
/**
* Optional. A relative time after which resources should not be created. If
* the request cannot be fulfilled by this time the request will be failed.
*
* @param string $validUntilDuration
*/
public function setValidUntilDuration($validUntilDuration)
{
$this->validUntilDuration = $validUntilDuration;
}
/**
* @return string
*/
public function getValidUntilDuration()
{
return $this->validUntilDuration;
}
/**
* Optional. An absolute time after which resources should not be created. If
* the request cannot be fulfilled by this time the request will be failed.
*
* @param string $validUntilTime
*/
public function setValidUntilTime($validUntilTime)
{
$this->validUntilTime = $validUntilTime;
}
/**
* @return string
*/
public function getValidUntilTime()
{
return $this->validUntilTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueueingPolicy::class, 'Google_Service_TPU_QueueingPolicy');
@@ -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\TPU;
class ReimageNodeRequest extends \Google\Model
{
/**
* @var string
*/
public $tensorflowVersion;
/**
* @param string
*/
public function setTensorflowVersion($tensorflowVersion)
{
$this->tensorflowVersion = $tensorflowVersion;
}
/**
* @return string
*/
public function getTensorflowVersion()
{
return $this->tensorflowVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReimageNodeRequest::class, 'Google_Service_TPU_ReimageNodeRequest');
@@ -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\TPU;
class ResetQueuedResourceRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResetQueuedResourceRequest::class, 'Google_Service_TPU_ResetQueuedResourceRequest');
@@ -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\TPU\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $tpuService = new Google\Service\TPU(...);
* $projects = $tpuService->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_TPU_Resource_Projects');
@@ -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\TPU\Resource;
use Google\Service\TPU\GenerateServiceIdentityRequest;
use Google\Service\TPU\GenerateServiceIdentityResponse;
use Google\Service\TPU\ListLocationsResponse;
use Google\Service\TPU\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $tpuService = new Google\Service\TPU(...);
* $locations = $tpuService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Generates the Cloud TPU service identity for the project.
* (locations.generateServiceIdentity)
*
* @param string $parent Required. The parent resource name.
* @param GenerateServiceIdentityRequest $postBody
* @param array $optParams Optional parameters.
* @return GenerateServiceIdentityResponse
* @throws \Google\Service\Exception
*/
public function generateServiceIdentity($parent, GenerateServiceIdentityRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('generateServiceIdentity', [$params], GenerateServiceIdentityResponse::class);
}
/**
* 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. This method
* can be called in two ways: * **List all public locations:** Use the path `GET
* /v1/locations`. * **List project-visible locations:** Use the path `GET
* /v1/projects/{project_id}/locations`. This may include public locations as
* well as private or other locations specifically visible to the project.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field. It is
* unsupported and is ignored unless explicitly documented otherwise. This is
* primarily for internal usage.
* @opt_param string 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_TPU_Resource_ProjectsLocations');
@@ -0,0 +1,71 @@
<?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\TPU\Resource;
use Google\Service\TPU\AcceleratorType;
use Google\Service\TPU\ListAcceleratorTypesResponse;
/**
* The "acceleratorTypes" collection of methods.
* Typical usage is:
* <code>
* $tpuService = new Google\Service\TPU(...);
* $acceleratorTypes = $tpuService->projects_locations_acceleratorTypes;
* </code>
*/
class ProjectsLocationsAcceleratorTypes extends \Google\Service\Resource
{
/**
* Gets AcceleratorType. (acceleratorTypes.get)
*
* @param string $name Required. The resource name.
* @param array $optParams Optional parameters.
* @return AcceleratorType
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AcceleratorType::class);
}
/**
* Lists accelerator types supported by this API.
* (acceleratorTypes.listProjectsLocationsAcceleratorTypes)
*
* @param string $parent Required. The parent resource name.
* @param array $optParams Optional parameters.
*
* @opt_param string filter List filter.
* @opt_param string orderBy Sort results.
* @opt_param int pageSize The maximum number of items to return.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @return ListAcceleratorTypesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsAcceleratorTypes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAcceleratorTypesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsAcceleratorTypes::class, 'Google_Service_TPU_Resource_ProjectsLocationsAcceleratorTypes');
@@ -0,0 +1,169 @@
<?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\TPU\Resource;
use Google\Service\TPU\GetGuestAttributesRequest;
use Google\Service\TPU\GetGuestAttributesResponse;
use Google\Service\TPU\ListNodesResponse;
use Google\Service\TPU\Node;
use Google\Service\TPU\Operation;
use Google\Service\TPU\StartNodeRequest;
use Google\Service\TPU\StopNodeRequest;
/**
* The "nodes" collection of methods.
* Typical usage is:
* <code>
* $tpuService = new Google\Service\TPU(...);
* $nodes = $tpuService->projects_locations_nodes;
* </code>
*/
class ProjectsLocationsNodes extends \Google\Service\Resource
{
/**
* Creates a node. (nodes.create)
*
* @param string $parent Required. The parent resource name.
* @param Node $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string nodeId The unqualified resource name.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Node $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a node. (nodes.delete)
*
* @param string $name Required. The resource name.
* @param array $optParams Optional parameters.
* @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);
}
/**
* Gets the details of a node. (nodes.get)
*
* @param string $name Required. The resource name.
* @param array $optParams Optional parameters.
* @return Node
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Node::class);
}
/**
* Retrieves the guest attributes for the node. (nodes.getGuestAttributes)
*
* @param string $name Required. The resource name.
* @param GetGuestAttributesRequest $postBody
* @param array $optParams Optional parameters.
* @return GetGuestAttributesResponse
* @throws \Google\Service\Exception
*/
public function getGuestAttributes($name, GetGuestAttributesRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getGuestAttributes', [$params], GetGuestAttributesResponse::class);
}
/**
* Lists nodes. (nodes.listProjectsLocationsNodes)
*
* @param string $parent Required. The parent resource name.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of items to return.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @return ListNodesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsNodes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListNodesResponse::class);
}
/**
* Updates the configurations of a node. (nodes.patch)
*
* @param string $name Output only. Immutable. The name of the TPU.
* @param Node $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Mask of fields from Node to update.
* Supported fields: [description, tags, labels, metadata,
* network_config.enable_external_ips].
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Node $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Starts a node. (nodes.start)
*
* @param string $name Required. The resource name.
* @param StartNodeRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function start($name, StartNodeRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('start', [$params], Operation::class);
}
/**
* Stops a node. This operation is only available with single TPU nodes.
* (nodes.stop)
*
* @param string $name Required. The resource name.
* @param StopNodeRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function stop($name, StopNodeRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('stop', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsNodes::class, 'Google_Service_TPU_Resource_ProjectsLocationsNodes');
@@ -0,0 +1,119 @@
<?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\TPU\Resource;
use Google\Service\TPU\ListOperationsResponse;
use Google\Service\TPU\Operation;
use Google\Service\TPU\TpuEmpty;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $tpuService = new Google\Service\TPU(...);
* $operations = $tpuService->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 array $optParams Optional parameters.
* @return TpuEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], TpuEmpty::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 TpuEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], TpuEmpty::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.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @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_TPU_Resource_ProjectsLocationsOperations');
@@ -0,0 +1,126 @@
<?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\TPU\Resource;
use Google\Service\TPU\ListQueuedResourcesResponse;
use Google\Service\TPU\Operation;
use Google\Service\TPU\QueuedResource;
use Google\Service\TPU\ResetQueuedResourceRequest;
/**
* The "queuedResources" collection of methods.
* Typical usage is:
* <code>
* $tpuService = new Google\Service\TPU(...);
* $queuedResources = $tpuService->projects_locations_queuedResources;
* </code>
*/
class ProjectsLocationsQueuedResources extends \Google\Service\Resource
{
/**
* Creates a QueuedResource TPU instance. (queuedResources.create)
*
* @param string $parent Required. The parent resource name.
* @param QueuedResource $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string queuedResourceId Optional. The unqualified resource name.
* Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
* @opt_param string requestId Optional. Idempotent request UUID.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, QueuedResource $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a QueuedResource TPU instance. (queuedResources.delete)
*
* @param string $name Required. The resource name.
* @param array $optParams Optional parameters.
*
* @opt_param bool force Optional. If set to true, all running nodes belonging
* to this queued resource will be deleted first and then the queued resource
* will be deleted. Otherwise (i.e. force=false), the queued resource will only
* be deleted if its nodes have already been deleted or the queued resource is
* in the ACCEPTED, FAILED, or SUSPENDED state.
* @opt_param string requestId Optional. Idempotent request UUID.
* @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);
}
/**
* Gets details of a queued resource. (queuedResources.get)
*
* @param string $name Required. The resource name.
* @param array $optParams Optional parameters.
* @return QueuedResource
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], QueuedResource::class);
}
/**
* Lists queued resources.
* (queuedResources.listProjectsLocationsQueuedResources)
*
* @param string $parent Required. The parent resource name.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of items to return.
* @opt_param string pageToken Optional. The next_page_token value returned from
* a previous List request, if any.
* @return ListQueuedResourcesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsQueuedResources($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListQueuedResourcesResponse::class);
}
/**
* Resets a QueuedResource TPU instance (queuedResources.reset)
*
* @param string $name Required. The name of the queued resource.
* @param ResetQueuedResourceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function reset($name, ResetQueuedResourceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('reset', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsQueuedResources::class, 'Google_Service_TPU_Resource_ProjectsLocationsQueuedResources');
@@ -0,0 +1,71 @@
<?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\TPU\Resource;
use Google\Service\TPU\ListRuntimeVersionsResponse;
use Google\Service\TPU\RuntimeVersion;
/**
* The "runtimeVersions" collection of methods.
* Typical usage is:
* <code>
* $tpuService = new Google\Service\TPU(...);
* $runtimeVersions = $tpuService->projects_locations_runtimeVersions;
* </code>
*/
class ProjectsLocationsRuntimeVersions extends \Google\Service\Resource
{
/**
* Gets a runtime version. (runtimeVersions.get)
*
* @param string $name Required. The resource name.
* @param array $optParams Optional parameters.
* @return RuntimeVersion
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], RuntimeVersion::class);
}
/**
* Lists runtime versions supported by this API.
* (runtimeVersions.listProjectsLocationsRuntimeVersions)
*
* @param string $parent Required. The parent resource name.
* @param array $optParams Optional parameters.
*
* @opt_param string filter List filter.
* @opt_param string orderBy Sort results.
* @opt_param int pageSize The maximum number of items to return.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @return ListRuntimeVersionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRuntimeVersions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRuntimeVersionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRuntimeVersions::class, 'Google_Service_TPU_Resource_ProjectsLocationsRuntimeVersions');
@@ -0,0 +1,69 @@
<?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\TPU\Resource;
use Google\Service\TPU\ListTensorFlowVersionsResponse;
use Google\Service\TPU\TensorFlowVersion;
/**
* The "tensorflowVersions" collection of methods.
* Typical usage is:
* <code>
* $tpuService = new Google\Service\TPU(...);
* $tensorflowVersions = $tpuService->tensorflowVersions;
* </code>
*/
class ProjectsLocationsTensorflowVersions extends \Google\Service\Resource
{
/**
* Gets TensorFlow Version. (tensorflowVersions.get)
*
* @param string $name Required. The resource name.
* @param array $optParams Optional parameters.
* @return TensorFlowVersion
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TensorFlowVersion::class);
}
/**
* List TensorFlow versions supported by this API.
* (tensorflowVersions.listProjectsLocationsTensorflowVersions)
*
* @param string $parent Required. The parent resource name.
* @param array $optParams Optional parameters.
*
* @opt_param string filter List filter.
* @opt_param string orderBy Sort results.
* @opt_param int pageSize The maximum number of items to return.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @return ListTensorFlowVersionsResponse
*/
public function listProjectsLocationsTensorflowVersions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTensorFlowVersionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsTensorflowVersions::class, 'Google_Service_TPU_Resource_ProjectsLocationsTensorflowVersions');
@@ -0,0 +1,70 @@
<?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\TPU;
class RuntimeVersion extends \Google\Model
{
/**
* The resource name.
*
* @var string
*/
public $name;
/**
* The runtime version.
*
* @var string
*/
public $version;
/**
* The resource name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The runtime version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RuntimeVersion::class, 'Google_Service_TPU_RuntimeVersion');
@@ -0,0 +1,92 @@
<?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\TPU;
class SchedulingConfig extends \Google\Model
{
/**
* Defines whether the node is preemptible.
*
* @var bool
*/
public $preemptible;
/**
* Whether the node is created under a reservation.
*
* @var bool
*/
public $reserved;
/**
* Optional. Defines whether the node is Spot VM.
*
* @var bool
*/
public $spot;
/**
* Defines whether the node is preemptible.
*
* @param bool $preemptible
*/
public function setPreemptible($preemptible)
{
$this->preemptible = $preemptible;
}
/**
* @return bool
*/
public function getPreemptible()
{
return $this->preemptible;
}
/**
* Whether the node is created under a reservation.
*
* @param bool $reserved
*/
public function setReserved($reserved)
{
$this->reserved = $reserved;
}
/**
* @return bool
*/
public function getReserved()
{
return $this->reserved;
}
/**
* Optional. Defines whether the node is Spot VM.
*
* @param bool $spot
*/
public function setSpot($spot)
{
$this->spot = $spot;
}
/**
* @return bool
*/
public function getSpot()
{
return $this->spot;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SchedulingConfig::class, 'Google_Service_TPU_SchedulingConfig');
@@ -0,0 +1,75 @@
<?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\TPU;
class ServiceAccount extends \Google\Collection
{
protected $collection_key = 'scope';
/**
* Email address of the service account. If empty, default Compute service
* account will be used.
*
* @var string
*/
public $email;
/**
* The list of scopes to be made available for this service account. If empty,
* access to all Cloud APIs will be allowed.
*
* @var string[]
*/
public $scope;
/**
* Email address of the service account. If empty, default Compute service
* account will be used.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* The list of scopes to be made available for this service account. If empty,
* access to all Cloud APIs will be allowed.
*
* @param string[] $scope
*/
public function setScope($scope)
{
$this->scope = $scope;
}
/**
* @return string[]
*/
public function getScope()
{
return $this->scope;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceAccount::class, 'Google_Service_TPU_ServiceAccount');
@@ -0,0 +1,48 @@
<?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\TPU;
class ServiceIdentity extends \Google\Model
{
/**
* The email address of the service identity.
*
* @var string
*/
public $email;
/**
* The email address of the service identity.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceIdentity::class, 'Google_Service_TPU_ServiceIdentity');
@@ -0,0 +1,48 @@
<?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\TPU;
class ShieldedInstanceConfig extends \Google\Model
{
/**
* Defines whether the instance has Secure Boot enabled.
*
* @var bool
*/
public $enableSecureBoot;
/**
* Defines whether the instance has Secure Boot enabled.
*
* @param bool $enableSecureBoot
*/
public function setEnableSecureBoot($enableSecureBoot)
{
$this->enableSecureBoot = $enableSecureBoot;
}
/**
* @return bool
*/
public function getEnableSecureBoot()
{
return $this->enableSecureBoot;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ShieldedInstanceConfig::class, 'Google_Service_TPU_ShieldedInstanceConfig');
+25
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\TPU;
class Spot extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Spot::class, 'Google_Service_TPU_Spot');
@@ -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\TPU;
class StartNodeRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StartNodeRequest::class, 'Google_Service_TPU_StartNodeRequest');
+99
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\TPU;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @param string $message
*/
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_TPU_Status');
@@ -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\TPU;
class StopNodeRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StopNodeRequest::class, 'Google_Service_TPU_StopNodeRequest');
@@ -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\TPU;
class SuspendedData extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SuspendedData::class, 'Google_Service_TPU_SuspendedData');
@@ -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\TPU;
class SuspendingData extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SuspendingData::class, 'Google_Service_TPU_SuspendingData');
+146
View File
@@ -0,0 +1,146 @@
<?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\TPU;
class Symptom extends \Google\Model
{
/**
* Unspecified symptom.
*/
public const SYMPTOM_TYPE_SYMPTOM_TYPE_UNSPECIFIED = 'SYMPTOM_TYPE_UNSPECIFIED';
/**
* TPU VM memory is low.
*/
public const SYMPTOM_TYPE_LOW_MEMORY = 'LOW_MEMORY';
/**
* TPU runtime is out of memory.
*/
public const SYMPTOM_TYPE_OUT_OF_MEMORY = 'OUT_OF_MEMORY';
/**
* TPU runtime execution has timed out.
*/
public const SYMPTOM_TYPE_EXECUTE_TIMED_OUT = 'EXECUTE_TIMED_OUT';
/**
* TPU runtime fails to construct a mesh that recognizes each TPU device's
* neighbors.
*/
public const SYMPTOM_TYPE_MESH_BUILD_FAIL = 'MESH_BUILD_FAIL';
/**
* TPU HBM is out of memory.
*/
public const SYMPTOM_TYPE_HBM_OUT_OF_MEMORY = 'HBM_OUT_OF_MEMORY';
/**
* Abusive behaviors have been identified on the current project.
*/
public const SYMPTOM_TYPE_PROJECT_ABUSE = 'PROJECT_ABUSE';
/**
* Timestamp when the Symptom is created.
*
* @var string
*/
public $createTime;
/**
* Detailed information of the current Symptom.
*
* @var string
*/
public $details;
/**
* Type of the Symptom.
*
* @var string
*/
public $symptomType;
/**
* A string used to uniquely distinguish a worker within a TPU node.
*
* @var string
*/
public $workerId;
/**
* Timestamp when the Symptom is created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Detailed information of the current Symptom.
*
* @param string $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string
*/
public function getDetails()
{
return $this->details;
}
/**
* Type of the Symptom.
*
* Accepted values: SYMPTOM_TYPE_UNSPECIFIED, LOW_MEMORY, OUT_OF_MEMORY,
* EXECUTE_TIMED_OUT, MESH_BUILD_FAIL, HBM_OUT_OF_MEMORY, PROJECT_ABUSE
*
* @param self::SYMPTOM_TYPE_* $symptomType
*/
public function setSymptomType($symptomType)
{
$this->symptomType = $symptomType;
}
/**
* @return self::SYMPTOM_TYPE_*
*/
public function getSymptomType()
{
return $this->symptomType;
}
/**
* A string used to uniquely distinguish a worker within a TPU node.
*
* @param string $workerId
*/
public function setWorkerId($workerId)
{
$this->workerId = $workerId;
}
/**
* @return string
*/
public function getWorkerId()
{
return $this->workerId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Symptom::class, 'Google_Service_TPU_Symptom');
@@ -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\TPU;
class TensorFlowVersion extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TensorFlowVersion::class, 'Google_Service_TPU_TensorFlowVersion');
+45
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\TPU;
class Tpu extends \Google\Collection
{
protected $collection_key = 'nodeSpec';
protected $nodeSpecType = NodeSpec::class;
protected $nodeSpecDataType = 'array';
/**
* Optional. The TPU node(s) being requested.
*
* @param NodeSpec[] $nodeSpec
*/
public function setNodeSpec($nodeSpec)
{
$this->nodeSpec = $nodeSpec;
}
/**
* @return NodeSpec[]
*/
public function getNodeSpec()
{
return $this->nodeSpec;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Tpu::class, 'Google_Service_TPU_Tpu');
+25
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\TPU;
class TpuEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TpuEmpty::class, 'Google_Service_TPU_TpuEmpty');
@@ -0,0 +1,194 @@
<?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\TPU;
class UpcomingMaintenance extends \Google\Model
{
/**
* Unknown maintenance status. Do not use this value.
*/
public const MAINTENANCE_STATUS_UNKNOWN = 'UNKNOWN';
/**
* There is pending maintenance.
*/
public const MAINTENANCE_STATUS_PENDING = 'PENDING';
/**
* There is ongoing maintenance on this VM.
*/
public const MAINTENANCE_STATUS_ONGOING = 'ONGOING';
/**
* No type specified. Do not use this value.
*/
public const TYPE_UNKNOWN_TYPE = 'UNKNOWN_TYPE';
/**
* Scheduled maintenance (e.g. maintenance after uptime guarantee is
* complete).
*/
public const TYPE_SCHEDULED = 'SCHEDULED';
/**
* Unscheduled maintenance (e.g. emergency maintenance during uptime
* guarantee).
*/
public const TYPE_UNSCHEDULED = 'UNSCHEDULED';
/**
* Indicates if the maintenance can be customer triggered.
*
* @var bool
*/
public $canReschedule;
/**
* The latest time for the planned maintenance window to start. This timestamp
* value is in RFC3339 text format.
*
* @var string
*/
public $latestWindowStartTime;
/**
* The status of the maintenance.
*
* @var string
*/
public $maintenanceStatus;
/**
* Defines the type of maintenance.
*
* @var string
*/
public $type;
/**
* The time by which the maintenance disruption will be completed. This
* timestamp value is in RFC3339 text format.
*
* @var string
*/
public $windowEndTime;
/**
* The current start time of the maintenance window. This timestamp value is
* in RFC3339 text format.
*
* @var string
*/
public $windowStartTime;
/**
* Indicates if the maintenance can be customer triggered.
*
* @param bool $canReschedule
*/
public function setCanReschedule($canReschedule)
{
$this->canReschedule = $canReschedule;
}
/**
* @return bool
*/
public function getCanReschedule()
{
return $this->canReschedule;
}
/**
* The latest time for the planned maintenance window to start. This timestamp
* value is in RFC3339 text format.
*
* @param string $latestWindowStartTime
*/
public function setLatestWindowStartTime($latestWindowStartTime)
{
$this->latestWindowStartTime = $latestWindowStartTime;
}
/**
* @return string
*/
public function getLatestWindowStartTime()
{
return $this->latestWindowStartTime;
}
/**
* The status of the maintenance.
*
* Accepted values: UNKNOWN, PENDING, ONGOING
*
* @param self::MAINTENANCE_STATUS_* $maintenanceStatus
*/
public function setMaintenanceStatus($maintenanceStatus)
{
$this->maintenanceStatus = $maintenanceStatus;
}
/**
* @return self::MAINTENANCE_STATUS_*
*/
public function getMaintenanceStatus()
{
return $this->maintenanceStatus;
}
/**
* Defines the type of maintenance.
*
* Accepted values: UNKNOWN_TYPE, SCHEDULED, UNSCHEDULED
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* The time by which the maintenance disruption will be completed. This
* timestamp value is in RFC3339 text format.
*
* @param string $windowEndTime
*/
public function setWindowEndTime($windowEndTime)
{
$this->windowEndTime = $windowEndTime;
}
/**
* @return string
*/
public function getWindowEndTime()
{
return $this->windowEndTime;
}
/**
* The current start time of the maintenance window. This timestamp value is
* in RFC3339 text format.
*
* @param string $windowStartTime
*/
public function setWindowStartTime($windowStartTime)
{
$this->windowStartTime = $windowStartTime;
}
/**
* @return string
*/
public function getWindowStartTime()
{
return $this->windowStartTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpcomingMaintenance::class, 'Google_Service_TPU_UpcomingMaintenance');