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_Script_ExecutionError extends Google_Collection
{
protected $collection_key = 'scriptStackTraceElements';
public $errorMessage;
public $errorType;
protected $scriptStackTraceElementsType = 'Google_Service_Script_ScriptStackTraceElement';
protected $scriptStackTraceElementsDataType = 'array';
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
public function getErrorMessage()
{
return $this->errorMessage;
}
public function setErrorType($errorType)
{
$this->errorType = $errorType;
}
public function getErrorType()
{
return $this->errorType;
}
public function setScriptStackTraceElements($scriptStackTraceElements)
{
$this->scriptStackTraceElements = $scriptStackTraceElements;
}
public function getScriptStackTraceElements()
{
return $this->scriptStackTraceElements;
}
}

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_Script_ExecutionRequest extends Google_Collection
{
protected $collection_key = 'parameters';
public $devMode;
public $function;
public $parameters;
public $sessionState;
public function setDevMode($devMode)
{
$this->devMode = $devMode;
}
public function getDevMode()
{
return $this->devMode;
}
public function setFunction($function)
{
$this->function = $function;
}
public function getFunction()
{
return $this->function;
}
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
public function getParameters()
{
return $this->parameters;
}
public function setSessionState($sessionState)
{
$this->sessionState = $sessionState;
}
public function getSessionState()
{
return $this->sessionState;
}
}

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_Script_ExecutionResponse extends Google_Model
{
public $result;
public function setResult($result)
{
$this->result = $result;
}
public function getResult()
{
return $this->result;
}
}

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_Script_Operation extends Google_Model
{
public $done;
protected $errorType = 'Google_Service_Script_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_Script_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,52 @@
<?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 "scripts" collection of methods.
* Typical usage is:
* <code>
* $scriptService = new Google_Service_Script(...);
* $scripts = $scriptService->scripts;
* </code>
*/
class Google_Service_Script_Resource_Scripts extends Google_Service_Resource
{
/**
* Runs a function in an Apps Script project. The project must be deployed for
* use with the Apps Script Execution API.
*
* This method requires authorization with an OAuth 2.0 token that includes at
* least one of the scopes listed in the [Authorization](#authorization)
* section; script projects that do not require authorization cannot be executed
* through this API. To find the correct scopes to include in the authentication
* token, open the project in the script editor, then select **File > Project
* properties** and click the **Scopes** tab. (scripts.run)
*
* @param string $scriptId The project key of the script to be executed. To find
* the project key, open the project in the script editor and select **File >
* Project properties**.
* @param Google_Service_Script_ExecutionRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Script_Operation
*/
public function run($scriptId, Google_Service_Script_ExecutionRequest $postBody, $optParams = array())
{
$params = array('scriptId' => $scriptId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('run', array($params), "Google_Service_Script_Operation");
}
}

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_Script_ScriptStackTraceElement extends Google_Model
{
public $function;
public $lineNumber;
public function setFunction($function)
{
$this->function = $function;
}
public function getFunction()
{
return $this->function;
}
public function setLineNumber($lineNumber)
{
$this->lineNumber = $lineNumber;
}
public function getLineNumber()
{
return $this->lineNumber;
}
}

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_Script_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;
}
}