Initial commit

This commit is contained in:
Caribana
2017-05-26 11:41:26 +02:00
commit 61c24500af
6264 changed files with 645934 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_AuditConfig extends Google_Collection
{
protected $collection_key = 'exemptedMembers';
protected $auditLogConfigsType = 'Google_Service_Spanner_AuditLogConfig';
protected $auditLogConfigsDataType = 'array';
public $exemptedMembers;
public $service;
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
public function setService($service)
{
$this->service = $service;
}
public function getService()
{
return $this->service;
}
}

View File

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

View File

@@ -0,0 +1,31 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_BeginTransactionRequest extends Google_Model
{
protected $optionsType = 'Google_Service_Spanner_TransactionOptions';
protected $optionsDataType = '';
public function setOptions(Google_Service_Spanner_TransactionOptions $options)
{
$this->options = $options;
}
public function getOptions()
{
return $this->options;
}
}

View File

@@ -0,0 +1,40 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_Binding extends Google_Collection
{
protected $collection_key = 'members';
public $members;
public $role;
public function setMembers($members)
{
$this->members = $members;
}
public function getMembers()
{
return $this->members;
}
public function setRole($role)
{
$this->role = $role;
}
public function getRole()
{
return $this->role;
}
}

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_ChildLink extends Google_Model
{
public $childIndex;
public $type;
public $variable;
public function setChildIndex($childIndex)
{
$this->childIndex = $childIndex;
}
public function getChildIndex()
{
return $this->childIndex;
}
public function setType($type)
{
$this->type = $type;
}
public function getType()
{
return $this->type;
}
public function setVariable($variable)
{
$this->variable = $variable;
}
public function getVariable()
{
return $this->variable;
}
}

View File

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

View File

@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_CommitRequest extends Google_Collection
{
protected $collection_key = 'mutations';
protected $mutationsType = 'Google_Service_Spanner_Mutation';
protected $mutationsDataType = 'array';
protected $singleUseTransactionType = 'Google_Service_Spanner_TransactionOptions';
protected $singleUseTransactionDataType = '';
public $transactionId;
public function setMutations($mutations)
{
$this->mutations = $mutations;
}
public function getMutations()
{
return $this->mutations;
}
public function setSingleUseTransaction(Google_Service_Spanner_TransactionOptions $singleUseTransaction)
{
$this->singleUseTransaction = $singleUseTransaction;
}
public function getSingleUseTransaction()
{
return $this->singleUseTransaction;
}
public function setTransactionId($transactionId)
{
$this->transactionId = $transactionId;
}
public function getTransactionId()
{
return $this->transactionId;
}
}

View File

@@ -0,0 +1,30 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_CommitResponse extends Google_Model
{
public $commitTimestamp;
public function setCommitTimestamp($commitTimestamp)
{
$this->commitTimestamp = $commitTimestamp;
}
public function getCommitTimestamp()
{
return $this->commitTimestamp;
}
}

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_Condition extends Google_Collection
{
protected $collection_key = 'values';
public $iam;
public $op;
public $svc;
public $sys;
public $value;
public $values;
public function setIam($iam)
{
$this->iam = $iam;
}
public function getIam()
{
return $this->iam;
}
public function setOp($op)
{
$this->op = $op;
}
public function getOp()
{
return $this->op;
}
public function setSvc($svc)
{
$this->svc = $svc;
}
public function getSvc()
{
return $this->svc;
}
public function setSys($sys)
{
$this->sys = $sys;
}
public function getSys()
{
return $this->sys;
}
public function setValue($value)
{
$this->value = $value;
}
public function getValue()
{
return $this->value;
}
public function setValues($values)
{
$this->values = $values;
}
public function getValues()
{
return $this->values;
}
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_CounterOptions extends Google_Model
{
public $field;
public $metric;
public function setField($field)
{
$this->field = $field;
}
public function getField()
{
return $this->field;
}
public function setMetric($metric)
{
$this->metric = $metric;
}
public function getMetric()
{
return $this->metric;
}
}

View File

@@ -0,0 +1,30 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_CreateDatabaseMetadata extends Google_Model
{
public $database;
public function setDatabase($database)
{
$this->database = $database;
}
public function getDatabase()
{
return $this->database;
}
}

View File

@@ -0,0 +1,40 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_CreateDatabaseRequest extends Google_Collection
{
protected $collection_key = 'extraStatements';
public $createStatement;
public $extraStatements;
public function setCreateStatement($createStatement)
{
$this->createStatement = $createStatement;
}
public function getCreateStatement()
{
return $this->createStatement;
}
public function setExtraStatements($extraStatements)
{
$this->extraStatements = $extraStatements;
}
public function getExtraStatements()
{
return $this->extraStatements;
}
}

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_CreateInstanceMetadata extends Google_Model
{
public $cancelTime;
public $endTime;
protected $instanceType = 'Google_Service_Spanner_Instance';
protected $instanceDataType = '';
public $startTime;
public function setCancelTime($cancelTime)
{
$this->cancelTime = $cancelTime;
}
public function getCancelTime()
{
return $this->cancelTime;
}
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
public function getEndTime()
{
return $this->endTime;
}
public function setInstance(Google_Service_Spanner_Instance $instance)
{
$this->instance = $instance;
}
public function getInstance()
{
return $this->instance;
}
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
public function getStartTime()
{
return $this->startTime;
}
}

View File

@@ -0,0 +1,40 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_CreateInstanceRequest extends Google_Model
{
protected $instanceType = 'Google_Service_Spanner_Instance';
protected $instanceDataType = '';
public $instanceId;
public function setInstance(Google_Service_Spanner_Instance $instance)
{
$this->instance = $instance;
}
public function getInstance()
{
return $this->instance;
}
public function setInstanceId($instanceId)
{
$this->instanceId = $instanceId;
}
public function getInstanceId()
{
return $this->instanceId;
}
}

View File

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

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_Database extends Google_Model
{
public $name;
public $state;
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setState($state)
{
$this->state = $state;
}
public function getState()
{
return $this->state;
}
}

View File

@@ -0,0 +1,40 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_Delete extends Google_Model
{
protected $keySetType = 'Google_Service_Spanner_KeySet';
protected $keySetDataType = '';
public $table;
public function setKeySet(Google_Service_Spanner_KeySet $keySet)
{
$this->keySet = $keySet;
}
public function getKeySet()
{
return $this->keySet;
}
public function setTable($table)
{
$this->table = $table;
}
public function getTable()
{
return $this->table;
}
}

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_ExecuteSqlRequest extends Google_Model
{
protected $paramTypesType = 'Google_Service_Spanner_Type';
protected $paramTypesDataType = 'map';
public $params;
public $queryMode;
public $resumeToken;
public $sql;
protected $transactionType = 'Google_Service_Spanner_TransactionSelector';
protected $transactionDataType = '';
public function setParamTypes($paramTypes)
{
$this->paramTypes = $paramTypes;
}
public function getParamTypes()
{
return $this->paramTypes;
}
public function setParams($params)
{
$this->params = $params;
}
public function getParams()
{
return $this->params;
}
public function setQueryMode($queryMode)
{
$this->queryMode = $queryMode;
}
public function getQueryMode()
{
return $this->queryMode;
}
public function setResumeToken($resumeToken)
{
$this->resumeToken = $resumeToken;
}
public function getResumeToken()
{
return $this->resumeToken;
}
public function setSql($sql)
{
$this->sql = $sql;
}
public function getSql()
{
return $this->sql;
}
public function setTransaction(Google_Service_Spanner_TransactionSelector $transaction)
{
$this->transaction = $transaction;
}
public function getTransaction()
{
return $this->transaction;
}
}

View File

@@ -0,0 +1,40 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_Field extends Google_Model
{
public $name;
protected $typeType = 'Google_Service_Spanner_Type';
protected $typeDataType = '';
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setType(Google_Service_Spanner_Type $type)
{
$this->type = $type;
}
public function getType()
{
return $this->type;
}
}

View File

@@ -0,0 +1,31 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_GetDatabaseDdlResponse extends Google_Collection
{
protected $collection_key = 'statements';
public $statements;
public function setStatements($statements)
{
$this->statements = $statements;
}
public function getStatements()
{
return $this->statements;
}
}

View File

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

View File

@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_Instance extends Google_Model
{
public $config;
public $displayName;
public $labels;
public $name;
public $nodeCount;
public $state;
public function setConfig($config)
{
$this->config = $config;
}
public function getConfig()
{
return $this->config;
}
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
public function getDisplayName()
{
return $this->displayName;
}
public function setLabels($labels)
{
$this->labels = $labels;
}
public function getLabels()
{
return $this->labels;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setNodeCount($nodeCount)
{
$this->nodeCount = $nodeCount;
}
public function getNodeCount()
{
return $this->nodeCount;
}
public function setState($state)
{
$this->state = $state;
}
public function getState()
{
return $this->state;
}
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_InstanceConfig extends Google_Model
{
public $displayName;
public $name;
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
public function getDisplayName()
{
return $this->displayName;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
}

View File

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

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_KeySet extends Google_Collection
{
protected $collection_key = 'ranges';
public $all;
public $keys;
protected $rangesType = 'Google_Service_Spanner_KeyRange';
protected $rangesDataType = 'array';
public function setAll($all)
{
$this->all = $all;
}
public function getAll()
{
return $this->all;
}
public function setKeys($keys)
{
$this->keys = $keys;
}
public function getKeys()
{
return $this->keys;
}
public function setRanges($ranges)
{
$this->ranges = $ranges;
}
public function getRanges()
{
return $this->ranges;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_ListDatabasesResponse extends Google_Collection
{
protected $collection_key = 'databases';
protected $databasesType = 'Google_Service_Spanner_Database';
protected $databasesDataType = 'array';
public $nextPageToken;
public function setDatabases($databases)
{
$this->databases = $databases;
}
public function getDatabases()
{
return $this->databases;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_ListInstanceConfigsResponse extends Google_Collection
{
protected $collection_key = 'instanceConfigs';
protected $instanceConfigsType = 'Google_Service_Spanner_InstanceConfig';
protected $instanceConfigsDataType = 'array';
public $nextPageToken;
public function setInstanceConfigs($instanceConfigs)
{
$this->instanceConfigs = $instanceConfigs;
}
public function getInstanceConfigs()
{
return $this->instanceConfigs;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_ListInstancesResponse extends Google_Collection
{
protected $collection_key = 'instances';
protected $instancesType = 'Google_Service_Spanner_Instance';
protected $instancesDataType = 'array';
public $nextPageToken;
public function setInstances($instances)
{
$this->instances = $instances;
}
public function getInstances()
{
return $this->instances;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_ListOperationsResponse extends Google_Collection
{
protected $collection_key = 'operations';
public $nextPageToken;
protected $operationsType = 'Google_Service_Spanner_Operation';
protected $operationsDataType = 'array';
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
public function setOperations($operations)
{
$this->operations = $operations;
}
public function getOperations()
{
return $this->operations;
}
}

View File

@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_LogConfig extends Google_Model
{
protected $cloudAuditType = 'Google_Service_Spanner_CloudAuditOptions';
protected $cloudAuditDataType = '';
protected $counterType = 'Google_Service_Spanner_CounterOptions';
protected $counterDataType = '';
protected $dataAccessType = 'Google_Service_Spanner_DataAccessOptions';
protected $dataAccessDataType = '';
public function setCloudAudit(Google_Service_Spanner_CloudAuditOptions $cloudAudit)
{
$this->cloudAudit = $cloudAudit;
}
public function getCloudAudit()
{
return $this->cloudAudit;
}
public function setCounter(Google_Service_Spanner_CounterOptions $counter)
{
$this->counter = $counter;
}
public function getCounter()
{
return $this->counter;
}
public function setDataAccess(Google_Service_Spanner_DataAccessOptions $dataAccess)
{
$this->dataAccess = $dataAccess;
}
public function getDataAccess()
{
return $this->dataAccess;
}
}

View File

@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_Mutation extends Google_Model
{
protected $deleteType = 'Google_Service_Spanner_Delete';
protected $deleteDataType = '';
protected $insertType = 'Google_Service_Spanner_Write';
protected $insertDataType = '';
protected $insertOrUpdateType = 'Google_Service_Spanner_Write';
protected $insertOrUpdateDataType = '';
protected $replaceType = 'Google_Service_Spanner_Write';
protected $replaceDataType = '';
protected $updateType = 'Google_Service_Spanner_Write';
protected $updateDataType = '';
public function setDelete(Google_Service_Spanner_Delete $delete)
{
$this->delete = $delete;
}
public function getDelete()
{
return $this->delete;
}
public function setInsert(Google_Service_Spanner_Write $insert)
{
$this->insert = $insert;
}
public function getInsert()
{
return $this->insert;
}
public function setInsertOrUpdate(Google_Service_Spanner_Write $insertOrUpdate)
{
$this->insertOrUpdate = $insertOrUpdate;
}
public function getInsertOrUpdate()
{
return $this->insertOrUpdate;
}
public function setReplace(Google_Service_Spanner_Write $replace)
{
$this->replace = $replace;
}
public function getReplace()
{
return $this->replace;
}
public function setUpdate(Google_Service_Spanner_Write $update)
{
$this->update = $update;
}
public function getUpdate()
{
return $this->update;
}
}

View File

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

View File

@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_PartialResultSet extends Google_Collection
{
protected $collection_key = 'values';
public $chunkedValue;
protected $metadataType = 'Google_Service_Spanner_ResultSetMetadata';
protected $metadataDataType = '';
public $resumeToken;
protected $statsType = 'Google_Service_Spanner_ResultSetStats';
protected $statsDataType = '';
public $values;
public function setChunkedValue($chunkedValue)
{
$this->chunkedValue = $chunkedValue;
}
public function getChunkedValue()
{
return $this->chunkedValue;
}
public function setMetadata(Google_Service_Spanner_ResultSetMetadata $metadata)
{
$this->metadata = $metadata;
}
public function getMetadata()
{
return $this->metadata;
}
public function setResumeToken($resumeToken)
{
$this->resumeToken = $resumeToken;
}
public function getResumeToken()
{
return $this->resumeToken;
}
public function setStats(Google_Service_Spanner_ResultSetStats $stats)
{
$this->stats = $stats;
}
public function getStats()
{
return $this->stats;
}
public function setValues($values)
{
$this->values = $values;
}
public function getValues()
{
return $this->values;
}
}

View File

@@ -0,0 +1,87 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_PlanNode extends Google_Collection
{
protected $collection_key = 'childLinks';
protected $childLinksType = 'Google_Service_Spanner_ChildLink';
protected $childLinksDataType = 'array';
public $displayName;
public $executionStats;
public $index;
public $kind;
public $metadata;
protected $shortRepresentationType = 'Google_Service_Spanner_ShortRepresentation';
protected $shortRepresentationDataType = '';
public function setChildLinks($childLinks)
{
$this->childLinks = $childLinks;
}
public function getChildLinks()
{
return $this->childLinks;
}
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
public function getDisplayName()
{
return $this->displayName;
}
public function setExecutionStats($executionStats)
{
$this->executionStats = $executionStats;
}
public function getExecutionStats()
{
return $this->executionStats;
}
public function setIndex($index)
{
$this->index = $index;
}
public function getIndex()
{
return $this->index;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
public function getMetadata()
{
return $this->metadata;
}
public function setShortRepresentation(Google_Service_Spanner_ShortRepresentation $shortRepresentation)
{
$this->shortRepresentation = $shortRepresentation;
}
public function getShortRepresentation()
{
return $this->shortRepresentation;
}
}

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_Policy extends Google_Collection
{
protected $collection_key = 'rules';
protected $auditConfigsType = 'Google_Service_Spanner_AuditConfig';
protected $auditConfigsDataType = 'array';
protected $bindingsType = 'Google_Service_Spanner_Binding';
protected $bindingsDataType = 'array';
public $etag;
public $iamOwned;
protected $rulesType = 'Google_Service_Spanner_Rule';
protected $rulesDataType = 'array';
public $version;
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
public function getAuditConfigs()
{
return $this->auditConfigs;
}
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
public function getBindings()
{
return $this->bindings;
}
public function setEtag($etag)
{
$this->etag = $etag;
}
public function getEtag()
{
return $this->etag;
}
public function setIamOwned($iamOwned)
{
$this->iamOwned = $iamOwned;
}
public function getIamOwned()
{
return $this->iamOwned;
}
public function setRules($rules)
{
$this->rules = $rules;
}
public function getRules()
{
return $this->rules;
}
public function setVersion($version)
{
$this->version = $version;
}
public function getVersion()
{
return $this->version;
}
}

View File

@@ -0,0 +1,32 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_QueryPlan extends Google_Collection
{
protected $collection_key = 'planNodes';
protected $planNodesType = 'Google_Service_Spanner_PlanNode';
protected $planNodesDataType = 'array';
public function setPlanNodes($planNodes)
{
$this->planNodes = $planNodes;
}
public function getPlanNodes()
{
return $this->planNodes;
}
}

View File

@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_ReadOnly extends Google_Model
{
public $exactStaleness;
public $maxStaleness;
public $minReadTimestamp;
public $readTimestamp;
public $returnReadTimestamp;
public $strong;
public function setExactStaleness($exactStaleness)
{
$this->exactStaleness = $exactStaleness;
}
public function getExactStaleness()
{
return $this->exactStaleness;
}
public function setMaxStaleness($maxStaleness)
{
$this->maxStaleness = $maxStaleness;
}
public function getMaxStaleness()
{
return $this->maxStaleness;
}
public function setMinReadTimestamp($minReadTimestamp)
{
$this->minReadTimestamp = $minReadTimestamp;
}
public function getMinReadTimestamp()
{
return $this->minReadTimestamp;
}
public function setReadTimestamp($readTimestamp)
{
$this->readTimestamp = $readTimestamp;
}
public function getReadTimestamp()
{
return $this->readTimestamp;
}
public function setReturnReadTimestamp($returnReadTimestamp)
{
$this->returnReadTimestamp = $returnReadTimestamp;
}
public function getReturnReadTimestamp()
{
return $this->returnReadTimestamp;
}
public function setStrong($strong)
{
$this->strong = $strong;
}
public function getStrong()
{
return $this->strong;
}
}

View File

@@ -0,0 +1,87 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_ReadRequest extends Google_Collection
{
protected $collection_key = 'columns';
public $columns;
public $index;
protected $keySetType = 'Google_Service_Spanner_KeySet';
protected $keySetDataType = '';
public $limit;
public $resumeToken;
public $table;
protected $transactionType = 'Google_Service_Spanner_TransactionSelector';
protected $transactionDataType = '';
public function setColumns($columns)
{
$this->columns = $columns;
}
public function getColumns()
{
return $this->columns;
}
public function setIndex($index)
{
$this->index = $index;
}
public function getIndex()
{
return $this->index;
}
public function setKeySet(Google_Service_Spanner_KeySet $keySet)
{
$this->keySet = $keySet;
}
public function getKeySet()
{
return $this->keySet;
}
public function setLimit($limit)
{
$this->limit = $limit;
}
public function getLimit()
{
return $this->limit;
}
public function setResumeToken($resumeToken)
{
$this->resumeToken = $resumeToken;
}
public function getResumeToken()
{
return $this->resumeToken;
}
public function setTable($table)
{
$this->table = $table;
}
public function getTable()
{
return $this->table;
}
public function setTransaction(Google_Service_Spanner_TransactionSelector $transaction)
{
$this->transaction = $transaction;
}
public function getTransaction()
{
return $this->transaction;
}
}

View File

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

View File

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

View File

@@ -0,0 +1,65 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "instanceConfigs" collection of methods.
* Typical usage is:
* <code>
* $spannerService = new Google_Service_Spanner(...);
* $instanceConfigs = $spannerService->instanceConfigs;
* </code>
*/
class Google_Service_Spanner_Resource_ProjectsInstanceConfigs extends Google_Service_Resource
{
/**
* Gets information about a particular instance configuration.
* (instanceConfigs.get)
*
* @param string $name Required. The name of the requested instance
* configuration. Values are of the form `projects//instanceConfigs/`.
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_InstanceConfig
*/
public function get($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Spanner_InstanceConfig");
}
/**
* Lists the supported instance configurations for a given project.
* (instanceConfigs.listProjectsInstanceConfigs)
*
* @param string $parent Required. The name of the project for which a list of
* supported instance configurations is requested. Values are of the form
* `projects/`.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken If non-empty, `page_token` should contain a
* next_page_token from a previous ListInstanceConfigsResponse.
* @opt_param int pageSize Number of instance configurations to be returned in
* the response. If 0 or less, defaults to the server's maximum allowed page
* size.
* @return Google_Service_Spanner_ListInstanceConfigsResponse
*/
public function listProjectsInstanceConfigs($parent, $optParams = array())
{
$params = array('parent' => $parent);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Spanner_ListInstanceConfigsResponse");
}
}

View File

@@ -0,0 +1,253 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "instances" collection of methods.
* Typical usage is:
* <code>
* $spannerService = new Google_Service_Spanner(...);
* $instances = $spannerService->instances;
* </code>
*/
class Google_Service_Spanner_Resource_ProjectsInstances extends Google_Service_Resource
{
/**
* Creates an instance and begins preparing it to begin serving. The returned
* long-running operation can be used to track the progress of preparing the new
* instance. The instance name is assigned by the caller. If the named instance
* already exists, `CreateInstance` returns `ALREADY_EXISTS`.
*
* Immediately upon completion of this request:
*
* * The instance is readable via the API, with all requested attributes
* but no allocated resources. Its state is `CREATING`.
*
* Until completion of the returned operation:
*
* * Cancelling the operation renders the instance immediately unreadable
* via the API. * The instance can be deleted. * All other attempts to
* modify the instance are rejected.
*
* Upon completion of the returned operation:
*
* * Billing for all successfully-allocated resources begins (some types
* may have lower than the requested levels). * Databases can be created in
* the instance. * The instance's allocated resource levels are readable via
* the API. * The instance's state becomes `READY`.
*
* The returned long-running operation will have a name of the format
* `/operations/` and can be used to track creation of the instance. The
* metadata field type is CreateInstanceMetadata. The response field type is
* Instance, if successful. (instances.create)
*
* @param string $parent Required. The name of the project in which to create
* the instance. Values are of the form `projects/`.
* @param Google_Service_Spanner_CreateInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_Operation
*/
public function create($parent, Google_Service_Spanner_CreateInstanceRequest $postBody, $optParams = array())
{
$params = array('parent' => $parent, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Spanner_Operation");
}
/**
* Deletes an instance.
*
* Immediately upon completion of the request:
*
* * Billing ceases for all of the instance's reserved resources.
*
* Soon afterward:
*
* * The instance and *all of its databases* immediately and irrevocably
* disappear from the API. All data in the databases is permanently deleted.
* (instances.delete)
*
* @param string $name Required. The name of the instance to be deleted. Values
* are of the form `projects//instances/`
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_SpannerEmpty
*/
public function delete($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Spanner_SpannerEmpty");
}
/**
* Gets information about a particular instance. (instances.get)
*
* @param string $name Required. The name of the requested instance. Values are
* of the form `projects//instances/`.
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_Instance
*/
public function get($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Spanner_Instance");
}
/**
* Gets the access control policy for an instance resource. Returns an empty
* policy if an instance exists but does not have a policy set.
*
* Authorization requires `spanner.instances.getIamPolicy` on resource.
* (instances.getIamPolicy)
*
* @param string $resource REQUIRED: The Cloud Spanner resource for which the
* policy is being retrieved. The format is `projects//instances/` for instance
* resources and `projects//instances//databases/` for database resources.
* @param Google_Service_Spanner_GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_Policy
*/
public function getIamPolicy($resource, Google_Service_Spanner_GetIamPolicyRequest $postBody, $optParams = array())
{
$params = array('resource' => $resource, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', array($params), "Google_Service_Spanner_Policy");
}
/**
* Lists all instances in the given project. (instances.listProjectsInstances)
*
* @param string $parent Required. The name of the project for which a list of
* instances is requested. Values are of the form `projects/`.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken If non-empty, `page_token` should contain a
* next_page_token from a previous ListInstancesResponse.
* @opt_param int pageSize Number of instances to be returned in the response.
* If 0 or less, defaults to the server's maximum allowed page size.
* @opt_param string filter An expression for filtering the results of the
* request. Filter rules are case insensitive. The fields eligible for filtering
* are:
*
* * name * display_name * labels.key where key is the name of a label
*
* Some examples of using filters are:
*
* * name:* --> The instance has a name. * name:Howl --> The instance's name
* contains the string "howl". * name:HOWL --> Equivalent to above. *
* NAME:howl --> Equivalent to above. * labels.env:* --> The instance has the
* label "env". * labels.env:dev --> The instance has the label "env" and the
* value of the label contains the string "dev". *
* name:howl labels.env:dev --> The instance's name contains "howl" and
* it has the label "env" with its value
* containing "dev".
* @return Google_Service_Spanner_ListInstancesResponse
*/
public function listProjectsInstances($parent, $optParams = array())
{
$params = array('parent' => $parent);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Spanner_ListInstancesResponse");
}
/**
* Updates an instance, and begins allocating or releasing resources as
* requested. The returned long-running operation can be used to track the
* progress of updating the instance. If the named instance does not exist,
* returns `NOT_FOUND`.
*
* Immediately upon completion of this request:
*
* * For resource types for which a decrease in the instance's allocation
* has been requested, billing is based on the newly-requested level.
*
* Until completion of the returned operation:
*
* * Cancelling the operation sets its metadata's cancel_time, and begins
* restoring resources to their pre-request values. The operation is
* guaranteed to succeed at undoing all resource changes, after which point
* it terminates with a `CANCELLED` status. * All other attempts to modify the
* instance are rejected. * Reading the instance via the API continues to give
* the pre-request resource levels.
*
* Upon completion of the returned operation:
*
* * Billing begins for all successfully-allocated resources (some types
* may have lower than the requested levels). * All newly-reserved resources
* are available for serving the instance's tables. * The instance's new
* resource levels are readable via the API.
*
* The returned long-running operation will have a name of the format
* `/operations/` and can be used to track the instance modification. The
* metadata field type is UpdateInstanceMetadata. The response field type is
* Instance, if successful.
*
* Authorization requires `spanner.instances.update` permission on resource
* name. (instances.patch)
*
* @param string $name Required. A unique identifier for the instance, which
* cannot be changed after the instance is created. Values are of the form
* `projects//instances/a-z*[a-z0-9]`. The final segment of the name must be
* between 6 and 30 characters in length.
* @param Google_Service_Spanner_UpdateInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_Operation
*/
public function patch($name, Google_Service_Spanner_UpdateInstanceRequest $postBody, $optParams = array())
{
$params = array('name' => $name, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_Spanner_Operation");
}
/**
* Sets the access control policy on an instance resource. Replaces any existing
* policy.
*
* Authorization requires `spanner.instances.setIamPolicy` on resource.
* (instances.setIamPolicy)
*
* @param string $resource REQUIRED: The Cloud Spanner resource for which the
* policy is being set. The format is `projects//instances/` for instance
* resources and `projects//instances//databases/` for databases resources.
* @param Google_Service_Spanner_SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_Policy
*/
public function setIamPolicy($resource, Google_Service_Spanner_SetIamPolicyRequest $postBody, $optParams = array())
{
$params = array('resource' => $resource, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', array($params), "Google_Service_Spanner_Policy");
}
/**
* Returns permissions that the caller has on the specified instance resource.
*
* Attempting this RPC on a non-existent Cloud Spanner instance resource will
* result in a NOT_FOUND error if the user has `spanner.instances.list`
* permission on the containing Google Cloud Project. Otherwise returns an empty
* set of permissions. (instances.testIamPermissions)
*
* @param string $resource REQUIRED: The Cloud Spanner resource for which
* permissions are being tested. The format is `projects//instances/` for
* instance resources and `projects//instances//databases/` for database
* resources.
* @param Google_Service_Spanner_TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_TestIamPermissionsResponse
*/
public function testIamPermissions($resource, Google_Service_Spanner_TestIamPermissionsRequest $postBody, $optParams = array())
{
$params = array('resource' => $resource, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', array($params), "Google_Service_Spanner_TestIamPermissionsResponse");
}
}

View File

@@ -0,0 +1,188 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "databases" collection of methods.
* Typical usage is:
* <code>
* $spannerService = new Google_Service_Spanner(...);
* $databases = $spannerService->databases;
* </code>
*/
class Google_Service_Spanner_Resource_ProjectsInstancesDatabases extends Google_Service_Resource
{
/**
* Creates a new Cloud Spanner database and starts to prepare it for serving.
* The returned long-running operation will have a name of the format
* `/operations/` and can be used to track preparation of the database. The
* metadata field type is CreateDatabaseMetadata. The response field type is
* Database, if successful. (databases.create)
*
* @param string $parent Required. The name of the instance that will serve the
* new database. Values are of the form `projects//instances/`.
* @param Google_Service_Spanner_CreateDatabaseRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_Operation
*/
public function create($parent, Google_Service_Spanner_CreateDatabaseRequest $postBody, $optParams = array())
{
$params = array('parent' => $parent, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Spanner_Operation");
}
/**
* Drops (aka deletes) a Cloud Spanner database. (databases.dropDatabase)
*
* @param string $database Required. The database to be dropped.
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_SpannerEmpty
*/
public function dropDatabase($database, $optParams = array())
{
$params = array('database' => $database);
$params = array_merge($params, $optParams);
return $this->call('dropDatabase', array($params), "Google_Service_Spanner_SpannerEmpty");
}
/**
* Gets the state of a Cloud Spanner database. (databases.get)
*
* @param string $name Required. The name of the requested database. Values are
* of the form `projects//instances//databases/`.
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_Database
*/
public function get($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Spanner_Database");
}
/**
* Returns the schema of a Cloud Spanner database as a list of formatted DDL
* statements. This method does not show pending schema updates, those may be
* queried using the Operations API. (databases.getDdl)
*
* @param string $database Required. The database whose schema we wish to get.
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_GetDatabaseDdlResponse
*/
public function getDdl($database, $optParams = array())
{
$params = array('database' => $database);
$params = array_merge($params, $optParams);
return $this->call('getDdl', array($params), "Google_Service_Spanner_GetDatabaseDdlResponse");
}
/**
* Gets the access control policy for a database resource. Returns an empty
* policy if a database exists but does not have a policy set.
*
* Authorization requires `spanner.databases.getIamPolicy` permission on
* resource. (databases.getIamPolicy)
*
* @param string $resource REQUIRED: The Cloud Spanner resource for which the
* policy is being retrieved. The format is `projects//instances/` for instance
* resources and `projects//instances//databases/` for database resources.
* @param Google_Service_Spanner_GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_Policy
*/
public function getIamPolicy($resource, Google_Service_Spanner_GetIamPolicyRequest $postBody, $optParams = array())
{
$params = array('resource' => $resource, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', array($params), "Google_Service_Spanner_Policy");
}
/**
* Lists Cloud Spanner databases. (databases.listProjectsInstancesDatabases)
*
* @param string $parent Required. The instance whose databases should be
* listed. Values are of the form `projects//instances/`.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken If non-empty, `page_token` should contain a
* next_page_token from a previous ListDatabasesResponse.
* @opt_param int pageSize Number of databases to be returned in the response.
* If 0 or less, defaults to the server's maximum allowed page size.
* @return Google_Service_Spanner_ListDatabasesResponse
*/
public function listProjectsInstancesDatabases($parent, $optParams = array())
{
$params = array('parent' => $parent);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Spanner_ListDatabasesResponse");
}
/**
* Sets the access control policy on a database resource. Replaces any existing
* policy.
*
* Authorization requires `spanner.databases.setIamPolicy` permission on
* resource. (databases.setIamPolicy)
*
* @param string $resource REQUIRED: The Cloud Spanner resource for which the
* policy is being set. The format is `projects//instances/` for instance
* resources and `projects//instances//databases/` for databases resources.
* @param Google_Service_Spanner_SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_Policy
*/
public function setIamPolicy($resource, Google_Service_Spanner_SetIamPolicyRequest $postBody, $optParams = array())
{
$params = array('resource' => $resource, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', array($params), "Google_Service_Spanner_Policy");
}
/**
* Returns permissions that the caller has on the specified database resource.
*
* Attempting this RPC on a non-existent Cloud Spanner database will result in a
* NOT_FOUND error if the user has `spanner.databases.list` permission on the
* containing Cloud Spanner instance. Otherwise returns an empty set of
* permissions. (databases.testIamPermissions)
*
* @param string $resource REQUIRED: The Cloud Spanner resource for which
* permissions are being tested. The format is `projects//instances/` for
* instance resources and `projects//instances//databases/` for database
* resources.
* @param Google_Service_Spanner_TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_TestIamPermissionsResponse
*/
public function testIamPermissions($resource, Google_Service_Spanner_TestIamPermissionsRequest $postBody, $optParams = array())
{
$params = array('resource' => $resource, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', array($params), "Google_Service_Spanner_TestIamPermissionsResponse");
}
/**
* Updates the schema of a Cloud Spanner database by creating/altering/dropping
* tables, columns, indexes, etc. The returned long-running operation will have
* a name of the format `/operations/` and can be used to track execution of the
* schema change(s). The metadata field type is UpdateDatabaseDdlMetadata. The
* operation has no response. (databases.updateDdl)
*
* @param string $database Required. The database to update.
* @param Google_Service_Spanner_UpdateDatabaseDdlRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_Operation
*/
public function updateDdl($database, Google_Service_Spanner_UpdateDatabaseDdlRequest $postBody, $optParams = array())
{
$params = array('database' => $database, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('updateDdl', array($params), "Google_Service_Spanner_Operation");
}
}

View File

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

View File

@@ -0,0 +1,231 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "sessions" collection of methods.
* Typical usage is:
* <code>
* $spannerService = new Google_Service_Spanner(...);
* $sessions = $spannerService->sessions;
* </code>
*/
class Google_Service_Spanner_Resource_ProjectsInstancesDatabasesSessions extends Google_Service_Resource
{
/**
* Begins a new transaction. This step can often be skipped: Read, ExecuteSql
* and Commit can begin a new transaction as a side-effect.
* (sessions.beginTransaction)
*
* @param string $session Required. The session in which the transaction runs.
* @param Google_Service_Spanner_BeginTransactionRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_Transaction
*/
public function beginTransaction($session, Google_Service_Spanner_BeginTransactionRequest $postBody, $optParams = array())
{
$params = array('session' => $session, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('beginTransaction', array($params), "Google_Service_Spanner_Transaction");
}
/**
* Commits a transaction. The request includes the mutations to be applied to
* rows in the database.
*
* `Commit` might return an `ABORTED` error. This can occur at any time;
* commonly, the cause is conflicts with concurrent transactions. However, it
* can also happen for a variety of other reasons. If `Commit` returns
* `ABORTED`, the caller should re-attempt the transaction from the beginning,
* re-using the same session. (sessions.commit)
*
* @param string $session Required. The session in which the transaction to be
* committed is running.
* @param Google_Service_Spanner_CommitRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_CommitResponse
*/
public function commit($session, Google_Service_Spanner_CommitRequest $postBody, $optParams = array())
{
$params = array('session' => $session, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('commit', array($params), "Google_Service_Spanner_CommitResponse");
}
/**
* Creates a new session. A session can be used to perform transactions that
* read and/or modify data in a Cloud Spanner database. Sessions are meant to be
* reused for many consecutive transactions.
*
* Sessions can only execute one transaction at a time. To execute multiple
* concurrent read-write/write-only transactions, create multiple sessions. Note
* that standalone reads and queries use a transaction internally, and count
* toward the one transaction limit.
*
* Cloud Spanner limits the number of sessions that can exist at any given time;
* thus, it is a good idea to delete idle and/or unneeded sessions. Aside from
* explicit deletes, Cloud Spanner can delete sessions for which no operations
* are sent for more than an hour, or due to internal errors. If a session is
* deleted, requests to it return `NOT_FOUND`.
*
* Idle sessions can be kept alive by sending a trivial SQL query periodically,
* e.g., `"SELECT 1"`. (sessions.create)
*
* @param string $database Required. The database in which the new session is
* created.
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_Session
*/
public function create($database, $optParams = array())
{
$params = array('database' => $database);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Spanner_Session");
}
/**
* Ends a session, releasing server resources associated with it.
* (sessions.delete)
*
* @param string $name Required. The name of the session to delete.
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_SpannerEmpty
*/
public function delete($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Spanner_SpannerEmpty");
}
/**
* Executes an SQL query, returning all rows in a single reply. This method
* cannot be used to return a result set larger than 10 MiB; if the query yields
* more data than that, the query fails with a `FAILED_PRECONDITION` error.
*
* Queries inside read-write transactions might return `ABORTED`. If this
* occurs, the application should restart the transaction from the beginning.
* See Transaction for more details.
*
* Larger result sets can be fetched in streaming fashion by calling
* ExecuteStreamingSql instead. (sessions.executeSql)
*
* @param string $session Required. The session in which the SQL query should be
* performed.
* @param Google_Service_Spanner_ExecuteSqlRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_ResultSet
*/
public function executeSql($session, Google_Service_Spanner_ExecuteSqlRequest $postBody, $optParams = array())
{
$params = array('session' => $session, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('executeSql', array($params), "Google_Service_Spanner_ResultSet");
}
/**
* Like ExecuteSql, except returns the result set as a stream. Unlike
* ExecuteSql, there is no limit on the size of the returned result set.
* However, no individual row in the result set can exceed 100 MiB, and no
* column value can exceed 10 MiB. (sessions.executeStreamingSql)
*
* @param string $session Required. The session in which the SQL query should be
* performed.
* @param Google_Service_Spanner_ExecuteSqlRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_PartialResultSet
*/
public function executeStreamingSql($session, Google_Service_Spanner_ExecuteSqlRequest $postBody, $optParams = array())
{
$params = array('session' => $session, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('executeStreamingSql', array($params), "Google_Service_Spanner_PartialResultSet");
}
/**
* Gets a session. Returns `NOT_FOUND` if the session does not exist. This is
* mainly useful for determining whether a session is still alive.
* (sessions.get)
*
* @param string $name Required. The name of the session to retrieve.
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_Session
*/
public function get($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Spanner_Session");
}
/**
* Reads rows from the database using key lookups and scans, as a simple
* key/value style alternative to ExecuteSql. This method cannot be used to
* return a result set larger than 10 MiB; if the read matches more data than
* that, the read fails with a `FAILED_PRECONDITION` error.
*
* Reads inside read-write transactions might return `ABORTED`. If this occurs,
* the application should restart the transaction from the beginning. See
* Transaction for more details.
*
* Larger result sets can be yielded in streaming fashion by calling
* StreamingRead instead. (sessions.read)
*
* @param string $session Required. The session in which the read should be
* performed.
* @param Google_Service_Spanner_ReadRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_ResultSet
*/
public function read($session, Google_Service_Spanner_ReadRequest $postBody, $optParams = array())
{
$params = array('session' => $session, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('read', array($params), "Google_Service_Spanner_ResultSet");
}
/**
* Rolls back a transaction, releasing any locks it holds. It is a good idea to
* call this for any transaction that includes one or more Read or ExecuteSql
* requests and ultimately decides not to commit.
*
* `Rollback` returns `OK` if it successfully aborts the transaction, the
* transaction was already aborted, or the transaction is not found. `Rollback`
* never returns `ABORTED`. (sessions.rollback)
*
* @param string $session Required. The session in which the transaction to roll
* back is running.
* @param Google_Service_Spanner_RollbackRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_SpannerEmpty
*/
public function rollback($session, Google_Service_Spanner_RollbackRequest $postBody, $optParams = array())
{
$params = array('session' => $session, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('rollback', array($params), "Google_Service_Spanner_SpannerEmpty");
}
/**
* Like Read, except returns the result set as a stream. Unlike Read, there is
* no limit on the size of the returned result set. However, no individual row
* in the result set can exceed 100 MiB, and no column value can exceed 10 MiB.
* (sessions.streamingRead)
*
* @param string $session Required. The session in which the read should be
* performed.
* @param Google_Service_Spanner_ReadRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Spanner_PartialResultSet
*/
public function streamingRead($session, Google_Service_Spanner_ReadRequest $postBody, $optParams = array())
{
$params = array('session' => $session, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('streamingRead', array($params), "Google_Service_Spanner_PartialResultSet");
}
}

View File

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

View File

@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_ResultSet extends Google_Collection
{
protected $collection_key = 'rows';
protected $metadataType = 'Google_Service_Spanner_ResultSetMetadata';
protected $metadataDataType = '';
public $rows;
protected $statsType = 'Google_Service_Spanner_ResultSetStats';
protected $statsDataType = '';
public function setMetadata(Google_Service_Spanner_ResultSetMetadata $metadata)
{
$this->metadata = $metadata;
}
public function getMetadata()
{
return $this->metadata;
}
public function setRows($rows)
{
$this->rows = $rows;
}
public function getRows()
{
return $this->rows;
}
public function setStats(Google_Service_Spanner_ResultSetStats $stats)
{
$this->stats = $stats;
}
public function getStats()
{
return $this->stats;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_ResultSetMetadata extends Google_Model
{
protected $rowTypeType = 'Google_Service_Spanner_StructType';
protected $rowTypeDataType = '';
protected $transactionType = 'Google_Service_Spanner_Transaction';
protected $transactionDataType = '';
public function setRowType(Google_Service_Spanner_StructType $rowType)
{
$this->rowType = $rowType;
}
public function getRowType()
{
return $this->rowType;
}
public function setTransaction(Google_Service_Spanner_Transaction $transaction)
{
$this->transaction = $transaction;
}
public function getTransaction()
{
return $this->transaction;
}
}

View File

@@ -0,0 +1,40 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_ResultSetStats extends Google_Model
{
protected $queryPlanType = 'Google_Service_Spanner_QueryPlan';
protected $queryPlanDataType = '';
public $queryStats;
public function setQueryPlan(Google_Service_Spanner_QueryPlan $queryPlan)
{
$this->queryPlan = $queryPlan;
}
public function getQueryPlan()
{
return $this->queryPlan;
}
public function setQueryStats($queryStats)
{
$this->queryStats = $queryStats;
}
public function getQueryStats()
{
return $this->queryStats;
}
}

View File

@@ -0,0 +1,30 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_RollbackRequest extends Google_Model
{
public $transactionId;
public function setTransactionId($transactionId)
{
$this->transactionId = $transactionId;
}
public function getTransactionId()
{
return $this->transactionId;
}
}

View File

@@ -0,0 +1,87 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_Rule extends Google_Collection
{
protected $collection_key = 'permissions';
public $action;
protected $conditionsType = 'Google_Service_Spanner_Condition';
protected $conditionsDataType = 'array';
public $description;
public $in;
protected $logConfigType = 'Google_Service_Spanner_LogConfig';
protected $logConfigDataType = 'array';
public $notIn;
public $permissions;
public function setAction($action)
{
$this->action = $action;
}
public function getAction()
{
return $this->action;
}
public function setConditions($conditions)
{
$this->conditions = $conditions;
}
public function getConditions()
{
return $this->conditions;
}
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setIn($in)
{
$this->in = $in;
}
public function getIn()
{
return $this->in;
}
public function setLogConfig($logConfig)
{
$this->logConfig = $logConfig;
}
public function getLogConfig()
{
return $this->logConfig;
}
public function setNotIn($notIn)
{
$this->notIn = $notIn;
}
public function getNotIn()
{
return $this->notIn;
}
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
public function getPermissions()
{
return $this->permissions;
}
}

View File

@@ -0,0 +1,30 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_Session extends Google_Model
{
public $name;
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
}

View File

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

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_ShortRepresentation extends Google_Model
{
public $description;
public $subqueries;
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setSubqueries($subqueries)
{
$this->subqueries = $subqueries;
}
public function getSubqueries()
{
return $this->subqueries;
}
}

View File

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

View File

@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_Status extends Google_Collection
{
protected $collection_key = 'details';
public $code;
public $details;
public $message;
public function setCode($code)
{
$this->code = $code;
}
public function getCode()
{
return $this->code;
}
public function setDetails($details)
{
$this->details = $details;
}
public function getDetails()
{
return $this->details;
}
public function setMessage($message)
{
$this->message = $message;
}
public function getMessage()
{
return $this->message;
}
}

View File

@@ -0,0 +1,32 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_StructType extends Google_Collection
{
protected $collection_key = 'fields';
protected $fieldsType = 'Google_Service_Spanner_Field';
protected $fieldsDataType = 'array';
public function setFields($fields)
{
$this->fields = $fields;
}
public function getFields()
{
return $this->fields;
}
}

View File

@@ -0,0 +1,31 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_TestIamPermissionsRequest extends Google_Collection
{
protected $collection_key = 'permissions';
public $permissions;
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
public function getPermissions()
{
return $this->permissions;
}
}

View File

@@ -0,0 +1,31 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_TestIamPermissionsResponse extends Google_Collection
{
protected $collection_key = 'permissions';
public $permissions;
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
public function getPermissions()
{
return $this->permissions;
}
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_Transaction extends Google_Model
{
public $id;
public $readTimestamp;
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setReadTimestamp($readTimestamp)
{
$this->readTimestamp = $readTimestamp;
}
public function getReadTimestamp()
{
return $this->readTimestamp;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_TransactionOptions extends Google_Model
{
protected $readOnlyType = 'Google_Service_Spanner_ReadOnly';
protected $readOnlyDataType = '';
protected $readWriteType = 'Google_Service_Spanner_ReadWrite';
protected $readWriteDataType = '';
public function setReadOnly(Google_Service_Spanner_ReadOnly $readOnly)
{
$this->readOnly = $readOnly;
}
public function getReadOnly()
{
return $this->readOnly;
}
public function setReadWrite(Google_Service_Spanner_ReadWrite $readWrite)
{
$this->readWrite = $readWrite;
}
public function getReadWrite()
{
return $this->readWrite;
}
}

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_TransactionSelector extends Google_Model
{
protected $beginType = 'Google_Service_Spanner_TransactionOptions';
protected $beginDataType = '';
public $id;
protected $singleUseType = 'Google_Service_Spanner_TransactionOptions';
protected $singleUseDataType = '';
public function setBegin(Google_Service_Spanner_TransactionOptions $begin)
{
$this->begin = $begin;
}
public function getBegin()
{
return $this->begin;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setSingleUse(Google_Service_Spanner_TransactionOptions $singleUse)
{
$this->singleUse = $singleUse;
}
public function getSingleUse()
{
return $this->singleUse;
}
}

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_Type extends Google_Model
{
protected $arrayElementTypeType = 'Google_Service_Spanner_Type';
protected $arrayElementTypeDataType = '';
public $code;
protected $structTypeType = 'Google_Service_Spanner_StructType';
protected $structTypeDataType = '';
public function setArrayElementType(Google_Service_Spanner_Type $arrayElementType)
{
$this->arrayElementType = $arrayElementType;
}
public function getArrayElementType()
{
return $this->arrayElementType;
}
public function setCode($code)
{
$this->code = $code;
}
public function getCode()
{
return $this->code;
}
public function setStructType(Google_Service_Spanner_StructType $structType)
{
$this->structType = $structType;
}
public function getStructType()
{
return $this->structType;
}
}

View File

@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_UpdateDatabaseDdlMetadata extends Google_Collection
{
protected $collection_key = 'statements';
public $commitTimestamps;
public $database;
public $statements;
public function setCommitTimestamps($commitTimestamps)
{
$this->commitTimestamps = $commitTimestamps;
}
public function getCommitTimestamps()
{
return $this->commitTimestamps;
}
public function setDatabase($database)
{
$this->database = $database;
}
public function getDatabase()
{
return $this->database;
}
public function setStatements($statements)
{
$this->statements = $statements;
}
public function getStatements()
{
return $this->statements;
}
}

View File

@@ -0,0 +1,40 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_UpdateDatabaseDdlRequest extends Google_Collection
{
protected $collection_key = 'statements';
public $operationId;
public $statements;
public function setOperationId($operationId)
{
$this->operationId = $operationId;
}
public function getOperationId()
{
return $this->operationId;
}
public function setStatements($statements)
{
$this->statements = $statements;
}
public function getStatements()
{
return $this->statements;
}
}

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_UpdateInstanceMetadata extends Google_Model
{
public $cancelTime;
public $endTime;
protected $instanceType = 'Google_Service_Spanner_Instance';
protected $instanceDataType = '';
public $startTime;
public function setCancelTime($cancelTime)
{
$this->cancelTime = $cancelTime;
}
public function getCancelTime()
{
return $this->cancelTime;
}
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
public function getEndTime()
{
return $this->endTime;
}
public function setInstance(Google_Service_Spanner_Instance $instance)
{
$this->instance = $instance;
}
public function getInstance()
{
return $this->instance;
}
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
public function getStartTime()
{
return $this->startTime;
}
}

View File

@@ -0,0 +1,40 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_UpdateInstanceRequest extends Google_Model
{
public $fieldMask;
protected $instanceType = 'Google_Service_Spanner_Instance';
protected $instanceDataType = '';
public function setFieldMask($fieldMask)
{
$this->fieldMask = $fieldMask;
}
public function getFieldMask()
{
return $this->fieldMask;
}
public function setInstance(Google_Service_Spanner_Instance $instance)
{
$this->instance = $instance;
}
public function getInstance()
{
return $this->instance;
}
}

View File

@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Spanner_Write extends Google_Collection
{
protected $collection_key = 'values';
public $columns;
public $table;
public $values;
public function setColumns($columns)
{
$this->columns = $columns;
}
public function getColumns()
{
return $this->columns;
}
public function setTable($table)
{
$this->table = $table;
}
public function getTable()
{
return $this->table;
}
public function setValues($values)
{
$this->values = $values;
}
public function getValues()
{
return $this->values;
}
}