class OrganizationsEnvironmentsApisRevisions extends Resource (View source)

The "revisions" collection of methods.

Typical usage is:

 $apigeeService = new Google\Service\Apigee(...);
 $revisions = $apigeeService->organizations_environments_apis_revisions;

Methods

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

Deploys a revision of an API proxy. If another revision of the same API proxy revision is currently deployed, set the override parameter to true to have this revision replace the currently deployed revision. You cannot invoke an API proxy until it has been deployed to an environment. After you deploy an API proxy revision, you cannot edit it. To edit the API proxy, you must create and deploy a new revision. For a request path organizations/{org}/env ironments/{env}/apis/{api}/revisions/{rev}/deployments, two permissions are required: apigee.deployments.create on the resource organizations/{org}/environments/{env} apigee.proxyrevisions.deploy on the resource organizations/{org}/apis/{api}/revisions/{rev} (revisions.deploy)

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

Gets the deployment of an API proxy revision and actual state reported by runtime pods. (revisions.getDeployments)

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

Undeploys an API proxy revision from an environment. For a request path orga nizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments, two permissions are required: apigee.deployments.delete on the resource organizations/{org}/environments/{env} apigee.proxyrevisions.undeploy on the resource organizations/{org}/apis/{api}/revisions/{rev} (revisions.undeploy)

Details

GoogleCloudApigeeV1Deployment deploy(string $name, array $optParams = [])

Deploys a revision of an API proxy. If another revision of the same API proxy revision is currently deployed, set the override parameter to true to have this revision replace the currently deployed revision. You cannot invoke an API proxy until it has been deployed to an environment. After you deploy an API proxy revision, you cannot edit it. To edit the API proxy, you must create and deploy a new revision. For a request path organizations/{org}/env ironments/{env}/apis/{api}/revisions/{rev}/deployments, two permissions are required: apigee.deployments.create on the resource organizations/{org}/environments/{env} apigee.proxyrevisions.deploy on the resource organizations/{org}/apis/{api}/revisions/{rev} (revisions.deploy)

Parameters

string $name

Required. Name of the API proxy revision deployment in the following format: organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}

array $optParams

Optional parameters.

Return Value

GoogleCloudApigeeV1Deployment

Exceptions

Exception

GoogleCloudApigeeV1Deployment getDeployments(string $name, array $optParams = [])

Gets the deployment of an API proxy revision and actual state reported by runtime pods. (revisions.getDeployments)

Parameters

string $name

Required. Name representing an API proxy revision in an environment in the following format: organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}

array $optParams

Optional parameters.

Return Value

GoogleCloudApigeeV1Deployment

Exceptions

Exception

GoogleProtobufEmpty undeploy(string $name, array $optParams = [])

Undeploys an API proxy revision from an environment. For a request path orga nizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/deployments, two permissions are required: apigee.deployments.delete on the resource organizations/{org}/environments/{env} apigee.proxyrevisions.undeploy on the resource organizations/{org}/apis/{api}/revisions/{rev} (revisions.undeploy)

Parameters

string $name

Required. Name of the API proxy revision deployment in the following format: organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception