Overview

Classes

  • Google_Service_Script
  • Google_Service_Script_Content
  • Google_Service_Script_CreateProjectRequest
  • Google_Service_Script_Deployment
  • Google_Service_Script_DeploymentConfig
  • Google_Service_Script_EntryPoint
  • Google_Service_Script_ExecuteStreamResponse
  • Google_Service_Script_ExecutionError
  • Google_Service_Script_ExecutionRequest
  • Google_Service_Script_ExecutionResponse
  • Google_Service_Script_GoogleAppsScriptTypeAddOnEntryPoint
  • Google_Service_Script_GoogleAppsScriptTypeExecutionApiConfig
  • Google_Service_Script_GoogleAppsScriptTypeExecutionApiEntryPoint
  • Google_Service_Script_GoogleAppsScriptTypeFunction
  • Google_Service_Script_GoogleAppsScriptTypeFunctionSet
  • Google_Service_Script_GoogleAppsScriptTypeProcess
  • Google_Service_Script_GoogleAppsScriptTypeUser
  • Google_Service_Script_GoogleAppsScriptTypeWebAppConfig
  • Google_Service_Script_GoogleAppsScriptTypeWebAppEntryPoint
  • Google_Service_Script_ListDeploymentsResponse
  • Google_Service_Script_ListScriptProcessesResponse
  • Google_Service_Script_ListUserProcessesResponse
  • Google_Service_Script_ListValue
  • Google_Service_Script_ListVersionsResponse
  • Google_Service_Script_Metrics
  • Google_Service_Script_MetricsValue
  • Google_Service_Script_Operation
  • Google_Service_Script_Processes_Resource
  • Google_Service_Script_Project
  • Google_Service_Script_Projects_Resource
  • Google_Service_Script_ProjectsDeployments_Resource
  • Google_Service_Script_ProjectsVersions_Resource
  • Google_Service_Script_ScriptEmpty
  • Google_Service_Script_ScriptExecutionResult
  • Google_Service_Script_ScriptFile
  • Google_Service_Script_Scripts_Resource
  • Google_Service_Script_ScriptStackTraceElement
  • Google_Service_Script_Status
  • Google_Service_Script_Struct
  • Google_Service_Script_UpdateDeploymentRequest
  • Google_Service_Script_Value
  • Google_Service_Script_Version
  • Overview
  • Class
  • Tree

Class Google_Service_Script_Projects_Resource

The "projects" collection of methods. Typical usage is:

 $scriptService = new Google_Service_Script(...);
 $projects = $scriptService->projects;
Google_Service_Resource
Extended by Google_Service_Script_Projects_Resource
Located at Script.php
Methods summary
public Google_Service_Script_Project
# create( Google_Service_Script_CreateProjectRequest $postBody, array $optParams = array() )

Creates a new, empty script project with no script files and a base manifest file. (projects.create)

Creates a new, empty script project with no script files and a base manifest file. (projects.create)

Parameters

$postBody
$optParams
Optional parameters.

Returns

Google_Service_Script_Project
Google_Service_Script_Project
public Google_Service_Script_Project
# get( string $scriptId, array $optParams = array() )

Gets a script project's metadata. (projects.get)

Gets a script project's metadata. (projects.get)

Parameters

$scriptId
The script project's Drive ID.
$optParams
Optional parameters.

Returns

Google_Service_Script_Project
Google_Service_Script_Project
public Google_Service_Script_Content
# getContent( string $scriptId, array $optParams = array() )

Gets the content of the script project, including the code source and metadata for each script file. (projects.getContent)

Gets the content of the script project, including the code source and metadata for each script file. (projects.getContent)

Parameters

$scriptId
The script project's Drive ID.
$optParams
Optional parameters.

Returns

Google_Service_Script_Content
Google_Service_Script_Content

Opt_param

int versionNumber The version number of the project to retrieve. If not provided, the project's HEAD version is returned.
public Google_Service_Script_Metrics
# getMetrics( string $scriptId, array $optParams = array() )

Get metrics data for scripts, such as number of executions and active users. (projects.getMetrics)

Get metrics data for scripts, such as number of executions and active users. (projects.getMetrics)

Parameters

$scriptId
Required field indicating the script to get metrics for.
$optParams
Optional parameters.

Returns

Google_Service_Script_Metrics
Google_Service_Script_Metrics

Opt_param

string metricsGranularity Required field indicating what granularity of metrics are returned.
string metricsFilter.deploymentId Optional field indicating a specific deployment to retrieve metrics from.
public Google_Service_Script_Content
# updateContent( string $scriptId, Google_Service_Script_Content $postBody, array $optParams = array() )

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)

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)

Parameters

$scriptId
The script project's Drive ID.
$postBody
$optParams
Optional parameters.

Returns

Google_Service_Script_Content
Google_Service_Script_Content
© 2020 Google Inc.
Apps Script API documentation generated by ApiGen 2.8.0