class ProjectsVersions extends Resource (View source)

The "versions" collection of methods.

Typical usage is:

 $scriptService = new Google\Service\Script(...);
 $versions = $scriptService->projects_versions;

Methods

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

Creates a new immutable version using the current code, with a unique version number. (versions.create)

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

Gets a version of a script project. (versions.get)

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

List the versions of a script project. (versions.listProjectsVersions)

Details

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

Creates a new immutable version using the current code, with a unique version number. (versions.create)

Parameters

string $scriptId

The script project's Drive ID.

Version $postBody
array $optParams

Optional parameters.

Return Value

Version

Exceptions

Exception

Version get(string $scriptId, int $versionNumber, array $optParams = [])

Gets a version of a script project. (versions.get)

Parameters

string $scriptId

The script project's Drive ID.

int $versionNumber

The version number.

array $optParams

Optional parameters.

Return Value

Version

Exceptions

Exception

ListVersionsResponse listProjectsVersions(string $scriptId, array $optParams = [])

List the versions of a script project. (versions.listProjectsVersions)

Parameters

string $scriptId

The script project's Drive ID.

array $optParams

Optional parameters.

Return Value

ListVersionsResponse

Exceptions

Exception