class ProjectsLocationsDeploymentsRevisions extends Resource (View source)

The "revisions" collection of methods.

Typical usage is:

 $configService = new Google\Service\Config(...);
 $revisions = $configService->projects_locations_deployments_revisions;

Methods

exportState(string $parent, ExportRevisionStatefileRequest $postBody, array $optParams = [])

Exports Terraform state file from a given revision. (revisions.exportState)

get(string $name, array $optParams = [])

Gets details about a Revision. (revisions.get)

listProjectsLocationsDeploymentsRevisions(string $parent, array $optParams = [])

Lists Revisions of a deployment.

Details

Statefile exportState(string $parent, ExportRevisionStatefileRequest $postBody, array $optParams = [])

Exports Terraform state file from a given revision. (revisions.exportState)

Parameters

string $parent

Required. The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{project_id}/locations/{ location}/deployments/{deployment}/revisions/{revision}'.

ExportRevisionStatefileRequest $postBody
array $optParams

Optional parameters.

Return Value

Statefile

Exceptions

Exception

Revision get(string $name, array $optParams = [])

Gets details about a Revision. (revisions.get)

Parameters

string $name

Required. The name of the Revision in the format: 'projec ts/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revi sion}'.

array $optParams

Optional parameters.

Return Value

Revision

Exceptions

Exception

ListRevisionsResponse listProjectsLocationsDeploymentsRevisions(string $parent, array $optParams = [])

Lists Revisions of a deployment.

(revisions.listProjectsLocationsDeploymentsRevisions)

Parameters

string $parent

Required. The parent in whose context the Revisions are listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

array $optParams

Optional parameters.

Return Value

ListRevisionsResponse

Exceptions

Exception