Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class Content extends \Google\Collection
{
protected $collection_key = 'files';
protected $filesType = ScriptFile::class;
protected $filesDataType = 'array';
/**
* @var string
*/
public $scriptId;
/**
* @param ScriptFile[]
*/
public function setFiles($files)
{
$this->files = $files;
}
/**
* @return ScriptFile[]
*/
public function getFiles()
{
return $this->files;
}
/**
* @param string
*/
public function setScriptId($scriptId)
{
$this->scriptId = $scriptId;
}
/**
* @return string
*/
public function getScriptId()
{
return $this->scriptId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Content::class, 'Google_Service_Script_Content');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class CreateProjectRequest extends \Google\Model
{
/**
* @var string
*/
public $parentId;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setParentId($parentId)
{
$this->parentId = $parentId;
}
/**
* @return string
*/
public function getParentId()
{
return $this->parentId;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateProjectRequest::class, 'Google_Service_Script_CreateProjectRequest');
@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class Deployment extends \Google\Collection
{
protected $collection_key = 'entryPoints';
protected $deploymentConfigType = DeploymentConfig::class;
protected $deploymentConfigDataType = '';
/**
* @var string
*/
public $deploymentId;
protected $entryPointsType = EntryPoint::class;
protected $entryPointsDataType = 'array';
/**
* @var string
*/
public $updateTime;
/**
* @param DeploymentConfig
*/
public function setDeploymentConfig(DeploymentConfig $deploymentConfig)
{
$this->deploymentConfig = $deploymentConfig;
}
/**
* @return DeploymentConfig
*/
public function getDeploymentConfig()
{
return $this->deploymentConfig;
}
/**
* @param string
*/
public function setDeploymentId($deploymentId)
{
$this->deploymentId = $deploymentId;
}
/**
* @return string
*/
public function getDeploymentId()
{
return $this->deploymentId;
}
/**
* @param EntryPoint[]
*/
public function setEntryPoints($entryPoints)
{
$this->entryPoints = $entryPoints;
}
/**
* @return EntryPoint[]
*/
public function getEntryPoints()
{
return $this->entryPoints;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Deployment::class, 'Google_Service_Script_Deployment');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class DeploymentConfig extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $manifestFileName;
/**
* @var string
*/
public $scriptId;
/**
* @var int
*/
public $versionNumber;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setManifestFileName($manifestFileName)
{
$this->manifestFileName = $manifestFileName;
}
/**
* @return string
*/
public function getManifestFileName()
{
return $this->manifestFileName;
}
/**
* @param string
*/
public function setScriptId($scriptId)
{
$this->scriptId = $scriptId;
}
/**
* @return string
*/
public function getScriptId()
{
return $this->scriptId;
}
/**
* @param int
*/
public function setVersionNumber($versionNumber)
{
$this->versionNumber = $versionNumber;
}
/**
* @return int
*/
public function getVersionNumber()
{
return $this->versionNumber;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeploymentConfig::class, 'Google_Service_Script_DeploymentConfig');
@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class EntryPoint extends \Google\Model
{
protected $addOnType = GoogleAppsScriptTypeAddOnEntryPoint::class;
protected $addOnDataType = '';
/**
* @var string
*/
public $entryPointType;
protected $executionApiType = GoogleAppsScriptTypeExecutionApiEntryPoint::class;
protected $executionApiDataType = '';
protected $webAppType = GoogleAppsScriptTypeWebAppEntryPoint::class;
protected $webAppDataType = '';
/**
* @param GoogleAppsScriptTypeAddOnEntryPoint
*/
public function setAddOn(GoogleAppsScriptTypeAddOnEntryPoint $addOn)
{
$this->addOn = $addOn;
}
/**
* @return GoogleAppsScriptTypeAddOnEntryPoint
*/
public function getAddOn()
{
return $this->addOn;
}
/**
* @param string
*/
public function setEntryPointType($entryPointType)
{
$this->entryPointType = $entryPointType;
}
/**
* @return string
*/
public function getEntryPointType()
{
return $this->entryPointType;
}
/**
* @param GoogleAppsScriptTypeExecutionApiEntryPoint
*/
public function setExecutionApi(GoogleAppsScriptTypeExecutionApiEntryPoint $executionApi)
{
$this->executionApi = $executionApi;
}
/**
* @return GoogleAppsScriptTypeExecutionApiEntryPoint
*/
public function getExecutionApi()
{
return $this->executionApi;
}
/**
* @param GoogleAppsScriptTypeWebAppEntryPoint
*/
public function setWebApp(GoogleAppsScriptTypeWebAppEntryPoint $webApp)
{
$this->webApp = $webApp;
}
/**
* @return GoogleAppsScriptTypeWebAppEntryPoint
*/
public function getWebApp()
{
return $this->webApp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EntryPoint::class, 'Google_Service_Script_EntryPoint');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class ExecuteStreamResponse extends \Google\Model
{
protected $resultType = ScriptExecutionResult::class;
protected $resultDataType = '';
/**
* @param ScriptExecutionResult
*/
public function setResult(ScriptExecutionResult $result)
{
$this->result = $result;
}
/**
* @return ScriptExecutionResult
*/
public function getResult()
{
return $this->result;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecuteStreamResponse::class, 'Google_Service_Script_ExecuteStreamResponse');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class ExecutionError extends \Google\Collection
{
protected $collection_key = 'scriptStackTraceElements';
/**
* @var string
*/
public $errorMessage;
/**
* @var string
*/
public $errorType;
protected $scriptStackTraceElementsType = ScriptStackTraceElement::class;
protected $scriptStackTraceElementsDataType = 'array';
/**
* @param string
*/
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
/**
* @return string
*/
public function getErrorMessage()
{
return $this->errorMessage;
}
/**
* @param string
*/
public function setErrorType($errorType)
{
$this->errorType = $errorType;
}
/**
* @return string
*/
public function getErrorType()
{
return $this->errorType;
}
/**
* @param ScriptStackTraceElement[]
*/
public function setScriptStackTraceElements($scriptStackTraceElements)
{
$this->scriptStackTraceElements = $scriptStackTraceElements;
}
/**
* @return ScriptStackTraceElement[]
*/
public function getScriptStackTraceElements()
{
return $this->scriptStackTraceElements;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecutionError::class, 'Google_Service_Script_ExecutionError');
@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class ExecutionRequest extends \Google\Collection
{
protected $collection_key = 'parameters';
/**
* @var bool
*/
public $devMode;
/**
* @var string
*/
public $function;
/**
* @var array[]
*/
public $parameters;
/**
* @var string
*/
public $sessionState;
/**
* @param bool
*/
public function setDevMode($devMode)
{
$this->devMode = $devMode;
}
/**
* @return bool
*/
public function getDevMode()
{
return $this->devMode;
}
/**
* @param string
*/
public function setFunction($function)
{
$this->function = $function;
}
/**
* @return string
*/
public function getFunction()
{
return $this->function;
}
/**
* @param array[]
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return array[]
*/
public function getParameters()
{
return $this->parameters;
}
/**
* @param string
*/
public function setSessionState($sessionState)
{
$this->sessionState = $sessionState;
}
/**
* @return string
*/
public function getSessionState()
{
return $this->sessionState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecutionRequest::class, 'Google_Service_Script_ExecutionRequest');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class ExecutionResponse extends \Google\Model
{
/**
* @var array
*/
public $result;
/**
* @param array
*/
public function setResult($result)
{
$this->result = $result;
}
/**
* @return array
*/
public function getResult()
{
return $this->result;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecutionResponse::class, 'Google_Service_Script_ExecutionResponse');
@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class GoogleAppsScriptTypeAddOnEntryPoint extends \Google\Model
{
/**
* @var string
*/
public $addOnType;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $helpUrl;
/**
* @var string
*/
public $postInstallTipUrl;
/**
* @var string
*/
public $reportIssueUrl;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setAddOnType($addOnType)
{
$this->addOnType = $addOnType;
}
/**
* @return string
*/
public function getAddOnType()
{
return $this->addOnType;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setHelpUrl($helpUrl)
{
$this->helpUrl = $helpUrl;
}
/**
* @return string
*/
public function getHelpUrl()
{
return $this->helpUrl;
}
/**
* @param string
*/
public function setPostInstallTipUrl($postInstallTipUrl)
{
$this->postInstallTipUrl = $postInstallTipUrl;
}
/**
* @return string
*/
public function getPostInstallTipUrl()
{
return $this->postInstallTipUrl;
}
/**
* @param string
*/
public function setReportIssueUrl($reportIssueUrl)
{
$this->reportIssueUrl = $reportIssueUrl;
}
/**
* @return string
*/
public function getReportIssueUrl()
{
return $this->reportIssueUrl;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsScriptTypeAddOnEntryPoint::class, 'Google_Service_Script_GoogleAppsScriptTypeAddOnEntryPoint');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class GoogleAppsScriptTypeExecutionApiConfig extends \Google\Model
{
/**
* @var string
*/
public $access;
/**
* @param string
*/
public function setAccess($access)
{
$this->access = $access;
}
/**
* @return string
*/
public function getAccess()
{
return $this->access;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsScriptTypeExecutionApiConfig::class, 'Google_Service_Script_GoogleAppsScriptTypeExecutionApiConfig');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class GoogleAppsScriptTypeExecutionApiEntryPoint extends \Google\Model
{
protected $entryPointConfigType = GoogleAppsScriptTypeExecutionApiConfig::class;
protected $entryPointConfigDataType = '';
/**
* @param GoogleAppsScriptTypeExecutionApiConfig
*/
public function setEntryPointConfig(GoogleAppsScriptTypeExecutionApiConfig $entryPointConfig)
{
$this->entryPointConfig = $entryPointConfig;
}
/**
* @return GoogleAppsScriptTypeExecutionApiConfig
*/
public function getEntryPointConfig()
{
return $this->entryPointConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsScriptTypeExecutionApiEntryPoint::class, 'Google_Service_Script_GoogleAppsScriptTypeExecutionApiEntryPoint');
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class GoogleAppsScriptTypeFunction extends \Google\Collection
{
protected $collection_key = 'parameters';
/**
* @var string
*/
public $name;
/**
* @var string[]
*/
public $parameters;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string[]
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return string[]
*/
public function getParameters()
{
return $this->parameters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsScriptTypeFunction::class, 'Google_Service_Script_GoogleAppsScriptTypeFunction');
@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class GoogleAppsScriptTypeFunctionSet extends \Google\Collection
{
protected $collection_key = 'values';
protected $valuesType = GoogleAppsScriptTypeFunction::class;
protected $valuesDataType = 'array';
/**
* @param GoogleAppsScriptTypeFunction[]
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return GoogleAppsScriptTypeFunction[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsScriptTypeFunctionSet::class, 'Google_Service_Script_GoogleAppsScriptTypeFunctionSet');
@@ -0,0 +1,170 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class GoogleAppsScriptTypeProcess extends \Google\Model
{
/**
* @var string
*/
public $duration;
/**
* @var string
*/
public $functionName;
/**
* @var string
*/
public $processStatus;
/**
* @var string
*/
public $processType;
/**
* @var string
*/
public $projectName;
/**
* @var string
*/
public $runtimeVersion;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $userAccessLevel;
/**
* @param string
*/
public function setDuration($duration)
{
$this->duration = $duration;
}
/**
* @return string
*/
public function getDuration()
{
return $this->duration;
}
/**
* @param string
*/
public function setFunctionName($functionName)
{
$this->functionName = $functionName;
}
/**
* @return string
*/
public function getFunctionName()
{
return $this->functionName;
}
/**
* @param string
*/
public function setProcessStatus($processStatus)
{
$this->processStatus = $processStatus;
}
/**
* @return string
*/
public function getProcessStatus()
{
return $this->processStatus;
}
/**
* @param string
*/
public function setProcessType($processType)
{
$this->processType = $processType;
}
/**
* @return string
*/
public function getProcessType()
{
return $this->processType;
}
/**
* @param string
*/
public function setProjectName($projectName)
{
$this->projectName = $projectName;
}
/**
* @return string
*/
public function getProjectName()
{
return $this->projectName;
}
/**
* @param string
*/
public function setRuntimeVersion($runtimeVersion)
{
$this->runtimeVersion = $runtimeVersion;
}
/**
* @return string
*/
public function getRuntimeVersion()
{
return $this->runtimeVersion;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param string
*/
public function setUserAccessLevel($userAccessLevel)
{
$this->userAccessLevel = $userAccessLevel;
}
/**
* @return string
*/
public function getUserAccessLevel()
{
return $this->userAccessLevel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsScriptTypeProcess::class, 'Google_Service_Script_GoogleAppsScriptTypeProcess');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class GoogleAppsScriptTypeUser extends \Google\Model
{
/**
* @var string
*/
public $domain;
/**
* @var string
*/
public $email;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $photoUrl;
/**
* @param string
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* @param string
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPhotoUrl($photoUrl)
{
$this->photoUrl = $photoUrl;
}
/**
* @return string
*/
public function getPhotoUrl()
{
return $this->photoUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsScriptTypeUser::class, 'Google_Service_Script_GoogleAppsScriptTypeUser');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class GoogleAppsScriptTypeWebAppConfig extends \Google\Model
{
/**
* @var string
*/
public $access;
/**
* @var string
*/
public $executeAs;
/**
* @param string
*/
public function setAccess($access)
{
$this->access = $access;
}
/**
* @return string
*/
public function getAccess()
{
return $this->access;
}
/**
* @param string
*/
public function setExecuteAs($executeAs)
{
$this->executeAs = $executeAs;
}
/**
* @return string
*/
public function getExecuteAs()
{
return $this->executeAs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsScriptTypeWebAppConfig::class, 'Google_Service_Script_GoogleAppsScriptTypeWebAppConfig');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class GoogleAppsScriptTypeWebAppEntryPoint extends \Google\Model
{
protected $entryPointConfigType = GoogleAppsScriptTypeWebAppConfig::class;
protected $entryPointConfigDataType = '';
/**
* @var string
*/
public $url;
/**
* @param GoogleAppsScriptTypeWebAppConfig
*/
public function setEntryPointConfig(GoogleAppsScriptTypeWebAppConfig $entryPointConfig)
{
$this->entryPointConfig = $entryPointConfig;
}
/**
* @return GoogleAppsScriptTypeWebAppConfig
*/
public function getEntryPointConfig()
{
return $this->entryPointConfig;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsScriptTypeWebAppEntryPoint::class, 'Google_Service_Script_GoogleAppsScriptTypeWebAppEntryPoint');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class ListDeploymentsResponse extends \Google\Collection
{
protected $collection_key = 'deployments';
protected $deploymentsType = Deployment::class;
protected $deploymentsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Deployment[]
*/
public function setDeployments($deployments)
{
$this->deployments = $deployments;
}
/**
* @return Deployment[]
*/
public function getDeployments()
{
return $this->deployments;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDeploymentsResponse::class, 'Google_Service_Script_ListDeploymentsResponse');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class ListScriptProcessesResponse extends \Google\Collection
{
protected $collection_key = 'processes';
/**
* @var string
*/
public $nextPageToken;
protected $processesType = GoogleAppsScriptTypeProcess::class;
protected $processesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleAppsScriptTypeProcess[]
*/
public function setProcesses($processes)
{
$this->processes = $processes;
}
/**
* @return GoogleAppsScriptTypeProcess[]
*/
public function getProcesses()
{
return $this->processes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListScriptProcessesResponse::class, 'Google_Service_Script_ListScriptProcessesResponse');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class ListUserProcessesResponse extends \Google\Collection
{
protected $collection_key = 'processes';
/**
* @var string
*/
public $nextPageToken;
protected $processesType = GoogleAppsScriptTypeProcess::class;
protected $processesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleAppsScriptTypeProcess[]
*/
public function setProcesses($processes)
{
$this->processes = $processes;
}
/**
* @return GoogleAppsScriptTypeProcess[]
*/
public function getProcesses()
{
return $this->processes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListUserProcessesResponse::class, 'Google_Service_Script_ListUserProcessesResponse');
@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class ListValue extends \Google\Collection
{
protected $collection_key = 'values';
protected $valuesType = Value::class;
protected $valuesDataType = 'array';
/**
* @param Value[]
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return Value[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListValue::class, 'Google_Service_Script_ListValue');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class ListVersionsResponse extends \Google\Collection
{
protected $collection_key = 'versions';
/**
* @var string
*/
public $nextPageToken;
protected $versionsType = Version::class;
protected $versionsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Version[]
*/
public function setVersions($versions)
{
$this->versions = $versions;
}
/**
* @return Version[]
*/
public function getVersions()
{
return $this->versions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListVersionsResponse::class, 'Google_Service_Script_ListVersionsResponse');
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class Metrics extends \Google\Collection
{
protected $collection_key = 'totalExecutions';
protected $activeUsersType = MetricsValue::class;
protected $activeUsersDataType = 'array';
protected $failedExecutionsType = MetricsValue::class;
protected $failedExecutionsDataType = 'array';
protected $totalExecutionsType = MetricsValue::class;
protected $totalExecutionsDataType = 'array';
/**
* @param MetricsValue[]
*/
public function setActiveUsers($activeUsers)
{
$this->activeUsers = $activeUsers;
}
/**
* @return MetricsValue[]
*/
public function getActiveUsers()
{
return $this->activeUsers;
}
/**
* @param MetricsValue[]
*/
public function setFailedExecutions($failedExecutions)
{
$this->failedExecutions = $failedExecutions;
}
/**
* @return MetricsValue[]
*/
public function getFailedExecutions()
{
return $this->failedExecutions;
}
/**
* @param MetricsValue[]
*/
public function setTotalExecutions($totalExecutions)
{
$this->totalExecutions = $totalExecutions;
}
/**
* @return MetricsValue[]
*/
public function getTotalExecutions()
{
return $this->totalExecutions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Metrics::class, 'Google_Service_Script_Metrics');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class MetricsValue extends \Google\Model
{
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetricsValue::class, 'Google_Service_Script_MetricsValue');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class Operation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_Script_Operation');
@@ -0,0 +1,148 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class Project extends \Google\Model
{
/**
* @var string
*/
public $createTime;
protected $creatorType = GoogleAppsScriptTypeUser::class;
protected $creatorDataType = '';
protected $lastModifyUserType = GoogleAppsScriptTypeUser::class;
protected $lastModifyUserDataType = '';
/**
* @var string
*/
public $parentId;
/**
* @var string
*/
public $scriptId;
/**
* @var string
*/
public $title;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param GoogleAppsScriptTypeUser
*/
public function setCreator(GoogleAppsScriptTypeUser $creator)
{
$this->creator = $creator;
}
/**
* @return GoogleAppsScriptTypeUser
*/
public function getCreator()
{
return $this->creator;
}
/**
* @param GoogleAppsScriptTypeUser
*/
public function setLastModifyUser(GoogleAppsScriptTypeUser $lastModifyUser)
{
$this->lastModifyUser = $lastModifyUser;
}
/**
* @return GoogleAppsScriptTypeUser
*/
public function getLastModifyUser()
{
return $this->lastModifyUser;
}
/**
* @param string
*/
public function setParentId($parentId)
{
$this->parentId = $parentId;
}
/**
* @return string
*/
public function getParentId()
{
return $this->parentId;
}
/**
* @param string
*/
public function setScriptId($scriptId)
{
$this->scriptId = $scriptId;
}
/**
* @return string
*/
public function getScriptId()
{
return $this->scriptId;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Project::class, 'Google_Service_Script_Project');
@@ -0,0 +1,120 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script\Resource;
use Google\Service\Script\ListScriptProcessesResponse;
use Google\Service\Script\ListUserProcessesResponse;
/**
* The "processes" collection of methods.
* Typical usage is:
* <code>
* $scriptService = new Google\Service\Script(...);
* $processes = $scriptService->processes;
* </code>
*/
class Processes extends \Google\Service\Resource
{
/**
* List information about processes made by or on behalf of a user, such as
* process type and current status. (processes.listProcesses)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of returned processes per page of
* results. Defaults to 50.
* @opt_param string pageToken The token for continuing a previous list request
* on the next page. This should be set to the value of `nextPageToken` from a
* previous response.
* @opt_param string userProcessFilter.deploymentId Optional field used to limit
* returned processes to those originating from projects with a specific
* deployment ID.
* @opt_param string userProcessFilter.endTime Optional field used to limit
* returned processes to those that completed on or before the given timestamp.
* @opt_param string userProcessFilter.functionName Optional field used to limit
* returned processes to those originating from a script function with the given
* function name.
* @opt_param string userProcessFilter.projectName Optional field used to limit
* returned processes to those originating from projects with project names
* containing a specific string.
* @opt_param string userProcessFilter.scriptId Optional field used to limit
* returned processes to those originating from projects with a specific script
* ID.
* @opt_param string userProcessFilter.startTime Optional field used to limit
* returned processes to those that were started on or after the given
* timestamp.
* @opt_param string userProcessFilter.statuses Optional field used to limit
* returned processes to those having one of the specified process statuses.
* @opt_param string userProcessFilter.types Optional field used to limit
* returned processes to those having one of the specified process types.
* @opt_param string userProcessFilter.userAccessLevels Optional field used to
* limit returned processes to those having one of the specified user access
* levels.
* @return ListUserProcessesResponse
* @throws \Google\Service\Exception
*/
public function listProcesses($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUserProcessesResponse::class);
}
/**
* List information about a script's executed processes, such as process type
* and current status. (processes.listScriptProcesses)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of returned processes per page of
* results. Defaults to 50.
* @opt_param string pageToken The token for continuing a previous list request
* on the next page. This should be set to the value of `nextPageToken` from a
* previous response.
* @opt_param string scriptId The script ID of the project whose processes are
* listed.
* @opt_param string scriptProcessFilter.deploymentId Optional field used to
* limit returned processes to those originating from projects with a specific
* deployment ID.
* @opt_param string scriptProcessFilter.endTime Optional field used to limit
* returned processes to those that completed on or before the given timestamp.
* @opt_param string scriptProcessFilter.functionName Optional field used to
* limit returned processes to those originating from a script function with the
* given function name.
* @opt_param string scriptProcessFilter.startTime Optional field used to limit
* returned processes to those that were started on or after the given
* timestamp.
* @opt_param string scriptProcessFilter.statuses Optional field used to limit
* returned processes to those having one of the specified process statuses.
* @opt_param string scriptProcessFilter.types Optional field used to limit
* returned processes to those having one of the specified process types.
* @opt_param string scriptProcessFilter.userAccessLevels Optional field used to
* limit returned processes to those having one of the specified user access
* levels.
* @return ListScriptProcessesResponse
* @throws \Google\Service\Exception
*/
public function listScriptProcesses($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('listScriptProcesses', [$params], ListScriptProcessesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Processes::class, 'Google_Service_Script_Resource_Processes');
@@ -0,0 +1,125 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script\Resource;
use Google\Service\Script\Content;
use Google\Service\Script\CreateProjectRequest;
use Google\Service\Script\Metrics;
use Google\Service\Script\Project;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $scriptService = new Google\Service\Script(...);
* $projects = $scriptService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
/**
* Creates a new, empty script project with no script files and a base manifest
* file. (projects.create)
*
* @param CreateProjectRequest $postBody
* @param array $optParams Optional parameters.
* @return Project
* @throws \Google\Service\Exception
*/
public function create(CreateProjectRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Project::class);
}
/**
* Gets a script project's metadata. (projects.get)
*
* @param string $scriptId The script project's Drive ID.
* @param array $optParams Optional parameters.
* @return Project
* @throws \Google\Service\Exception
*/
public function get($scriptId, $optParams = [])
{
$params = ['scriptId' => $scriptId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Project::class);
}
/**
* Gets the content of the script project, including the code source and
* metadata for each script file. (projects.getContent)
*
* @param string $scriptId The script project's Drive ID.
* @param array $optParams Optional parameters.
*
* @opt_param int versionNumber The version number of the project to retrieve.
* If not provided, the project's HEAD version is returned.
* @return Content
* @throws \Google\Service\Exception
*/
public function getContent($scriptId, $optParams = [])
{
$params = ['scriptId' => $scriptId];
$params = array_merge($params, $optParams);
return $this->call('getContent', [$params], Content::class);
}
/**
* Get metrics data for scripts, such as number of executions and active users.
* (projects.getMetrics)
*
* @param string $scriptId Required field indicating the script to get metrics
* for.
* @param array $optParams Optional parameters.
*
* @opt_param string metricsFilter.deploymentId Optional field indicating a
* specific deployment to retrieve metrics from.
* @opt_param string metricsGranularity Required field indicating what
* granularity of metrics are returned.
* @return Metrics
* @throws \Google\Service\Exception
*/
public function getMetrics($scriptId, $optParams = [])
{
$params = ['scriptId' => $scriptId];
$params = array_merge($params, $optParams);
return $this->call('getMetrics', [$params], Metrics::class);
}
/**
* Updates the content of the specified script project. This content is stored
* as the HEAD version, and is used when the script is executed as a trigger, in
* the script editor, in add-on preview mode, or as a web app or Apps Script API
* in development mode. This clears all the existing files in the project.
* (projects.updateContent)
*
* @param string $scriptId The script project's Drive ID.
* @param Content $postBody
* @param array $optParams Optional parameters.
* @return Content
* @throws \Google\Service\Exception
*/
public function updateContent($scriptId, Content $postBody, $optParams = [])
{
$params = ['scriptId' => $scriptId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateContent', [$params], Content::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Script_Resource_Projects');
@@ -0,0 +1,121 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script\Resource;
use Google\Service\Script\Deployment;
use Google\Service\Script\DeploymentConfig;
use Google\Service\Script\ListDeploymentsResponse;
use Google\Service\Script\ScriptEmpty;
use Google\Service\Script\UpdateDeploymentRequest;
/**
* The "deployments" collection of methods.
* Typical usage is:
* <code>
* $scriptService = new Google\Service\Script(...);
* $deployments = $scriptService->projects_deployments;
* </code>
*/
class ProjectsDeployments extends \Google\Service\Resource
{
/**
* Creates a deployment of an Apps Script project. (deployments.create)
*
* @param string $scriptId The script project's Drive ID.
* @param DeploymentConfig $postBody
* @param array $optParams Optional parameters.
* @return Deployment
* @throws \Google\Service\Exception
*/
public function create($scriptId, DeploymentConfig $postBody, $optParams = [])
{
$params = ['scriptId' => $scriptId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Deployment::class);
}
/**
* Deletes a deployment of an Apps Script project. (deployments.delete)
*
* @param string $scriptId The script project's Drive ID.
* @param string $deploymentId The deployment ID to be undeployed.
* @param array $optParams Optional parameters.
* @return ScriptEmpty
* @throws \Google\Service\Exception
*/
public function delete($scriptId, $deploymentId, $optParams = [])
{
$params = ['scriptId' => $scriptId, 'deploymentId' => $deploymentId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ScriptEmpty::class);
}
/**
* Gets a deployment of an Apps Script project. (deployments.get)
*
* @param string $scriptId The script project's Drive ID.
* @param string $deploymentId The deployment ID.
* @param array $optParams Optional parameters.
* @return Deployment
* @throws \Google\Service\Exception
*/
public function get($scriptId, $deploymentId, $optParams = [])
{
$params = ['scriptId' => $scriptId, 'deploymentId' => $deploymentId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Deployment::class);
}
/**
* Lists the deployments of an Apps Script project.
* (deployments.listProjectsDeployments)
*
* @param string $scriptId The script project's Drive ID.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of deployments on each returned
* page. Defaults to 50.
* @opt_param string pageToken The token for continuing a previous list request
* on the next page. This should be set to the value of `nextPageToken` from a
* previous response.
* @return ListDeploymentsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsDeployments($scriptId, $optParams = [])
{
$params = ['scriptId' => $scriptId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDeploymentsResponse::class);
}
/**
* Updates a deployment of an Apps Script project. (deployments.update)
*
* @param string $scriptId The script project's Drive ID.
* @param string $deploymentId The deployment ID for this deployment.
* @param UpdateDeploymentRequest $postBody
* @param array $optParams Optional parameters.
* @return Deployment
* @throws \Google\Service\Exception
*/
public function update($scriptId, $deploymentId, UpdateDeploymentRequest $postBody, $optParams = [])
{
$params = ['scriptId' => $scriptId, 'deploymentId' => $deploymentId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Deployment::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsDeployments::class, 'Google_Service_Script_Resource_ProjectsDeployments');
@@ -0,0 +1,87 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script\Resource;
use Google\Service\Script\ListVersionsResponse;
use Google\Service\Script\Version;
/**
* The "versions" collection of methods.
* Typical usage is:
* <code>
* $scriptService = new Google\Service\Script(...);
* $versions = $scriptService->projects_versions;
* </code>
*/
class ProjectsVersions extends \Google\Service\Resource
{
/**
* Creates a new immutable version using the current code, with a unique version
* number. (versions.create)
*
* @param string $scriptId The script project's Drive ID.
* @param Version $postBody
* @param array $optParams Optional parameters.
* @return Version
* @throws \Google\Service\Exception
*/
public function create($scriptId, Version $postBody, $optParams = [])
{
$params = ['scriptId' => $scriptId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Version::class);
}
/**
* Gets a version of a script project. (versions.get)
*
* @param string $scriptId The script project's Drive ID.
* @param int $versionNumber The version number.
* @param array $optParams Optional parameters.
* @return Version
* @throws \Google\Service\Exception
*/
public function get($scriptId, $versionNumber, $optParams = [])
{
$params = ['scriptId' => $scriptId, 'versionNumber' => $versionNumber];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Version::class);
}
/**
* List the versions of a script project. (versions.listProjectsVersions)
*
* @param string $scriptId The script project's Drive ID.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of versions on each returned page.
* Defaults to 50.
* @opt_param string pageToken The token for continuing a previous list request
* on the next page. This should be set to the value of `nextPageToken` from a
* previous response.
* @return ListVersionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsVersions($scriptId, $optParams = [])
{
$params = ['scriptId' => $scriptId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListVersionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsVersions::class, 'Google_Service_Script_Resource_ProjectsVersions');
@@ -0,0 +1,65 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script\Resource;
use Google\Service\Script\ExecutionRequest;
use Google\Service\Script\Operation;
/**
* The "scripts" collection of methods.
* Typical usage is:
* <code>
* $scriptService = new Google\Service\Script(...);
* $scripts = $scriptService->scripts;
* </code>
*/
class Scripts extends \Google\Service\Resource
{
/**
* Runs a function in an Apps Script project. The script project must be
* deployed for use with the Apps Script API and the calling application must
* share the same Cloud Platform project. This method requires authorization
* with an OAuth 2.0 token that includes at least one of the scopes listed in
* the [Authorization](#authorization-scopes) 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 script
* project **Overview** page and scroll down to "Project OAuth Scopes." The
* error `403, PERMISSION_DENIED: The caller does not have permission` indicates
* that the Cloud Platform project used to authorize the request is not the same
* as the one used by the script. (scripts.run)
*
* @param string $scriptId The script ID of the script to be executed. Find the
* script ID on the **Project settings** page under "IDs." As multiple
* executable APIs can be deployed in new IDE for same script, this field should
* be populated with DeploymentID generated while deploying in new IDE instead
* of script ID.
* @param ExecutionRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function run($scriptId, ExecutionRequest $postBody, $optParams = [])
{
$params = ['scriptId' => $scriptId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('run', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Scripts::class, 'Google_Service_Script_Resource_Scripts');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class ScriptEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ScriptEmpty::class, 'Google_Service_Script_ScriptEmpty');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class ScriptExecutionResult extends \Google\Model
{
protected $returnValueType = Value::class;
protected $returnValueDataType = '';
/**
* @param Value
*/
public function setReturnValue(Value $returnValue)
{
$this->returnValue = $returnValue;
}
/**
* @return Value
*/
public function getReturnValue()
{
return $this->returnValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ScriptExecutionResult::class, 'Google_Service_Script_ScriptExecutionResult');
@@ -0,0 +1,148 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class ScriptFile extends \Google\Model
{
/**
* @var string
*/
public $createTime;
protected $functionSetType = GoogleAppsScriptTypeFunctionSet::class;
protected $functionSetDataType = '';
protected $lastModifyUserType = GoogleAppsScriptTypeUser::class;
protected $lastModifyUserDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $source;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param GoogleAppsScriptTypeFunctionSet
*/
public function setFunctionSet(GoogleAppsScriptTypeFunctionSet $functionSet)
{
$this->functionSet = $functionSet;
}
/**
* @return GoogleAppsScriptTypeFunctionSet
*/
public function getFunctionSet()
{
return $this->functionSet;
}
/**
* @param GoogleAppsScriptTypeUser
*/
public function setLastModifyUser(GoogleAppsScriptTypeUser $lastModifyUser)
{
$this->lastModifyUser = $lastModifyUser;
}
/**
* @return GoogleAppsScriptTypeUser
*/
public function getLastModifyUser()
{
return $this->lastModifyUser;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ScriptFile::class, 'Google_Service_Script_ScriptFile');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class ScriptStackTraceElement extends \Google\Model
{
/**
* @var string
*/
public $function;
/**
* @var int
*/
public $lineNumber;
/**
* @param string
*/
public function setFunction($function)
{
$this->function = $function;
}
/**
* @return string
*/
public function getFunction()
{
return $this->function;
}
/**
* @param int
*/
public function setLineNumber($lineNumber)
{
$this->lineNumber = $lineNumber;
}
/**
* @return int
*/
public function getLineNumber()
{
return $this->lineNumber;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ScriptStackTraceElement::class, 'Google_Service_Script_ScriptStackTraceElement');
@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_Script_Status');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class Struct extends \Google\Model
{
protected $fieldsType = Value::class;
protected $fieldsDataType = 'map';
/**
* @param Value[]
*/
public function setFields($fields)
{
$this->fields = $fields;
}
/**
* @return Value[]
*/
public function getFields()
{
return $this->fields;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Struct::class, 'Google_Service_Script_Struct');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class UpdateDeploymentRequest extends \Google\Model
{
protected $deploymentConfigType = DeploymentConfig::class;
protected $deploymentConfigDataType = '';
/**
* @param DeploymentConfig
*/
public function setDeploymentConfig(DeploymentConfig $deploymentConfig)
{
$this->deploymentConfig = $deploymentConfig;
}
/**
* @return DeploymentConfig
*/
public function getDeploymentConfig()
{
return $this->deploymentConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateDeploymentRequest::class, 'Google_Service_Script_UpdateDeploymentRequest');
@@ -0,0 +1,175 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class Value extends \Google\Model
{
/**
* @var bool
*/
public $boolValue;
/**
* @var string
*/
public $bytesValue;
/**
* @var string
*/
public $dateValue;
protected $listValueType = ListValue::class;
protected $listValueDataType = '';
/**
* @var string
*/
public $nullValue;
public $numberValue;
/**
* @var array[]
*/
public $protoValue;
/**
* @var string
*/
public $stringValue;
protected $structValueType = Struct::class;
protected $structValueDataType = '';
/**
* @param bool
*/
public function setBoolValue($boolValue)
{
$this->boolValue = $boolValue;
}
/**
* @return bool
*/
public function getBoolValue()
{
return $this->boolValue;
}
/**
* @param string
*/
public function setBytesValue($bytesValue)
{
$this->bytesValue = $bytesValue;
}
/**
* @return string
*/
public function getBytesValue()
{
return $this->bytesValue;
}
/**
* @param string
*/
public function setDateValue($dateValue)
{
$this->dateValue = $dateValue;
}
/**
* @return string
*/
public function getDateValue()
{
return $this->dateValue;
}
/**
* @param ListValue
*/
public function setListValue(ListValue $listValue)
{
$this->listValue = $listValue;
}
/**
* @return ListValue
*/
public function getListValue()
{
return $this->listValue;
}
/**
* @param string
*/
public function setNullValue($nullValue)
{
$this->nullValue = $nullValue;
}
/**
* @return string
*/
public function getNullValue()
{
return $this->nullValue;
}
public function setNumberValue($numberValue)
{
$this->numberValue = $numberValue;
}
public function getNumberValue()
{
return $this->numberValue;
}
/**
* @param array[]
*/
public function setProtoValue($protoValue)
{
$this->protoValue = $protoValue;
}
/**
* @return array[]
*/
public function getProtoValue()
{
return $this->protoValue;
}
/**
* @param string
*/
public function setStringValue($stringValue)
{
$this->stringValue = $stringValue;
}
/**
* @return string
*/
public function getStringValue()
{
return $this->stringValue;
}
/**
* @param Struct
*/
public function setStructValue(Struct $structValue)
{
$this->structValue = $structValue;
}
/**
* @return Struct
*/
public function getStructValue()
{
return $this->structValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Value::class, 'Google_Service_Script_Value');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Script;
class Version extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $scriptId;
/**
* @var int
*/
public $versionNumber;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setScriptId($scriptId)
{
$this->scriptId = $scriptId;
}
/**
* @return string
*/
public function getScriptId()
{
return $this->scriptId;
}
/**
* @param int
*/
public function setVersionNumber($versionNumber)
{
$this->versionNumber = $versionNumber;
}
/**
* @return int
*/
public function getVersionNumber()
{
return $this->versionNumber;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Version::class, 'Google_Service_Script_Version');