class OrganizationsApisRevisions extends Resource (View source)

The "revisions" collection of methods.

Typical usage is:

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

Methods

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

Deletes an API proxy revision and all policies, resources, endpoints, and revisions associated with it. The API proxy revision must be undeployed before you can delete it. (revisions.delete)

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

Gets an API proxy revision. To download the API proxy configuration bundle for the specified revision as a zip file, set the format query parameter to bundle. If you are using curl, specify -o filename.zip to save the output to a file; otherwise, it displays to stdout. Then, develop the API proxy configuration locally and upload the updated API proxy configuration revision, as described in updateApiProxyRevision.

updateApiProxyRevision(string $name, GoogleApiHttpBody $postBody, array $optParams = [])

Updates an existing API proxy revision by uploading the API proxy configuration bundle as a zip file from your local machine. You can update only API proxy revisions that have never been deployed. After deployment, an API proxy revision becomes immutable, even if it is undeployed. Set the Content-Type header to either multipart/form-data or application/octet- stream. (revisions.updateApiProxyRevision)

Details

GoogleCloudApigeeV1ApiProxyRevision delete(string $name, array $optParams = [])

Deletes an API proxy revision and all policies, resources, endpoints, and revisions associated with it. The API proxy revision must be undeployed before you can delete it. (revisions.delete)

Parameters

string $name

Required. API proxy revision in the following format: organizations/{org}/apis/{api}/revisions/{rev}

array $optParams

Optional parameters.

Return Value

GoogleCloudApigeeV1ApiProxyRevision

Exceptions

Exception

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

Gets an API proxy revision. To download the API proxy configuration bundle for the specified revision as a zip file, set the format query parameter to bundle. If you are using curl, specify -o filename.zip to save the output to a file; otherwise, it displays to stdout. Then, develop the API proxy configuration locally and upload the updated API proxy configuration revision, as described in updateApiProxyRevision.

(revisions.get)

Parameters

string $name

Required. API proxy revision in the following format: organizations/{org}/apis/{api}/revisions/{rev}

array $optParams

Optional parameters.

Return Value

GoogleApiHttpBody

Exceptions

Exception

GoogleCloudApigeeV1ApiProxyRevision updateApiProxyRevision(string $name, GoogleApiHttpBody $postBody, array $optParams = [])

Updates an existing API proxy revision by uploading the API proxy configuration bundle as a zip file from your local machine. You can update only API proxy revisions that have never been deployed. After deployment, an API proxy revision becomes immutable, even if it is undeployed. Set the Content-Type header to either multipart/form-data or application/octet- stream. (revisions.updateApiProxyRevision)

Parameters

string $name

Required. API proxy revision to update in the following format: organizations/{org}/apis/{api}/revisions/{rev}

GoogleApiHttpBody $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudApigeeV1ApiProxyRevision

Exceptions

Exception