Initial commit

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

View File

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

View File

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

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 AcceptedData extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceptedData::class, 'Google_Service_TPU_AcceptedData');

View File

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

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');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TPU;
class AttachedDisk extends \Google\Model
{
/**
* @var string
*/
public $mode;
/**
* @var string
*/
public $sourceDisk;
/**
* @param string
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return string
*/
public function getMode()
{
return $this->mode;
}
/**
* @param string
*/
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');

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 CreatingData extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreatingData::class, 'Google_Service_TPU_CreatingData');

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 DeletingData extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeletingData::class, 'Google_Service_TPU_DeletingData');

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TPU;
class FailedData extends \Google\Model
{
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @param Status
*/
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');

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 GenerateServiceIdentityRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateServiceIdentityRequest::class, 'Google_Service_TPU_GenerateServiceIdentityRequest');

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TPU;
class GenerateServiceIdentityResponse extends \Google\Model
{
protected $identityType = ServiceIdentity::class;
protected $identityDataType = '';
/**
* @param ServiceIdentity
*/
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');

View File

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

View File

@@ -0,0 +1,43 @@
<?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';
/**
* @param 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');

View File

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

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TPU;
class GuestAttributes extends \Google\Model
{
/**
* @var string
*/
public $queryPath;
protected $queryValueType = GuestAttributesValue::class;
protected $queryValueDataType = '';
/**
* @param string
*/
public function setQueryPath($queryPath)
{
$this->queryPath = $queryPath;
}
/**
* @return string
*/
public function getQueryPath()
{
return $this->queryPath;
}
/**
* @param GuestAttributesValue
*/
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');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TPU;
class GuestAttributesEntry extends \Google\Model
{
/**
* @var string
*/
public $key;
/**
* @var string
*/
public $namespace;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* @param string
*/
public function setNamespace($namespace)
{
$this->namespace = $namespace;
}
/**
* @return string
*/
public function getNamespace()
{
return $this->namespace;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,43 @@
<?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';
/**
* @param GuestAttributesEntry[]
*/
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');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TPU;
class Interval extends \Google\Model
{
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
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');

View File

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

View File

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

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TPU;
class ListNodesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $nodesType = Node::class;
protected $nodesDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Node[]
*/
public function setNodes($nodes)
{
$this->nodes = $nodes;
}
/**
* @return Node[]
*/
public function getNodes()
{
return $this->nodes;
}
/**
* @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(ListNodesResponse::class, 'Google_Service_TPU_ListNodesResponse');

View File

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

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TPU;
class ListQueuedResourcesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $queuedResourcesType = QueuedResource::class;
protected $queuedResourcesDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param QueuedResource[]
*/
public function setQueuedResources($queuedResources)
{
$this->queuedResources = $queuedResources;
}
/**
* @return QueuedResource[]
*/
public function getQueuedResources()
{
return $this->queuedResources;
}
/**
* @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(ListQueuedResourcesResponse::class, 'Google_Service_TPU_ListQueuedResourcesResponse');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TPU;
class ListRuntimeVersionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $runtimeVersionsType = RuntimeVersion::class;
protected $runtimeVersionsDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param RuntimeVersion[]
*/
public function setRuntimeVersions($runtimeVersions)
{
$this->runtimeVersions = $runtimeVersions;
}
/**
* @return RuntimeVersion[]
*/
public function getRuntimeVersions()
{
return $this->runtimeVersions;
}
/**
* @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(ListRuntimeVersionsResponse::class, 'Google_Service_TPU_ListRuntimeVersionsResponse');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\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');

View File

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

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TPU;
class MultisliceParams extends \Google\Model
{
/**
* @var int
*/
public $nodeCount;
/**
* @var string
*/
public $nodeIdPrefix;
/**
* @param int
*/
public function setNodeCount($nodeCount)
{
$this->nodeCount = $nodeCount;
}
/**
* @return int
*/
public function getNodeCount()
{
return $this->nodeCount;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TPU;
class NetworkConfig extends \Google\Model
{
/**
* @var bool
*/
public $canIpForward;
/**
* @var bool
*/
public $enableExternalIps;
/**
* @var string
*/
public $network;
/**
* @var int
*/
public $queueCount;
/**
* @var string
*/
public $subnetwork;
/**
* @param bool
*/
public function setCanIpForward($canIpForward)
{
$this->canIpForward = $canIpForward;
}
/**
* @return bool
*/
public function getCanIpForward()
{
return $this->canIpForward;
}
/**
* @param bool
*/
public function setEnableExternalIps($enableExternalIps)
{
$this->enableExternalIps = $enableExternalIps;
}
/**
* @return bool
*/
public function getEnableExternalIps()
{
return $this->enableExternalIps;
}
/**
* @param string
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* @param int
*/
public function setQueueCount($queueCount)
{
$this->queueCount = $queueCount;
}
/**
* @return int
*/
public function getQueueCount()
{
return $this->queueCount;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,78 @@
<?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 = '';
/**
* @var string
*/
public $ipAddress;
/**
* @var int
*/
public $port;
/**
* @param AccessConfig
*/
public function setAccessConfig(AccessConfig $accessConfig)
{
$this->accessConfig = $accessConfig;
}
/**
* @return AccessConfig
*/
public function getAccessConfig()
{
return $this->accessConfig;
}
/**
* @param string
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* @param int
*/
public function setPort($port)
{
$this->port = $port;
}
/**
* @return int
*/
public function getPort()
{
return $this->port;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkEndpoint::class, 'Google_Service_TPU_NetworkEndpoint');

View File

@@ -0,0 +1,443 @@
<?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
{
protected $collection_key = 'tags';
protected $acceleratorConfigType = AcceleratorConfig::class;
protected $acceleratorConfigDataType = '';
/**
* @var string
*/
public $acceleratorType;
/**
* @var string
*/
public $apiVersion;
/**
* @var string
*/
public $cidrBlock;
/**
* @var string
*/
public $createTime;
protected $dataDisksType = AttachedDisk::class;
protected $dataDisksDataType = 'array';
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $health;
/**
* @var string
*/
public $healthDescription;
/**
* @var string
*/
public $id;
/**
* @var string[]
*/
public $labels;
/**
* @var string[]
*/
public $metadata;
/**
* @var bool
*/
public $multisliceNode;
/**
* @var string
*/
public $name;
protected $networkConfigType = NetworkConfig::class;
protected $networkConfigDataType = '';
protected $networkEndpointsType = NetworkEndpoint::class;
protected $networkEndpointsDataType = 'array';
/**
* @var string
*/
public $queuedResource;
/**
* @var string
*/
public $runtimeVersion;
protected $schedulingConfigType = SchedulingConfig::class;
protected $schedulingConfigDataType = '';
protected $serviceAccountType = ServiceAccount::class;
protected $serviceAccountDataType = '';
protected $shieldedInstanceConfigType = ShieldedInstanceConfig::class;
protected $shieldedInstanceConfigDataType = '';
/**
* @var string
*/
public $state;
protected $symptomsType = Symptom::class;
protected $symptomsDataType = 'array';
/**
* @var string[]
*/
public $tags;
/**
* @param AcceleratorConfig
*/
public function setAcceleratorConfig(AcceleratorConfig $acceleratorConfig)
{
$this->acceleratorConfig = $acceleratorConfig;
}
/**
* @return AcceleratorConfig
*/
public function getAcceleratorConfig()
{
return $this->acceleratorConfig;
}
/**
* @param string
*/
public function setAcceleratorType($acceleratorType)
{
$this->acceleratorType = $acceleratorType;
}
/**
* @return string
*/
public function getAcceleratorType()
{
return $this->acceleratorType;
}
/**
* @param string
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* @param string
*/
public function setCidrBlock($cidrBlock)
{
$this->cidrBlock = $cidrBlock;
}
/**
* @return string
*/
public function getCidrBlock()
{
return $this->cidrBlock;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param AttachedDisk[]
*/
public function setDataDisks($dataDisks)
{
$this->dataDisks = $dataDisks;
}
/**
* @return AttachedDisk[]
*/
public function getDataDisks()
{
return $this->dataDisks;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setHealth($health)
{
$this->health = $health;
}
/**
* @return string
*/
public function getHealth()
{
return $this->health;
}
/**
* @param string
*/
public function setHealthDescription($healthDescription)
{
$this->healthDescription = $healthDescription;
}
/**
* @return string
*/
public function getHealthDescription()
{
return $this->healthDescription;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return string[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param bool
*/
public function setMultisliceNode($multisliceNode)
{
$this->multisliceNode = $multisliceNode;
}
/**
* @return bool
*/
public function getMultisliceNode()
{
return $this->multisliceNode;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param NetworkConfig
*/
public function setNetworkConfig(NetworkConfig $networkConfig)
{
$this->networkConfig = $networkConfig;
}
/**
* @return NetworkConfig
*/
public function getNetworkConfig()
{
return $this->networkConfig;
}
/**
* @param NetworkEndpoint[]
*/
public function setNetworkEndpoints($networkEndpoints)
{
$this->networkEndpoints = $networkEndpoints;
}
/**
* @return NetworkEndpoint[]
*/
public function getNetworkEndpoints()
{
return $this->networkEndpoints;
}
/**
* @param string
*/
public function setQueuedResource($queuedResource)
{
$this->queuedResource = $queuedResource;
}
/**
* @return string
*/
public function getQueuedResource()
{
return $this->queuedResource;
}
/**
* @param string
*/
public function setRuntimeVersion($runtimeVersion)
{
$this->runtimeVersion = $runtimeVersion;
}
/**
* @return string
*/
public function getRuntimeVersion()
{
return $this->runtimeVersion;
}
/**
* @param SchedulingConfig
*/
public function setSchedulingConfig(SchedulingConfig $schedulingConfig)
{
$this->schedulingConfig = $schedulingConfig;
}
/**
* @return SchedulingConfig
*/
public function getSchedulingConfig()
{
return $this->schedulingConfig;
}
/**
* @param ServiceAccount
*/
public function setServiceAccount(ServiceAccount $serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return ServiceAccount
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* @param ShieldedInstanceConfig
*/
public function setShieldedInstanceConfig(ShieldedInstanceConfig $shieldedInstanceConfig)
{
$this->shieldedInstanceConfig = $shieldedInstanceConfig;
}
/**
* @return ShieldedInstanceConfig
*/
public function getShieldedInstanceConfig()
{
return $this->shieldedInstanceConfig;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param Symptom[]
*/
public function setSymptoms($symptoms)
{
$this->symptoms = $symptoms;
}
/**
* @return Symptom[]
*/
public function getSymptoms()
{
return $this->symptoms;
}
/**
* @param string[]
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Node::class, 'Google_Service_TPU_Node');

View File

@@ -0,0 +1,94 @@
<?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 = '';
/**
* @var string
*/
public $nodeId;
/**
* @var string
*/
public $parent;
/**
* @param MultisliceParams
*/
public function setMultisliceParams(MultisliceParams $multisliceParams)
{
$this->multisliceParams = $multisliceParams;
}
/**
* @return MultisliceParams
*/
public function getMultisliceParams()
{
return $this->multisliceParams;
}
/**
* @param Node
*/
public function setNode(Node $node)
{
$this->node = $node;
}
/**
* @return Node
*/
public function getNode()
{
return $this->node;
}
/**
* @param string
*/
public function setNodeId($nodeId)
{
$this->nodeId = $nodeId;
}
/**
* @return string
*/
public function getNodeId()
{
return $this->nodeId;
}
/**
* @param string
*/
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');

View File

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

View File

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

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 ProvisioningData extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProvisioningData::class, 'Google_Service_TPU_ProvisioningData');

View File

@@ -0,0 +1,160 @@
<?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
{
/**
* @var string
*/
public $createTime;
protected $guaranteedType = Guaranteed::class;
protected $guaranteedDataType = '';
/**
* @var string
*/
public $name;
protected $queueingPolicyType = QueueingPolicy::class;
protected $queueingPolicyDataType = '';
/**
* @var string
*/
public $reservationName;
protected $spotType = Spot::class;
protected $spotDataType = '';
protected $stateType = QueuedResourceState::class;
protected $stateDataType = '';
protected $tpuType = Tpu::class;
protected $tpuDataType = '';
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param Guaranteed
*/
public function setGuaranteed(Guaranteed $guaranteed)
{
$this->guaranteed = $guaranteed;
}
/**
* @return Guaranteed
*/
public function getGuaranteed()
{
return $this->guaranteed;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param QueueingPolicy
*/
public function setQueueingPolicy(QueueingPolicy $queueingPolicy)
{
$this->queueingPolicy = $queueingPolicy;
}
/**
* @return QueueingPolicy
*/
public function getQueueingPolicy()
{
return $this->queueingPolicy;
}
/**
* @param string
*/
public function setReservationName($reservationName)
{
$this->reservationName = $reservationName;
}
/**
* @return string
*/
public function getReservationName()
{
return $this->reservationName;
}
/**
* @param Spot
*/
public function setSpot(Spot $spot)
{
$this->spot = $spot;
}
/**
* @return Spot
*/
public function getSpot()
{
return $this->spot;
}
/**
* @param QueuedResourceState
*/
public function setState(QueuedResourceState $state)
{
$this->state = $state;
}
/**
* @return QueuedResourceState
*/
public function getState()
{
return $this->state;
}
/**
* @param 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');

View File

@@ -0,0 +1,190 @@
<?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
{
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 = '';
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $stateInitiator;
protected $suspendedDataType = SuspendedData::class;
protected $suspendedDataDataType = '';
protected $suspendingDataType = SuspendingData::class;
protected $suspendingDataDataType = '';
/**
* @param AcceptedData
*/
public function setAcceptedData(AcceptedData $acceptedData)
{
$this->acceptedData = $acceptedData;
}
/**
* @return AcceptedData
*/
public function getAcceptedData()
{
return $this->acceptedData;
}
/**
* @param ActiveData
*/
public function setActiveData(ActiveData $activeData)
{
$this->activeData = $activeData;
}
/**
* @return ActiveData
*/
public function getActiveData()
{
return $this->activeData;
}
/**
* @param CreatingData
*/
public function setCreatingData(CreatingData $creatingData)
{
$this->creatingData = $creatingData;
}
/**
* @return CreatingData
*/
public function getCreatingData()
{
return $this->creatingData;
}
/**
* @param DeletingData
*/
public function setDeletingData(DeletingData $deletingData)
{
$this->deletingData = $deletingData;
}
/**
* @return DeletingData
*/
public function getDeletingData()
{
return $this->deletingData;
}
/**
* @param FailedData
*/
public function setFailedData(FailedData $failedData)
{
$this->failedData = $failedData;
}
/**
* @return FailedData
*/
public function getFailedData()
{
return $this->failedData;
}
/**
* @param ProvisioningData
*/
public function setProvisioningData(ProvisioningData $provisioningData)
{
$this->provisioningData = $provisioningData;
}
/**
* @return ProvisioningData
*/
public function getProvisioningData()
{
return $this->provisioningData;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setStateInitiator($stateInitiator)
{
$this->stateInitiator = $stateInitiator;
}
/**
* @return string
*/
public function getStateInitiator()
{
return $this->stateInitiator;
}
/**
* @param SuspendedData
*/
public function setSuspendedData(SuspendedData $suspendedData)
{
$this->suspendedData = $suspendedData;
}
/**
* @return SuspendedData
*/
public function getSuspendedData()
{
return $this->suspendedData;
}
/**
* @param 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');

View File

@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TPU;
class QueueingPolicy extends \Google\Model
{
/**
* @var string
*/
public $validAfterDuration;
/**
* @var string
*/
public $validAfterTime;
protected $validIntervalType = Interval::class;
protected $validIntervalDataType = '';
/**
* @var string
*/
public $validUntilDuration;
/**
* @var string
*/
public $validUntilTime;
/**
* @param string
*/
public function setValidAfterDuration($validAfterDuration)
{
$this->validAfterDuration = $validAfterDuration;
}
/**
* @return string
*/
public function getValidAfterDuration()
{
return $this->validAfterDuration;
}
/**
* @param string
*/
public function setValidAfterTime($validAfterTime)
{
$this->validAfterTime = $validAfterTime;
}
/**
* @return string
*/
public function getValidAfterTime()
{
return $this->validAfterTime;
}
/**
* @param Interval
*/
public function setValidInterval(Interval $validInterval)
{
$this->validInterval = $validInterval;
}
/**
* @return Interval
*/
public function getValidInterval()
{
return $this->validInterval;
}
/**
* @param string
*/
public function setValidUntilDuration($validUntilDuration)
{
$this->validUntilDuration = $validUntilDuration;
}
/**
* @return string
*/
public function getValidUntilDuration()
{
return $this->validUntilDuration;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\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');

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 ResetQueuedResourceRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResetQueuedResourceRequest::class, 'Google_Service_TPU_ResetQueuedResourceRequest');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\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');

View File

@@ -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\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.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_TPU_Resource_ProjectsLocations');

View File

@@ -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');

View File

@@ -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');

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\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.
* @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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TPU;
class RuntimeVersion 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(RuntimeVersion::class, 'Google_Service_TPU_RuntimeVersion');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TPU;
class SchedulingConfig extends \Google\Model
{
/**
* @var bool
*/
public $preemptible;
/**
* @var bool
*/
public $reserved;
/**
* @var bool
*/
public $spot;
/**
* @param bool
*/
public function setPreemptible($preemptible)
{
$this->preemptible = $preemptible;
}
/**
* @return bool
*/
public function getPreemptible()
{
return $this->preemptible;
}
/**
* @param bool
*/
public function setReserved($reserved)
{
$this->reserved = $reserved;
}
/**
* @return bool
*/
public function getReserved()
{
return $this->reserved;
}
/**
* @param bool
*/
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');

View File

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

View File

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

View File

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

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');

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 StartNodeRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StartNodeRequest::class, 'Google_Service_TPU_StartNodeRequest');

View File

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

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 StopNodeRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StopNodeRequest::class, 'Google_Service_TPU_StopNodeRequest');

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 SuspendedData extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SuspendedData::class, 'Google_Service_TPU_SuspendedData');

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 SuspendingData extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SuspendingData::class, 'Google_Service_TPU_SuspendingData');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TPU;
class Symptom extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $details;
/**
* @var string
*/
public $symptomType;
/**
* @var string
*/
public $workerId;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setSymptomType($symptomType)
{
$this->symptomType = $symptomType;
}
/**
* @return string
*/
public function getSymptomType()
{
return $this->symptomType;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\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');

View File

@@ -0,0 +1,43 @@
<?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';
/**
* @param 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');

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');