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,58 @@
<?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\Spanner;
class AsymmetricAutoscalingOption extends \Google\Model
{
protected $overridesType = AutoscalingConfigOverrides::class;
protected $overridesDataType = '';
protected $replicaSelectionType = InstanceReplicaSelection::class;
protected $replicaSelectionDataType = '';
/**
* @param AutoscalingConfigOverrides
*/
public function setOverrides(AutoscalingConfigOverrides $overrides)
{
$this->overrides = $overrides;
}
/**
* @return AutoscalingConfigOverrides
*/
public function getOverrides()
{
return $this->overrides;
}
/**
* @param InstanceReplicaSelection
*/
public function setReplicaSelection(InstanceReplicaSelection $replicaSelection)
{
$this->replicaSelection = $replicaSelection;
}
/**
* @return InstanceReplicaSelection
*/
public function getReplicaSelection()
{
return $this->replicaSelection;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AsymmetricAutoscalingOption::class, 'Google_Service_Spanner_AsymmetricAutoscalingOption');

View File

@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Spanner;
class AutoscalingConfig extends \Google\Collection
{
protected $collection_key = 'asymmetricAutoscalingOptions';
protected $asymmetricAutoscalingOptionsType = AsymmetricAutoscalingOption::class;
protected $asymmetricAutoscalingOptionsDataType = 'array';
protected $autoscalingLimitsType = AutoscalingLimits::class;
protected $autoscalingLimitsDataType = '';
protected $autoscalingTargetsType = AutoscalingTargets::class;
protected $autoscalingTargetsDataType = '';
/**
* @param AsymmetricAutoscalingOption[]
*/
public function setAsymmetricAutoscalingOptions($asymmetricAutoscalingOptions)
{
$this->asymmetricAutoscalingOptions = $asymmetricAutoscalingOptions;
}
/**
* @return AsymmetricAutoscalingOption[]
*/
public function getAsymmetricAutoscalingOptions()
{
return $this->asymmetricAutoscalingOptions;
}
/**
* @param AutoscalingLimits
*/
public function setAutoscalingLimits(AutoscalingLimits $autoscalingLimits)
{
$this->autoscalingLimits = $autoscalingLimits;
}
/**
* @return AutoscalingLimits
*/
public function getAutoscalingLimits()
{
return $this->autoscalingLimits;
}
/**
* @param AutoscalingTargets
*/
public function setAutoscalingTargets(AutoscalingTargets $autoscalingTargets)
{
$this->autoscalingTargets = $autoscalingTargets;
}
/**
* @return AutoscalingTargets
*/
public function getAutoscalingTargets()
{
return $this->autoscalingTargets;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalingConfig::class, 'Google_Service_Spanner_AutoscalingConfig');

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\Spanner;
class AutoscalingConfigOverrides extends \Google\Model
{
protected $autoscalingLimitsType = AutoscalingLimits::class;
protected $autoscalingLimitsDataType = '';
/**
* @var int
*/
public $autoscalingTargetHighPriorityCpuUtilizationPercent;
/**
* @param AutoscalingLimits
*/
public function setAutoscalingLimits(AutoscalingLimits $autoscalingLimits)
{
$this->autoscalingLimits = $autoscalingLimits;
}
/**
* @return AutoscalingLimits
*/
public function getAutoscalingLimits()
{
return $this->autoscalingLimits;
}
/**
* @param int
*/
public function setAutoscalingTargetHighPriorityCpuUtilizationPercent($autoscalingTargetHighPriorityCpuUtilizationPercent)
{
$this->autoscalingTargetHighPriorityCpuUtilizationPercent = $autoscalingTargetHighPriorityCpuUtilizationPercent;
}
/**
* @return int
*/
public function getAutoscalingTargetHighPriorityCpuUtilizationPercent()
{
return $this->autoscalingTargetHighPriorityCpuUtilizationPercent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalingConfigOverrides::class, 'Google_Service_Spanner_AutoscalingConfigOverrides');

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\Spanner;
class AutoscalingLimits extends \Google\Model
{
/**
* @var int
*/
public $maxNodes;
/**
* @var int
*/
public $maxProcessingUnits;
/**
* @var int
*/
public $minNodes;
/**
* @var int
*/
public $minProcessingUnits;
/**
* @param int
*/
public function setMaxNodes($maxNodes)
{
$this->maxNodes = $maxNodes;
}
/**
* @return int
*/
public function getMaxNodes()
{
return $this->maxNodes;
}
/**
* @param int
*/
public function setMaxProcessingUnits($maxProcessingUnits)
{
$this->maxProcessingUnits = $maxProcessingUnits;
}
/**
* @return int
*/
public function getMaxProcessingUnits()
{
return $this->maxProcessingUnits;
}
/**
* @param int
*/
public function setMinNodes($minNodes)
{
$this->minNodes = $minNodes;
}
/**
* @return int
*/
public function getMinNodes()
{
return $this->minNodes;
}
/**
* @param int
*/
public function setMinProcessingUnits($minProcessingUnits)
{
$this->minProcessingUnits = $minProcessingUnits;
}
/**
* @return int
*/
public function getMinProcessingUnits()
{
return $this->minProcessingUnits;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalingLimits::class, 'Google_Service_Spanner_AutoscalingLimits');

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\Spanner;
class AutoscalingTargets extends \Google\Model
{
/**
* @var int
*/
public $highPriorityCpuUtilizationPercent;
/**
* @var int
*/
public $storageUtilizationPercent;
/**
* @param int
*/
public function setHighPriorityCpuUtilizationPercent($highPriorityCpuUtilizationPercent)
{
$this->highPriorityCpuUtilizationPercent = $highPriorityCpuUtilizationPercent;
}
/**
* @return int
*/
public function getHighPriorityCpuUtilizationPercent()
{
return $this->highPriorityCpuUtilizationPercent;
}
/**
* @param int
*/
public function setStorageUtilizationPercent($storageUtilizationPercent)
{
$this->storageUtilizationPercent = $storageUtilizationPercent;
}
/**
* @return int
*/
public function getStorageUtilizationPercent()
{
return $this->storageUtilizationPercent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalingTargets::class, 'Google_Service_Spanner_AutoscalingTargets');

View File

@@ -0,0 +1,347 @@
<?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\Spanner;
class Backup extends \Google\Collection
{
protected $collection_key = 'referencingDatabases';
/**
* @var string[]
*/
public $backupSchedules;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $database;
/**
* @var string
*/
public $databaseDialect;
protected $encryptionInfoType = EncryptionInfo::class;
protected $encryptionInfoDataType = '';
protected $encryptionInformationType = EncryptionInfo::class;
protected $encryptionInformationDataType = 'array';
/**
* @var string
*/
public $exclusiveSizeBytes;
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $freeableSizeBytes;
/**
* @var string
*/
public $incrementalBackupChainId;
/**
* @var string
*/
public $maxExpireTime;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $oldestVersionTime;
/**
* @var string[]
*/
public $referencingBackups;
/**
* @var string[]
*/
public $referencingDatabases;
/**
* @var string
*/
public $sizeBytes;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $versionTime;
/**
* @param string[]
*/
public function setBackupSchedules($backupSchedules)
{
$this->backupSchedules = $backupSchedules;
}
/**
* @return string[]
*/
public function getBackupSchedules()
{
return $this->backupSchedules;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDatabase($database)
{
$this->database = $database;
}
/**
* @return string
*/
public function getDatabase()
{
return $this->database;
}
/**
* @param string
*/
public function setDatabaseDialect($databaseDialect)
{
$this->databaseDialect = $databaseDialect;
}
/**
* @return string
*/
public function getDatabaseDialect()
{
return $this->databaseDialect;
}
/**
* @param EncryptionInfo
*/
public function setEncryptionInfo(EncryptionInfo $encryptionInfo)
{
$this->encryptionInfo = $encryptionInfo;
}
/**
* @return EncryptionInfo
*/
public function getEncryptionInfo()
{
return $this->encryptionInfo;
}
/**
* @param EncryptionInfo[]
*/
public function setEncryptionInformation($encryptionInformation)
{
$this->encryptionInformation = $encryptionInformation;
}
/**
* @return EncryptionInfo[]
*/
public function getEncryptionInformation()
{
return $this->encryptionInformation;
}
/**
* @param string
*/
public function setExclusiveSizeBytes($exclusiveSizeBytes)
{
$this->exclusiveSizeBytes = $exclusiveSizeBytes;
}
/**
* @return string
*/
public function getExclusiveSizeBytes()
{
return $this->exclusiveSizeBytes;
}
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string
*/
public function setFreeableSizeBytes($freeableSizeBytes)
{
$this->freeableSizeBytes = $freeableSizeBytes;
}
/**
* @return string
*/
public function getFreeableSizeBytes()
{
return $this->freeableSizeBytes;
}
/**
* @param string
*/
public function setIncrementalBackupChainId($incrementalBackupChainId)
{
$this->incrementalBackupChainId = $incrementalBackupChainId;
}
/**
* @return string
*/
public function getIncrementalBackupChainId()
{
return $this->incrementalBackupChainId;
}
/**
* @param string
*/
public function setMaxExpireTime($maxExpireTime)
{
$this->maxExpireTime = $maxExpireTime;
}
/**
* @return string
*/
public function getMaxExpireTime()
{
return $this->maxExpireTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setOldestVersionTime($oldestVersionTime)
{
$this->oldestVersionTime = $oldestVersionTime;
}
/**
* @return string
*/
public function getOldestVersionTime()
{
return $this->oldestVersionTime;
}
/**
* @param string[]
*/
public function setReferencingBackups($referencingBackups)
{
$this->referencingBackups = $referencingBackups;
}
/**
* @return string[]
*/
public function getReferencingBackups()
{
return $this->referencingBackups;
}
/**
* @param string[]
*/
public function setReferencingDatabases($referencingDatabases)
{
$this->referencingDatabases = $referencingDatabases;
}
/**
* @return string[]
*/
public function getReferencingDatabases()
{
return $this->referencingDatabases;
}
/**
* @param string
*/
public function setSizeBytes($sizeBytes)
{
$this->sizeBytes = $sizeBytes;
}
/**
* @return string
*/
public function getSizeBytes()
{
return $this->sizeBytes;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setVersionTime($versionTime)
{
$this->versionTime = $versionTime;
}
/**
* @return string
*/
public function getVersionTime()
{
return $this->versionTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Backup::class, 'Google_Service_Spanner_Backup');

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\Spanner;
class BackupInfo extends \Google\Model
{
/**
* @var string
*/
public $backup;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $sourceDatabase;
/**
* @var string
*/
public $versionTime;
/**
* @param string
*/
public function setBackup($backup)
{
$this->backup = $backup;
}
/**
* @return string
*/
public function getBackup()
{
return $this->backup;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setSourceDatabase($sourceDatabase)
{
$this->sourceDatabase = $sourceDatabase;
}
/**
* @return string
*/
public function getSourceDatabase()
{
return $this->sourceDatabase;
}
/**
* @param string
*/
public function setVersionTime($versionTime)
{
$this->versionTime = $versionTime;
}
/**
* @return string
*/
public function getVersionTime()
{
return $this->versionTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupInfo::class, 'Google_Service_Spanner_BackupInfo');

View File

@@ -0,0 +1,144 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Spanner;
class BackupSchedule extends \Google\Model
{
protected $encryptionConfigType = CreateBackupEncryptionConfig::class;
protected $encryptionConfigDataType = '';
protected $fullBackupSpecType = FullBackupSpec::class;
protected $fullBackupSpecDataType = '';
protected $incrementalBackupSpecType = IncrementalBackupSpec::class;
protected $incrementalBackupSpecDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $retentionDuration;
protected $specType = BackupScheduleSpec::class;
protected $specDataType = '';
/**
* @var string
*/
public $updateTime;
/**
* @param CreateBackupEncryptionConfig
*/
public function setEncryptionConfig(CreateBackupEncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return CreateBackupEncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* @param FullBackupSpec
*/
public function setFullBackupSpec(FullBackupSpec $fullBackupSpec)
{
$this->fullBackupSpec = $fullBackupSpec;
}
/**
* @return FullBackupSpec
*/
public function getFullBackupSpec()
{
return $this->fullBackupSpec;
}
/**
* @param IncrementalBackupSpec
*/
public function setIncrementalBackupSpec(IncrementalBackupSpec $incrementalBackupSpec)
{
$this->incrementalBackupSpec = $incrementalBackupSpec;
}
/**
* @return IncrementalBackupSpec
*/
public function getIncrementalBackupSpec()
{
return $this->incrementalBackupSpec;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setRetentionDuration($retentionDuration)
{
$this->retentionDuration = $retentionDuration;
}
/**
* @return string
*/
public function getRetentionDuration()
{
return $this->retentionDuration;
}
/**
* @param BackupScheduleSpec
*/
public function setSpec(BackupScheduleSpec $spec)
{
$this->spec = $spec;
}
/**
* @return BackupScheduleSpec
*/
public function getSpec()
{
return $this->spec;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupSchedule::class, 'Google_Service_Spanner_BackupSchedule');

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\Spanner;
class BackupScheduleSpec extends \Google\Model
{
protected $cronSpecType = CrontabSpec::class;
protected $cronSpecDataType = '';
/**
* @param CrontabSpec
*/
public function setCronSpec(CrontabSpec $cronSpec)
{
$this->cronSpec = $cronSpec;
}
/**
* @return CrontabSpec
*/
public function getCronSpec()
{
return $this->cronSpec;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupScheduleSpec::class, 'Google_Service_Spanner_BackupScheduleSpec');

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\Spanner;
class BatchCreateSessionsRequest extends \Google\Model
{
/**
* @var int
*/
public $sessionCount;
protected $sessionTemplateType = Session::class;
protected $sessionTemplateDataType = '';
/**
* @param int
*/
public function setSessionCount($sessionCount)
{
$this->sessionCount = $sessionCount;
}
/**
* @return int
*/
public function getSessionCount()
{
return $this->sessionCount;
}
/**
* @param Session
*/
public function setSessionTemplate(Session $sessionTemplate)
{
$this->sessionTemplate = $sessionTemplate;
}
/**
* @return Session
*/
public function getSessionTemplate()
{
return $this->sessionTemplate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreateSessionsRequest::class, 'Google_Service_Spanner_BatchCreateSessionsRequest');

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\Spanner;
class BatchCreateSessionsResponse extends \Google\Collection
{
protected $collection_key = 'session';
protected $sessionType = Session::class;
protected $sessionDataType = 'array';
/**
* @param Session[]
*/
public function setSession($session)
{
$this->session = $session;
}
/**
* @return Session[]
*/
public function getSession()
{
return $this->session;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreateSessionsResponse::class, 'Google_Service_Spanner_BatchCreateSessionsResponse');

View File

@@ -0,0 +1,77 @@
<?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\Spanner;
class BatchWriteRequest extends \Google\Collection
{
protected $collection_key = 'mutationGroups';
/**
* @var bool
*/
public $excludeTxnFromChangeStreams;
protected $mutationGroupsType = MutationGroup::class;
protected $mutationGroupsDataType = 'array';
protected $requestOptionsType = RequestOptions::class;
protected $requestOptionsDataType = '';
/**
* @param bool
*/
public function setExcludeTxnFromChangeStreams($excludeTxnFromChangeStreams)
{
$this->excludeTxnFromChangeStreams = $excludeTxnFromChangeStreams;
}
/**
* @return bool
*/
public function getExcludeTxnFromChangeStreams()
{
return $this->excludeTxnFromChangeStreams;
}
/**
* @param MutationGroup[]
*/
public function setMutationGroups($mutationGroups)
{
$this->mutationGroups = $mutationGroups;
}
/**
* @return MutationGroup[]
*/
public function getMutationGroups()
{
return $this->mutationGroups;
}
/**
* @param RequestOptions
*/
public function setRequestOptions(RequestOptions $requestOptions)
{
$this->requestOptions = $requestOptions;
}
/**
* @return RequestOptions
*/
public function getRequestOptions()
{
return $this->requestOptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchWriteRequest::class, 'Google_Service_Spanner_BatchWriteRequest');

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\Spanner;
class BatchWriteResponse extends \Google\Collection
{
protected $collection_key = 'indexes';
/**
* @var string
*/
public $commitTimestamp;
/**
* @var int[]
*/
public $indexes;
protected $statusType = Status::class;
protected $statusDataType = '';
/**
* @param string
*/
public function setCommitTimestamp($commitTimestamp)
{
$this->commitTimestamp = $commitTimestamp;
}
/**
* @return string
*/
public function getCommitTimestamp()
{
return $this->commitTimestamp;
}
/**
* @param int[]
*/
public function setIndexes($indexes)
{
$this->indexes = $indexes;
}
/**
* @return int[]
*/
public function getIndexes()
{
return $this->indexes;
}
/**
* @param Status
*/
public function setStatus(Status $status)
{
$this->status = $status;
}
/**
* @return Status
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchWriteResponse::class, 'Google_Service_Spanner_BatchWriteResponse');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Spanner;
class BeginTransactionRequest extends \Google\Model
{
protected $mutationKeyType = Mutation::class;
protected $mutationKeyDataType = '';
protected $optionsType = TransactionOptions::class;
protected $optionsDataType = '';
protected $requestOptionsType = RequestOptions::class;
protected $requestOptionsDataType = '';
/**
* @param Mutation
*/
public function setMutationKey(Mutation $mutationKey)
{
$this->mutationKey = $mutationKey;
}
/**
* @return Mutation
*/
public function getMutationKey()
{
return $this->mutationKey;
}
/**
* @param TransactionOptions
*/
public function setOptions(TransactionOptions $options)
{
$this->options = $options;
}
/**
* @return TransactionOptions
*/
public function getOptions()
{
return $this->options;
}
/**
* @param RequestOptions
*/
public function setRequestOptions(RequestOptions $requestOptions)
{
$this->requestOptions = $requestOptions;
}
/**
* @return RequestOptions
*/
public function getRequestOptions()
{
return $this->requestOptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BeginTransactionRequest::class, 'Google_Service_Spanner_BeginTransactionRequest');

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\Spanner;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* @var string[]
*/
public $members;
/**
* @var string
*/
public $role;
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string[]
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_Spanner_Binding');

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\Spanner;
class ChangeQuorumMetadata extends \Google\Model
{
/**
* @var string
*/
public $endTime;
protected $requestType = ChangeQuorumRequest::class;
protected $requestDataType = '';
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param ChangeQuorumRequest
*/
public function setRequest(ChangeQuorumRequest $request)
{
$this->request = $request;
}
/**
* @return ChangeQuorumRequest
*/
public function getRequest()
{
return $this->request;
}
/**
* @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(ChangeQuorumMetadata::class, 'Google_Service_Spanner_ChangeQuorumMetadata');

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\Spanner;
class ChangeQuorumRequest extends \Google\Model
{
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $name;
protected $quorumTypeType = QuorumType::class;
protected $quorumTypeDataType = '';
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param QuorumType
*/
public function setQuorumType(QuorumType $quorumType)
{
$this->quorumType = $quorumType;
}
/**
* @return QuorumType
*/
public function getQuorumType()
{
return $this->quorumType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChangeQuorumRequest::class, 'Google_Service_Spanner_ChangeQuorumRequest');

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\Spanner;
class ChildLink extends \Google\Model
{
/**
* @var int
*/
public $childIndex;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $variable;
/**
* @param int
*/
public function setChildIndex($childIndex)
{
$this->childIndex = $childIndex;
}
/**
* @return int
*/
public function getChildIndex()
{
return $this->childIndex;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setVariable($variable)
{
$this->variable = $variable;
}
/**
* @return string
*/
public function getVariable()
{
return $this->variable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChildLink::class, 'Google_Service_Spanner_ChildLink');

View File

@@ -0,0 +1,145 @@
<?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\Spanner;
class CommitRequest extends \Google\Collection
{
protected $collection_key = 'mutations';
/**
* @var string
*/
public $maxCommitDelay;
protected $mutationsType = Mutation::class;
protected $mutationsDataType = 'array';
protected $precommitTokenType = MultiplexedSessionPrecommitToken::class;
protected $precommitTokenDataType = '';
protected $requestOptionsType = RequestOptions::class;
protected $requestOptionsDataType = '';
/**
* @var bool
*/
public $returnCommitStats;
protected $singleUseTransactionType = TransactionOptions::class;
protected $singleUseTransactionDataType = '';
/**
* @var string
*/
public $transactionId;
/**
* @param string
*/
public function setMaxCommitDelay($maxCommitDelay)
{
$this->maxCommitDelay = $maxCommitDelay;
}
/**
* @return string
*/
public function getMaxCommitDelay()
{
return $this->maxCommitDelay;
}
/**
* @param Mutation[]
*/
public function setMutations($mutations)
{
$this->mutations = $mutations;
}
/**
* @return Mutation[]
*/
public function getMutations()
{
return $this->mutations;
}
/**
* @param MultiplexedSessionPrecommitToken
*/
public function setPrecommitToken(MultiplexedSessionPrecommitToken $precommitToken)
{
$this->precommitToken = $precommitToken;
}
/**
* @return MultiplexedSessionPrecommitToken
*/
public function getPrecommitToken()
{
return $this->precommitToken;
}
/**
* @param RequestOptions
*/
public function setRequestOptions(RequestOptions $requestOptions)
{
$this->requestOptions = $requestOptions;
}
/**
* @return RequestOptions
*/
public function getRequestOptions()
{
return $this->requestOptions;
}
/**
* @param bool
*/
public function setReturnCommitStats($returnCommitStats)
{
$this->returnCommitStats = $returnCommitStats;
}
/**
* @return bool
*/
public function getReturnCommitStats()
{
return $this->returnCommitStats;
}
/**
* @param TransactionOptions
*/
public function setSingleUseTransaction(TransactionOptions $singleUseTransaction)
{
$this->singleUseTransaction = $singleUseTransaction;
}
/**
* @return TransactionOptions
*/
public function getSingleUseTransaction()
{
return $this->singleUseTransaction;
}
/**
* @param string
*/
public function setTransactionId($transactionId)
{
$this->transactionId = $transactionId;
}
/**
* @return string
*/
public function getTransactionId()
{
return $this->transactionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommitRequest::class, 'Google_Service_Spanner_CommitRequest');

View File

@@ -0,0 +1,76 @@
<?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\Spanner;
class CommitResponse extends \Google\Model
{
protected $commitStatsType = CommitStats::class;
protected $commitStatsDataType = '';
/**
* @var string
*/
public $commitTimestamp;
protected $precommitTokenType = MultiplexedSessionPrecommitToken::class;
protected $precommitTokenDataType = '';
/**
* @param CommitStats
*/
public function setCommitStats(CommitStats $commitStats)
{
$this->commitStats = $commitStats;
}
/**
* @return CommitStats
*/
public function getCommitStats()
{
return $this->commitStats;
}
/**
* @param string
*/
public function setCommitTimestamp($commitTimestamp)
{
$this->commitTimestamp = $commitTimestamp;
}
/**
* @return string
*/
public function getCommitTimestamp()
{
return $this->commitTimestamp;
}
/**
* @param MultiplexedSessionPrecommitToken
*/
public function setPrecommitToken(MultiplexedSessionPrecommitToken $precommitToken)
{
$this->precommitToken = $precommitToken;
}
/**
* @return MultiplexedSessionPrecommitToken
*/
public function getPrecommitToken()
{
return $this->precommitToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommitResponse::class, 'Google_Service_Spanner_CommitResponse');

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\Spanner;
class CommitStats extends \Google\Model
{
/**
* @var string
*/
public $mutationCount;
/**
* @param string
*/
public function setMutationCount($mutationCount)
{
$this->mutationCount = $mutationCount;
}
/**
* @return string
*/
public function getMutationCount()
{
return $this->mutationCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommitStats::class, 'Google_Service_Spanner_CommitStats');

View File

@@ -0,0 +1,96 @@
<?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\Spanner;
class ContextValue extends \Google\Model
{
protected $labelType = LocalizedString::class;
protected $labelDataType = '';
/**
* @var string
*/
public $severity;
/**
* @var string
*/
public $unit;
/**
* @var float
*/
public $value;
/**
* @param LocalizedString
*/
public function setLabel(LocalizedString $label)
{
$this->label = $label;
}
/**
* @return LocalizedString
*/
public function getLabel()
{
return $this->label;
}
/**
* @param string
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
/**
* @param string
*/
public function setUnit($unit)
{
$this->unit = $unit;
}
/**
* @return string
*/
public function getUnit()
{
return $this->unit;
}
/**
* @param float
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return float
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContextValue::class, 'Google_Service_Spanner_ContextValue');

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\Spanner;
class CopyBackupEncryptionConfig extends \Google\Collection
{
protected $collection_key = 'kmsKeyNames';
/**
* @var string
*/
public $encryptionType;
/**
* @var string
*/
public $kmsKeyName;
/**
* @var string[]
*/
public $kmsKeyNames;
/**
* @param string
*/
public function setEncryptionType($encryptionType)
{
$this->encryptionType = $encryptionType;
}
/**
* @return string
*/
public function getEncryptionType()
{
return $this->encryptionType;
}
/**
* @param string
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
/**
* @param string[]
*/
public function setKmsKeyNames($kmsKeyNames)
{
$this->kmsKeyNames = $kmsKeyNames;
}
/**
* @return string[]
*/
public function getKmsKeyNames()
{
return $this->kmsKeyNames;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CopyBackupEncryptionConfig::class, 'Google_Service_Spanner_CopyBackupEncryptionConfig');

View File

@@ -0,0 +1,96 @@
<?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\Spanner;
class CopyBackupMetadata extends \Google\Model
{
/**
* @var string
*/
public $cancelTime;
/**
* @var string
*/
public $name;
protected $progressType = OperationProgress::class;
protected $progressDataType = '';
/**
* @var string
*/
public $sourceBackup;
/**
* @param string
*/
public function setCancelTime($cancelTime)
{
$this->cancelTime = $cancelTime;
}
/**
* @return string
*/
public function getCancelTime()
{
return $this->cancelTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param OperationProgress
*/
public function setProgress(OperationProgress $progress)
{
$this->progress = $progress;
}
/**
* @return OperationProgress
*/
public function getProgress()
{
return $this->progress;
}
/**
* @param string
*/
public function setSourceBackup($sourceBackup)
{
$this->sourceBackup = $sourceBackup;
}
/**
* @return string
*/
public function getSourceBackup()
{
return $this->sourceBackup;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CopyBackupMetadata::class, 'Google_Service_Spanner_CopyBackupMetadata');

View File

@@ -0,0 +1,96 @@
<?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\Spanner;
class CopyBackupRequest extends \Google\Model
{
/**
* @var string
*/
public $backupId;
protected $encryptionConfigType = CopyBackupEncryptionConfig::class;
protected $encryptionConfigDataType = '';
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $sourceBackup;
/**
* @param string
*/
public function setBackupId($backupId)
{
$this->backupId = $backupId;
}
/**
* @return string
*/
public function getBackupId()
{
return $this->backupId;
}
/**
* @param CopyBackupEncryptionConfig
*/
public function setEncryptionConfig(CopyBackupEncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return CopyBackupEncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string
*/
public function setSourceBackup($sourceBackup)
{
$this->sourceBackup = $sourceBackup;
}
/**
* @return string
*/
public function getSourceBackup()
{
return $this->sourceBackup;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CopyBackupRequest::class, 'Google_Service_Spanner_CopyBackupRequest');

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\Spanner;
class CreateBackupEncryptionConfig extends \Google\Collection
{
protected $collection_key = 'kmsKeyNames';
/**
* @var string
*/
public $encryptionType;
/**
* @var string
*/
public $kmsKeyName;
/**
* @var string[]
*/
public $kmsKeyNames;
/**
* @param string
*/
public function setEncryptionType($encryptionType)
{
$this->encryptionType = $encryptionType;
}
/**
* @return string
*/
public function getEncryptionType()
{
return $this->encryptionType;
}
/**
* @param string
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
/**
* @param string[]
*/
public function setKmsKeyNames($kmsKeyNames)
{
$this->kmsKeyNames = $kmsKeyNames;
}
/**
* @return string[]
*/
public function getKmsKeyNames()
{
return $this->kmsKeyNames;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateBackupEncryptionConfig::class, 'Google_Service_Spanner_CreateBackupEncryptionConfig');

View File

@@ -0,0 +1,96 @@
<?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\Spanner;
class CreateBackupMetadata extends \Google\Model
{
/**
* @var string
*/
public $cancelTime;
/**
* @var string
*/
public $database;
/**
* @var string
*/
public $name;
protected $progressType = OperationProgress::class;
protected $progressDataType = '';
/**
* @param string
*/
public function setCancelTime($cancelTime)
{
$this->cancelTime = $cancelTime;
}
/**
* @return string
*/
public function getCancelTime()
{
return $this->cancelTime;
}
/**
* @param string
*/
public function setDatabase($database)
{
$this->database = $database;
}
/**
* @return string
*/
public function getDatabase()
{
return $this->database;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param OperationProgress
*/
public function setProgress(OperationProgress $progress)
{
$this->progress = $progress;
}
/**
* @return OperationProgress
*/
public function getProgress()
{
return $this->progress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateBackupMetadata::class, 'Google_Service_Spanner_CreateBackupMetadata');

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\Spanner;
class CreateDatabaseMetadata extends \Google\Model
{
/**
* @var string
*/
public $database;
/**
* @param string
*/
public function setDatabase($database)
{
$this->database = $database;
}
/**
* @return string
*/
public function getDatabase()
{
return $this->database;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateDatabaseMetadata::class, 'Google_Service_Spanner_CreateDatabaseMetadata');

View File

@@ -0,0 +1,115 @@
<?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\Spanner;
class CreateDatabaseRequest extends \Google\Collection
{
protected $collection_key = 'extraStatements';
/**
* @var string
*/
public $createStatement;
/**
* @var string
*/
public $databaseDialect;
protected $encryptionConfigType = EncryptionConfig::class;
protected $encryptionConfigDataType = '';
/**
* @var string[]
*/
public $extraStatements;
/**
* @var string
*/
public $protoDescriptors;
/**
* @param string
*/
public function setCreateStatement($createStatement)
{
$this->createStatement = $createStatement;
}
/**
* @return string
*/
public function getCreateStatement()
{
return $this->createStatement;
}
/**
* @param string
*/
public function setDatabaseDialect($databaseDialect)
{
$this->databaseDialect = $databaseDialect;
}
/**
* @return string
*/
public function getDatabaseDialect()
{
return $this->databaseDialect;
}
/**
* @param EncryptionConfig
*/
public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return EncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* @param string[]
*/
public function setExtraStatements($extraStatements)
{
$this->extraStatements = $extraStatements;
}
/**
* @return string[]
*/
public function getExtraStatements()
{
return $this->extraStatements;
}
/**
* @param string
*/
public function setProtoDescriptors($protoDescriptors)
{
$this->protoDescriptors = $protoDescriptors;
}
/**
* @return string
*/
public function getProtoDescriptors()
{
return $this->protoDescriptors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateDatabaseRequest::class, 'Google_Service_Spanner_CreateDatabaseRequest');

View File

@@ -0,0 +1,76 @@
<?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\Spanner;
class CreateInstanceConfigMetadata extends \Google\Model
{
/**
* @var string
*/
public $cancelTime;
protected $instanceConfigType = InstanceConfig::class;
protected $instanceConfigDataType = '';
protected $progressType = InstanceOperationProgress::class;
protected $progressDataType = '';
/**
* @param string
*/
public function setCancelTime($cancelTime)
{
$this->cancelTime = $cancelTime;
}
/**
* @return string
*/
public function getCancelTime()
{
return $this->cancelTime;
}
/**
* @param InstanceConfig
*/
public function setInstanceConfig(InstanceConfig $instanceConfig)
{
$this->instanceConfig = $instanceConfig;
}
/**
* @return InstanceConfig
*/
public function getInstanceConfig()
{
return $this->instanceConfig;
}
/**
* @param InstanceOperationProgress
*/
public function setProgress(InstanceOperationProgress $progress)
{
$this->progress = $progress;
}
/**
* @return InstanceOperationProgress
*/
public function getProgress()
{
return $this->progress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateInstanceConfigMetadata::class, 'Google_Service_Spanner_CreateInstanceConfigMetadata');

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\Spanner;
class CreateInstanceConfigRequest extends \Google\Model
{
protected $instanceConfigType = InstanceConfig::class;
protected $instanceConfigDataType = '';
/**
* @var string
*/
public $instanceConfigId;
/**
* @var bool
*/
public $validateOnly;
/**
* @param InstanceConfig
*/
public function setInstanceConfig(InstanceConfig $instanceConfig)
{
$this->instanceConfig = $instanceConfig;
}
/**
* @return InstanceConfig
*/
public function getInstanceConfig()
{
return $this->instanceConfig;
}
/**
* @param string
*/
public function setInstanceConfigId($instanceConfigId)
{
$this->instanceConfigId = $instanceConfigId;
}
/**
* @return string
*/
public function getInstanceConfigId()
{
return $this->instanceConfigId;
}
/**
* @param bool
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateInstanceConfigRequest::class, 'Google_Service_Spanner_CreateInstanceConfigRequest');

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\Spanner;
class CreateInstanceMetadata extends \Google\Model
{
/**
* @var string
*/
public $cancelTime;
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $expectedFulfillmentPeriod;
protected $instanceType = Instance::class;
protected $instanceDataType = '';
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setCancelTime($cancelTime)
{
$this->cancelTime = $cancelTime;
}
/**
* @return string
*/
public function getCancelTime()
{
return $this->cancelTime;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setExpectedFulfillmentPeriod($expectedFulfillmentPeriod)
{
$this->expectedFulfillmentPeriod = $expectedFulfillmentPeriod;
}
/**
* @return string
*/
public function getExpectedFulfillmentPeriod()
{
return $this->expectedFulfillmentPeriod;
}
/**
* @param Instance
*/
public function setInstance(Instance $instance)
{
$this->instance = $instance;
}
/**
* @return Instance
*/
public function getInstance()
{
return $this->instance;
}
/**
* @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(CreateInstanceMetadata::class, 'Google_Service_Spanner_CreateInstanceMetadata');

View File

@@ -0,0 +1,96 @@
<?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\Spanner;
class CreateInstancePartitionMetadata extends \Google\Model
{
/**
* @var string
*/
public $cancelTime;
/**
* @var string
*/
public $endTime;
protected $instancePartitionType = InstancePartition::class;
protected $instancePartitionDataType = '';
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setCancelTime($cancelTime)
{
$this->cancelTime = $cancelTime;
}
/**
* @return string
*/
public function getCancelTime()
{
return $this->cancelTime;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param InstancePartition
*/
public function setInstancePartition(InstancePartition $instancePartition)
{
$this->instancePartition = $instancePartition;
}
/**
* @return InstancePartition
*/
public function getInstancePartition()
{
return $this->instancePartition;
}
/**
* @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(CreateInstancePartitionMetadata::class, 'Google_Service_Spanner_CreateInstancePartitionMetadata');

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\Spanner;
class CreateInstancePartitionRequest extends \Google\Model
{
protected $instancePartitionType = InstancePartition::class;
protected $instancePartitionDataType = '';
/**
* @var string
*/
public $instancePartitionId;
/**
* @param InstancePartition
*/
public function setInstancePartition(InstancePartition $instancePartition)
{
$this->instancePartition = $instancePartition;
}
/**
* @return InstancePartition
*/
public function getInstancePartition()
{
return $this->instancePartition;
}
/**
* @param string
*/
public function setInstancePartitionId($instancePartitionId)
{
$this->instancePartitionId = $instancePartitionId;
}
/**
* @return string
*/
public function getInstancePartitionId()
{
return $this->instancePartitionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateInstancePartitionRequest::class, 'Google_Service_Spanner_CreateInstancePartitionRequest');

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\Spanner;
class CreateInstanceRequest extends \Google\Model
{
protected $instanceType = Instance::class;
protected $instanceDataType = '';
/**
* @var string
*/
public $instanceId;
/**
* @param Instance
*/
public function setInstance(Instance $instance)
{
$this->instance = $instance;
}
/**
* @return Instance
*/
public function getInstance()
{
return $this->instance;
}
/**
* @param string
*/
public function setInstanceId($instanceId)
{
$this->instanceId = $instanceId;
}
/**
* @return string
*/
public function getInstanceId()
{
return $this->instanceId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateInstanceRequest::class, 'Google_Service_Spanner_CreateInstanceRequest');

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\Spanner;
class CreateSessionRequest extends \Google\Model
{
protected $sessionType = Session::class;
protected $sessionDataType = '';
/**
* @param Session
*/
public function setSession(Session $session)
{
$this->session = $session;
}
/**
* @return Session
*/
public function getSession()
{
return $this->session;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateSessionRequest::class, 'Google_Service_Spanner_CreateSessionRequest');

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\Spanner;
class CrontabSpec extends \Google\Model
{
/**
* @var string
*/
public $creationWindow;
/**
* @var string
*/
public $text;
/**
* @var string
*/
public $timeZone;
/**
* @param string
*/
public function setCreationWindow($creationWindow)
{
$this->creationWindow = $creationWindow;
}
/**
* @return string
*/
public function getCreationWindow()
{
return $this->creationWindow;
}
/**
* @param string
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
/**
* @param string
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CrontabSpec::class, 'Google_Service_Spanner_CrontabSpec');

View File

@@ -0,0 +1,253 @@
<?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\Spanner;
class Database extends \Google\Collection
{
protected $collection_key = 'encryptionInfo';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $databaseDialect;
/**
* @var string
*/
public $defaultLeader;
/**
* @var string
*/
public $earliestVersionTime;
/**
* @var bool
*/
public $enableDropProtection;
protected $encryptionConfigType = EncryptionConfig::class;
protected $encryptionConfigDataType = '';
protected $encryptionInfoType = EncryptionInfo::class;
protected $encryptionInfoDataType = 'array';
/**
* @var string
*/
public $name;
protected $quorumInfoType = QuorumInfo::class;
protected $quorumInfoDataType = '';
/**
* @var bool
*/
public $reconciling;
protected $restoreInfoType = RestoreInfo::class;
protected $restoreInfoDataType = '';
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $versionRetentionPeriod;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDatabaseDialect($databaseDialect)
{
$this->databaseDialect = $databaseDialect;
}
/**
* @return string
*/
public function getDatabaseDialect()
{
return $this->databaseDialect;
}
/**
* @param string
*/
public function setDefaultLeader($defaultLeader)
{
$this->defaultLeader = $defaultLeader;
}
/**
* @return string
*/
public function getDefaultLeader()
{
return $this->defaultLeader;
}
/**
* @param string
*/
public function setEarliestVersionTime($earliestVersionTime)
{
$this->earliestVersionTime = $earliestVersionTime;
}
/**
* @return string
*/
public function getEarliestVersionTime()
{
return $this->earliestVersionTime;
}
/**
* @param bool
*/
public function setEnableDropProtection($enableDropProtection)
{
$this->enableDropProtection = $enableDropProtection;
}
/**
* @return bool
*/
public function getEnableDropProtection()
{
return $this->enableDropProtection;
}
/**
* @param EncryptionConfig
*/
public function setEncryptionConfig(EncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return EncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* @param EncryptionInfo[]
*/
public function setEncryptionInfo($encryptionInfo)
{
$this->encryptionInfo = $encryptionInfo;
}
/**
* @return EncryptionInfo[]
*/
public function getEncryptionInfo()
{
return $this->encryptionInfo;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param QuorumInfo
*/
public function setQuorumInfo(QuorumInfo $quorumInfo)
{
$this->quorumInfo = $quorumInfo;
}
/**
* @return QuorumInfo
*/
public function getQuorumInfo()
{
return $this->quorumInfo;
}
/**
* @param bool
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* @param RestoreInfo
*/
public function setRestoreInfo(RestoreInfo $restoreInfo)
{
$this->restoreInfo = $restoreInfo;
}
/**
* @return RestoreInfo
*/
public function getRestoreInfo()
{
return $this->restoreInfo;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setVersionRetentionPeriod($versionRetentionPeriod)
{
$this->versionRetentionPeriod = $versionRetentionPeriod;
}
/**
* @return string
*/
public function getVersionRetentionPeriod()
{
return $this->versionRetentionPeriod;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Database::class, 'Google_Service_Spanner_Database');

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\Spanner;
class DatabaseRole extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @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(DatabaseRole::class, 'Google_Service_Spanner_DatabaseRole');

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\Spanner;
class DdlStatementActionInfo extends \Google\Collection
{
protected $collection_key = 'entityNames';
/**
* @var string
*/
public $action;
/**
* @var string[]
*/
public $entityNames;
/**
* @var string
*/
public $entityType;
/**
* @param string
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* @param string[]
*/
public function setEntityNames($entityNames)
{
$this->entityNames = $entityNames;
}
/**
* @return string[]
*/
public function getEntityNames()
{
return $this->entityNames;
}
/**
* @param string
*/
public function setEntityType($entityType)
{
$this->entityType = $entityType;
}
/**
* @return string
*/
public function getEntityType()
{
return $this->entityType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DdlStatementActionInfo::class, 'Google_Service_Spanner_DdlStatementActionInfo');

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\Spanner;
class Delete extends \Google\Model
{
protected $keySetType = KeySet::class;
protected $keySetDataType = '';
/**
* @var string
*/
public $table;
/**
* @param KeySet
*/
public function setKeySet(KeySet $keySet)
{
$this->keySet = $keySet;
}
/**
* @return KeySet
*/
public function getKeySet()
{
return $this->keySet;
}
/**
* @param string
*/
public function setTable($table)
{
$this->table = $table;
}
/**
* @return string
*/
public function getTable()
{
return $this->table;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Delete::class, 'Google_Service_Spanner_Delete');

View File

@@ -0,0 +1,58 @@
<?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\Spanner;
class DerivedMetric extends \Google\Model
{
protected $denominatorType = LocalizedString::class;
protected $denominatorDataType = '';
protected $numeratorType = LocalizedString::class;
protected $numeratorDataType = '';
/**
* @param LocalizedString
*/
public function setDenominator(LocalizedString $denominator)
{
$this->denominator = $denominator;
}
/**
* @return LocalizedString
*/
public function getDenominator()
{
return $this->denominator;
}
/**
* @param LocalizedString
*/
public function setNumerator(LocalizedString $numerator)
{
$this->numerator = $numerator;
}
/**
* @return LocalizedString
*/
public function getNumerator()
{
return $this->numerator;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DerivedMetric::class, 'Google_Service_Spanner_DerivedMetric');

View File

@@ -0,0 +1,110 @@
<?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\Spanner;
class DiagnosticMessage extends \Google\Model
{
protected $infoType = LocalizedString::class;
protected $infoDataType = '';
protected $metricType = LocalizedString::class;
protected $metricDataType = '';
/**
* @var bool
*/
public $metricSpecific;
/**
* @var string
*/
public $severity;
protected $shortMessageType = LocalizedString::class;
protected $shortMessageDataType = '';
/**
* @param LocalizedString
*/
public function setInfo(LocalizedString $info)
{
$this->info = $info;
}
/**
* @return LocalizedString
*/
public function getInfo()
{
return $this->info;
}
/**
* @param LocalizedString
*/
public function setMetric(LocalizedString $metric)
{
$this->metric = $metric;
}
/**
* @return LocalizedString
*/
public function getMetric()
{
return $this->metric;
}
/**
* @param bool
*/
public function setMetricSpecific($metricSpecific)
{
$this->metricSpecific = $metricSpecific;
}
/**
* @return bool
*/
public function getMetricSpecific()
{
return $this->metricSpecific;
}
/**
* @param string
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
/**
* @param LocalizedString
*/
public function setShortMessage(LocalizedString $shortMessage)
{
$this->shortMessage = $shortMessage;
}
/**
* @return LocalizedString
*/
public function getShortMessage()
{
return $this->shortMessage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiagnosticMessage::class, 'Google_Service_Spanner_DiagnosticMessage');

View File

@@ -0,0 +1,58 @@
<?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\Spanner;
class DirectedReadOptions extends \Google\Model
{
protected $excludeReplicasType = ExcludeReplicas::class;
protected $excludeReplicasDataType = '';
protected $includeReplicasType = IncludeReplicas::class;
protected $includeReplicasDataType = '';
/**
* @param ExcludeReplicas
*/
public function setExcludeReplicas(ExcludeReplicas $excludeReplicas)
{
$this->excludeReplicas = $excludeReplicas;
}
/**
* @return ExcludeReplicas
*/
public function getExcludeReplicas()
{
return $this->excludeReplicas;
}
/**
* @param IncludeReplicas
*/
public function setIncludeReplicas(IncludeReplicas $includeReplicas)
{
$this->includeReplicas = $includeReplicas;
}
/**
* @return IncludeReplicas
*/
public function getIncludeReplicas()
{
return $this->includeReplicas;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DirectedReadOptions::class, 'Google_Service_Spanner_DirectedReadOptions');

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

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\Spanner;
class EncryptionConfig extends \Google\Collection
{
protected $collection_key = 'kmsKeyNames';
/**
* @var string
*/
public $kmsKeyName;
/**
* @var string[]
*/
public $kmsKeyNames;
/**
* @param string
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
/**
* @param string[]
*/
public function setKmsKeyNames($kmsKeyNames)
{
$this->kmsKeyNames = $kmsKeyNames;
}
/**
* @return string[]
*/
public function getKmsKeyNames()
{
return $this->kmsKeyNames;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncryptionConfig::class, 'Google_Service_Spanner_EncryptionConfig');

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\Spanner;
class EncryptionInfo extends \Google\Model
{
protected $encryptionStatusType = Status::class;
protected $encryptionStatusDataType = '';
/**
* @var string
*/
public $encryptionType;
/**
* @var string
*/
public $kmsKeyVersion;
/**
* @param Status
*/
public function setEncryptionStatus(Status $encryptionStatus)
{
$this->encryptionStatus = $encryptionStatus;
}
/**
* @return Status
*/
public function getEncryptionStatus()
{
return $this->encryptionStatus;
}
/**
* @param string
*/
public function setEncryptionType($encryptionType)
{
$this->encryptionType = $encryptionType;
}
/**
* @return string
*/
public function getEncryptionType()
{
return $this->encryptionType;
}
/**
* @param string
*/
public function setKmsKeyVersion($kmsKeyVersion)
{
$this->kmsKeyVersion = $kmsKeyVersion;
}
/**
* @return string
*/
public function getKmsKeyVersion()
{
return $this->kmsKeyVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncryptionInfo::class, 'Google_Service_Spanner_EncryptionInfo');

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\Spanner;
class ExcludeReplicas extends \Google\Collection
{
protected $collection_key = 'replicaSelections';
protected $replicaSelectionsType = ReplicaSelection::class;
protected $replicaSelectionsDataType = 'array';
/**
* @param ReplicaSelection[]
*/
public function setReplicaSelections($replicaSelections)
{
$this->replicaSelections = $replicaSelections;
}
/**
* @return ReplicaSelection[]
*/
public function getReplicaSelections()
{
return $this->replicaSelections;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExcludeReplicas::class, 'Google_Service_Spanner_ExcludeReplicas');

View File

@@ -0,0 +1,93 @@
<?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\Spanner;
class ExecuteBatchDmlRequest extends \Google\Collection
{
protected $collection_key = 'statements';
protected $requestOptionsType = RequestOptions::class;
protected $requestOptionsDataType = '';
/**
* @var string
*/
public $seqno;
protected $statementsType = Statement::class;
protected $statementsDataType = 'array';
protected $transactionType = TransactionSelector::class;
protected $transactionDataType = '';
/**
* @param RequestOptions
*/
public function setRequestOptions(RequestOptions $requestOptions)
{
$this->requestOptions = $requestOptions;
}
/**
* @return RequestOptions
*/
public function getRequestOptions()
{
return $this->requestOptions;
}
/**
* @param string
*/
public function setSeqno($seqno)
{
$this->seqno = $seqno;
}
/**
* @return string
*/
public function getSeqno()
{
return $this->seqno;
}
/**
* @param Statement[]
*/
public function setStatements($statements)
{
$this->statements = $statements;
}
/**
* @return Statement[]
*/
public function getStatements()
{
return $this->statements;
}
/**
* @param TransactionSelector
*/
public function setTransaction(TransactionSelector $transaction)
{
$this->transaction = $transaction;
}
/**
* @return TransactionSelector
*/
public function getTransaction()
{
return $this->transaction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecuteBatchDmlRequest::class, 'Google_Service_Spanner_ExecuteBatchDmlRequest');

View File

@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Spanner;
class ExecuteBatchDmlResponse extends \Google\Collection
{
protected $collection_key = 'resultSets';
protected $precommitTokenType = MultiplexedSessionPrecommitToken::class;
protected $precommitTokenDataType = '';
protected $resultSetsType = ResultSet::class;
protected $resultSetsDataType = 'array';
protected $statusType = Status::class;
protected $statusDataType = '';
/**
* @param MultiplexedSessionPrecommitToken
*/
public function setPrecommitToken(MultiplexedSessionPrecommitToken $precommitToken)
{
$this->precommitToken = $precommitToken;
}
/**
* @return MultiplexedSessionPrecommitToken
*/
public function getPrecommitToken()
{
return $this->precommitToken;
}
/**
* @param ResultSet[]
*/
public function setResultSets($resultSets)
{
$this->resultSets = $resultSets;
}
/**
* @return ResultSet[]
*/
public function getResultSets()
{
return $this->resultSets;
}
/**
* @param Status
*/
public function setStatus(Status $status)
{
$this->status = $status;
}
/**
* @return Status
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecuteBatchDmlResponse::class, 'Google_Service_Spanner_ExecuteBatchDmlResponse');

View File

@@ -0,0 +1,232 @@
<?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\Spanner;
class ExecuteSqlRequest extends \Google\Model
{
/**
* @var bool
*/
public $dataBoostEnabled;
protected $directedReadOptionsType = DirectedReadOptions::class;
protected $directedReadOptionsDataType = '';
protected $paramTypesType = Type::class;
protected $paramTypesDataType = 'map';
/**
* @var array[]
*/
public $params;
/**
* @var string
*/
public $partitionToken;
/**
* @var string
*/
public $queryMode;
protected $queryOptionsType = QueryOptions::class;
protected $queryOptionsDataType = '';
protected $requestOptionsType = RequestOptions::class;
protected $requestOptionsDataType = '';
/**
* @var string
*/
public $resumeToken;
/**
* @var string
*/
public $seqno;
/**
* @var string
*/
public $sql;
protected $transactionType = TransactionSelector::class;
protected $transactionDataType = '';
/**
* @param bool
*/
public function setDataBoostEnabled($dataBoostEnabled)
{
$this->dataBoostEnabled = $dataBoostEnabled;
}
/**
* @return bool
*/
public function getDataBoostEnabled()
{
return $this->dataBoostEnabled;
}
/**
* @param DirectedReadOptions
*/
public function setDirectedReadOptions(DirectedReadOptions $directedReadOptions)
{
$this->directedReadOptions = $directedReadOptions;
}
/**
* @return DirectedReadOptions
*/
public function getDirectedReadOptions()
{
return $this->directedReadOptions;
}
/**
* @param Type[]
*/
public function setParamTypes($paramTypes)
{
$this->paramTypes = $paramTypes;
}
/**
* @return Type[]
*/
public function getParamTypes()
{
return $this->paramTypes;
}
/**
* @param array[]
*/
public function setParams($params)
{
$this->params = $params;
}
/**
* @return array[]
*/
public function getParams()
{
return $this->params;
}
/**
* @param string
*/
public function setPartitionToken($partitionToken)
{
$this->partitionToken = $partitionToken;
}
/**
* @return string
*/
public function getPartitionToken()
{
return $this->partitionToken;
}
/**
* @param string
*/
public function setQueryMode($queryMode)
{
$this->queryMode = $queryMode;
}
/**
* @return string
*/
public function getQueryMode()
{
return $this->queryMode;
}
/**
* @param QueryOptions
*/
public function setQueryOptions(QueryOptions $queryOptions)
{
$this->queryOptions = $queryOptions;
}
/**
* @return QueryOptions
*/
public function getQueryOptions()
{
return $this->queryOptions;
}
/**
* @param RequestOptions
*/
public function setRequestOptions(RequestOptions $requestOptions)
{
$this->requestOptions = $requestOptions;
}
/**
* @return RequestOptions
*/
public function getRequestOptions()
{
return $this->requestOptions;
}
/**
* @param string
*/
public function setResumeToken($resumeToken)
{
$this->resumeToken = $resumeToken;
}
/**
* @return string
*/
public function getResumeToken()
{
return $this->resumeToken;
}
/**
* @param string
*/
public function setSeqno($seqno)
{
$this->seqno = $seqno;
}
/**
* @return string
*/
public function getSeqno()
{
return $this->seqno;
}
/**
* @param string
*/
public function setSql($sql)
{
$this->sql = $sql;
}
/**
* @return string
*/
public function getSql()
{
return $this->sql;
}
/**
* @param TransactionSelector
*/
public function setTransaction(TransactionSelector $transaction)
{
$this->transaction = $transaction;
}
/**
* @return TransactionSelector
*/
public function getTransaction()
{
return $this->transaction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecuteSqlRequest::class, 'Google_Service_Spanner_ExecuteSqlRequest');

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\Spanner;
class Expr extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_Spanner_Expr');

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\Spanner;
class Field extends \Google\Model
{
/**
* @var string
*/
public $name;
protected $typeType = Type::class;
protected $typeDataType = '';
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param Type
*/
public function setType(Type $type)
{
$this->type = $type;
}
/**
* @return Type
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Field::class, 'Google_Service_Spanner_Field');

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\Spanner;
class FreeInstanceMetadata extends \Google\Model
{
/**
* @var string
*/
public $expireBehavior;
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $upgradeTime;
/**
* @param string
*/
public function setExpireBehavior($expireBehavior)
{
$this->expireBehavior = $expireBehavior;
}
/**
* @return string
*/
public function getExpireBehavior()
{
return $this->expireBehavior;
}
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string
*/
public function setUpgradeTime($upgradeTime)
{
$this->upgradeTime = $upgradeTime;
}
/**
* @return string
*/
public function getUpgradeTime()
{
return $this->upgradeTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FreeInstanceMetadata::class, 'Google_Service_Spanner_FreeInstanceMetadata');

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

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\Spanner;
class GetDatabaseDdlResponse extends \Google\Collection
{
protected $collection_key = 'statements';
/**
* @var string
*/
public $protoDescriptors;
/**
* @var string[]
*/
public $statements;
/**
* @param string
*/
public function setProtoDescriptors($protoDescriptors)
{
$this->protoDescriptors = $protoDescriptors;
}
/**
* @return string
*/
public function getProtoDescriptors()
{
return $this->protoDescriptors;
}
/**
* @param string[]
*/
public function setStatements($statements)
{
$this->statements = $statements;
}
/**
* @return string[]
*/
public function getStatements()
{
return $this->statements;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetDatabaseDdlResponse::class, 'Google_Service_Spanner_GetDatabaseDdlResponse');

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\Spanner;
class GetIamPolicyRequest extends \Google\Model
{
protected $optionsType = GetPolicyOptions::class;
protected $optionsDataType = '';
/**
* @param GetPolicyOptions
*/
public function setOptions(GetPolicyOptions $options)
{
$this->options = $options;
}
/**
* @return GetPolicyOptions
*/
public function getOptions()
{
return $this->options;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetIamPolicyRequest::class, 'Google_Service_Spanner_GetIamPolicyRequest');

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\Spanner;
class GetPolicyOptions extends \Google\Model
{
/**
* @var int
*/
public $requestedPolicyVersion;
/**
* @param int
*/
public function setRequestedPolicyVersion($requestedPolicyVersion)
{
$this->requestedPolicyVersion = $requestedPolicyVersion;
}
/**
* @return int
*/
public function getRequestedPolicyVersion()
{
return $this->requestedPolicyVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetPolicyOptions::class, 'Google_Service_Spanner_GetPolicyOptions');

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\Spanner;
class IncludeReplicas extends \Google\Collection
{
protected $collection_key = 'replicaSelections';
/**
* @var bool
*/
public $autoFailoverDisabled;
protected $replicaSelectionsType = ReplicaSelection::class;
protected $replicaSelectionsDataType = 'array';
/**
* @param bool
*/
public function setAutoFailoverDisabled($autoFailoverDisabled)
{
$this->autoFailoverDisabled = $autoFailoverDisabled;
}
/**
* @return bool
*/
public function getAutoFailoverDisabled()
{
return $this->autoFailoverDisabled;
}
/**
* @param ReplicaSelection[]
*/
public function setReplicaSelections($replicaSelections)
{
$this->replicaSelections = $replicaSelections;
}
/**
* @return ReplicaSelection[]
*/
public function getReplicaSelections()
{
return $this->replicaSelections;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IncludeReplicas::class, 'Google_Service_Spanner_IncludeReplicas');

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

View File

@@ -0,0 +1,54 @@
<?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\Spanner;
class IndexAdvice extends \Google\Collection
{
protected $collection_key = 'ddl';
/**
* @var string[]
*/
public $ddl;
public $improvementFactor;
/**
* @param string[]
*/
public function setDdl($ddl)
{
$this->ddl = $ddl;
}
/**
* @return string[]
*/
public function getDdl()
{
return $this->ddl;
}
public function setImprovementFactor($improvementFactor)
{
$this->improvementFactor = $improvementFactor;
}
public function getImprovementFactor()
{
return $this->improvementFactor;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IndexAdvice::class, 'Google_Service_Spanner_IndexAdvice');

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\Spanner;
class IndexedHotKey extends \Google\Model
{
/**
* @var int[]
*/
public $sparseHotKeys;
/**
* @param int[]
*/
public function setSparseHotKeys($sparseHotKeys)
{
$this->sparseHotKeys = $sparseHotKeys;
}
/**
* @return int[]
*/
public function getSparseHotKeys()
{
return $this->sparseHotKeys;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IndexedHotKey::class, 'Google_Service_Spanner_IndexedHotKey');

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\Spanner;
class IndexedKeyRangeInfos extends \Google\Model
{
protected $keyRangeInfosType = KeyRangeInfos::class;
protected $keyRangeInfosDataType = 'map';
/**
* @param KeyRangeInfos[]
*/
public function setKeyRangeInfos($keyRangeInfos)
{
$this->keyRangeInfos = $keyRangeInfos;
}
/**
* @return KeyRangeInfos[]
*/
public function getKeyRangeInfos()
{
return $this->keyRangeInfos;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IndexedKeyRangeInfos::class, 'Google_Service_Spanner_IndexedKeyRangeInfos');

View File

@@ -0,0 +1,309 @@
<?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\Spanner;
class Instance extends \Google\Collection
{
protected $collection_key = 'replicaComputeCapacity';
protected $autoscalingConfigType = AutoscalingConfig::class;
protected $autoscalingConfigDataType = '';
/**
* @var string
*/
public $config;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $defaultBackupScheduleType;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $edition;
/**
* @var string[]
*/
public $endpointUris;
protected $freeInstanceMetadataType = FreeInstanceMetadata::class;
protected $freeInstanceMetadataDataType = '';
/**
* @var string
*/
public $instanceType;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var int
*/
public $nodeCount;
/**
* @var int
*/
public $processingUnits;
protected $replicaComputeCapacityType = ReplicaComputeCapacity::class;
protected $replicaComputeCapacityDataType = 'array';
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $updateTime;
/**
* @param AutoscalingConfig
*/
public function setAutoscalingConfig(AutoscalingConfig $autoscalingConfig)
{
$this->autoscalingConfig = $autoscalingConfig;
}
/**
* @return AutoscalingConfig
*/
public function getAutoscalingConfig()
{
return $this->autoscalingConfig;
}
/**
* @param string
*/
public function setConfig($config)
{
$this->config = $config;
}
/**
* @return string
*/
public function getConfig()
{
return $this->config;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDefaultBackupScheduleType($defaultBackupScheduleType)
{
$this->defaultBackupScheduleType = $defaultBackupScheduleType;
}
/**
* @return string
*/
public function getDefaultBackupScheduleType()
{
return $this->defaultBackupScheduleType;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setEdition($edition)
{
$this->edition = $edition;
}
/**
* @return string
*/
public function getEdition()
{
return $this->edition;
}
/**
* @param string[]
*/
public function setEndpointUris($endpointUris)
{
$this->endpointUris = $endpointUris;
}
/**
* @return string[]
*/
public function getEndpointUris()
{
return $this->endpointUris;
}
/**
* @param FreeInstanceMetadata
*/
public function setFreeInstanceMetadata(FreeInstanceMetadata $freeInstanceMetadata)
{
$this->freeInstanceMetadata = $freeInstanceMetadata;
}
/**
* @return FreeInstanceMetadata
*/
public function getFreeInstanceMetadata()
{
return $this->freeInstanceMetadata;
}
/**
* @param string
*/
public function setInstanceType($instanceType)
{
$this->instanceType = $instanceType;
}
/**
* @return string
*/
public function getInstanceType()
{
return $this->instanceType;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param int
*/
public function setNodeCount($nodeCount)
{
$this->nodeCount = $nodeCount;
}
/**
* @return int
*/
public function getNodeCount()
{
return $this->nodeCount;
}
/**
* @param int
*/
public function setProcessingUnits($processingUnits)
{
$this->processingUnits = $processingUnits;
}
/**
* @return int
*/
public function getProcessingUnits()
{
return $this->processingUnits;
}
/**
* @param ReplicaComputeCapacity[]
*/
public function setReplicaComputeCapacity($replicaComputeCapacity)
{
$this->replicaComputeCapacity = $replicaComputeCapacity;
}
/**
* @return ReplicaComputeCapacity[]
*/
public function getReplicaComputeCapacity()
{
return $this->replicaComputeCapacity;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Instance::class, 'Google_Service_Spanner_Instance');

View File

@@ -0,0 +1,275 @@
<?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\Spanner;
class InstanceConfig extends \Google\Collection
{
protected $collection_key = 'replicas';
/**
* @var string
*/
public $baseConfig;
/**
* @var string
*/
public $configType;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $freeInstanceAvailability;
/**
* @var string[]
*/
public $labels;
/**
* @var string[]
*/
public $leaderOptions;
/**
* @var string
*/
public $name;
protected $optionalReplicasType = ReplicaInfo::class;
protected $optionalReplicasDataType = 'array';
/**
* @var string
*/
public $quorumType;
/**
* @var bool
*/
public $reconciling;
protected $replicasType = ReplicaInfo::class;
protected $replicasDataType = 'array';
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $storageLimitPerProcessingUnit;
/**
* @param string
*/
public function setBaseConfig($baseConfig)
{
$this->baseConfig = $baseConfig;
}
/**
* @return string
*/
public function getBaseConfig()
{
return $this->baseConfig;
}
/**
* @param string
*/
public function setConfigType($configType)
{
$this->configType = $configType;
}
/**
* @return string
*/
public function getConfigType()
{
return $this->configType;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setFreeInstanceAvailability($freeInstanceAvailability)
{
$this->freeInstanceAvailability = $freeInstanceAvailability;
}
/**
* @return string
*/
public function getFreeInstanceAvailability()
{
return $this->freeInstanceAvailability;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string[]
*/
public function setLeaderOptions($leaderOptions)
{
$this->leaderOptions = $leaderOptions;
}
/**
* @return string[]
*/
public function getLeaderOptions()
{
return $this->leaderOptions;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param ReplicaInfo[]
*/
public function setOptionalReplicas($optionalReplicas)
{
$this->optionalReplicas = $optionalReplicas;
}
/**
* @return ReplicaInfo[]
*/
public function getOptionalReplicas()
{
return $this->optionalReplicas;
}
/**
* @param string
*/
public function setQuorumType($quorumType)
{
$this->quorumType = $quorumType;
}
/**
* @return string
*/
public function getQuorumType()
{
return $this->quorumType;
}
/**
* @param bool
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* @param ReplicaInfo[]
*/
public function setReplicas($replicas)
{
$this->replicas = $replicas;
}
/**
* @return ReplicaInfo[]
*/
public function getReplicas()
{
return $this->replicas;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setStorageLimitPerProcessingUnit($storageLimitPerProcessingUnit)
{
$this->storageLimitPerProcessingUnit = $storageLimitPerProcessingUnit;
}
/**
* @return string
*/
public function getStorageLimitPerProcessingUnit()
{
return $this->storageLimitPerProcessingUnit;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceConfig::class, 'Google_Service_Spanner_InstanceConfig');

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\Spanner;
class InstanceOperationProgress extends \Google\Model
{
/**
* @var string
*/
public $endTime;
/**
* @var int
*/
public $progressPercent;
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param int
*/
public function setProgressPercent($progressPercent)
{
$this->progressPercent = $progressPercent;
}
/**
* @return int
*/
public function getProgressPercent()
{
return $this->progressPercent;
}
/**
* @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(InstanceOperationProgress::class, 'Google_Service_Spanner_InstanceOperationProgress');

View File

@@ -0,0 +1,225 @@
<?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\Spanner;
class InstancePartition extends \Google\Collection
{
protected $collection_key = 'referencingDatabases';
/**
* @var string
*/
public $config;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $name;
/**
* @var int
*/
public $nodeCount;
/**
* @var int
*/
public $processingUnits;
/**
* @var string[]
*/
public $referencingBackups;
/**
* @var string[]
*/
public $referencingDatabases;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setConfig($config)
{
$this->config = $config;
}
/**
* @return string
*/
public function getConfig()
{
return $this->config;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param int
*/
public function setNodeCount($nodeCount)
{
$this->nodeCount = $nodeCount;
}
/**
* @return int
*/
public function getNodeCount()
{
return $this->nodeCount;
}
/**
* @param int
*/
public function setProcessingUnits($processingUnits)
{
$this->processingUnits = $processingUnits;
}
/**
* @return int
*/
public function getProcessingUnits()
{
return $this->processingUnits;
}
/**
* @param string[]
*/
public function setReferencingBackups($referencingBackups)
{
$this->referencingBackups = $referencingBackups;
}
/**
* @return string[]
*/
public function getReferencingBackups()
{
return $this->referencingBackups;
}
/**
* @param string[]
*/
public function setReferencingDatabases($referencingDatabases)
{
$this->referencingDatabases = $referencingDatabases;
}
/**
* @return string[]
*/
public function getReferencingDatabases()
{
return $this->referencingDatabases;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancePartition::class, 'Google_Service_Spanner_InstancePartition');

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\Spanner;
class InstanceReplicaSelection extends \Google\Model
{
/**
* @var string
*/
public $location;
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceReplicaSelection::class, 'Google_Service_Spanner_InstanceReplicaSelection');

View File

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

View File

@@ -0,0 +1,181 @@
<?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\Spanner;
class KeyRangeInfo extends \Google\Collection
{
protected $collection_key = 'contextValues';
protected $contextValuesType = ContextValue::class;
protected $contextValuesDataType = 'array';
/**
* @var int
*/
public $endKeyIndex;
protected $infoType = LocalizedString::class;
protected $infoDataType = '';
/**
* @var string
*/
public $keysCount;
protected $metricType = LocalizedString::class;
protected $metricDataType = '';
/**
* @var int
*/
public $startKeyIndex;
/**
* @var string
*/
public $timeOffset;
protected $unitType = LocalizedString::class;
protected $unitDataType = '';
/**
* @var float
*/
public $value;
/**
* @param ContextValue[]
*/
public function setContextValues($contextValues)
{
$this->contextValues = $contextValues;
}
/**
* @return ContextValue[]
*/
public function getContextValues()
{
return $this->contextValues;
}
/**
* @param int
*/
public function setEndKeyIndex($endKeyIndex)
{
$this->endKeyIndex = $endKeyIndex;
}
/**
* @return int
*/
public function getEndKeyIndex()
{
return $this->endKeyIndex;
}
/**
* @param LocalizedString
*/
public function setInfo(LocalizedString $info)
{
$this->info = $info;
}
/**
* @return LocalizedString
*/
public function getInfo()
{
return $this->info;
}
/**
* @param string
*/
public function setKeysCount($keysCount)
{
$this->keysCount = $keysCount;
}
/**
* @return string
*/
public function getKeysCount()
{
return $this->keysCount;
}
/**
* @param LocalizedString
*/
public function setMetric(LocalizedString $metric)
{
$this->metric = $metric;
}
/**
* @return LocalizedString
*/
public function getMetric()
{
return $this->metric;
}
/**
* @param int
*/
public function setStartKeyIndex($startKeyIndex)
{
$this->startKeyIndex = $startKeyIndex;
}
/**
* @return int
*/
public function getStartKeyIndex()
{
return $this->startKeyIndex;
}
/**
* @param string
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
/**
* @param LocalizedString
*/
public function setUnit(LocalizedString $unit)
{
$this->unit = $unit;
}
/**
* @return LocalizedString
*/
public function getUnit()
{
return $this->unit;
}
/**
* @param float
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return float
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(KeyRangeInfo::class, 'Google_Service_Spanner_KeyRangeInfo');

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\Spanner;
class KeyRangeInfos extends \Google\Collection
{
protected $collection_key = 'infos';
protected $infosType = KeyRangeInfo::class;
protected $infosDataType = 'array';
/**
* @var int
*/
public $totalSize;
/**
* @param KeyRangeInfo[]
*/
public function setInfos($infos)
{
$this->infos = $infos;
}
/**
* @return KeyRangeInfo[]
*/
public function getInfos()
{
return $this->infos;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(KeyRangeInfos::class, 'Google_Service_Spanner_KeyRangeInfos');

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\Spanner;
class KeySet extends \Google\Collection
{
protected $collection_key = 'ranges';
/**
* @var bool
*/
public $all;
/**
* @var array[]
*/
public $keys;
protected $rangesType = KeyRange::class;
protected $rangesDataType = 'array';
/**
* @param bool
*/
public function setAll($all)
{
$this->all = $all;
}
/**
* @return bool
*/
public function getAll()
{
return $this->all;
}
/**
* @param array[]
*/
public function setKeys($keys)
{
$this->keys = $keys;
}
/**
* @return array[]
*/
public function getKeys()
{
return $this->keys;
}
/**
* @param KeyRange[]
*/
public function setRanges($ranges)
{
$this->ranges = $ranges;
}
/**
* @return KeyRange[]
*/
public function getRanges()
{
return $this->ranges;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(KeySet::class, 'Google_Service_Spanner_KeySet');

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\Spanner;
class ListBackupOperationsResponse 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(ListBackupOperationsResponse::class, 'Google_Service_Spanner_ListBackupOperationsResponse');

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\Spanner;
class ListBackupSchedulesResponse extends \Google\Collection
{
protected $collection_key = 'backupSchedules';
protected $backupSchedulesType = BackupSchedule::class;
protected $backupSchedulesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param BackupSchedule[]
*/
public function setBackupSchedules($backupSchedules)
{
$this->backupSchedules = $backupSchedules;
}
/**
* @return BackupSchedule[]
*/
public function getBackupSchedules()
{
return $this->backupSchedules;
}
/**
* @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(ListBackupSchedulesResponse::class, 'Google_Service_Spanner_ListBackupSchedulesResponse');

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\Spanner;
class ListBackupsResponse extends \Google\Collection
{
protected $collection_key = 'backups';
protected $backupsType = Backup::class;
protected $backupsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Backup[]
*/
public function setBackups($backups)
{
$this->backups = $backups;
}
/**
* @return Backup[]
*/
public function getBackups()
{
return $this->backups;
}
/**
* @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(ListBackupsResponse::class, 'Google_Service_Spanner_ListBackupsResponse');

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\Spanner;
class ListDatabaseOperationsResponse 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(ListDatabaseOperationsResponse::class, 'Google_Service_Spanner_ListDatabaseOperationsResponse');

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\Spanner;
class ListDatabaseRolesResponse extends \Google\Collection
{
protected $collection_key = 'databaseRoles';
protected $databaseRolesType = DatabaseRole::class;
protected $databaseRolesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param DatabaseRole[]
*/
public function setDatabaseRoles($databaseRoles)
{
$this->databaseRoles = $databaseRoles;
}
/**
* @return DatabaseRole[]
*/
public function getDatabaseRoles()
{
return $this->databaseRoles;
}
/**
* @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(ListDatabaseRolesResponse::class, 'Google_Service_Spanner_ListDatabaseRolesResponse');

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\Spanner;
class ListDatabasesResponse extends \Google\Collection
{
protected $collection_key = 'databases';
protected $databasesType = Database::class;
protected $databasesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Database[]
*/
public function setDatabases($databases)
{
$this->databases = $databases;
}
/**
* @return Database[]
*/
public function getDatabases()
{
return $this->databases;
}
/**
* @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(ListDatabasesResponse::class, 'Google_Service_Spanner_ListDatabasesResponse');

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\Spanner;
class ListInstanceConfigOperationsResponse 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(ListInstanceConfigOperationsResponse::class, 'Google_Service_Spanner_ListInstanceConfigOperationsResponse');

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\Spanner;
class ListInstanceConfigsResponse extends \Google\Collection
{
protected $collection_key = 'instanceConfigs';
protected $instanceConfigsType = InstanceConfig::class;
protected $instanceConfigsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param InstanceConfig[]
*/
public function setInstanceConfigs($instanceConfigs)
{
$this->instanceConfigs = $instanceConfigs;
}
/**
* @return InstanceConfig[]
*/
public function getInstanceConfigs()
{
return $this->instanceConfigs;
}
/**
* @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(ListInstanceConfigsResponse::class, 'Google_Service_Spanner_ListInstanceConfigsResponse');

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\Spanner;
class ListInstancePartitionOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachableInstancePartitions';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* @var string[]
*/
public $unreachableInstancePartitions;
/**
* @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;
}
/**
* @param string[]
*/
public function setUnreachableInstancePartitions($unreachableInstancePartitions)
{
$this->unreachableInstancePartitions = $unreachableInstancePartitions;
}
/**
* @return string[]
*/
public function getUnreachableInstancePartitions()
{
return $this->unreachableInstancePartitions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListInstancePartitionOperationsResponse::class, 'Google_Service_Spanner_ListInstancePartitionOperationsResponse');

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\Spanner;
class ListInstancePartitionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $instancePartitionsType = InstancePartition::class;
protected $instancePartitionsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param InstancePartition[]
*/
public function setInstancePartitions($instancePartitions)
{
$this->instancePartitions = $instancePartitions;
}
/**
* @return InstancePartition[]
*/
public function getInstancePartitions()
{
return $this->instancePartitions;
}
/**
* @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(ListInstancePartitionsResponse::class, 'Google_Service_Spanner_ListInstancePartitionsResponse');

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\Spanner;
class ListInstancesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $instancesType = Instance::class;
protected $instancesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param Instance[]
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return Instance[]
*/
public function getInstances()
{
return $this->instances;
}
/**
* @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(ListInstancesResponse::class, 'Google_Service_Spanner_ListInstancesResponse');

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\Spanner;
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_Spanner_ListOperationsResponse');

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\Spanner;
class ListScansResponse extends \Google\Collection
{
protected $collection_key = 'scans';
/**
* @var string
*/
public $nextPageToken;
protected $scansType = Scan::class;
protected $scansDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Scan[]
*/
public function setScans($scans)
{
$this->scans = $scans;
}
/**
* @return Scan[]
*/
public function getScans()
{
return $this->scans;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListScansResponse::class, 'Google_Service_Spanner_ListScansResponse');

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\Spanner;
class ListSessionsResponse extends \Google\Collection
{
protected $collection_key = 'sessions';
/**
* @var string
*/
public $nextPageToken;
protected $sessionsType = Session::class;
protected $sessionsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Session[]
*/
public function setSessions($sessions)
{
$this->sessions = $sessions;
}
/**
* @return Session[]
*/
public function getSessions()
{
return $this->sessions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSessionsResponse::class, 'Google_Service_Spanner_ListSessionsResponse');

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\Spanner;
class LocalizedString extends \Google\Model
{
/**
* @var string[]
*/
public $args;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $token;
/**
* @param string[]
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return string[]
*/
public function getArgs()
{
return $this->args;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* @param string
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocalizedString::class, 'Google_Service_Spanner_LocalizedString');

View File

@@ -0,0 +1,226 @@
<?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\Spanner;
class Metric extends \Google\Model
{
/**
* @var string
*/
public $aggregation;
protected $categoryType = LocalizedString::class;
protected $categoryDataType = '';
protected $derivedType = DerivedMetric::class;
protected $derivedDataType = '';
protected $displayLabelType = LocalizedString::class;
protected $displayLabelDataType = '';
/**
* @var bool
*/
public $hasNonzeroData;
/**
* @var float
*/
public $hotValue;
protected $indexedHotKeysType = IndexedHotKey::class;
protected $indexedHotKeysDataType = 'map';
protected $indexedKeyRangeInfosType = IndexedKeyRangeInfos::class;
protected $indexedKeyRangeInfosDataType = 'map';
protected $infoType = LocalizedString::class;
protected $infoDataType = '';
protected $matrixType = MetricMatrix::class;
protected $matrixDataType = '';
protected $unitType = LocalizedString::class;
protected $unitDataType = '';
/**
* @var bool
*/
public $visible;
/**
* @param string
*/
public function setAggregation($aggregation)
{
$this->aggregation = $aggregation;
}
/**
* @return string
*/
public function getAggregation()
{
return $this->aggregation;
}
/**
* @param LocalizedString
*/
public function setCategory(LocalizedString $category)
{
$this->category = $category;
}
/**
* @return LocalizedString
*/
public function getCategory()
{
return $this->category;
}
/**
* @param DerivedMetric
*/
public function setDerived(DerivedMetric $derived)
{
$this->derived = $derived;
}
/**
* @return DerivedMetric
*/
public function getDerived()
{
return $this->derived;
}
/**
* @param LocalizedString
*/
public function setDisplayLabel(LocalizedString $displayLabel)
{
$this->displayLabel = $displayLabel;
}
/**
* @return LocalizedString
*/
public function getDisplayLabel()
{
return $this->displayLabel;
}
/**
* @param bool
*/
public function setHasNonzeroData($hasNonzeroData)
{
$this->hasNonzeroData = $hasNonzeroData;
}
/**
* @return bool
*/
public function getHasNonzeroData()
{
return $this->hasNonzeroData;
}
/**
* @param float
*/
public function setHotValue($hotValue)
{
$this->hotValue = $hotValue;
}
/**
* @return float
*/
public function getHotValue()
{
return $this->hotValue;
}
/**
* @param IndexedHotKey[]
*/
public function setIndexedHotKeys($indexedHotKeys)
{
$this->indexedHotKeys = $indexedHotKeys;
}
/**
* @return IndexedHotKey[]
*/
public function getIndexedHotKeys()
{
return $this->indexedHotKeys;
}
/**
* @param IndexedKeyRangeInfos[]
*/
public function setIndexedKeyRangeInfos($indexedKeyRangeInfos)
{
$this->indexedKeyRangeInfos = $indexedKeyRangeInfos;
}
/**
* @return IndexedKeyRangeInfos[]
*/
public function getIndexedKeyRangeInfos()
{
return $this->indexedKeyRangeInfos;
}
/**
* @param LocalizedString
*/
public function setInfo(LocalizedString $info)
{
$this->info = $info;
}
/**
* @return LocalizedString
*/
public function getInfo()
{
return $this->info;
}
/**
* @param MetricMatrix
*/
public function setMatrix(MetricMatrix $matrix)
{
$this->matrix = $matrix;
}
/**
* @return MetricMatrix
*/
public function getMatrix()
{
return $this->matrix;
}
/**
* @param LocalizedString
*/
public function setUnit(LocalizedString $unit)
{
$this->unit = $unit;
}
/**
* @return LocalizedString
*/
public function getUnit()
{
return $this->unit;
}
/**
* @param bool
*/
public function setVisible($visible)
{
$this->visible = $visible;
}
/**
* @return bool
*/
public function getVisible()
{
return $this->visible;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Metric::class, 'Google_Service_Spanner_Metric');

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\Spanner;
class MetricMatrix extends \Google\Collection
{
protected $collection_key = 'rows';
protected $rowsType = MetricMatrixRow::class;
protected $rowsDataType = 'array';
/**
* @param MetricMatrixRow[]
*/
public function setRows($rows)
{
$this->rows = $rows;
}
/**
* @return MetricMatrixRow[]
*/
public function getRows()
{
return $this->rows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetricMatrix::class, 'Google_Service_Spanner_MetricMatrix');

View File

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

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\Spanner;
class MoveInstanceRequest extends \Google\Model
{
/**
* @var string
*/
public $targetConfig;
/**
* @param string
*/
public function setTargetConfig($targetConfig)
{
$this->targetConfig = $targetConfig;
}
/**
* @return string
*/
public function getTargetConfig()
{
return $this->targetConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MoveInstanceRequest::class, 'Google_Service_Spanner_MoveInstanceRequest');

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\Spanner;
class MultiplexedSessionPrecommitToken extends \Google\Model
{
/**
* @var string
*/
public $precommitToken;
/**
* @var int
*/
public $seqNum;
/**
* @param string
*/
public function setPrecommitToken($precommitToken)
{
$this->precommitToken = $precommitToken;
}
/**
* @return string
*/
public function getPrecommitToken()
{
return $this->precommitToken;
}
/**
* @param int
*/
public function setSeqNum($seqNum)
{
$this->seqNum = $seqNum;
}
/**
* @return int
*/
public function getSeqNum()
{
return $this->seqNum;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MultiplexedSessionPrecommitToken::class, 'Google_Service_Spanner_MultiplexedSessionPrecommitToken');

View File

@@ -0,0 +1,106 @@
<?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\Spanner;
class Mutation extends \Google\Model
{
protected $deleteType = Delete::class;
protected $deleteDataType = '';
protected $insertType = Write::class;
protected $insertDataType = '';
protected $insertOrUpdateType = Write::class;
protected $insertOrUpdateDataType = '';
protected $replaceType = Write::class;
protected $replaceDataType = '';
protected $updateType = Write::class;
protected $updateDataType = '';
/**
* @param Delete
*/
public function setDelete(Delete $delete)
{
$this->delete = $delete;
}
/**
* @return Delete
*/
public function getDelete()
{
return $this->delete;
}
/**
* @param Write
*/
public function setInsert(Write $insert)
{
$this->insert = $insert;
}
/**
* @return Write
*/
public function getInsert()
{
return $this->insert;
}
/**
* @param Write
*/
public function setInsertOrUpdate(Write $insertOrUpdate)
{
$this->insertOrUpdate = $insertOrUpdate;
}
/**
* @return Write
*/
public function getInsertOrUpdate()
{
return $this->insertOrUpdate;
}
/**
* @param Write
*/
public function setReplace(Write $replace)
{
$this->replace = $replace;
}
/**
* @return Write
*/
public function getReplace()
{
return $this->replace;
}
/**
* @param Write
*/
public function setUpdate(Write $update)
{
$this->update = $update;
}
/**
* @return Write
*/
public function getUpdate()
{
return $this->update;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Mutation::class, 'Google_Service_Spanner_Mutation');

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\Spanner;
class MutationGroup extends \Google\Collection
{
protected $collection_key = 'mutations';
protected $mutationsType = Mutation::class;
protected $mutationsDataType = 'array';
/**
* @param Mutation[]
*/
public function setMutations($mutations)
{
$this->mutations = $mutations;
}
/**
* @return Mutation[]
*/
public function getMutations()
{
return $this->mutations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MutationGroup::class, 'Google_Service_Spanner_MutationGroup');

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\Spanner;
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_Spanner_Operation');

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\Spanner;
class OperationProgress extends \Google\Model
{
/**
* @var string
*/
public $endTime;
/**
* @var int
*/
public $progressPercent;
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param int
*/
public function setProgressPercent($progressPercent)
{
$this->progressPercent = $progressPercent;
}
/**
* @return int
*/
public function getProgressPercent()
{
return $this->progressPercent;
}
/**
* @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(OperationProgress::class, 'Google_Service_Spanner_OperationProgress');

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\Spanner;
class OptimizeRestoredDatabaseMetadata extends \Google\Model
{
/**
* @var string
*/
public $name;
protected $progressType = OperationProgress::class;
protected $progressDataType = '';
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param OperationProgress
*/
public function setProgress(OperationProgress $progress)
{
$this->progress = $progress;
}
/**
* @return OperationProgress
*/
public function getProgress()
{
return $this->progress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OptimizeRestoredDatabaseMetadata::class, 'Google_Service_Spanner_OptimizeRestoredDatabaseMetadata');

View File

@@ -0,0 +1,129 @@
<?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\Spanner;
class PartialResultSet extends \Google\Collection
{
protected $collection_key = 'values';
/**
* @var bool
*/
public $chunkedValue;
protected $metadataType = ResultSetMetadata::class;
protected $metadataDataType = '';
protected $precommitTokenType = MultiplexedSessionPrecommitToken::class;
protected $precommitTokenDataType = '';
/**
* @var string
*/
public $resumeToken;
protected $statsType = ResultSetStats::class;
protected $statsDataType = '';
/**
* @var array[]
*/
public $values;
/**
* @param bool
*/
public function setChunkedValue($chunkedValue)
{
$this->chunkedValue = $chunkedValue;
}
/**
* @return bool
*/
public function getChunkedValue()
{
return $this->chunkedValue;
}
/**
* @param ResultSetMetadata
*/
public function setMetadata(ResultSetMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return ResultSetMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param MultiplexedSessionPrecommitToken
*/
public function setPrecommitToken(MultiplexedSessionPrecommitToken $precommitToken)
{
$this->precommitToken = $precommitToken;
}
/**
* @return MultiplexedSessionPrecommitToken
*/
public function getPrecommitToken()
{
return $this->precommitToken;
}
/**
* @param string
*/
public function setResumeToken($resumeToken)
{
$this->resumeToken = $resumeToken;
}
/**
* @return string
*/
public function getResumeToken()
{
return $this->resumeToken;
}
/**
* @param ResultSetStats
*/
public function setStats(ResultSetStats $stats)
{
$this->stats = $stats;
}
/**
* @return ResultSetStats
*/
public function getStats()
{
return $this->stats;
}
/**
* @param array[]
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return array[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartialResultSet::class, 'Google_Service_Spanner_PartialResultSet');

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\Spanner;
class Partition extends \Google\Model
{
/**
* @var string
*/
public $partitionToken;
/**
* @param string
*/
public function setPartitionToken($partitionToken)
{
$this->partitionToken = $partitionToken;
}
/**
* @return string
*/
public function getPartitionToken()
{
return $this->partitionToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Partition::class, 'Google_Service_Spanner_Partition');

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\Spanner;
class PartitionOptions extends \Google\Model
{
/**
* @var string
*/
public $maxPartitions;
/**
* @var string
*/
public $partitionSizeBytes;
/**
* @param string
*/
public function setMaxPartitions($maxPartitions)
{
$this->maxPartitions = $maxPartitions;
}
/**
* @return string
*/
public function getMaxPartitions()
{
return $this->maxPartitions;
}
/**
* @param string
*/
public function setPartitionSizeBytes($partitionSizeBytes)
{
$this->partitionSizeBytes = $partitionSizeBytes;
}
/**
* @return string
*/
public function getPartitionSizeBytes()
{
return $this->partitionSizeBytes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartitionOptions::class, 'Google_Service_Spanner_PartitionOptions');

Some files were not shown because too many files have changed in this diff Show More