class ProjectsDeployments extends Resource (View source)

The "deployments" collection of methods.

Typical usage is:

 $scriptService = new Google\Service\Script(...);
 $deployments = $scriptService->projects_deployments;

Methods

create(string $scriptId, DeploymentConfig $postBody, array $optParams = [])

Creates a deployment of an Apps Script project. (deployments.create)

delete(string $scriptId, string $deploymentId, array $optParams = [])

Deletes a deployment of an Apps Script project. (deployments.delete)

get(string $scriptId, string $deploymentId, array $optParams = [])

Gets a deployment of an Apps Script project. (deployments.get)

listProjectsDeployments(string $scriptId, array $optParams = [])

Lists the deployments of an Apps Script project.

update(string $scriptId, string $deploymentId, UpdateDeploymentRequest $postBody, array $optParams = [])

Updates a deployment of an Apps Script project. (deployments.update)

Details

Deployment create(string $scriptId, DeploymentConfig $postBody, array $optParams = [])

Creates a deployment of an Apps Script project. (deployments.create)

Parameters

string $scriptId

The script project's Drive ID.

DeploymentConfig $postBody
array $optParams

Optional parameters.

Return Value

Deployment

Exceptions

Exception

ScriptEmpty delete(string $scriptId, string $deploymentId, array $optParams = [])

Deletes a deployment of an Apps Script project. (deployments.delete)

Parameters

string $scriptId

The script project's Drive ID.

string $deploymentId

The deployment ID to be undeployed.

array $optParams

Optional parameters.

Return Value

ScriptEmpty

Exceptions

Exception

Deployment get(string $scriptId, string $deploymentId, array $optParams = [])

Gets a deployment of an Apps Script project. (deployments.get)

Parameters

string $scriptId

The script project's Drive ID.

string $deploymentId

The deployment ID.

array $optParams

Optional parameters.

Return Value

Deployment

Exceptions

Exception

ListDeploymentsResponse listProjectsDeployments(string $scriptId, array $optParams = [])

Lists the deployments of an Apps Script project.

(deployments.listProjectsDeployments)

Parameters

string $scriptId

The script project's Drive ID.

array $optParams

Optional parameters.

Return Value

ListDeploymentsResponse

Exceptions

Exception

Deployment update(string $scriptId, string $deploymentId, UpdateDeploymentRequest $postBody, array $optParams = [])

Updates a deployment of an Apps Script project. (deployments.update)

Parameters

string $scriptId

The script project's Drive ID.

string $deploymentId

The deployment ID for this deployment.

UpdateDeploymentRequest $postBody
array $optParams

Optional parameters.

Return Value

Deployment

Exceptions

Exception